

html {
  scrollbar-width: none;         
}
html::-webkit-scrollbar {
  display: none;                 
}

:root {
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;
  --primary-300: #a5b4fc;
  --primary-400: #818cf8;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-800: #3730a3;
  --primary-900: #312e81;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --yellow-600: #ca8a04;

  
  --heading-accent: #12F7D6;

  
  --divider-green: #39ff14;
  
  --divider-teal: #2fe5b8;

  --hero-gradient: radial-gradient(1200px 600px at 10% 0%, #e0e7ff 0%, rgba(255,255,255,0) 60%),
                   radial-gradient(800px 500px at 90% 10%, #c7d2fe 0%, rgba(255,255,255,0) 60%);
}


.space-bg {
  position: fixed;
  inset: 0;
  pointer-events: none; 
  z-index: 0; 
  
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(14, 165, 233, 0.08) 0%, rgba(14, 165, 233, 0) 60%),
    radial-gradient(800px 500px at 90% 10%, rgba(99, 102, 241, 0.10) 0%, rgba(99, 102, 241, 0) 60%),
    #0b1522; 
}

.space-bg::before,
.space-bg::after {
  content: "";
  position: absolute;
  inset: -120%; 
  background-repeat: repeat;
  
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.78) 1px, transparent 1px),
    radial-gradient(1px 1px at 140px 70px, rgba(255,255,255,0.74) 1px, transparent 1px),
    radial-gradient(1px 1px at 90px 160px, rgba(255,255,255,0.74) 1px, transparent 1px),
    radial-gradient(1.2px 1.2px at 60px 190px, rgba(255,255,255,0.72) 1px, transparent 1px),
    radial-gradient(1.2px 1.2px at 180px 120px, rgba(255,255,255,0.70) 1px, transparent 1px),
    radial-gradient(1.4px 1.4px at 210px 210px, rgba(255,255,255,0.68) 1px, transparent 1px),
    radial-gradient(1.6px 1.6px at 30px 220px, rgba(255,255,255,0.66) 1px, transparent 1px),
    radial-gradient(1.8px 1.8px at 120px 260px, rgba(255,255,255,0.64) 1px, transparent 1px),
    radial-gradient(2px 2px at 60px 140px, rgba(255,255,255,0.62) 1px, transparent 1px),
    radial-gradient(2px 2px at 240px 80px, rgba(255,255,255,0.60) 1px, transparent 1px);
  background-size: 160px 160px, 180px 180px, 200px 200px, 220px 220px, 260px 260px, 300px 300px, 340px 340px, 380px 380px, 440px 440px, 520px 520px;
  animation:
    starWanderA 340s ease-in-out -40s infinite,
    twinkle 8s ease-in-out -1s infinite;
  opacity: 0.6;
}
.space-bg::after {
  
  background-size: 260px 260px, 320px 320px, 420px 420px, 540px 540px, 700px 700px, 900px 900px, 1120px 1120px;
  animation: starWanderB 520s ease-in-out -120s infinite, twinkle 10s ease-in-out -2s infinite;
  opacity: 0.5;
}


@keyframes starWanderA {
  0%   { transform: translate3d(0%, 0%, 0) rotate(0.2deg); }
  15%  { transform: translate3d(-6%, 5%, 0) rotate(-0.2deg); }
  30%  { transform: translate3d(6%, -6%, 0) rotate(0.3deg); }
  45%  { transform: translate3d(-10%, -3%, 0) rotate(-0.1deg); }
  60%  { transform: translate3d(12%, 6%, 0) rotate(0.25deg); }
  75%  { transform: translate3d(-8%, 10%, 0) rotate(-0.15deg); }
  100% { transform: translate3d(-20%, 15%, 0) rotate(0.2deg); }
}
@keyframes starWanderB {
  0%   { transform: translate3d(0%, 0%, 0) rotate(-0.1deg); }
  20%  { transform: translate3d(8%, -7%, 0) rotate(0.2deg); }
  40%  { transform: translate3d(-6%, 9%, 0) rotate(-0.25deg); }
  60%  { transform: translate3d(10%, 4%, 0) rotate(0.1deg); }
  80%  { transform: translate3d(-7%, -10%, 0) rotate(-0.2deg); }
  100% { transform: translate3d(22%, -18%, 0) rotate(0.15deg); }
}
@keyframes twinkle {
  0%, 100% { filter: brightness(0.92); }
  50%      { filter: brightness(1.04); }
}


@media (prefers-reduced-motion: reduce) {
  .space-bg::before,
  .space-bg::after,
  .space-bg-far,
  .space-bg-extra { animation: none; }
}


#site-wrap { position: relative; z-index: 1; }


.light .space-bg { display: none; }


.space-bg-far {
  position: absolute;
  inset: -150%;
  z-index: -2; 
  pointer-events: none;
  background-repeat: repeat;
  background-image:
    radial-gradient(1px 1px at 50px 60px, rgba(255,255,255,0.45) 1px, transparent 1px),
    radial-gradient(1px 1px at 220px 180px, rgba(255,255,255,0.35) 1px, transparent 1px),
    radial-gradient(1.2px 1.2px at 140px 300px, rgba(255,255,255,0.30) 1px, transparent 1px);
  background-size: 520px 520px, 760px 760px, 980px 980px;
  opacity: 0.26;
  animation:
    starWanderC 720s ease-in-out -160s infinite,
    twinkleFar 12.5s ease-in-out -3s infinite;
}
@keyframes starWanderC {
  0%   { transform: translate3d(0%, 0%, 0) rotate(0.1deg); }
  20%  { transform: translate3d(-4%, 4%, 0) rotate(-0.1deg); }
  40%  { transform: translate3d(4%, -4%, 0) rotate(0.15deg); }
  60%  { transform: translate3d(-7%, -3%, 0) rotate(-0.05deg); }
  80%  { transform: translate3d(6%, 5%, 0) rotate(0.1deg); }
  100% { transform: translate3d(-14%, 12%, 0) rotate(-0.1deg); }
}


.space-bg-extra {
  position: absolute;
  inset: -130%;
  z-index: -1;
  pointer-events: none;
  background-repeat: repeat;
  background-image:
    radial-gradient(1px 1px at 35px 90px, rgba(255,255,255,0.55) 1px, transparent 1px),
    radial-gradient(1.2px 1.2px at 170px 140px, rgba(255,255,255,0.5) 1px, transparent 1px),
    radial-gradient(1.6px 1.6px at 90px 260px, rgba(255,255,255,0.45) 1px, transparent 1px);
  background-size: 260px 260px, 340px 340px, 460px 460px;
  opacity: 0.35;
  animation: starWanderD 480s ease-in-out -60s infinite, twinkleFar 11s ease-in-out -1.5s infinite;
}
@keyframes starWanderD {
  0%   { transform: translate3d(0%, 0%, 0) rotate(-0.1deg); }
  16%  { transform: translate3d(5%, 6%, 0) rotate(0.2deg); }
  33%  { transform: translate3d(-8%, 2%, 0) rotate(-0.25deg); }
  50%  { transform: translate3d(6%, -7%, 0) rotate(0.1deg); }
  66%  { transform: translate3d(-4%, -5%, 0) rotate(-0.15deg); }
  83%  { transform: translate3d(9%, 4%, 0) rotate(0.1deg); }
  100% { transform: translate3d(-10%, 8%, 0) rotate(-0.1deg); }
}
@keyframes twinkleFar {
  0%, 100% { filter: brightness(0.9); }
  50%      { filter: brightness(1.1); }
}


html:not(.light) body {
  background: radial-gradient(1200px 600px at 10% 0%, rgba(14, 165, 233, 0.10) 0%, rgba(14, 165, 233, 0) 60%),
              radial-gradient(800px 500px at 90% 10%, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 60%),
              linear-gradient(180deg, #0f1c2a 0%, #0b1522 100%);
  color: #e5e7eb; 
}

.hero-bg {
  
  background: radial-gradient(1200px 600px at 10% 0%, rgba(14, 165, 233, 0.10) 0%, rgba(14, 165, 233, 0) 60%),
              radial-gradient(800px 500px at 90% 10%, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 60%),
              linear-gradient(180deg, #0f1c2a 0%, #0b1522 100%);
}


.header {
  background: linear-gradient(180deg, rgba(15,28,42,0.92) 0%, rgba(15,28,42,0.75) 100%);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #e5e7eb;
}
.header a { color: #e5e7eb; }
.header .nav-link { color: #e5e7eb; }
.header .nav-link:hover { color: #ffffff; }

.hamburger-icon { width: 1.5rem; height: 1.5rem; color: #e5e7eb; display: block; }

.light .hamburger-icon { color: var(--slate-900); }


.brand-icon { display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; }
.brand-orb {
  width: 100%; height: 100%; border-radius: 0.75rem;
  background: radial-gradient(120% 120% at 20% 10%, #8b5cf6 0%, #4f46e5 40%, #22d3ee 100%);
  
  box-shadow: none;
  transition: transform 250ms ease, filter 250ms ease, box-shadow 250ms ease;
  position: relative;
}
.brand-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(2,6,23,0.35);
  user-select: none;
}
.brand-icon:hover .brand-orb {
  
  animation: brandSpin 1.4s linear infinite;
  filter: saturate(1.15) brightness(1.05);
  
  box-shadow: none;
}


.brand-icon:focus-visible .brand-orb {
  animation: brandSpin 1.4s linear infinite;
}

@keyframes brandSpin {
  from { transform: rotate(0deg) scale(1.06); }
  to   { transform: rotate(360deg) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-icon:hover .brand-orb,
  .brand-icon:focus-visible .brand-orb { animation: none; }
}


.brand-icon:hover .brand-initials {
  text-shadow: 0 0 6px rgba(129,140,248,0.55), 0 1px 2px rgba(2,6,23,0.35);
}


.header.scrolled {
  background: rgba(15,28,42,0.85);
  border-bottom-color: rgba(255,255,255,0.08);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--primary-600);
  color: #fff;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
  transition: background 200ms ease, box-shadow 200ms ease, transform 100ms ease;
}
.btn-primary:hover { background: var(--primary-700); }
.btn-primary:focus { outline: none; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--slate-900);
  border: 1px solid var(--slate-200);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn-secondary:hover { background: #f8fafc; }
.btn-secondary:focus { outline: none; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25); }

.btn-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary-700); font-weight: 600; text-decoration: none; }
.btn-link:hover { color: var(--primary-800); text-decoration: underline; text-underline-offset: 3px; }



.btn-link-yellow { color: #eab308; font-weight: 600; display: inline-flex; align-items: center; gap: 0.45rem; transition: color .25s, transform .25s; text-decoration: none; }
.btn-link-yellow i { font-size: 0.95em; }
.btn-link-yellow:hover { color: #facc15; transform: translateY(-1px); text-decoration: underline; text-underline-offset: 3px; }
.btn-link-yellow:active { transform: translateY(0); }
html:not(.light) .btn-link-yellow { color: #facc15; }
html:not(.light) .btn-link-yellow:hover { color: #fde047; }
.btn-link-red { color: #dc2626; font-weight: 600; display: inline-flex; align-items: center; gap: 0.45rem; transition: color .25s, transform .25s; text-decoration: none; }
.btn-link-red i { font-size: 0.95em; }
.btn-link-red:hover { color: #ef4444; transform: translateY(-1px); text-decoration: underline; text-underline-offset: 3px; }
.btn-link-red:active { transform: translateY(0); }
html:not(.light) .btn-link-red { color: #f87171; }
html:not(.light) .btn-link-red:hover { color: #fca5a5; }


.btn-link-red { color: #dc2626; font-weight: 600; display: inline-flex; align-items: center; gap: 0.45rem; transition: color .25s, transform .25s; }
.btn-link-red i { font-size: 0.95em; }
.btn-link-red:hover { color: #ef4444; transform: translateY(-1px); }
.btn-link-red:active { transform: translateY(0); }
html:not(.light) .btn-link-red { color: #f87171; }
html:not(.light) .btn-link-red:hover { color: #fca5a5; }

.btn-link-green, .btn-link-green::after { all: unset; }





.btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--yellow-500);
  color: #111827;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
  font-weight: 600;
  transition: background 200ms ease, box-shadow 200ms ease;
}
.btn-yellow:hover { background: var(--yellow-600); }
.btn-yellow i { color: #111827; }

.section { padding: 4rem 0; position: relative; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.section-alt { padding: 4rem 0; background: #fff; position: relative; }
@media (min-width: 768px) { .section-alt { padding: 6rem 0; } }

.container { max-width: 80rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-left: 2rem; padding-right: 2rem; } }

.section-title { font-size: 1.875rem; line-height: 2.25rem; font-weight: 800; color: var(--slate-900); }

#skills .section-title {
  text-align: center;
  
  font-size: clamp(2rem, 2.5vw + 1.25rem, 3rem);
}

#projects .section-title {
  text-align: center;
  font-size: clamp(2rem, 2.5vw + 1.25rem, 3rem);
}

#hobbies {
  text-align: center;
  font-size: clamp(2rem, 2.5vw + 1.25rem, 3rem);
}

#contact .section-title {
  text-align: center;
  font-size: clamp(2rem, 2.5vw + 1.25rem, 3rem);
}

.card { border-radius: 1rem; background: #fff; padding: 1.5rem; border: 1px solid var(--slate-200); box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12); transition: transform 160ms ease, box-shadow 200ms ease, border-color 200ms ease; will-change: transform; transform-origin: center; }
.card:hover {
  transform: translateY(-2px) scale(1.02) !important;
  
  box-shadow:
    0 16px 36px rgba(2, 6, 23, 0.18),
    0 0 0 4px rgba(99, 102, 241, 0.22),
    0 18px 44px rgba(99, 102, 241, 0.28);
  border-color: rgba(99, 102, 241, 0.35);
}
.card-title { font-size: 1rem; font-weight: 600; color: var(--slate-900); }

#skills .card-title {
  font-size: clamp(1.1rem, 0.6vw + 0.95rem, 1.35rem);
}

.nav-link { position: relative; display: inline-block; padding-bottom: 0.4rem; transition: transform 160ms ease, color 220ms ease; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-400), var(--primary-700));
  border-radius: 9999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease-in-out;
  box-shadow: 0 6px 14px rgba(99, 102, 241, 0.35);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover { transform: scale(1.06); }
.nav-link:focus-visible { transform: scale(1.06); }
.nav-link.nav-active { font-weight: 700; color: var(--primary-600); }
.nav-link.nav-active::after { transform: scaleX(1); }

.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.875rem; background: var(--primary-50); color: var(--primary-700); border: 1px solid var(--primary-200); }

.skill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.skill-icon {
  display: inline-flex;
  
  width: clamp(3.5rem, 4.2vw, 5.25rem);
  height: clamp(3.5rem, 4.2vw, 5.25rem);
  align-items: center; justify-content: center;
  border-radius: 9999px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  box-shadow: 0 8px 20px rgba(2,6,23,0.10);
  transition: transform 160ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.skill-icon:hover { transform: translateY(-1px) scale(1.06); box-shadow: 0 12px 28px rgba(2,6,23,0.18); border-color: #cbd5e1; }
.skill-icon img { display: block; width: 80%; height: 80%; object-fit: contain; }
.tag { display: inline-flex; align-items: center; padding: 0.125rem 0.625rem; border-radius: 9999px; background: var(--slate-100); color: #475569; border: 1px solid var(--slate-200); }


.project-card .tag {
  background: rgba(250, 204, 21, 0.10); 
  border-color: rgba(250, 204, 21, 0.25);
  box-shadow: 0 6px 14px rgba(250, 204, 21, 0.20);
}

.project-card { overflow: hidden; border-radius: 1rem; background: #fff; border: 1px solid var(--slate-200); box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12); transition: box-shadow 200ms ease, transform 160ms ease, border-color 200ms ease; will-change: transform; transform-origin: center; }
.project-card:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow:
    0 18px 40px rgba(2, 6, 23, 0.20),
    0 0 0 4px rgba(99, 102, 241, 0.22),
    0 22px 56px rgba(99, 102, 241, 0.28);
  border-color: rgba(99, 102, 241, 0.35);
}
.project-thumb { width: 100%; height: 11rem; object-fit: cover; }



.label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--slate-700); }
.input { margin-top: 0.25rem; width: 100%; padding: 0.75rem 1rem; border-radius: 0.75rem; border: 1px solid var(--slate-200); background: #fff; color: var(--slate-900); }
.input:focus { outline: none; border-color: var(--primary-400); box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.3); }

.social-link { display: inline-flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; border-radius: 9999px; background: #fff; border: 1px solid var(--slate-200); color: #475569; box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12); transition: color 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.social-link:hover { color: var(--primary-700); border-color: #cbd5e1; box-shadow: 0 10px 30px rgba(2, 6, 23, 0.16), 0 0 0 6px rgba(99, 102, 241, 0.12), 0 6px 16px rgba(99, 102, 241, 0.18); }
.social-link img { width: 1.25rem; height: 1.25rem; display: block; }

.social-link i { font-size: 1.2rem; line-height: 1; display: block; }


[data-aos] { transition-duration: 700ms !important; }


.pulse-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background: var(--primary-600);
  box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.5);
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.5); opacity: 0.9; }
  70% { box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); opacity: 1; }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); opacity: 0.9; }
}


html:not(.light) .section-alt { background: transparent; }
html:not(.light) .section-title { color: #e5e7eb; }
html:not(.light) .card, html:not(.light) .project-card, html:not(.light) .timeline-item {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}
html:not(.light) .card-title { color: #e5e7eb; }
html:not(.light) .tag {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: #cbd5e1;
}

html:not(.light) .project-card .tag {
  background: rgba(250, 204, 21, 0.10);
  border-color: rgba(250, 204, 21, 0.25);
  box-shadow: 0 6px 14px rgba(250, 204, 21, 0.20);
}

html:not(.light) .badge { background: rgba(99,102,241,0.12); color: #c7d2fe; border-color: rgba(99,102,241,0.25); }

html:not(.light) .skill-icon {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 10px 24px rgba(2,6,23,0.32);
}
html:not(.light) #skills .section-title { color: #e5e7eb; }
html:not(.light) .label { color: #cbd5e1; }
html:not(.light) .input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  color: #e5e7eb;
}
html:not(.light) .input::placeholder { color: #94a3b8; }

html:not(.light) #mobile-menu { background: rgba(15,28,42,0.92); border-top-color: rgba(255,255,255,0.08); }

html:not(.light) #mobile-menu a { color: #e5e7eb; }
html:not(.light) #mobile-menu a:hover { background: rgba(255,255,255,0.08); }


html:not(.light) #contact-form {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.35);
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}


html:not(.light) .btn-link { color: #a5b4fc; }
html:not(.light) .btn-link:hover { color: #c7d2fe; }
html:not(.light) .btn-secondary { background: rgba(255,255,255,0.08); color: #e5e7eb; border-color: rgba(255,255,255,0.14); }


html:not(.light) .social-link { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); color: #cbd5e1; }
html:not(.light) .social-link:hover { color: #c7d2fe; border-color: rgba(199,210,254,0.35); box-shadow: 0 10px 30px rgba(2, 6, 23, 0.30), 0 0 0 6px rgba(99, 102, 241, 0.20), 0 6px 18px rgba(99, 102, 241, 0.28); }


html:not(.light) .text-slate-900 { color: #e5e7eb; }
html:not(.light) .text-slate-700 { color: #cbd5e1; }
html:not(.light) .text-slate-600 { color: #94a3b8; }
html:not(.light) .text-slate-500 { color: #94a3b8; }


.theme-toggle {
  position: relative; width: 3rem; height: 1.6rem; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.25);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  display: inline-flex; align-items: center; justify-content: space-between; padding: 0 0.35rem; gap: 0.25rem;
}
.theme-icon { font-size: 0.9rem; opacity: 0.8; }
.theme-knob { position: absolute; top: 50%; transform: translateY(-50%); left: 0.25rem; width: 1.2rem; height: 1.2rem; border-radius: 9999px; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.25); transition: left 220ms ease; }
.light .theme-knob { left: 1.55rem; }


.light body { color: var(--slate-900); background: #f8fafc; }
.light .header { background: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(2,6,23,0.08); color: var(--slate-900); }
.light .header a, .light .header .nav-link { color: var(--slate-900); }
.light .header .nav-link:hover { color: var(--primary-700); }
.light .hero-bg { background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%); }
.light .hero-badge { color: #0ea5e9; background: rgba(14,165,233,0.08); border-color: rgba(14,165,233,0.12); }
.light .hero-lead { color: #334155; }

.light #home h1 { color: var(--slate-900) !important; }
.name-glow {
  position: relative;
  text-shadow: 0 0 0 rgba(0,0,0,0);
  animation: namePulse 3.2s ease-in-out infinite;
}
@keyframes namePulse {
  0%, 100% { text-shadow: 0 0 0 rgba(99,102,241,0); }
  50% { text-shadow: 0 0 14px rgba(99,102,241,0.45), 0 0 28px rgba(99,102,241,0.25); }
}

.light .name-glow {
  
  animation: namePulseLight 3s ease-in-out infinite;
}
@keyframes namePulseLight {
  0%, 100% { text-shadow: 0 0 0 rgba(244,63,94,0); }
  
  50% { text-shadow: 0 0 12px rgba(244,63,94,0.55), 0 0 26px rgba(244,63,94,0.32); }
}
.light .btn-secondary { background: #fff; color: #0f172a; border-color: #e2e8f0; }
.light .project-card, .light .card {
  background: #fff;
  
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.16), 0 2px 8px rgba(2, 6, 23, 0.06);
}
.light .section-alt { background: #fff; }


.light #about,
.light #projects,
.light #contact { background: #f8fafc; }


.light .section-title { color: var(--slate-900) !important; }
.light #about .card-title { color: var(--slate-900) !important; }


.site-footer { padding: 2.5rem 0; border-top: 1px solid rgba(2,6,23,0.08); background: transparent; }
.footer-text { text-align: center; color: #64748b; font-size: 0.95rem; }


html:not(.light) .site-footer { border-top-color: rgba(255,255,255,0.12); }
html:not(.light) .footer-text { color: #94a3b8; }



#about .card-title,
#skills .section-title,
#projects .section-title,
#contact .section-title,
#hobbies .section-title {
  color: var(--heading-accent);
}


.hobby-item {
  margin-bottom: 2rem;
}

.hobby-item:last-child {
  margin-bottom: 0;
}

.hobby-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.hobby-subtitle {
  font-size: 1rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin: 0;
}


html:not(.light) .hobby-title {
  color: #ffffff;
  font-weight: 700;
}

html:not(.light) .hobby-subtitle {
  color: #9ca3af;
}


html:not(.light) #skills .section-title { color: var(--heading-accent); }



.section::before,
.section-alt::before {
  content: "";
  position: absolute;
  left: 50%;
  
  transform: translate(-50%, -2px) scaleY(0.8);
  top: -1.6rem;
  width: min(800px, 76vw);
  height: 26px;
  border-radius: 9999px;
  
  background:
    linear-gradient(180deg,
      rgba(47, 229, 184, 0.14) 0%,
      rgba(47, 229, 184, 0.08) 32%,
      rgba(47, 229, 184, 0.03) 60%,
      rgba(47, 229, 184, 0.00) 100%);
  filter: blur(6px);
  opacity: 0.45;
  
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,1) 14%, rgba(0,0,0,1) 86%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,1) 14%, rgba(0,0,0,1) 86%, transparent 100%);
  pointer-events: none;
  
  animation: dividerBreath 6.5s ease-in-out infinite;
}


.section::after,
.section-alt::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -1.5rem;
  width: min(780px, 72vw);
  height: 1.5px;
  border-radius: 9999px;
  background: linear-gradient(90deg,
    rgba(0,0,0,0) 0%,
    rgba(47, 229, 184, 0.55) 18%,
    var(--divider-teal) 50%,
    rgba(47, 229, 184, 0.55) 82%,
    rgba(0,0,0,0) 100%);
  
  box-shadow: none;
  opacity: 0.85;
  
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,1) 14%, rgba(0,0,0,1) 86%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,1) 14%, rgba(0,0,0,1) 86%, transparent 100%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .section::before,
  .section-alt::before { top: -2.1rem; height: 30px; filter: blur(7px); opacity: 0.42; transform: translate(-50%, -3px) scaleY(0.78); }
  .section::after,
  .section-alt::after { top: -1.85rem; height: 2px; }
}


@keyframes dividerBreath {
  0%, 100% { opacity: 0.50; filter: blur(7px); }
  50%      { opacity: 0.75; filter: blur(9px); }
}


@media (prefers-reduced-motion: reduce) {
  .section::before,
  .section-alt::before { animation: none; }
}


.no-divider::before,
.no-divider::after { display: none !important; }

