/* Light neon theme override. Keeps the component stylesheet separate from the palette/theme. */
:root {
  --bg: #fbfaff;
  --bg-soft: #f6f3ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --border: rgba(58, 12, 163, 0.12);
  --border-strong: rgba(67, 97, 238, 0.38);
  --text: #171329;
  --text-soft: #51486d;
  --text-muted: #756d8a;
  --text-dim: #9b95aa;
  --pink: #F72585;
  --indigo: #7209B7;
  --royal: #3A0CA3;
  --blue: #4361EE;
  --blue-bright: #4CC9F0;
  --cyan: #4CC9F0;
  --purple: #7209B7;
  --accent: linear-gradient(135deg, var(--pink), var(--indigo) 38%, var(--royal) 68%, var(--blue) 86%, var(--cyan));
  --shadow: 0 24px 70px rgba(58, 12, 163, 0.10);
}

body {
  background:
    radial-gradient(circle at 12% 7%, rgba(247,37,133,.11), transparent 24%),
    radial-gradient(circle at 86% 5%, rgba(76,201,240,.14), transparent 24%),
    radial-gradient(circle at 70% 48%, rgba(67,97,238,.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfaff 48%, #f7f7ff 100%);
  color: var(--text);
}

body::before {
  background:
    radial-gradient(48% 35% at 18% 15%, rgba(247,37,133,.10), transparent 70%),
    radial-gradient(46% 34% at 84% 14%, rgba(76,201,240,.11), transparent 72%);
}

.navbar, .site-nav {
  background: rgba(255,255,255,.70);
}
.site-nav.scrolled, .navbar.scrolled {
  background: rgba(255,255,255,.88);
  border-color: rgba(58,12,163,.10);
  box-shadow: 0 10px 30px rgba(58,12,163,.06);
}

.nav-brand, .nav-link, .nav-toggle span { color: var(--text); }
.nav-link { color: var(--text-soft); }
.nav-link:hover, .nav-link.active { color: var(--royal); background: rgba(67,97,238,.07); }
.nav-cta {
  color: #fff !important;
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  border-color: transparent !important;
  box-shadow: 0 10px 25px rgba(67,97,238,.20);
}

.eyebrow {
  color: var(--royal);
  background: rgba(67,97,238,.07);
  border-color: rgba(67,97,238,.16);
}
.status-dot { background: var(--pink); box-shadow: 0 0 12px rgba(247,37,133,.40); }

h1 { color: #161227; }
.gradient-text { background: linear-gradient(135deg, var(--royal), var(--blue) 52%, var(--indigo) 82%, var(--pink)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-role { color: #413956; }
.role-kicker { color: var(--pink); font-size: 10px; font-weight: 800; letter-spacing: .14em; margin-right: 8px; }
.hero-intro { color: #6d6680; }

.button { border-color: rgba(58,12,163,.12); color: var(--text); background: rgba(255,255,255,.86); box-shadow: 0 8px 24px rgba(58,12,163,.04); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--indigo), var(--blue)); border-color: transparent; box-shadow: 0 14px 34px rgba(67,97,238,.22); }
.button-ghost { color: var(--royal); background: rgba(67,97,238,.05); }
.button-icon { color: var(--text-soft); background: rgba(255,255,255,.72); }
.button:hover { border-color: rgba(67,97,238,.30); }

.hero-tags span, .pill-list span {
  color: var(--indigo);
  background: rgba(114,9,183,.05);
  border-color: rgba(114,9,183,.12);
}

.hero-visual { min-height: 480px; justify-content: center; }
.profile-orb {
  border-radius: 50%;
  background: conic-gradient(from 20deg, var(--pink), var(--indigo), var(--royal), var(--blue), var(--cyan), var(--pink));
  box-shadow: 0 26px 70px rgba(67,97,238,.20), 0 0 0 10px rgba(255,255,255,.70);
  animation: profileFloat 6.5s ease-in-out infinite;
  z-index: 2;
}
.profile-orb::before, .profile-orb::after {
  border-color: rgba(67,97,238,.18);
}
.profile-orb::before { animation: ringFloat 7s ease-in-out infinite; }
.profile-orb::after { animation: ringFloat 9s ease-in-out infinite reverse; }
.profile-orb-inner {
  background: linear-gradient(145deg, #ffffff 0%, #f5f1ff 62%, #edf8ff 100%);
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: inset 0 0 38px rgba(67,97,238,.08);
  clip-path: circle(50%);
  overflow: hidden;
}
.profile-orb-inner::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.78), transparent); }
.profile-initials { color: var(--royal); text-shadow: 0 0 32px rgba(67,97,238,.14); }
.profile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 50%;
  clip-path: circle(50%);
  z-index: 2;
}
.profile-orb.has-profile-image .profile-initials { opacity: 0; }
.orb-caption { color: rgba(58,12,163,.52); z-index: 3; text-shadow: 0 1px 8px rgba(255,255,255,.92); }
.orbit { border-color: rgba(114,9,183,.13); z-index: 1; }
.stat-card, .facts-card, .skill-group, .project-card, .timeline {
  border-color: rgba(58,12,163,.10);
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 40px rgba(58,12,163,.055);
}
.stat-card strong, .project-card h3, .skill-group-heading h3, .timeline-item h3, .section-title { color: #1a1530; }
.stat-card span, .project-card p, .section-sub, .body-copy, .timeline-item p { color: #726b82; }
.section-label { color: var(--indigo); background: rgba(114,9,183,.05); border-color: rgba(114,9,183,.12); }
.section-title { color: #1a1530; }
.section-muted { background: linear-gradient(180deg, rgba(247,245,255,.80), rgba(242,248,255,.72)); }
.card-note { color: #756d88; background: rgba(76,201,240,.06); border-left-color: var(--pink); }
.skill-tags span, .tech-stack span { color: var(--royal); background: rgba(67,97,238,.05); border-color: rgba(67,97,238,.12); }
.skill-dot.blue { background: var(--blue); box-shadow: 0 0 12px rgba(67,97,238,.35); }
.skill-dot.cyan { background: var(--cyan); box-shadow: 0 0 12px rgba(76,201,240,.35); }
.skill-dot.purple, .skill-dot.violet { background: var(--pink); box-shadow: 0 0 12px rgba(247,37,133,.30); }

.contact-card {
  border-color: rgba(114,9,183,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(246,241,255,.96) 55%, rgba(239,250,255,.98));
  box-shadow: 0 24px 70px rgba(58,12,163,.10);
}
.contact-card h2 { color: #1a1530; }
.contact-card p { color: #726b82; }
.contact-links a { color: var(--indigo); }
.contact-links a:hover { color: var(--pink); }
.contact-email-primary { display:inline-flex; align-items:center; gap:8px; padding:14px 16px; border-radius:12px; background: linear-gradient(135deg, rgba(114,9,183,.08), rgba(67,97,238,.08)); border:1px solid rgba(67,97,238,.14); }
.contact-email-primary span { color: #665d79; font-weight:600; }
.site-footer { color: #9a94a7; }

.scroll-cue { color: #9a94a7; }
.scroll-cue i { background: linear-gradient(var(--pink), transparent); }

@keyframes profileFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
@keyframes ringFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.015); }
}

@media (prefers-reduced-motion: reduce) {
  .profile-orb, .profile-orb::before, .profile-orb::after { animation: none; }
}

@media (max-width: 700px) {
  .nav-links {
    background: rgba(255,255,255,.96);
    border-color: rgba(58,12,163,.10);
    box-shadow: 0 18px 50px rgba(58,12,163,.10);
  }
  .hero-visual { min-height: 400px; }
  .profile-orb { animation-duration: 7s; }
}

.reveal-ready { opacity: 0; transform: translateY(16px); }
.js-enabled .reveal.revealed { opacity: 1; transform: none; }
.timeline { background: transparent; box-shadow: none; }
.timeline-item h3 { color: #1a1530; }
.timeline-item p { color: #756d8a; }
.stat-card, .facts-card, .skill-group, .project-card { border-radius: 18px; }

/* Contrast/accessibility pass: the light palette needs dark readable body copy. */
body { color: #201a35; }
.card-kicker { color: #68607a; }
.fact-row small { color: #6b637f; }
.fact-row strong { color: #241f3b; }
.card-note { color: #5f5870; }
.section-sub { color: #625b72; }
.body-copy { color: #514a63; }
.project-card p { color: #5d566d; }
.project-category { color: #3A0CA3; }
.project-year { color: #625b72; }
.skill-tags span, .tech-stack span { color: #30285a; }
.skill-group-heading h3 { color: #201a35; }
.timeline-date { color: #625b72; }
.timeline-item p { color: #5f5870; }
.site-footer, .scroll-cue { color: #6b637f; }
.contact-card p { color: #5f5870; }

/* Rounded cards + uncropped certificate media. */
.facts-card { border-radius: 24px; }
.skill-group, .project-card { border-radius: 22px; }
.timeline { border-radius: 24px; }
.timeline-item { border-radius: 22px; }
.cert-media {
  border-radius: 22px;
  padding: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(247,37,133,.06), rgba(67,97,238,.07), rgba(76,201,240,.07));
}
.cert-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
}

/* Fail-open reveal: content stays fully readable even before JS observation completes. */
.reveal-ready { opacity: 1 !important; transform: none !important; }

/* Keep secondary text dark enough on the light theme. */
.hero-intro { color: #514a63; }
.hero-role { color: #322b49; }
.nav-link { color: #4b435f; }
.button-icon { color: #4a425e; }
.orb-caption { color: rgba(58,12,163,.70); }

@media (max-width: 700px) {
  .cert-media { max-width: 300px; padding: 8px; }
}

/* Final visual tuning: light, high-contrast, softly rounded. */
.facts-card,
.skill-group,
.project-card,
.timeline-item,
.contact-card,
.stat-card {
  border-radius: 24px;
}

.facts-card {
  background: rgba(255,255,255,.94);
  border-color: rgba(58,12,163,.12);
  box-shadow: 0 18px 50px rgba(58,12,163,.075);
}

.fact-row {
  border-bottom-color: rgba(58,12,163,.10);
}

.fact-row strong {
  color: #201a35;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.fact-row small {
  color: #5f5872;
  font-weight: 600;
}

.card-kicker {
  color: #514a64;
  font-size: 10px;
  letter-spacing: .14em;
}

.card-note {
  color: #514a64;
  background: rgba(76,201,240,.055);
}

.certification-timeline .cert-content {
  align-items: center;
}

.cert-media {
  width: 180px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
}

.cert-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 12px 24px rgba(58,12,163,.10));
}

.cert-placeholder {
  border-radius: 18px;
  border: 1px dashed rgba(58,12,163,.16);
  background: rgba(255,255,255,.85);
}

.timeline-item {
  padding: 26px;
  background: rgba(255,255,255,.93);
  border-color: rgba(58,12,163,.11);
  box-shadow: 0 16px 42px rgba(58,12,163,.065);
}

.timeline-item h3 {
  color: #201a35;
  font-size: 18px;
}

.timeline-item p {
  color: #5c556e;
}

.timeline-date {
  color: #5e5872;
  font-weight: 600;
}

/* Never make the interface depend on a JS fade or a washed-out reveal state. */
.reveal,
.reveal-ready,
.js-enabled .reveal.revealed {
  opacity: 1 !important;
  transform: none !important;
}

.hero-intro,
.body-copy,
.section-sub,
.project-card p,
.timeline-item p,
.contact-card p {
  color: #514a63;
}

.nav-link { color: #443d57; }
.nav-link:hover, .nav-link.active { color: #261d4d; }

@media (max-width: 700px) {
  .timeline-item { padding: 22px; }
  .cert-media { width: min(190px, 100%); justify-self: start; }
}
