:root {
  --bg: #070b16;
  --panel: rgba(16, 23, 40, 0.8);
  --panel-border: rgba(131, 151, 255, 0.24);
  --text: #f5f7ff;
  --muted: #b8c4ea;
  --accent: #77f8c8;
  --accent-2: #8ea5ff;
  --shadow: 0 20px 60px rgba(8, 12, 28, 0.45);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(71, 129, 255, 0.26), transparent 20%),
    radial-gradient(circle at bottom right, rgba(119, 248, 200, 0.12), transparent 20%),
    var(--bg);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  opacity: 0.2;
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.topbar {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  backdrop-filter: blur(12px);
  background: rgba(8, 12, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  min-height: 78vh;
  padding: 2rem 0 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 3vw, 3.3rem);
  line-height: 1.1;
  margin: 0;
}

.hero-description {
  color: var(--muted);
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 1.1rem 0 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03111d;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-stats div {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stats strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

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

.hero-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.8;
}

.orb-a {
  width: 180px;
  height: 180px;
  background: rgba(119, 248, 200, 0.28);
  top: 14%;
  left: 12%;
}

.orb-b {
  width: 140px;
  height: 140px;
  background: rgba(142, 165, 255, 0.28);
  bottom: 18%;
  right: 12%;
}

.glass-card {
  position: relative;
  width: min(100%, 360px);
  padding: 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 24, 44, 0.9), rgba(10, 15, 32, 0.85));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 80ms ease-out;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.card-tag {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 0;
}

.glass-card h2 {
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
}

.glass-card ul {
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.chip-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.chip {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 0.9rem;
}

.content-section {
  padding: 2rem 0;
}

.section-heading h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: clamp(1.7rem, 2vw, 2.2rem);
}

.about-grid,
.skills-grid,
.project-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-panel,
.skill-card,
.project-card,
.timeline-item {
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.info-panel.highlight {
  background: linear-gradient(180deg, rgba(119, 248, 200, 0.14), rgba(255,255,255,0.02));
}

.info-panel p,
.skill-card p,
.project-card p,
.timeline-item p {
  color: var(--muted);
  line-height: 1.7;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-year {
  color: var(--accent);
  font-weight: 700;
}

.timeline-item h3,
.skill-card h3,
.project-card h3 {
  margin: 0.6rem 0;
}

.footer {
  margin-top: 2rem;
  padding: 1.4rem;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(8, 12, 28, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer h2 {
  margin: 0;
}

.footer-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.education-certifications-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.education-card,
.certifications-card {
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.education-card h3,
.certifications-card h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.certifications-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.certifications-card li {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.certifications-card li:last-child {
  border-bottom: none;
}

@media (max-width: 920px) {
  .hero,
  .about-grid,
  .skills-grid,
  .project-grid,
  .footer {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .topbar {
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 1120px);
  }

  .nav-links {
    gap: 0.75rem;
  }

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

  .hero {
    padding-top: 1rem;
  }
}
