:root {
  --bg: #07111f;
  --surface: #0f1c2e;
  --surface-2: #13243a;
  --surface-3: #18314a;
  --text: #eef6ff;
  --muted: #a9c2dd;
  --soft: #d8e8f7;
  --line: rgba(169, 194, 221, 0.18);
  --accent: #57d8f9;
  --accent-2: #78f1d4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --max: 1120px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at 25% 0%, rgba(87, 216, 249, 0.14), transparent 34rem),
    linear-gradient(180deg, #07111f 0%, #081321 48%, #07111f 100%);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 8vw, 104px) 0;
  scroll-margin-top: calc(var(--header-h) + 18px);
  border-bottom: 1px solid var(--line);
}

.section-soft {
  background: rgba(255, 255, 255, 0.025);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-140%);
  background: var(--accent-2);
  color: #06111c;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  z-index: 1000;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  min-height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05101d;
  font-weight: 900;
  box-shadow: 0 16px 44px rgba(87, 216, 249, 0.2);
  flex: 0 0 auto;
}
.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand span {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.6rem);
  color: var(--muted);
  font-weight: 650;
  font-size: 0.96rem;
}

.site-nav a {
  padding: 0.7rem 0;
  transition: color 0.18s ease;
}
.site-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  padding-top: clamp(48px, 7vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 360px);
  align-items: center;
  gap: clamp(2rem, 7vw, 5.5rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 900;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  max-width: 8.4em;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

h2 {
  margin: 0 0 2rem;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

h3 {
  margin: 0 0 0.7rem;
  line-height: 1.25;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-title-line {
  margin: 1.2rem 0 1.1rem;
  color: var(--accent);
  font-size: clamp(1.65rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 900;
  max-width: 12.5em;
}

.hero-text,
.body-copy p,
.card p,
.project-card p,
.highlight-box p,
.contact-card p,
.timeline-item p,
.timeline-item small {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.08rem);
}

.hero-text { max-width: 690px; margin: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid var(--line);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06111c;
}
.button.ghost { background: rgba(255, 255, 255, 0.03); }

.pill-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.pill-list li {
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 999px;
  padding: 0.52rem 0.78rem;
  font-size: 0.92rem;
  white-space: normal;
}

.profile-card {
  width: 100%;
  max-width: 360px;
  justify-self: end;
  padding: clamp(1.3rem, 3vw, 2.1rem);
  border-radius: var(--radius);
  border: 1px solid rgba(169, 194, 221, 0.22);
  background: linear-gradient(145deg, rgba(25, 49, 74, 0.96), rgba(17, 31, 50, 0.96));
  box-shadow: var(--shadow);
  text-align: center;
}
.profile-card img {
  width: min(100%, 300px);
  margin: 0 auto 1.35rem;
  border-radius: 24px;
  border: 1px solid rgba(169, 194, 221, 0.18);
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
}
.profile-card h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.profile-card p { color: var(--muted); margin: 0 0 1rem; }
.profile-card span {
  display: inline-flex;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  background: rgba(87, 216, 249, 0.13);
  color: var(--accent);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}
.body-copy p { margin: 0 0 1.2rem; }
.body-copy p:last-child { margin-bottom: 0; }

.timeline,
.card-grid,
.project-grid {
  display: grid;
  gap: 1.1rem;
}

.timeline-item,
.card,
.project-card,
.highlight-box,
.contact-card {
  border: 1px solid rgba(169, 194, 221, 0.2);
  background: rgba(19, 36, 58, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
}

.timeline-item {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  position: relative;
  padding-left: clamp(3.2rem, 5vw, 4rem);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 1.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 8px rgba(87, 216, 249, 0.11);
}
.timeline-item p { margin: 0 0 0.8rem; }
.timeline-item small { display: block; }

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card { padding: clamp(1.2rem, 3vw, 1.7rem); }
.card p { margin: 0; }

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-card { padding: clamp(1.2rem, 3vw, 1.7rem); }
.feature-card { grid-column: span 2; background: linear-gradient(145deg, rgba(28, 67, 91, 0.86), rgba(19, 36, 58, 0.92)); border-color: rgba(87, 216, 249, 0.48); }
.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.project-head h3 { margin: 0; }
.project-head span {
  display: inline-flex;
  max-width: 100%;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: var(--accent);
  color: #06111c;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 900;
  text-align: center;
  overflow-wrap: normal;
}
.project-card p { margin: 0 0 1rem; }
.project-card ul {
  color: var(--muted);
  margin: 0;
  padding-left: 1.2rem;
}

.highlight-box { padding: clamp(1.3rem, 3vw, 2rem); }
.highlight-box h3 { margin-bottom: 0.9rem; }

.contact-section { text-align: center; }
.contact-card {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: linear-gradient(145deg, rgba(28, 67, 91, 0.88), rgba(18, 37, 58, 0.92));
}
.contact-card h2 { margin-bottom: 1rem; }
.contact-card p { margin: 0 auto 1.6rem; max-width: 760px; }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}
.contact-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
}
.contact-card small { color: var(--muted); }

.site-footer { padding: 1.7rem 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--accent); font-weight: 700; }

@media (max-width: 980px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .profile-card { justify-self: start; max-width: 340px; }
  .card-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-card { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .container { width: min(100% - 28px, var(--max)); }
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 14px;
    right: 14px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    padding: 0.8rem;
    background: rgba(8, 19, 33, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: grid; }
  .site-nav a {
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
  }
  .section { padding: 56px 0; }
  .hero { padding-top: 44px; }
  .hero-actions .button { flex: 1 1 170px; }
  .profile-card { max-width: none; }
  .card-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-head {
    display: grid;
    gap: 0.8rem;
  }
  .project-head span {
    justify-self: start;
  }
  .footer-inner {
    display: grid;
    justify-items: start;
  }
}

@media (max-width: 430px) {
  .container { width: min(100% - 24px, var(--max)); }
  h1 { font-size: clamp(2.55rem, 16vw, 3.5rem); }
  h2 { font-size: clamp(1.9rem, 11vw, 2.45rem); }
  .hero-title-line { font-size: clamp(1.45rem, 9vw, 2rem); }
  .pill-list li { font-size: 0.85rem; padding: 0.45rem 0.65rem; }
  .timeline-item { padding-left: 2.9rem; }
  .timeline-item::before { left: 1.15rem; }
  .contact-links a { flex: 1 1 130px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
