:root {
  --bg: #08070c;
  --bg-soft: #11101a;
  --text: #f6f4ff;
  --text-muted: #c7c2db;
  --purple: #8a4dff;
  --purple-soft: #ba95ff;
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(186, 149, 255, 0.35);
  --shadow: 0 20px 45px rgba(71, 27, 137, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 10% 10%, #1a1230 0%, var(--bg) 45%);
  color: var(--text);
  line-height: 1.6;
}

img { width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 9999; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(8, 7, 12, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand { font-weight: 700; letter-spacing: 0.2px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-color: var(--purple-soft);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.section { padding: 2rem 0; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); margin-top: 0; }
.section-intro { color: var(--text-muted); max-width: 78ch; }

.page-hero {
  min-height: 42vh;
  display: grid;
  align-items: center;
}

.sphere-grid,
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.sphere-card {
  border-color: rgba(186, 149, 255, 0.42);
}


.hero {
  min-height: calc(100vh - 72px);
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-bg .orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.45;
  animation: float 9s ease-in-out infinite;
}
.orb-1 { width: 280px; height: 280px; background: #6f2dff; top: 8%; left: -6%; }
.orb-2 { width: 320px; height: 320px; background: #ad71ff; bottom: 12%; right: -8%; animation-delay: 1s; }
.orb-3 { width: 180px; height: 180px; background: #5c22c0; top: 45%; right: 30%; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: var(--purple-soft);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 0.8rem;
}

h1 {
  font-size: clamp(2.4rem, 1.5rem + 4vw, 4.2rem);
  margin: 0;
}

.hero-tagline {
  font-size: clamp(1.1rem, 1rem + 0.9vw, 1.5rem);
  font-weight: 600;
}

.hero-subtitle { color: var(--text-muted); max-width: 65ch; }

.hero-cta { display: flex; gap: 1rem; margin: 1.5rem 0 2rem; flex-wrap: wrap; }

.btn {
  border: 1px solid var(--border);
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  transition: 0.3s ease;
  font-weight: 600;
}
.btn-primary {
  background: linear-gradient(135deg, #7e3eff, #a777ff);
  color: #fff;
}
.btn-secondary { background: transparent; color: var(--text); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.9rem;
}
.stat-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.95rem;
}
.stat-card h3 { margin: 0; font-size: 1.2rem; }
.stat-card p { margin: 0.2rem 0 0; color: var(--text-muted); font-size: 0.9rem; }

.portrait-card,
.image-panel,
.card,
.skill-card,
.highlight-card,
.timeline-item,
.readiness-list,
.contact-grid,
.gallery-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.glow { box-shadow: var(--shadow); }

.hero-visual { display: grid; gap: 1rem; }
.portrait-card img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.mini-collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.mini-collage img { aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.image-panel { padding: 0.6rem; }
.image-panel img { border-radius: 14px; aspect-ratio: 4/5; object-fit: cover; }

.impact-grid,
.recognition-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.card,
.skill-card,
.highlight-card,
.timeline-item,
.contact-grid,
.readiness-list {
  padding: 1rem;
}

.card h3 { margin-top: 0; }
.card p { color: var(--text-muted); }

.timeline {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}
.timeline-item span { color: var(--purple-soft); font-weight: 600; }

.skill-card {
  text-align: center;
  font-weight: 600;
  transition: 0.3s ease;
}
.skill-card:hover { transform: translateY(-3px); }

.highlight-card { margin-top: 1rem; }
.highlight-card h3 { margin-top: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border);
  padding: 0;
  appearance: none;
  text-align: left;
}
.gallery-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover { box-shadow: 0 0 0 1px rgba(186, 149, 255, 0.45), 0 14px 32px rgba(108, 54, 191, 0.35); }
.gallery-item span {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0.45rem 0.6rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  font-size: 0.84rem;
}

.readiness-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}
.readiness-list li { margin: 0.65rem 0; color: var(--text-muted); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(186, 149, 255, 0.22);
  transition: 0.25s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  border-color: var(--border);
}

.contact-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(138, 77, 255, 0.2);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  background: #06050a;
}
.footer-content {
  display: grid;
  gap: 0.7rem;
}
.quick-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.quick-links a { color: var(--text-muted); }

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #201138;
  color: #fff;
  display: none;
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: grid;
  place-items: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
  z-index: 1200;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(950px, 92vw);
  max-height: 78vh;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.lightbox p { color: #fff; margin-top: 0.8rem; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 2rem;
  color: #fff;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


@media (min-width: 680px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .hero-content,
  .split {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 4%;
    width: min(280px, 92vw);
    padding: 1rem;
    border-radius: 12px;
    background: #14101f;
    border: 1px solid var(--border);
    flex-direction: column;
    display: none;
  }

  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
}

@media (max-width: 560px) {
  .section { padding: 4.2rem 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .btn { text-align: center; }
}


.cert-gallery .gallery-item img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cert-gallery .gallery-item span {
  letter-spacing: 0.3px;
}

.doc-card,
.media-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
}

.doc-card-head,
.media-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.doc-card-head h3,
.media-card-head h3 {
  margin: 0;
}

.doc-card-head p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.doc-card-head span {
  color: var(--purple-soft);
}

.media-card-head a {
  color: var(--purple-soft);
  font-weight: 600;
}

.pdf-viewer-wrap {
  border: 1px solid rgba(186, 149, 255, 0.25);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(7, 6, 12, 0.85);
}

.pdf-viewer {
  width: 100%;
  min-height: 70vh;
  border: 0;
  display: block;
}

.media-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.media-card img,
.media-card video {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(186, 149, 255, 0.25);
  background: #07060d;
}

.media-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.video-card {
  padding: 0.75rem;
}

.video-card video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

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

.sample-photo-card {
  margin: 0;
  background: linear-gradient(160deg, rgba(138, 77, 255, 0.2), rgba(19, 16, 32, 0.9));
  border: 1px solid rgba(186, 149, 255, 0.34);
  border-radius: 18px;
  padding: 0.55rem;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(12, 8, 24, 0.5);
}

.sample-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  max-height: 330px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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