:root {
  --bg: #07111f;
  --bg-soft: #0d1a2b;
  --card: rgba(255,255,255,0.08);
  --card-strong: rgba(255,255,255,0.12);
  --line: rgba(255,255,255,0.12);
  --text: #ecf3ff;
  --muted: #a6b7d1;
  --primary: #5aa9ff;
  --primary-strong: #7ec2ff;
  --shadow: 0 20px 60px rgba(0,0,0,0.28);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #07111f 0%, #081524 45%, #091928 100%);
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(90,169,255,0.15), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(126,194,255,0.10), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.05), transparent 30%);
  z-index: -1;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #b7ddff);
  color: #04111d;
  box-shadow: var(--shadow);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a,
.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: 0.25s ease;
}

.nav a:hover,
.nav a.active,
.footer a:hover {
  color: var(--text);
}

.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  padding: 10px;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  transition: 0.25s ease;
}

.hero {
  padding-top: 72px;
}

.hero-grid,
.two-col,
.education-grid {
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.hero h1,
.section-title h2,
.contact-card h2 {
  margin: 0 0 16px;
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  max-width: 12ch;
}

.hero-text,
.about-card p,
.glass-card p,
.timeline-content li,
.contact-card p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-strong);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-actions,
.contact-actions,
.hero-meta,
.footer-wrap,
.profile-top,
.pill-wrap {
  display: flex;
  flex-wrap: wrap;
}

.hero-actions,
.contact-actions {
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #04111d;
  background: linear-gradient(135deg, var(--primary), #c8e5ff);
  box-shadow: 0 14px 36px rgba(90,169,255,0.28);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}

.hero-meta {
  gap: 20px;
  margin-top: 28px;
}

.hero-meta > div {
  min-width: 180px;
}

.meta-label {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
  margin-bottom: 6px;
}

.hero-meta a,
.hero-meta span:last-child {
  color: var(--text);
  text-decoration: none;
}

.profile-card,
.glass-card,
.about-card,
.contact-card,
.timeline-content {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.profile-card,
.about-card,
.contact-card,
.timeline-content,
.glass-card {
  backdrop-filter: blur(16px);
}

.profile-card {
  padding: 28px;
}

.profile-top {
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.profile-intro {
  margin-top: 24px;
  margin-bottom: 28px;
}

.profile-top h2 {
  margin: 0 0 6px;
}

.profile-top p {
  margin: 0;
  color: var(--muted);
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(90,169,255,0.18), rgba(214,236,255,0.08));
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  flex-shrink: 0;
}

.photo-frame {
  padding: 5px;
  box-shadow: 0 18px 36px rgba(0,0,0,0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.profile-photo-large {
  width: 100%;
  min-height: 520px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  border-radius: 27px;
  display: block;
}

.stats-grid,
.card-grid {
  display: grid;
  gap: 16px;
}

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

.stat-box {
  padding: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
}

.stat-box strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 5px;
}

.stat-box span {
  color: var(--muted);
  font-size: 0.92rem;
}

.focus-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.focus-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
}

.two-col {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.about-card,
.contact-card,
.glass-card,
.timeline-content {
  padding: 28px;
}

.section-title.center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 26px;
}

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

.glass-card h3,
.timeline-header h3,
.contact-card h2 {
  margin-top: 0;
}

.timeline {
  position: relative;
  margin-top: 18px;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, rgba(90,169,255,0.9), rgba(255,255,255,0.08));
}

.timeline-item {
  position: relative;
  margin-bottom: 26px;
}

.timeline-dot {
  position: absolute;
  top: 16px;
  left: -24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #d4eaff);
  box-shadow: 0 0 0 5px rgba(90,169,255,0.14);
}

.timeline-header {
  margin-bottom: 12px;
}

.timeline-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--primary-strong);
  background: rgba(90,169,255,0.12);
  border: 1px solid rgba(90,169,255,0.22);
  margin-bottom: 12px;
}

.timeline-content ul {
  margin: 0;
  padding-left: 18px;
}

.timeline-content li + li {
  margin-top: 8px;
}

.education-grid {
  grid-template-columns: 0.8fr 1.2fr;
}

.pill-wrap {
  gap: 12px;
  margin-top: 18px;
}

.pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text);
  font-size: 0.92rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: center;
}

.footer {
  padding: 30px 0 48px;
}

.footer-wrap {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 26px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.18s; }

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .education-grid,
  .contact-card,
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    position: fixed;
    inset: 78px 16px auto 16px;
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(7, 17, 31, 0.96);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-btn {
    display: block;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }

  .profile-photo-large {
    min-height: 420px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    flex-direction: column;
    gap: 14px;
  }

  .profile-card,
  .about-card,
  .contact-card,
  .glass-card,
  .timeline-content {
    padding: 22px;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline-dot {
    left: -20px;
  }

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


.hero-meta a:hover {
  color: var(--primary-strong);
}
