* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  --bg: #070b12;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #4f46e5;
  --primary-soft: rgba(79, 70, 229, 0.15);
  --accent: #22d3ee;
  --border: rgba(148, 163, 184, 0.2);
  --glow-1: rgba(99, 102, 241, 0.45);
  --glow-2: rgba(34, 211, 238, 0.35);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

ul {
  list-style: none;
}

main {
  padding: 120px 6vw 80px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.9;
  z-index: -1;
  animation: float 12s ease-in-out infinite;
}

.glow-1 {
  top: -120px;
  left: -80px;
  background: var(--glow-1);
}

.glow-2 {
  bottom: -120px;
  right: -80px;
  background: var(--glow-2);
  animation-delay: -3s;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(30px, -40px, 0);
  }
}

.site-header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 90vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  z-index: 10;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav.open {
  display: flex;
  position: absolute;
  top: 64px;
  right: 20px;
  flex-direction: column;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.nav a {
  transition: color 0.2s ease;
}

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

.menu-btn {
  display: none;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 1.05;
  margin: 16px 0;
}

.hero-content h1 span {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--accent);
  margin-top: 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--muted);
}

.lead {
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #050608;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.35);
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

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

.contact-strip {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.hero-card {
  background: var(--card);
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 20px;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  opacity: 0.4;
}

.hero-card-inner {
  position: relative;
  z-index: 1;
}

.hero-photo {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
  width: min(220px, 70vw);
}

.hero-photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.hero-content .hero-photo {
  margin: 16px 0 24px;
}

.tag {
  display: inline-flex;
  background: var(--primary-soft);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.stack span {
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-title p {
  color: var(--muted);
  max-width: 520px;
}

.grid {
  display: grid;
  gap: 20px;
}

.skills-grid,
.services-grid,
.edu-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(148, 163, 184, 0.45);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.card ul {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-tags span {
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--card);
}

.gallery-group {
  display: grid;
  gap: 18px;
}

.gallery-group h3 {
  font-size: 1.3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: var(--accent);
}

.gallery-empty {
  color: var(--muted);
  font-size: 0.9rem;
  grid-column: 1 / -1;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 60px;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border 0.2s ease, color 0.2s ease;
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 700px) {
  .lightbox {
    padding: 20px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

.highlight {
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.08), transparent);
  padding: 60px 6vw;
  border-radius: 36px;
  border: 1px solid var(--border);
}

.timeline {
  display: grid;
  gap: 28px;
}

.timeline-item {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(140px, 180px) 1fr;
  align-items: start;
}

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

.role {
  color: var(--muted);
  margin-bottom: 10px;
}

.cta {
  background: linear-gradient(120deg, rgba(79, 70, 229, 0.2), rgba(34, 211, 238, 0.1));
  padding: 48px;
  border-radius: 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer {
  text-align: center;
  padding: 0 6vw 40px;
  color: var(--muted);
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    gap: 12px;
  }

  .nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 700px) {
  main {
    padding-top: 110px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .highlight {
    padding: 40px 6vw;
  }

  .cta {
    padding: 32px;
  }
}
