/* ─── RESET & ROOT ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #070c18;
  --bg-2:      #0d1525;
  --surface:   rgba(255,255,255,0.04);
  --surface-h: rgba(255,255,255,0.08);
  --border:    rgba(255,255,255,0.08);
  --accent:    #4fc3f7;
  --accent-2:  #00e5cc;
  --gold:      #ffd54f;
  --text:      #e8eaf6;
  --text-muted:#8899bb;
  --radius:    16px;
  --radius-sm: 10px;
  --nav-h:     68px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ─── DYNAMIC BACKGROUND CANVAS ─── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

/* Ensure all sections render above the canvas */
.navbar, section, footer, nav {
  position: relative;
  z-index: 1;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── SELECTION ─── */
::selection { background: var(--accent); color: #000; }

/* ─── CONTAINER ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  padding: 0 32px;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(7,12,24,0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  font-size: 1.3rem; font-weight: 800; letter-spacing: .05em;
  color: var(--accent); text-decoration: none;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--accent);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.nav-logo:hover { background: var(--accent); color: #000; }

.nav-links { display: flex; gap: 28px; list-style: none; margin-left: auto; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: .9rem;
  font-weight: 500; transition: color var(--transition);
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 100%; height: 1.5px;
  background: var(--accent); transition: right var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }

.nav-cta {
  text-decoration: none; font-size: .85rem; font-weight: 600;
  padding: 10px 22px; border-radius: 100px;
  background: var(--accent); color: #000;
  transition: transform var(--transition), box-shadow var(--transition);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,195,247,.35); }

.hamburger { display: none; }

/* ─── HERO ─── */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  text-align: center;
}

.hero-bg {
  position: absolute; inset: 0;
  background: url('hero_bg.png') center/cover no-repeat;
  filter: brightness(.22) saturate(1.1);
  z-index: 0;
  mix-blend-mode: luminosity;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 70% 60% at 50% 60%, rgba(79,195,247,.06) 0%, transparent 70%),
              linear-gradient(to bottom, transparent 50%, var(--bg) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}

/* Avatar */
.hero-avatar-wrap {
  position: relative;
  width: 220px; height: 220px; flex-shrink: 0;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.hero-avatar {
  position: absolute; inset: 0; border-radius: 50%;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 15%;
  border: 3px solid rgba(79,195,247,0.55);
  box-shadow:
    0 0 0 6px rgba(79,195,247,0.10),
    0 0 0 12px rgba(0,229,204,0.05),
    0 0 40px rgba(79,195,247,0.45),
    0 0 80px rgba(0,229,204,0.20),
    0 24px 64px rgba(0,0,0,0.65);
  transition: box-shadow .4s ease, transform .4s ease;
}
.hero-avatar:hover {
  box-shadow:
    0 0 0 6px rgba(79,195,247,0.18),
    0 0 0 14px rgba(0,229,204,0.08),
    0 0 60px rgba(79,195,247,0.6),
    0 0 100px rgba(0,229,204,0.28),
    0 28px 72px rgba(0,0,0,0.7);
  transform: scale(1.03);
}
.avatar-initials {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, #0d2b4e, #0d4f4e);
  display: none; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 800; color: var(--accent);
  border: 3px solid rgba(79,195,247,0.55);
}

.hero-pretitle {
  font-size: .85rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent);
}
.hero-name {
  font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; line-height: 1.1;
  color: #fff;
}
.accent { color: var(--accent); }

.hero-sub {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 480px; margin: 0 auto;
}
.hero-sub strong { color: var(--text); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.btn {
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .95rem;
  padding: 14px 32px; border-radius: 100px; text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary {
  background: var(--accent); color: #000;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(79,195,247,.4); }
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,.2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

.hero-socials { display: flex; gap: 14px; }
.social-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--border); color: var(--text-muted);
  text-decoration: none; transition: all var(--transition);
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon.linkedin:hover { background: #0077b5; border-color: #0077b5; color: #fff; transform: translateY(-3px); }
.social-icon.gmail:hover    { background: #ea4335; border-color: #ea4335; color: #fff; transform: translateY(-3px); }
.social-icon.web:hover      { background: var(--accent); border-color: var(--accent); color: #000; transform: translateY(-3px); }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
  color: var(--text-muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
}
.scroll-arrow {
  width: 20px; height: 32px; border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 10px; position: relative;
}
.scroll-arrow::after {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; background: var(--accent); border-radius: 50%;
  animation: scroll-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { top: 6px; opacity: 1; }
  100% { top: 18px; opacity: 0; }
}

/* ─── SECTION BASE ─── */
.section { padding: 120px 0; }
.section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15;
  color: #fff; margin-bottom: 56px;
}

/* ─── GLASS ─── */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  transition: background var(--transition), border var(--transition), transform var(--transition);
}
.glass:hover {
  background: var(--surface-h);
  border-color: rgba(79,195,247,.25);
  transform: translateY(-4px);
}

/* ─── ABOUT ─── */
.about { background: rgba(13,21,37,0.82); backdrop-filter: blur(0px); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}
.about-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.about-card-img { width: 100%; height: 200px; object-fit: cover; flex-shrink: 0; filter: brightness(0.9); transition: transform var(--transition); }
.about-card:hover .about-card-img { transform: scale(1.05); }
.about-card-content { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.about-icon { font-size: 2.2rem; margin-bottom: 16px; }
.about-card-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; color: #fff; }
.about-card-content p { font-size: .92rem; color: var(--text-muted); line-height: 1.8; }

.stats-row {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.stat { text-align: center; flex: 1; min-width: 140px; padding: 16px; }
.stat-num {
  font-size: 3rem; font-weight: 800; display: block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-unit { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 4px; display: block; }
.stat-divider { width: 1px; height: 60px; background: var(--border); flex-shrink: 0; }

/* ─── EDUCATION ─── */
.education { background: rgba(7,12,24,0.75); }

.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-dot {
  position: absolute; left: -29px; top: 24px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-2); border: 2px solid var(--accent);
}
.timeline-dot.pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--accent); animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { opacity: .8; transform: scale(1); }
  100% { opacity: 0; transform: scale(2); }
}
.timeline-content { padding: 28px 32px; }
.timeline-badge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 10px;
  background: rgba(79,195,247,.12); color: var(--accent);
  border: 1px solid rgba(79,195,247,.25);
}
.timeline-badge.active { background: rgba(0,229,204,.12); color: var(--accent-2); border-color: rgba(0,229,204,.3); }
.timeline-date { font-size: .8rem; color: var(--text-muted); margin-bottom: 8px; }
.timeline-content h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.timeline-content h4 { font-size: .92rem; color: var(--accent); margin-bottom: 6px; }
.timeline-content p { font-size: .88rem; color: var(--text-muted); }

.timeline-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-size: .75rem; font-weight: 600; padding: 4px 12px;
  border-radius: 100px; background: rgba(255,255,255,.05);
  border: 1px solid var(--border); color: var(--text-muted);
}

/* ─── SKILLS ─── */
.skills { background: rgba(13,21,37,0.82); }

.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
}
.skill-category { padding: 28px 32px; }
.skill-category h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 20px; }

.skill-list { display: flex; flex-direction: column; gap: 16px; }
.skill-name { font-size: .85rem; color: var(--text-muted); margin-bottom: 6px; display: block; }
.skill-bar { height: 6px; background: rgba(255,255,255,.07); border-radius: 3px; overflow: hidden; }
.skill-fill {
  height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.skill-fill.animated { width: var(--w); }

.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  font-size: .8rem; font-weight: 500; padding: 6px 14px; border-radius: 100px;
  background: rgba(79,195,247,.08); border: 1px solid rgba(79,195,247,.2);
  color: var(--accent); transition: all var(--transition);
  cursor: default;
}
.skill-tag:hover { background: rgba(79,195,247,.18); transform: translateY(-2px); }

/* ─── EXPERIENCE ─── */
.experience { background: rgba(7,12,24,0.75); }

.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.exp-card {
  padding: 28px 28px 28px 20px;
  display: flex; gap: 20px; align-items: flex-start;
}
.exp-icon { font-size: 1.8rem; flex-shrink: 0; margin-top: 2px; }
.exp-period { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.exp-info h3 { font-size: 1.05rem; font-weight: 700; color: #fff; }
.exp-info h4 { font-size: .85rem; color: var(--text-muted); margin: 4px 0 12px; line-height: 1.4; }
.exp-info p { font-size: .88rem; color: var(--text-muted); line-height: 1.75; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ─── CONTACT ─── */
.contact { background: rgba(13,21,37,0.82); }

.contact-sub {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 500px; margin: -36px 0 48px;
}
.contact-cards { display: flex; flex-direction: column; gap: 14px; max-width: 600px; }
.contact-card {
  padding: 20px 28px; display: flex; align-items: center; gap: 20px;
  text-decoration: none; color: var(--text);
  transition: all var(--transition);
}
.contact-card:hover { border-color: var(--accent); transform: translateX(6px); }
.contact-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-card-icon svg { width: 22px; height: 22px; }
.linkedin-bg { background: rgba(0,119,181,.2); color: #0077b5; }
.gmail-bg    { background: rgba(234,67,53,.2);  color: #ea4335; }
.web-bg      { background: rgba(79,195,247,.2); color: var(--accent); }
.contact-card-label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.contact-card-value { font-size: .95rem; font-weight: 600; color: var(--text); }
.contact-arrow { margin-left: auto; font-size: 1.2rem; color: var(--text-muted); transition: transform var(--transition); }
.contact-card:hover .contact-arrow { transform: translateX(4px); color: var(--accent); }

/* ─── FOOTER ─── */
.footer {
  background: rgba(7,12,24,0.88); border-top: 1px solid var(--border);
  padding: 32px 0; text-align: center;
}
.footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer p { font-size: .85rem; color: var(--text-muted); }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-muted);
  text-decoration: none; font-size: .9rem;
  transition: all var(--transition);
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ─── ANIMATIONS ─── */
.reveal, .reveal-up, .reveal-left {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal-left { transform: translateX(-30px); }
.reveal.visible, .reveal-up.visible, .reveal-left.visible {
  opacity: 1; transform: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto;
  }
  .hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

  .stats-row { gap: 0; }
  .stat-divider { display: none; }

  .exp-card { flex-direction: column; gap: 12px; }

  .footer .container { flex-direction: column; text-align: center; }

  .timeline-content { padding: 20px; }

  .contact-cards { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════
   ─── THEME TOGGLE BUTTON ───
═══════════════════════════════════════════════════════ */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer; flex-shrink: 0;
  display: grid; place-items: center;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(20deg) scale(1.1);
  background: rgba(79,195,247,0.1);
}
.theme-toggle svg { width: 18px; height: 18px; }

/* Show moon in dark, sun in light */
body         .icon-sun  { display: none;  }
body         .icon-moon { display: block; }
body.light   .icon-sun  { display: block; }
body.light   .icon-moon { display: none;  }

/* ═══════════════════════════════════════════════════════
   ─── LIGHT MODE  ───
   Applied when <body class="light">
═══════════════════════════════════════════════════════ */
body.light {
  --bg:        #f0f5ff;
  --bg-2:      #e6eeff;
  --surface:   rgba(255,255,255,0.70);
  --surface-h: rgba(255,255,255,0.90);
  --border:    rgba(10,40,120,0.12);
  --accent:    #0277bd;
  --accent-2:  #00897b;
  --gold:      #f59f00;
  --text:      #0d1b3e;
  --text-muted:#4a5e8a;
}

/* Body background */
body.light { background: var(--bg); }

/* Scrollbar */
body.light ::-webkit-scrollbar-track { background: var(--bg); }

/* ── Navbar ── */
body.light .navbar.scrolled {
  background: rgba(240,245,255,0.92);
  box-shadow: 0 1px 0 rgba(10,40,120,0.10);
}
body.light .nav-logo { border-color: var(--accent); color: var(--accent); }
body.light .nav-logo:hover { background: var(--accent); color: #fff; }
body.light .nav-cta  { background: var(--accent); color: #fff; }
body.light .nav-cta:hover { box-shadow: 0 8px 24px rgba(2,119,189,.30); }
body.light .hamburger span { background: var(--text); }

/* Theme toggle in light */
body.light .theme-toggle { border-color: rgba(2,119,189,0.25); background: rgba(2,119,189,0.08); color: var(--text-muted); }
body.light .theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: rgba(2,119,189,0.15); }

/* ── Hero ── */
body.light .hero-bg {
  filter: invert(1) saturate(0.5) brightness(0.9);
  mix-blend-mode: multiply;
  opacity: 0.25;
}
body.light .hero-overlay {
  background: radial-gradient(ellipse 70% 60% at 50% 60%, rgba(2,119,189,.06) 0%, transparent 70%),
              linear-gradient(to bottom, transparent 50%, var(--bg) 100%);
}
body.light .hero-name    { color: var(--text); }
body.light .hero-pretitle{ color: var(--accent); }
body.light .accent       { color: var(--accent); }
body.light .hero-sub     { color: var(--text-muted); }
body.light .hero-sub strong { color: var(--text); }

body.light .btn-primary  { background: var(--accent); color: #fff; }
body.light .btn-primary:hover { box-shadow: 0 12px 32px rgba(2,119,189,.35); }
body.light .btn-ghost    { border-color: rgba(13,27,62,.18); color: var(--text); }
body.light .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

body.light .social-icon  { border-color: rgba(13,27,62,.15); color: var(--text-muted); }
body.light .social-icon.linkedin:hover { background: #0077b5; border-color: #0077b5; color: #fff; }
body.light .social-icon.gmail:hover    { background: #ea4335; border-color: #ea4335; color: #fff; }
body.light .social-icon.web:hover      { background: var(--accent); border-color: var(--accent); color: #fff; }

body.light .scroll-hint  { color: var(--text-muted); }
body.light .scroll-arrow { border-color: rgba(13,27,62,.20); }
body.light .scroll-arrow::after { background: var(--accent); }

/* ── Avatar glow in light ── */
body.light .hero-avatar {
  border-color: rgba(2,119,189,0.45);
  box-shadow:
    0 0 0 6px rgba(2,119,189,0.10),
    0 0 0 12px rgba(0,137,123,0.06),
    0 0 32px rgba(2,119,189,0.28),
    0 0 64px rgba(0,137,123,0.12),
    0 24px 64px rgba(0,0,0,0.12);
}
body.light .hero-avatar:hover {
  box-shadow:
    0 0 0 6px rgba(2,119,189,0.16),
    0 0 0 14px rgba(0,137,123,0.09),
    0 0 48px rgba(2,119,189,0.38),
    0 0 80px rgba(0,137,123,0.18),
    0 28px 72px rgba(0,0,0,0.14);
}

/* ── Glass cards ── */
body.light .glass {
  background: rgba(255,255,255,0.70);
  border-color: rgba(10,40,120,0.10);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(10,40,120,0.06);
}
body.light .glass:hover {
  background: rgba(255,255,255,0.90);
  border-color: rgba(2,119,189,0.22);
  box-shadow: 0 8px 32px rgba(2,119,189,0.10);
}

/* ── Section labels & titles ── */
body.light .section-label { color: var(--accent); }
body.light .section-title { color: var(--text); }

/* ── About ── */
body.light .about   { background: rgba(230,238,255,0.82); }
body.light .about-card-content h3 { color: var(--text); }
body.light .about-card-content p  { color: var(--text-muted); }

body.light .stats-row {
  background: rgba(255,255,255,0.65);
  border-color: rgba(10,40,120,0.10);
  box-shadow: 0 4px 20px rgba(10,40,120,0.06);
}
body.light .stat-num {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.light .stat-unit  { color: var(--accent); }
body.light .stat-label { color: var(--text-muted); }
body.light .stat-divider { background: rgba(10,40,120,0.12); }

/* ── Education ── */
body.light .education { background: rgba(240,245,255,0.75); }
body.light .timeline::before { background: linear-gradient(to bottom, var(--accent), transparent); }
body.light .timeline-dot { background: var(--bg); border-color: var(--accent); }
body.light .timeline-badge { background: rgba(2,119,189,.10); color: var(--accent); border-color: rgba(2,119,189,.22); }
body.light .timeline-badge.active { background: rgba(0,137,123,.10); color: var(--accent-2); border-color: rgba(0,137,123,.25); }
body.light .timeline-date  { color: var(--text-muted); }
body.light .timeline-content h3 { color: var(--text); }
body.light .timeline-content h4 { color: var(--accent); }
body.light .timeline-content p  { color: var(--text-muted); }
body.light .tag { background: rgba(2,119,189,0.07); border-color: rgba(2,119,189,0.15); color: var(--text-muted); }

/* ── Skills ── */
body.light .skills { background: rgba(230,238,255,0.82); }
body.light .skill-category h3 { color: var(--text); }
body.light .skill-name { color: var(--text-muted); }
body.light .skill-bar  { background: rgba(2,119,189,0.10); }
body.light .skill-fill { background: linear-gradient(to right, var(--accent), var(--accent-2)); }
body.light .skill-tag  { background: rgba(2,119,189,0.08); border-color: rgba(2,119,189,0.20); color: var(--accent); }
body.light .skill-tag:hover { background: rgba(2,119,189,0.16); }

/* ── Experience ── */
body.light .experience { background: rgba(240,245,255,0.75); }
body.light .exp-period  { color: var(--accent); }
body.light .exp-info h3 { color: var(--text); }
body.light .exp-info h4 { color: var(--text-muted); }
body.light .exp-info p  { color: var(--text-muted); }

/* ── Contact ── */
body.light .contact { background: rgba(230,238,255,0.82); }
body.light .contact-sub { color: var(--text-muted); }
body.light .contact-card { color: var(--text); }
body.light .contact-card:hover { border-color: var(--accent); }
body.light .contact-card-label { color: var(--text-muted); }
body.light .contact-card-value { color: var(--text); }
body.light .contact-arrow { color: var(--text-muted); }
body.light .linkedin-bg { background: rgba(0,119,181,.12); color: #0077b5; }
body.light .gmail-bg    { background: rgba(234,67,53,.12); color: #ea4335; }
body.light .web-bg      { background: rgba(2,119,189,.12); color: var(--accent); }

/* ── Footer ── */
body.light .footer  { background: rgba(240,245,255,0.88); border-color: rgba(10,40,120,0.10); }
body.light .footer p { color: var(--text-muted); }
body.light .footer-socials a { border-color: rgba(10,40,120,0.12); color: var(--text-muted); }
body.light .footer-socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ── Pulse ring in light ── */
body.light .timeline-dot.pulse::after { border-color: var(--accent); }

/* ── Nav links in light ── */
body.light .nav-links a { color: var(--text-muted); }
body.light .nav-links a:hover { color: var(--text); }
body.light .nav-links a::after { background: var(--accent); }

/* ── Smooth theme transition ── */
body, body * {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: .4s;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
}
/* Exclude elements that have their own transitions already */
body .btn, body .glass, body .nav-logo, body .social-icon,
body .skill-fill, body .scroll-arrow::after {
  transition: all var(--transition);
}

