:root {
  --bg: #09111f;
  --bg-soft: #101b33;
  --panel: rgba(12, 23, 42, 0.72);
  --panel-strong: rgba(15, 28, 50, 0.9);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --muted: #9fb0c8;
  --primary: #61dafb;
  --primary-2: #8b7cff;
  --accent: #24d6a5;
  --danger: #ff7b95;
  --shadow: 0 24px 80px rgba(2, 8, 23, 0.45);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, rgba(139, 124, 255, 0.25), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(97, 218, 251, 0.2), transparent 24%),
    radial-gradient(circle at 50% 70%, rgba(36, 214, 165, 0.12), transparent 32%),
    linear-gradient(180deg, #07101c 0%, #09111f 35%, #091423 100%);
}

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

.section {
  position: relative;
  padding: 110px 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(22px);
  background: rgba(5, 10, 18, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand span { color: var(--primary); }

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

.nav-menu a {
  color: var(--muted);
  font-weight: 500;
  transition: 0.25s ease;
}

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

.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(97, 218, 251, 0.28);
  background: rgba(97, 218, 251, 0.08);
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  padding-top: 72px;
}

.hero-grid,
.about-grid,
.skills-grid,
.cards-grid,
.footer-wrap,
.cta-card,
.hero-stats {
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.eyebrow,
.section-tag,
.timeline-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.section-heading h2,
.cta-card h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.06;
  letter-spacing: -0.05em;
  margin: 16px 0 18px;
}

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

.hero-text,
.section-heading p,
.feature-card p,
.timeline-content p,
.glass-card p,
.cta-card p,
.footer p {
  color: var(--muted);
}

.hero-actions,
.footer-links,
.profile-badges,
.skill-pills,
.mini-pills,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions { margin: 32px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #07111b;
  box-shadow: 0 20px 40px rgba(97, 218, 251, 0.22);
}

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

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
}

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

.hero-stats article,
.feature-card,
.glass-card,
.timeline-content,
.cta-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-stats article {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.35rem;
  color: var(--text);
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.profile-card {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1 / 1.12;
  padding: 30px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-ring {
  position: absolute;
  inset: 14px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top left, rgba(97, 218, 251, 0.15), transparent 45%);
}

.profile-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.profile-badges {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.profile-badges span,
.skill-pills span,
.mini-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.95rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2,
.cta-card h2 { font-size: clamp(2rem, 4vw, 3.35rem); }

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

.glass-card,
.feature-card,
.cta-card {
  padding: 30px;
  border-radius: var(--radius-xl);
}

.glass-card h3,
.feature-card h3,
.timeline-content h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.check-list,
.info-stack {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.check-list li {
  list-style: none;
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.check-list li::before {
  content: '•';
  position: absolute;
  left: 8px;
  color: var(--accent);
  font-size: 1.1rem;
}

.timeline {
  position: relative;
  max-width: 920px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(97, 218, 251, 0.35), rgba(139, 124, 255, 0.05));
}

.timeline-item {
  position: relative;
  padding-left: 52px;
  margin-bottom: 24px;
}

.timeline-dot {
  position: absolute;
  left: 6px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 6px rgba(97, 218, 251, 0.08);
}

.timeline-content h4 {
  margin: 6px 0 10px;
  color: var(--muted);
  font-weight: 600;
}

.cards-grid.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-grid.two-up,
.cta-card,
.footer-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: auto -10% -50% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(97, 218, 251, 0.14), transparent 62%);
}

.feature-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.info-stack div {
  display: grid;
  gap: 4px;
}

.info-stack span { color: var(--muted); }

.cta-card {
  align-items: center;
  background: linear-gradient(180deg, rgba(14, 26, 47, 0.94), rgba(11, 20, 36, 0.92));
}

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
  justify-content: flex-end;
  align-items: center;
}

.brand-footer { display: inline-block; margin-bottom: 8px; }

.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.12s; }
.delay-2 { transition-delay: 0.24s; }

@media (max-width: 1080px) {
  .hero-grid,
  .about-grid,
  .skills-grid,
  .cards-grid.three-up,
  .cards-grid.two-up,
  .cta-card,
  .footer-wrap,
  .hero-stats {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    background: rgba(9, 17, 31, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-menu.open { display: flex; }

  .nav-cta { text-align: center; }

  .section {
    padding: 90px 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }

  .glass-card,
  .feature-card,
  .cta-card,
  .hero-stats article {
    padding: 22px;
  }

  .profile-card {
    padding: 20px;
    border-radius: 28px;
  }

  .profile-ring { inset: 10px; }
}
