* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e5e7eb;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  padding: 22px 7% 46px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  border-bottom: 1px solid #1f2937;
}

.nav {
  max-width: 1120px;
  margin: 0 auto 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.92rem;
  color: #94a3b8;
}

.nav-links a:hover {
  color: #38bdf8;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 16px;
  color: #f8fafc;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 16px;
  color: #f8fafc;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h3 {
  color: #f8fafc;
}

.hero-description {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.94rem;
}

.button.primary {
  background: #38bdf8;
  color: #020617;
}

.button.secondary {
  border: 1px solid #334155;
  color: #e5e7eb;
}

.button:hover {
  opacity: 0.9;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.stats div {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 16px;
}

.stats strong {
  display: block;
  color: #f8fafc;
  font-size: 1.2rem;
  line-height: 1.2;
}

.stats span {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 0.9rem;
}

main {
  padding: 58px 7%;
}

.section {
  max-width: 1120px;
  margin: 0 auto 68px;
}

.section-text {
  max-width: 820px;
  color: #cbd5e1;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}

.profile-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 14px;
  padding: 22px;
}

.profile-placeholder {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #38bdf8;
  font-weight: 800;
  font-size: 2rem;
}

.profile-card h3 {
  margin-bottom: 8px;
}

.profile-card p {
  margin-bottom: 0;
  color: #94a3b8;
  font-size: 0.95rem;
}

.project-grid,
.skills-grid,
.roadmap-grid {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skills-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.roadmap-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card,
.skill-group,
.roadmap-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 14px;
  padding: 20px;
}

.project-card:hover,
.skill-group:hover,
.roadmap-card:hover,
.profile-card:hover {
  border-color: #334155;
}

.project-card h3,
.skill-group h3,
.roadmap-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.project-card p {
  color: #cbd5e1;
}

.project-card span {
  display: block;
  margin-top: 14px;
  color: #38bdf8;
  font-size: 0.9rem;
}

.topology-box {
  margin-top: 26px;
  padding: 12px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 14px;
}

.topology-box img {
  display: block;
  width: 100%;
  border-radius: 10px;
  background: #020617;
}

.skill-group ul,
.roadmap-card ul {
  margin: 0;
  padding-left: 18px;
  color: #cbd5e1;
}

.skill-group li,
.roadmap-card li {
  margin-bottom: 6px;
}

.documentation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 14px;
}

.documentation p {
  max-width: 720px;
  margin-bottom: 0;
  color: #94a3b8;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact-links a {
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 15px;
  color: #e5e7eb;
  font-weight: 700;
}

.contact-links a:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.note {
  margin-top: 16px;
  color: #94a3b8;
  font-size: 0.92rem;
}

footer {
  padding: 26px 7%;
  border-top: 1px solid #1f2937;
  text-align: center;
  color: #94a3b8;
  background: #111827;
}

@media (max-width: 950px) {
  .nav,
  .about-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    margin-bottom: 44px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .about-grid,
  .project-grid,
  .skills-grid,
  .roadmap-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .documentation {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .site-header,
  main,
  footer {
    padding-left: 5%;
    padding-right: 5%;
  }

  .nav-links {
    gap: 11px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    margin-bottom: 54px;
  }

  .project-card,
  .skill-group,
  .roadmap-card,
  .documentation,
  .profile-card {
    padding: 18px;
  }
}