/* ============================================
   Modern Portfolio - Complete Theme Override
   ============================================ */

/* --- Typography --- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-color);
}

code, pre {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

body p,
body li,
body dd,
body small,
.secondary-font,
.text-secondary,
.text-muted,
.navbar-text,
.card-text,
.post-footer,
.post-footer a,
footer,
footer p,
footer span,
footer li {
  color: var(--text-secondary-color);
}

body p,
body li,
body dd,
.card-text,
#projects .card-text,
#list-page .card-text,
#recent-posts .card-text,
footer .card-text,
footer .card-text p,
.whatido-card p,
#experience .tab-pane p,
#experience .tab-pane li,
#about .content,
#contact p,
.resume-page p,
.resume-page li {
  color: var(--text-color);
}

.text-secondary,
.text-muted,
.secondary-font,
.navbar-text,
.contact-divider,
.resume-page h4,
.resume-page .contact-info,
#projects .card-footer,
#recent-posts .card-footer,
#list-page .post-footer,
footer .card-footer,
footer a,
footer .card-footer a {
  color: var(--text-secondary-color) !important;
}

/* --- Smooth scroll --- */
html {
  scroll-behavior: smooth;
}

:root {
  --accent-violet: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --aurora-gradient: linear-gradient(120deg, var(--accent-violet) 0%, var(--accent-blue) 28%, var(--accent-cyan) 52%, var(--accent-pink) 78%, var(--accent-amber) 100%);
  --aurora-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(59, 130, 246, 0.12) 32%, rgba(6, 182, 212, 0.14) 58%, rgba(236, 72, 153, 0.12) 82%, rgba(245, 158, 11, 0.12));
}

/* ============================================
   INTERACTIVE UNIVERSE CANVAS
   ============================================ */
#constellation-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#ai-aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#ai-aurora-bg::before,
#ai-aurora-bg::after {
  content: '';
  position: absolute;
  inset: -12%;
  opacity: 0.9;
}

#ai-aurora-bg::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.22), transparent 24%),
    radial-gradient(circle at 78% 12%, rgba(236, 72, 153, 0.2), transparent 24%),
    radial-gradient(circle at 56% 72%, rgba(6, 182, 212, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(3, 6, 18, 0.1), rgba(3, 6, 18, 0.22));
  filter: blur(42px) saturate(130%);
  animation: auroraFloat 18s ease-in-out infinite alternate;
}

#ai-aurora-bg::after {
  background:
    radial-gradient(circle at 28% 80%, rgba(139, 92, 246, 0.18), transparent 22%),
    radial-gradient(circle at 88% 62%, rgba(245, 158, 11, 0.14), transparent 24%),
    radial-gradient(circle at 42% 35%, rgba(6, 182, 212, 0.12), transparent 26%);
  filter: blur(64px);
  animation: auroraPulse 14s ease-in-out infinite;
}

html.light,
body.light,
body.light > * {
  background-color: transparent !important;
}

html.light,
body.light {
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 22%),
    radial-gradient(circle at 50% 120%, rgba(236, 72, 153, 0.08), transparent 34%),
    linear-gradient(180deg, #fbfcff 0%, #f4f7ff 38%, #f8fbff 100%) !important;
}

body.light #ai-aurora-bg::before,
html.light #ai-aurora-bg::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.18), transparent 24%),
    radial-gradient(circle at 78% 12%, rgba(236, 72, 153, 0.16), transparent 24%),
    radial-gradient(circle at 56% 72%, rgba(6, 182, 212, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(244, 247, 255, 0.28));
  filter: blur(40px) saturate(150%);
  opacity: 1;
}

body.light #ai-aurora-bg::after,
html.light #ai-aurora-bg::after {
  background:
    radial-gradient(circle at 20% 76%, rgba(139, 92, 246, 0.18), transparent 22%),
    radial-gradient(circle at 88% 60%, rgba(245, 158, 11, 0.1), transparent 24%),
    radial-gradient(circle at 44% 32%, rgba(6, 182, 212, 0.12), transparent 26%);
  opacity: 0.95;
}

body.light .aurora-wave,
html.light .aurora-wave {
  opacity: 0.6;
  filter: blur(16px) saturate(140%);
  mix-blend-mode: multiply;
}

body.light .aurora-grid,
html.light .aurora-grid {
  opacity: 0.14;
}

.aurora-wave,
.aurora-grid {
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.aurora-wave {
  width: 140vw;
  height: 42vh;
  left: -20vw;
  border-radius: 50%;
  opacity: 0.45;
  filter: blur(18px);
  mix-blend-mode: screen;
}

.aurora-wave-1 {
  top: 8%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(124, 92, 255, 0.34) 0%, rgba(124, 92, 255, 0.14) 30%, transparent 62%),
    linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.3) 20%, rgba(6, 182, 212, 0.36) 50%, rgba(236, 72, 153, 0.28) 78%, transparent 100%);
  transform: rotate(-10deg);
  animation: waveDriftOne 22s ease-in-out infinite alternate;
}

.aurora-wave-2 {
  top: 34%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.28) 0%, rgba(6, 182, 212, 0.12) 28%, transparent 64%),
    linear-gradient(90deg, transparent 0%, rgba(236, 72, 153, 0.2) 18%, rgba(124, 92, 255, 0.28) 46%, rgba(59, 130, 246, 0.3) 76%, transparent 100%);
  transform: rotate(6deg);
  animation: waveDriftTwo 26s ease-in-out infinite alternate;
}

.aurora-wave-3 {
  bottom: 6%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.16) 0%, rgba(245, 158, 11, 0.08) 28%, transparent 64%),
    linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.18) 18%, rgba(6, 182, 212, 0.22) 40%, rgba(139, 92, 246, 0.26) 62%, rgba(236, 72, 153, 0.2) 84%, transparent 100%);
  transform: rotate(-4deg);
  animation: waveDriftThree 30s ease-in-out infinite alternate;
}

.aurora-grid {
  left: -10%;
  bottom: -12%;
  width: 120%;
  height: 56%;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.22) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0));
  transform: perspective(900px) rotateX(76deg) scale(1.15);
  animation: gridShift 18s linear infinite;
}

/*
 * Neutralize theme.css ".light > *" rule which paints solid backgrounds
 * on ALL direct children of body — this blocks the canvas starfield.
 * Canvas, header, and #content must be transparent; sections get their own bg.
 */
.light > #constellation-bg,
.dark > #constellation-bg,
body.light > #constellation-bg,
body.dark > #constellation-bg {
  background: transparent !important;
  background-color: transparent !important;
}

.light > #ai-aurora-bg,
.dark > #ai-aurora-bg,
body.light > #ai-aurora-bg,
body.dark > #ai-aurora-bg {
  background: transparent !important;
  background-color: transparent !important;
}

.light > #content,
.dark > #content,
body.light > #content,
body.dark > #content {
  background: transparent !important;
  background-color: transparent !important;
}

/* Let the universe remain visible through the main content sections.
   A subtle overlay keeps text readable without completely hiding the canvas. */
#about, #experience, #education, #projects, #achievements, #contact,
#whatido, #search-content, #current-focus, #foundation-path {
  position: relative;
  background: transparent !important;
  background-color: transparent !important;
  isolation: isolate;
}

#about::before,
#experience::before,
#education::before,
#projects::before,
#achievements::before,
#contact::before,
#whatido::before,
#search-content::before,
#current-focus::before,
#foundation-path::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 24, 0.34) 0%, rgba(8, 12, 24, 0.18) 100%),
    radial-gradient(circle at top center, rgba(139, 92, 246, 0.14), transparent 42%),
    radial-gradient(circle at 18% 18%, rgba(6, 182, 212, 0.09), transparent 30%),
    radial-gradient(circle at 82% 10%, rgba(236, 72, 153, 0.08), transparent 28%);
}

.light #about::before,
.light #experience::before,
.light #education::before,
.light #projects::before,
.light #achievements::before,
.light #contact::before,
.light #whatido::before,
.light #search-content::before,
.light #current-focus::before,
.light #foundation-path::before,
body.light #about::before,
body.light #experience::before,
body.light #education::before,
body.light #projects::before,
body.light #achievements::before,
body.light #contact::before,
body.light #whatido::before,
body.light #search-content::before,
body.light #current-focus::before,
body.light #foundation-path::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.22) 100%),
    radial-gradient(circle at top center, rgba(124, 92, 255, 0.13), transparent 54%),
    radial-gradient(circle at 14% 20%, rgba(59, 130, 246, 0.09), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(236, 72, 153, 0.08), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(6, 182, 212, 0.06), transparent 30%);
}

#about > .container,
#experience > .container,
#education > .container,
#projects > .container,
#achievements > .container,
#contact > .container,
#whatido > .container,
#search-content > .container,
#current-focus > .container,
#foundation-path > .container {
  position: relative;
  z-index: 1;
}

/* ============================================
   CURRENT FOCUS STRIP
   ============================================ */
.focus-strip {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(162, 155, 254, 0.14);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  box-shadow: 0 16px 40px rgba(8, 15, 30, 0.12), 0 0 0 1px rgba(255,255,255,0.02) inset;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.focus-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 28%),
              radial-gradient(circle at top right, rgba(236, 72, 153, 0.12), transparent 26%),
              linear-gradient(135deg, rgba(139, 92, 246, 0.08), transparent 38%, rgba(6, 182, 212, 0.08) 72%, transparent 100%);
}

.focus-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(6, 182, 212, 0.88), rgba(236, 72, 153, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(124, 92, 255, 0.22);
}

.focus-item {
  border-radius: 1rem;
  border: 1px solid rgba(162, 155, 254, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.focus-item:hover {
  transform: translateY(-4px);
  border-color: rgba(162, 155, 254, 0.18);
  box-shadow: 0 16px 34px rgba(8, 15, 30, 0.1);
}

.focus-item h5 {
  font-weight: 600;
  color: var(--text-color);
}

#current-focus .col-lg-3:nth-child(4n+1) .focus-item {
  box-shadow: 0 16px 34px rgba(59, 130, 246, 0.08);
}

#current-focus .col-lg-3:nth-child(4n+2) .focus-item {
  box-shadow: 0 16px 34px rgba(139, 92, 246, 0.08);
}

#current-focus .col-lg-3:nth-child(4n+3) .focus-item {
  box-shadow: 0 16px 34px rgba(6, 182, 212, 0.08);
}

#current-focus .col-lg-3:nth-child(4n+4) .focus-item {
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.08);
}

/* Shared blog/gallery list pages */
#list-page {
  position: relative;
  z-index: 1;
}

#list-page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(8, 12, 24, 0.28) 0%, rgba(8, 12, 24, 0.14) 100%),
    radial-gradient(circle at top center, rgba(162, 155, 254, 0.1), transparent 60%);
}

.light #list-page::before,
body.light #list-page::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.18) 100%),
    radial-gradient(circle at top center, rgba(108, 92, 231, 0.1), transparent 60%),
    radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.07), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(236, 72, 153, 0.06), transparent 24%);
}

#list-page > * {
  position: relative;
  z-index: 1;
}

footer {
  background-color: var(--background-color) !important;
}

/* Override theme's #content z-index:9999 which creates a stacking context
   blocking the fixed canvas. Sections have position:relative for their own z. */
#content {
  position: relative;
  z-index: auto !important;
}

/* prefers-reduced-motion: fall back to static dot grid */
@media (prefers-reduced-motion: reduce) {
  #constellation-bg,
  #ai-aurora-bg { display: none; }
}

@keyframes auroraFloat {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 2%, 0) scale(1.06);
  }
  100% {
    transform: translate3d(-1%, 4%, 0) scale(1.02);
  }
}

@keyframes auroraPulse {
  0%, 100% {
    opacity: 0.72;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes waveDriftOne {
  0% {
    transform: translate3d(0, 0, 0) rotate(-10deg) scaleX(1);
  }
  100% {
    transform: translate3d(8vw, -2vh, 0) rotate(-6deg) scaleX(1.08);
  }
}

@keyframes waveDriftTwo {
  0% {
    transform: translate3d(0, 0, 0) rotate(6deg) scaleX(1);
  }
  100% {
    transform: translate3d(-10vw, 3vh, 0) rotate(10deg) scaleX(1.04);
  }
}

@keyframes waveDriftThree {
  0% {
    transform: translate3d(0, 0, 0) rotate(-4deg) scaleX(1);
  }
  100% {
    transform: translate3d(6vw, -3vh, 0) rotate(-1deg) scaleX(1.06);
  }
}

@keyframes gridShift {
  0% {
    transform: perspective(900px) rotateX(76deg) translateY(0) scale(1.15);
    background-position: 0 0, 0 0;
  }
  100% {
    transform: perspective(900px) rotateX(76deg) translateY(26px) scale(1.18);
    background-position: 0 68px, 68px 0;
  }
}

/* ============================================
   GLASSMORPHISM NAVBAR (sticky + shrink)
   ============================================ */
header {
  position: sticky !important;
  top: 0;
  z-index: 10000;
}

/* Override theme.css ".light > *" which sets solid bg on header */
header,
.light > header,
.dark > header,
body.light > header,
body.dark > header {
  background: transparent !important;
  background-color: transparent !important;
}

/* Hero: let starfield show through */
#hero {
  background: transparent !important;
  background-color: transparent !important;
}

header .navbar,
header .navbar.navbar-expand-lg {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 10, 15, 0.85) !important;
  background-color: rgba(10, 10, 15, 0.85) !important;
  border-bottom: 1px solid rgba(162, 155, 254, 0.08);
  padding: 0.85rem 0;
  transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.light header .navbar,
.light header .navbar.navbar-expand-lg,
body.light header .navbar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(244, 247, 255, 0.7)) !important;
  background-color: rgba(255, 255, 255, 0.78) !important;
  border-bottom: 1px solid rgba(108, 92, 231, 0.1);
  box-shadow: 0 10px 30px rgba(93, 108, 180, 0.06);
}

/* Shrunk state on scroll */
header .navbar.navbar-scrolled {
  padding: 0.45rem 0;
  background: rgba(10, 10, 15, 0.95) !important;
  background-color: rgba(10, 10, 15, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.light header .navbar.navbar-scrolled,
body.light header .navbar.navbar-scrolled {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 255, 0.88)) !important;
  background-color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 12px 28px rgba(93, 108, 180, 0.09);
}

/* Theme toggle + search — inherit glass background */
header #theme-toggle {
  background-color: transparent !important;
  color: var(--text-color) !important;
  border: none;
}

header #search {
  background-color: rgba(162, 155, 254, 0.08) !important;
  border-color: rgba(162, 155, 254, 0.12) !important;
}

.light header #search,
body.light header #search {
  background-color: rgba(108, 92, 231, 0.06) !important;
  border-color: rgba(108, 92, 231, 0.1) !important;
}

/* Nav link colors — ensure readability on glass */
header .navbar .navbar-nav a {
  color: var(--text-color) !important;
}

.navbar-brand {
  font-weight: 700 !important;
  font-size: 1.3rem !important;
  letter-spacing: -0.02em;
}

header .navbar .navbar-nav a {
  font-weight: 500 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.01em;
  padding: 0.45rem 0.9rem !important;
  border-radius: 0.5rem;
  transition: all 0.2s ease !important;
}

header .navbar .navbar-nav a:hover {
  background-color: rgba(162, 155, 254, 0.1) !important;
}

.light header .navbar .navbar-nav a:hover {
  background-color: rgba(108, 92, 231, 0.08) !important;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero never hidden — instant display */
#hero {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
  position: relative;
  overflow: hidden;
}

#hero::before,
#hero::after {
  content: '';
  position: absolute;
  inset: auto;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

#hero::before {
  top: -8rem;
  right: -7rem;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.95) 0%, rgba(139, 92, 246, 0.55) 42%, transparent 72%);
}

#hero::after {
  bottom: -10rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.9) 0%, rgba(59, 130, 246, 0.5) 42%, transparent 70%);
}

#hero .container,
#hero .row,
#hero .content,
#hero .image {
  position: relative;
  z-index: 1;
}

#hero h2 {
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f7f7ff 0%, #b8a7ff 20%, #78b7ff 42%, #73f0dd 60%, #ff8bc2 84%, #ffd67a 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 8px 28px rgba(124, 92, 255, 0.15);
}

.light #hero h2,
body.light #hero h2 {
  background: linear-gradient(135deg, #5b43d6 0%, #2f6cf6 26%, #0ea5c6 52%, #d94693 78%, #f59e0b 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

body.light #hero::before,
html.light #hero::before {
  opacity: 0.28;
}

body.light #hero::after,
html.light #hero::after {
  opacity: 0.24;
}

#hero h3 {
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  color: var(--text-color);
  opacity: 0.95;
}

#hero .subtitle {
  font-size: clamp(15px, 4vw, 17px) !important;
  font-weight: 500;
  color: var(--text-secondary-color);
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem !important;
}

#hero p {
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.94;
}

#hero .image img {
  border-radius: 1.5rem !important;
  border: 2px solid rgba(162, 155, 254, 0.18) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
              0 0 40px rgba(108, 92, 231, 0.08),
              0 0 70px rgba(6, 182, 212, 0.08) !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#hero .image img:hover {
  transform: scale(1.03) rotate(0.5deg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2),
              0 0 60px rgba(108, 92, 231, 0.15) !important;
}

/* Hero Buttons */
#hero a.btn {
  font-weight: 600 !important;
  font-size: 0.92rem;
  padding: 0.7rem 1.8rem !important;
  border-radius: 0.75rem !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(6, 182, 212, 0.1)) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

#hero a.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(162, 155, 254, 0.1), transparent);
  transition: left 0.5s ease;
}

#hero a.btn:hover::before {
  left: 100%;
}

#hero a.btn:hover {
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-blue), var(--accent-cyan)) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(108, 92, 231, 0.28) !important;
}

#hero a.btn.social-icon {
  border: 1.5px solid rgba(162, 155, 254, 0.22) !important;
  min-width: 3rem;
  transition: all 0.3s ease !important;
}

#hero a.btn.social-icon:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(236, 72, 153, 0.16), rgba(6, 182, 212, 0.16)) !important;
  transform: translateY(-3px);
  color: #fff !important;
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  max-width: 42rem;
}

.hero-proof-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 1rem 1.05rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(162, 155, 254, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow: 0 14px 34px rgba(8, 15, 30, 0.08);
  overflow: hidden;
}

body.light .hero-proof-card,
body.light .focus-strip,
body.light .focus-item,
body.light .whatido-card,
body.light .foundation-step-inner,
body.light .card,
html.light .hero-proof-card,
html.light .focus-strip,
html.light .focus-item,
html.light .whatido-card,
html.light .foundation-step-inner,
html.light .card {
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(248,250,255,0.5)) !important;
  border-color: rgba(124, 92, 255, 0.12) !important;
  box-shadow: 0 18px 40px rgba(91, 103, 166, 0.08), 0 6px 14px rgba(124, 92, 255, 0.04) !important;
}

body.light .card .badge,
html.light .card .badge,
body.light .capability-pill,
html.light .capability-pill {
  color: #4e3fb5 !important;
}

.hero-proof-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--aurora-gradient);
}

.hero-proof-label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary-color);
  font-weight: 700;
}

.hero-proof-value {
  color: var(--text-color);
  font-weight: 600;
  line-height: 1.45;
}

/* ============================================
   WHAT I DO SECTION
   ============================================ */
.whatido-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  border-radius: 1rem;
  border: 1px solid rgba(162, 155, 254, 0.12);
  box-shadow: 0 12px 30px rgba(8, 15, 30, 0.05),
              0 2px 8px rgba(108, 92, 231, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.whatido-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--aurora-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.whatido-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(8, 15, 30, 0.12),
              0 8px 18px rgba(108, 92, 231, 0.09);
  border-color: rgba(162, 155, 254, 0.15);
}

.whatido-card:hover::before {
  opacity: 1;
}

.whatido-icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(6, 182, 212, 0.12));
  color: #cfc7ff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.whatido-card:hover .whatido-icon {
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-blue), var(--accent-cyan));
  color: #fff;
  transform: scale(1.1);
}

#whatido .col-lg-4:nth-child(3n+1) .whatido-card:hover {
  box-shadow: 0 24px 50px rgba(59, 130, 246, 0.16), 0 10px 22px rgba(8, 15, 30, 0.12);
}

#whatido .col-lg-4:nth-child(3n+2) .whatido-card:hover {
  box-shadow: 0 24px 50px rgba(139, 92, 246, 0.16), 0 10px 22px rgba(8, 15, 30, 0.12);
}

#whatido .col-lg-4:nth-child(3n+3) .whatido-card:hover {
  box-shadow: 0 24px 50px rgba(236, 72, 153, 0.14), 0 10px 22px rgba(8, 15, 30, 0.12);
}

.whatido-card h5 {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.whatido-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
section h2, section h3.text-center {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

section h2::after {
  background: var(--aurora-gradient) !important;
  height: 2px !important;
}

#current-focus h3,
#whatido h3,
#foundation-path h3,
#projects h2,
#about h2,
#experience h2,
#achievements h2,
#contact h2 {
  background: linear-gradient(135deg, #ffffff 0%, #bcaeff 22%, #84b8ff 44%, #72edd9 68%, #ff94c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.light #current-focus h3,
.light #whatido h3,
.light #foundation-path h3,
.light #projects h2,
.light #about h2,
.light #experience h2,
.light #achievements h2,
.light #contact h2,
body.light #current-focus h3,
body.light #whatido h3,
body.light #foundation-path h3,
body.light #projects h2,
body.light #about h2,
body.light #experience h2,
body.light #achievements h2,
body.light #contact h2 {
  background: linear-gradient(135deg, #5b43d6 0%, #2f6cf6 28%, #0ea5c6 54%, #d94693 82%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
#about {
  overflow: hidden;
}

#about::after {
  content: '';
  position: absolute;
  inset: 6% 3% 8%;
  pointer-events: none;
  z-index: 0;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.12), transparent 22%),
    radial-gradient(circle at 86% 16%, rgba(236, 72, 153, 0.1), transparent 20%),
    radial-gradient(circle at 56% 88%, rgba(6, 182, 212, 0.08), transparent 24%),
    linear-gradient(135deg, rgba(124, 92, 255, 0.05), transparent 34%, rgba(6, 182, 212, 0.05) 68%, transparent 100%);
  opacity: 0.9;
}

.about-visual-wrap {
  position: relative;
  isolation: isolate;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-visual-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.about-orbit,
.about-node,
.about-grid {
  position: absolute;
  pointer-events: none;
}

.about-orbit {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.06) inset;
}

.about-orbit-1 {
  inset: 6% 8% 18%;
  border-color: rgba(124, 92, 255, 0.16);
  transform: rotate(16deg);
  animation: aboutOrbitFloat 18s ease-in-out infinite alternate;
}

.about-orbit-2 {
  inset: 16% 4% 8%;
  border-color: rgba(59, 130, 246, 0.14);
  transform: rotate(-10deg);
  animation: aboutOrbitFloatTwo 22s ease-in-out infinite alternate;
}

.about-orbit-3 {
  inset: 12% 12% 14%;
  border-style: dashed;
  border-color: rgba(236, 72, 153, 0.14);
  transform: rotate(32deg);
  animation: aboutOrbitSpin 24s linear infinite;
}

.about-node {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  box-shadow: 0 0 18px currentColor;
}

.about-node-1 {
  top: 16%;
  left: 16%;
  color: rgba(59, 130, 246, 0.88);
  background: currentColor;
}

.about-node-2 {
  top: 22%;
  right: 18%;
  color: rgba(236, 72, 153, 0.82);
  background: currentColor;
}

.about-node-3 {
  bottom: 24%;
  left: 18%;
  color: rgba(6, 182, 212, 0.84);
  background: currentColor;
}

.about-node-4 {
  bottom: 18%;
  right: 20%;
  color: rgba(124, 92, 255, 0.82);
  background: currentColor;
}

.about-grid {
  inset: 18% 10% 14%;
  opacity: 0.16;
  border-radius: 50%;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.2) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.95) 42%, rgba(0, 0, 0, 0.18) 70%, transparent 86%);
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.95) 42%, rgba(0, 0, 0, 0.18) 70%, transparent 86%);
}

#about .image img {
  border-radius: 1.5rem !important;
  width: min(320px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  padding: 0 !important;
  background: transparent !important;
  border: 2px solid rgba(162, 155, 254, 0.16);
  box-shadow: 0 24px 60px rgba(8, 15, 30, 0.16),
              0 0 0 1px rgba(255, 255, 255, 0.04) inset,
              0 0 38px rgba(124, 92, 255, 0.12);
  transition: all 0.5s ease !important;
}

#about .image img:hover {
  transform: scale(1.02);
  box-shadow: 0 28px 66px rgba(8, 15, 30, 0.18),
              0 0 48px rgba(59, 130, 246, 0.14),
              0 0 56px rgba(236, 72, 153, 0.12) !important;
}

.about-visual-wrap {
  position: relative;
}

#about .image {
  position: relative;
  z-index: 2;
}

.about-fusion-badges {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  z-index: 2;
}

.about-fusion-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(59,130,246,0.96), rgba(124,92,255,0.92), rgba(236,72,153,0.92));
  box-shadow: 0 12px 28px rgba(91, 92, 214, 0.18);
}

.about-fusion-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 320px;
}

.about-fusion-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-color);
  border: 1px solid rgba(124, 92, 255, 0.14);
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  box-shadow: 0 10px 24px rgba(8, 15, 30, 0.08);
}

.about-fusion-badge:nth-child(4n+1) {
  border-color: rgba(59, 130, 246, 0.18);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.08);
}

.about-fusion-badge:nth-child(4n+2) {
  border-color: rgba(124, 92, 255, 0.2);
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.08);
}

.about-fusion-badge:nth-child(4n+3) {
  border-color: rgba(236, 72, 153, 0.18);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.08);
}

.about-fusion-badge:nth-child(4n+4) {
  border-color: rgba(6, 182, 212, 0.18);
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.08);
}

body.light #about .image img,
html.light #about .image img {
  border-color: rgba(124, 92, 255, 0.18);
  box-shadow: 0 22px 54px rgba(91, 103, 166, 0.12),
              0 0 0 1px rgba(255, 255, 255, 0.52) inset,
              0 0 34px rgba(59, 130, 246, 0.1);
}

body.light .about-fusion-badge,
html.light .about-fusion-badge {
  background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(247,249,255,0.56));
}

#about .content {
  font-size: 1.02rem;
  line-height: 1.85rem !important;
}

.about-content-shell {
  position: relative;
  padding: 1.5rem 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(124, 92, 255, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow: 0 18px 42px rgba(8, 15, 30, 0.09), 0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow: hidden;
}

.about-content-shell::before,
.about-content-shell::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.about-content-shell::before {
  inset: 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(59, 130, 246, 0.1), transparent 18%),
    radial-gradient(circle at 92% 14%, rgba(236, 72, 153, 0.08), transparent 16%),
    radial-gradient(circle at 72% 88%, rgba(6, 182, 212, 0.08), transparent 20%);
}

.about-content-shell::after {
  inset: auto 1rem 1rem auto;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.28) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle, rgba(0,0,0,0.95), transparent 72%);
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,0.95), transparent 72%);
}

.about-content-shell > * {
  position: relative;
  z-index: 1;
}

body.light #about::after,
html.light #about::after {
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.08), transparent 22%),
    radial-gradient(circle at 86% 16%, rgba(236, 72, 153, 0.07), transparent 20%),
    radial-gradient(circle at 56% 88%, rgba(6, 182, 212, 0.06), transparent 24%),
    linear-gradient(135deg, rgba(124, 92, 255, 0.04), transparent 34%, rgba(6, 182, 212, 0.04) 68%, transparent 100%);
}

body.light .about-content-shell,
html.light .about-content-shell {
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(248,250,255,0.46));
  border-color: rgba(124, 92, 255, 0.14);
  box-shadow: 0 20px 46px rgba(91, 103, 166, 0.1), 0 0 0 1px rgba(255,255,255,0.28) inset;
}

@keyframes aboutOrbitFloat {
  0% { transform: rotate(16deg) translateY(0) scale(1); }
  100% { transform: rotate(20deg) translateY(-10px) scale(1.02); }
}

@keyframes aboutOrbitFloatTwo {
  0% { transform: rotate(-10deg) translateX(0) scale(1); }
  100% { transform: rotate(-5deg) translateX(10px) scale(1.03); }
}

@keyframes aboutOrbitSpin {
  0% { transform: rotate(32deg); }
  100% { transform: rotate(392deg); }
}

.about-capabilities {
  margin-bottom: 1.75rem;
}

.capabilities-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary-color);
}

.capability-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.capability-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(162, 155, 254, 0.18);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(6, 182, 212, 0.08));
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.capability-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(162, 155, 254, 0.3);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(236, 72, 153, 0.12), rgba(6, 182, 212, 0.14));
  color: #fff;
}

.capability-pill:nth-child(4n+2) {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(6, 182, 212, 0.1));
}

.capability-pill:nth-child(4n+3) {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(139, 92, 246, 0.1));
}

.capability-pill:nth-child(4n+4) {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(124, 92, 255, 0.1));
}

/* ============================================
   FOUNDATION PATH
   ============================================ */
.section-subtitle {
  max-width: 720px;
  color: var(--text-secondary-color);
  font-size: 1rem;
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.foundation-step {
  position: relative;
}

.foundation-step::after {
  content: '';
  position: absolute;
  top: 2rem;
  right: -0.7rem;
  width: 1.4rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(162, 155, 254, 0.45), transparent);
}

.foundation-step:last-child::after {
  display: none;
}

.foundation-step-inner {
  border-radius: 1.25rem;
  border: 1px solid rgba(162, 155, 254, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  box-shadow: 0 14px 34px rgba(8, 15, 30, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.foundation-step-inner:hover {
  transform: translateY(-6px);
  border-color: rgba(162, 155, 254, 0.2);
  box-shadow: 0 22px 46px rgba(8, 15, 30, 0.12);
}

.foundation-step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.foundation-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: rgba(162, 155, 254, 0.12);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 700;
}

.foundation-step-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(6, 182, 212, 0.12));
  color: #d4cdff;
  font-size: 1.15rem;
}

.foundation-step:nth-child(4n+2) .foundation-step-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(6, 182, 212, 0.12));
}

.foundation-step:nth-child(4n+3) .foundation-step-icon {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(139, 92, 246, 0.12));
}

.foundation-step:nth-child(4n+4) .foundation-step-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(236, 72, 153, 0.12));
}

.foundation-step h5 {
  color: var(--text-color);
  font-weight: 600;
}

#about ul {
  grid-template-columns: repeat(2, minmax(140px, 220px)) !important;
}

#about ul li::before {
  content: "→" !important;
  font-weight: 700;
}

/* ============================================
   EXPERIENCE SECTION + MOBILE ACCORDION
   ============================================ */
#experience .experience-container {
  border-radius: 1rem !important;
  border: 1px solid rgba(162, 155, 254, 0.06);
  box-shadow: 0 14px 34px rgba(8, 15, 30, 0.06),
              0 4px 12px rgba(108, 92, 231, 0.04) !important;
  overflow: hidden;
}

#experience .nav-item .nav-link {
  font-weight: 500 !important;
  font-size: 0.92rem;
  padding: 0.7rem 1.2rem !important;
  transition: all 0.2s ease !important;
}

#experience .nav-item .nav-link.active {
  border-bottom: 2.5px solid var(--primary-color) !important;
  font-weight: 600 !important;
}

#experience .tab-pane h5,
#experience .tab-pane h4 {
  font-weight: 600 !important;
}

#experience .experience-container .tab-content .tab-pane ul li::before {
  content: "→" !important;
  font-weight: 700;
}

/* Mobile: scrollable tabs instead of wrapping */
@media (max-width: 768px) {
  #experience .nav-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }

  #experience .nav-pills::-webkit-scrollbar {
    display: none;
  }

  #experience .nav-item {
    flex: 0 0 auto;
  }

  #experience .nav-item .nav-link {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.6rem 1rem !important;
  }
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.card {
  border: 1px solid rgba(162, 155, 254, 0.1) !important;
  border-radius: 1rem !important;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 12px 30px rgba(8, 15, 30, 0.05),
              0 2px 8px rgba(108, 92, 231, 0.04) !important;
}

.card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 24px 52px rgba(8, 15, 30, 0.12),
              0 8px 18px rgba(108, 92, 231, 0.09) !important;
  border-color: rgba(162, 155, 254, 0.15) !important;
}

.card .badge {
  font-weight: 500 !important;
  font-size: 0.73rem !important;
  padding: 0.3em 0.7em !important;
  border-radius: 2rem !important;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(6, 182, 212, 0.12)) !important;
  color: #d8d2ff !important;
  border: 1px solid rgba(162, 155, 254, 0.15);
  letter-spacing: 0.02em;
}

.card-body .card-title {
  font-weight: 600 !important;
  letter-spacing: -0.01em;
}

#projects .card-body,
#list-page .card-body,
#recent-posts .card-body {
  color: var(--text-color);
}

#projects .card-text,
#list-page .card-text,
#recent-posts .card-text,
footer .card-text,
footer .card-text p {
  color: var(--text-color) !important;
  line-height: 1.72;
}

#projects .card-footer,
#recent-posts .card-footer,
#list-page .post-footer,
footer .card-footer {
  color: var(--text-secondary-color) !important;
  border-top-color: rgba(162, 155, 254, 0.1) !important;
}

#projects .card-footer a,
#recent-posts .card-footer a,
#list-page .post-footer a,
footer .card-footer a {
  color: var(--text-secondary-color) !important;
}

#projects .card-footer a:hover,
#recent-posts .card-footer a:hover,
#list-page .post-footer a:hover,
footer .card-footer a:hover {
  color: var(--primary-color) !important;
  opacity: 1 !important;
}

#list-page .card-columns,
#list-page .card-group,
#list-page .row,
#my-gallery {
  background: transparent !important;
}

#list-page .card {
  background-color: var(--secondary-color) !important;
}

#my-gallery .col-md-4 {
  margin-bottom: 1rem;
}

#my-gallery .card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transform: none !important;
}

#my-gallery .card:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

#my-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 1rem;
}

#my-gallery img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 14px 34px rgba(8, 15, 30, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

#my-gallery a:hover img {
  transform: scale(1.03);
  box-shadow: 0 22px 46px rgba(8, 15, 30, 0.14);
}

/* ============================================
   ACHIEVEMENTS SECTION
   ============================================ */
#achievements .card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)) !important;
  border: 1px solid rgba(162, 155, 254, 0.1) !important;
  transition: all 0.3s ease !important;
}

#achievements .card:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05)) !important;
}

#achievements .card h5 {
  font-weight: 600 !important;
}

/* ============================================
   CONTACT SECTION + FORM
   ============================================ */
#contact a.btn {
  font-weight: 600 !important;
  padding: 0.75rem 2.2rem !important;
  border-radius: 0.75rem !important;
  border: 1.5px solid var(--primary-color) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#contact a.btn:hover {
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-blue), var(--accent-cyan)) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.25) !important;
}

/* Contact form styling */
.contact-form {
  max-width: 560px;
  margin: 1.5rem auto 0;
}

.contact-form .form-control {
  background: var(--secondary-color);
  border: 1.5px solid rgba(162, 155, 254, 0.1);
  border-radius: 0.65rem;
  padding: 0.7rem 1rem;
  color: var(--text-color);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
  outline: none;
  background: var(--secondary-color);
  color: var(--text-color);
}

.contact-form .form-control::placeholder {
  color: var(--text-secondary-color);
  opacity: 0.78;
}

.contact-form textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.contact-form .btn-submit {
  display: inline-block;
  font-weight: 600;
  padding: 0.7rem 2rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.contact-form .btn-submit:hover {
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-blue), var(--accent-cyan));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.25);
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-secondary-color);
  font-size: 0.85rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(162, 155, 254, 0.12);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid rgba(162, 155, 254, 0.06);
}

footer .h3,
#recent-posts .h3,
footer h5,
footer .card-title,
#projects .card-title,
#list-page .card-title {
  color: var(--text-color) !important;
}

/* ============================================
   SCROLLBAR
   ============================================ */
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-violet), var(--accent-blue), var(--accent-cyan)) !important;
  border-radius: 1rem;
}

/* ============================================
   SELECTION
   ============================================ */
body *::selection {
  background-color: rgba(162, 155, 254, 0.3) !important;
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.progress-bar {
  background: var(--aurora-gradient) !important;
}

/* ============================================
   TOOLTIP
   ============================================ */
.tooltip-inner {
  background: var(--secondary-background-color) !important;
  color: var(--text-color) !important;
  border: 1px solid rgba(162, 155, 254, 0.12);
  border-radius: 0.5rem !important;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

/* ============================================
   LINKS
   ============================================ */
a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* ============================================
   RESUME PAGE
   ============================================ */
.resume-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.resume-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #bcaeff 20%, #84b8ff 42%, #72edd9 68%, #ff94c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.light .resume-page h1,
body.light .resume-page h1 {
  background: linear-gradient(135deg, #5b43d6 0%, #2f6cf6 28%, #0ea5c6 54%, #d94693 82%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resume-page h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(162, 155, 254, 0.15);
  color: var(--primary-color) !important;
}

.resume-page h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.2rem;
}

.resume-page h4 {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary-color);
  opacity: 0.86;
  margin-bottom: 0.5rem;
}

.resume-page ul {
  padding-left: 1.25rem;
}

.resume-page ul li {
  margin-bottom: 0.25rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.resume-page ul li::marker {
  color: var(--primary-color);
}

.resume-page .contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary-color);
  opacity: 0.92;
  margin-bottom: 1rem;
}

.resume-page .contact-info a {
  color: var(--primary-color) !important;
  text-decoration: none;
}

.resume-page .skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.resume-page .skill-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(162, 155, 254, 0.08);
  color: var(--primary-color);
  border: 1px solid rgba(162, 155, 254, 0.15);
}

.resume-page .download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.4rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color) !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.resume-page .download-btn:hover {
  background: var(--primary-color);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.25);
}

/* ============================================
   PRINT STYLES (Resume PDF)
   ============================================ */
@media print {
  header, footer, #constellation-bg, .hero-bottom-svg,
  .download-btn, #theme-toggle, #search, .navbar,
  #search-content, .resume-header .download-btn {
    display: none !important;
  }

  body, .light > *, .dark > * {
    background: white !important;
    color: #1a1a1a !important;
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .resume-page {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .resume-page h1 {
    background: none;
    -webkit-text-fill-color: #1a1a1a;
    color: #1a1a1a !important;
    font-size: 20pt;
  }

  .resume-page h2 {
    color: #333 !important;
    font-size: 13pt;
    border-bottom: 1.5px solid #ccc;
    page-break-after: avoid;
    margin-top: 1rem;
  }

  .resume-page h3 {
    font-size: 11pt;
    page-break-after: avoid;
    margin-top: 0.75rem;
  }

  .resume-page h4 {
    font-size: 9.5pt;
  }

  .resume-page ul li {
    font-size: 9.5pt;
    margin-bottom: 0.1rem;
  }

  .resume-page .skill-tag {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    font-size: 8.5pt;
  }

  .resume-page .contact-info {
    font-size: 9pt;
  }

  a {
    color: #333 !important;
    text-decoration: none !important;
  }

  .resume-page ul li::marker {
    color: #333;
  }

  #content {
    position: static;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-proof-grid {
    grid-template-columns: 1fr;
  }

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

  .foundation-step::after {
    display: none;
  }

  #hero h2 {
    font-size: clamp(32px, 8vw, 50px) !important;
  }

  .resume-page {
    padding: 1.5rem 1rem;
  }

  .resume-page h1 {
    font-size: 2rem;
  }

  .resume-page .contact-info {
    flex-direction: column;
    gap: 0.4rem;
  }

  .resume-header {
    flex-direction: column;
  }

  .whatido-card {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .foundation-grid {
    grid-template-columns: 1fr;
  }

  #hero::before,
  #hero::after {
    width: 18rem;
    height: 18rem;
    opacity: 0.14;
  }

  #hero .subtitle {
    font-size: 0.8rem !important;
  }

  .whatido-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}
