:root {
  --bg: #0b0c0f;
  --bg-alt: #0f1116;
  --text: #e6e6e6;
  --muted: #a3a7b7;
  --card: #12141a;
  --border: #1f2330;
  --accent: #6aa7ff;
  --accent-strong: #4593ff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

body.light-theme {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #000000;
  --muted: #4a5568;
  --card: #ffffff;
  --border: #e2e8f0;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

}

* {
  box-sizing: border-box;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
}

*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(74, 116, 255, 0.15), transparent 60%),
    radial-gradient(1000px 600px at 110% 10%, rgba(25, 215, 255, 0.12), transparent 60%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.section:not(#hero-style-simple) {
  content-visibility: auto;
  contain-intrinsic-size: 100vh;
}

}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 1000;
  background: var(--card);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.container {
  width: 98%;
  max-width: 2400px;
  /* Basically uncapped to fill screen */
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
  /* Prevent spillover */
}

.section.alt {
  background: var(--bg-alt);
}

.glassy-card-section .container {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .glassy-card-section .container {
    flex-direction: column;
    align-items: center;
  }

  .section-left,
  .section-right {
    width: 100%;
    max-width: 100%;
  }
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0px;
  
}

h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
}

h3 {
  font-size: 20px;
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.accent {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: rgba(106, 167, 255, 0.1);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
  transform: translateZ(0);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(106, 167, 255, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.btn.small {
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  border-radius: 10px;
}

.btn.outline {
  background: transparent;
}

/* Header with GSAP animation - Always Fixed on Scroll */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  backdrop-filter: saturate(140%) blur(16px) !important;
  -webkit-backdrop-filter: saturate(140%) blur(16px) !important;
  background: rgba(11, 12, 15, 0.88) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  z-index: 10000 !important;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.brand-text {
  letter-spacing: .3px;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  height: 36px;
  width: 42px;
  border-radius: 10px;
  cursor: pointer;
}

.nav-list {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Ultimate Glass (Dark Mode) */
.nav-list a {
  position: relative;
  padding: 8px 20px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  border-radius: 99px;
  /* Capsule */
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Elastic Pop */
  font-family: 'Outfit', sans-serif;
  border: 1px solid transparent;
  /* Prepare for border */
}

/* Hover State: Dark Neon Glass */
.nav-list a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 10px 30px -10px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(59, 130, 246, 0.3),
    /* Blue Bloom */
    inset 0 0 10px rgba(59, 130, 246, 0.05);
  text-shadow: 0 0 12px var(--accent);
}

/* Animated Glowing Dot/Line */
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 8px var(--accent);
}

.nav-list a:hover::after {
  width: 25px;
}

/* Active State */
.nav-list a.active {
  color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.nav-list a.active::after {
  width: 25px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* The Liquid Silver */
.resume-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  padding: 0 32px;

  /* Initial Metallic State */
  background: linear-gradient(135deg, #e0e0e0 0%, #ffffff 50%, #b0b0b0 100%);
  background-size: 200% 200%;
  border-radius: 999px;

  /* Typography */
  color: #111;
  /* Dark text for contrast against silver */
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;

  /* Metallic Depth */
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.3),
    /* Drop shadow */
    inset 0 -2px 5px rgba(0, 0, 0, 0.2),
    /* Inner depth bottom */
    inset 0 2px 5px rgba(255, 255, 255, 0.8);
  /* Inner highlight top */

  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  z-index: 1;
}

/* Liquid Metal Sheen Animation */
.resume-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 70%);
  transform: scale(0);
  transition: transform 0.6s ease-out;
  pointer-events: none;
}

.resume-btn:hover {
  transform: translateY(-2px) scale(1.02);
  /* Shift gradient to look like moving metal */
  background-position: 100% 50%;
  box-shadow:
    0 8px 15px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 255, 255, 0.4),
    /* Outer glow */
    inset 0 -2px 5px rgba(0, 0, 0, 0.2),
    inset 0 2px 5px rgba(255, 255, 255, 0.8);
}

.resume-btn:hover::before {
  transform: scale(1.5);
  transition: transform 0.8s ease-out;
  opacity: 0;
}

.resume-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #111;
  stroke-width: 2.5;
  transition: transform 0.4s ease;
}

.resume-btn:hover svg {
  transform: rotate(360deg);
  stroke: #000;
}

.resume-btn:active {
  transform: scale(0.98) translateY(0);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 8px rgba(0, 0, 0, 0.3);
  /* Pressed in effect */
}

.theme-toggle {
  height: 36px;
  width: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
}

/* Hero Style Simple */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
  /* Important for containing orbs */
}

/* Gradient Fade to Blend with Next Section */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 151px;
  /* Height of the fade */
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 10;
  pointer-events: none;
}

/* Hero Canvas (Particle Network) */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at center, #1a1c23 0%, #0b0c0f 100%);
  transition: background 0.5s ease;
}

body.light-theme #hero-canvas {
  background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  animation: fadeUp 1s ease-out;
  position: relative;
  z-index: 20;
  /* Ensure content stays above the bottom fade */
}

.hero-image-container {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  position: relative;
  align-items: center;
}

.hero-image-container::before {
  content: '';
  position: absolute;
  width: 235px;
  height: 235px;
  background: linear-gradient(135deg, rgba(106, 167, 255, 0.25), rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.25));
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(16px);
  opacity: 0.3;
  animation: floatMorphBackdrop 7s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.hero-pfp {
  width: 235px;
  height: 235px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  /* Organic Glass Avatar */
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  will-change: transform, border-radius;
  animation: floatMorphComposited 7s ease-in-out infinite;

  /* Ethereal Border Effect */
  border: 2px solid rgba(255, 255, 255, 0.2);
  /* Subtle glass edge */
  box-shadow:
    inset 0 0 15px rgba(255, 255, 255, 0.15),
    /* Inner depth */
    0 0 0 3px rgba(106, 167, 255, 0.18),
    /* Outer halo ring */
    0 0 18px rgba(106, 167, 255, 0.25);
  /* Diffuse glow */

  transition: transform 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease;
}

.hero-pfp:hover {
  transform: scale(1.05) rotate(2deg);
  /* Intensify on hover */
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.3),
    0 0 0 4px rgba(106, 167, 255, 0.35),
    0 0 30px rgba(106, 167, 255, 0.4);
}

@keyframes floatMorphComposited {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  25% {
    border-radius: 65% 35% 50% 50% / 45% 65% 35% 55%;
    transform: translate3d(0, -5px, 0) rotate(2deg) scale(1.02);
  }

  50% {
    border-radius: 50% 50% 30% 70% / 55% 35% 65% 45%;
    transform: translate3d(0, -9px, 0) rotate(-2deg) scale(1.03);
  }

  75% {
    border-radius: 35% 65% 60% 40% / 60% 45% 55% 40%;
    transform: translate3d(0, -4px, 0) rotate(1.5deg) scale(1.01);
  }

  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes floatMorphBackdrop {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: scale(0.98) rotate(0deg);
  }

  50% {
    border-radius: 35% 65% 65% 35% / 40% 60% 40% 60%;
    transform: scale(1.06) rotate(180deg);
  }

  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: scale(0.98) rotate(360deg);
  }
}

/* Background Marquee */
.hero-marquee {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%) rotate(-5deg);
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Tight packing */
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.marquee-track {
  display: flex;
  gap: 4vw;
  width: max-content;
  /* Default animation overridden by specific classes */
}

.marquee-track.scroll-left {
  animation: scrollLeft 25s linear infinite;
}

.marquee-track.scroll-right {
  animation: scrollRight 25s linear infinite;
}

.hero-text-big {
  font-family: 'Outfit', sans-serif;
  font-size: 13vw;
  /* Slightly smaller to fit two rows nicely */
  font-weight: 900;
  line-height: 0.9;
  margin: 0;
  white-space: nowrap;
  color: #fff;
}

/* Hollow/Stroke Variant */
.hero-text-big.stroke {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.5);
}

/* Light Mode Override */
body.light-theme .hero-marquee {
  opacity: 0.08;
  mix-blend-mode: multiply;
}

body.light-theme .hero-text-big {
  color: #000;
}

body.light-theme .hero-text-big.stroke {
  -webkit-text-stroke: 2px rgba(0, 0, 0, 0.5);
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

/* Ensure content stays on top */
.hero-content {
  position: relative;
  z-index: 50;
  /* High priority to sit above fade (z- and marquee (z */
}

/* Hide top header navbar */
.site-header {
  display: none !important;
}

/* Hero Actions - All buttons aligned at same height with silver animated gradient */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions .btn {
  height: 44px;
  padding: 0 22px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  background: linear-gradient(110deg, #9ca3af, #ffffff, #9ca3af);
  background-size: 200% 100%;
  color: #000000;
  border: none;
  animation: silverFlow 3s ease infinite;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Home button hidden on initial landing page, appears when split mode activates */
.hero-actions .btn-home,
.hero-actions a[href="#home"] {
  display: none !important;
}

body.split-mode-active .hero-actions .btn-home,
body.split-mode-active .hero-actions a[href="#home"] {
  display: inline-flex !important;
}

.hero-actions .btn:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.65);
  color: #000000;
}

#top-resume-btn,
.hero-actions .top-resume-btn {
  position: fixed;
  top: 20px;
  right: 80px;
  z-index: 9999;
}

#theme-toggle,
.theme-toggle {
  position: fixed !important;
  top: 20px !important;
  right: 24px !important;
  z-index: 10000 !important;
  height: 44px;
  width: 44px;
  border-radius: 99px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(110deg, #9ca3af, #ffffff, #9ca3af);
  background-size: 200% 100%;
  animation: silverFlow 3s ease infinite;
  border: none;
  color: #000000;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  transform: translateZ(0);
}

#theme-toggle:hover,
.theme-toggle:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.65);
}

body.light-theme #theme-toggle,
body.light-theme .theme-toggle {
  color: #000000;
}

/* Silver Animation for 'View Work' Button */
.hero-actions .btn.primary {
  background: linear-gradient(110deg, #9ca3af, #ffffff, #9ca3af);
  background-size: 200% 100%;
  color: #000;
  font-weight: 700;
  border: none;
  animation: silverFlow 3s ease infinite;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-actions .btn.primary:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.6);
}

/* GPU Composited Metallic Animation */
@keyframes silverFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Hero Email Display */
.hero-email-display {
  position: absolute;
  bottom: 40px;
  right: 50px;
  z-index: 55;
  font-family: 'Space Mono', monospace;
  /* Authentic Code Font */
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0px;
  color: var(--text);
  cursor: pointer;
  /* Clickable */

  /* Terminal Setup */
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--accent);
  padding-left: 20px;
  box-sizing: border-box;

  /* Initial State (Typed Out) */
  width: auto;
  max-width: 350px;
  will-change: opacity;
  animation: blink-block 1.2s ease-in-out infinite;
}

.hero-email-display:hover {
  color: #fff;
  border-right-color: #fff;
}

/* Scroll Retract State */
.hero-email-display.retract {
  max-width: 40px;
  opacity: 0.7;
}

/* Success/Copied State */
.hero-email-display.copy-success {
  color: #4ade80;
  border-right-color: #4ade80;
}

/* Prompt Styles */
.hero-email-display::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Success Prompt */
.hero-email-display.copy-success::before {
  content: '✓';
  color: #4ade80;
}

@keyframes blink-block {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (max-width: 768px) {
  .hero-email-display {
    display: none;
  }
}

/* Theme Toggle */
.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  /* Glassy */
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(15deg) scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent);
  /* Glow */
}

/* SVG Icon Controls */
.theme-toggle svg {
  position: absolute;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  /* Bouncy spring */
}

/* Dark Mode Default State (Moon Visible, Sun Hidden) */
.icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

.icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
  color: #a78bfa;
  /* Moon Color */
}

/* Light Mode State (Sun Visible, Moon Hidden) */
/* Using body class */
body.light-theme .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
  color: #f59e0b;
  /* Sun Color */
}

body.light-theme .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

/* Light Mode Refinements */
body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .nav-list a {
  color: #555;
  font-weight: 600;
}

/* Ultimate Aurora Glass (Light Mode) */
body.light-theme .nav-list a:hover {
  background: linear-gradient(120deg, #dbeafe 0%, #ede9fe 50%, #fce7f3 100%);
  background-size: 200% 100%;
  animation: nav-gradient-flow 3s ease infinite;
  color: #1e1b4b;
  /* Deep Navy */
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow:
    0 10px 30px -5px rgba(124, 58, 237, 0.25),
    /* Purple Glow */
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transform: translateY(-3px) scale(1.05);
  /* Elastic Lift */
  text-shadow: none;
  font-weight: 700;
  padding: 8px 22px;
  /* Wide premium feel */
  overflow: hidden;
}

/* Retain sweep animation */
body.light-theme .nav-list a:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: skewX(-25deg);
  opacity: 1;
  animation: aurora-sweep 0.6s ease-in-out forwards;
  box-shadow: none;
  border-radius: 0;
}

.site-footer {
  position: relative;
  overflow: hidden;
}

.footer-pet-container {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 120px;
  /* Taller for Three-dimensional */
  pointer-events: none;
  z-index: 50;
  /* Z-Index boost */
}

.snack-wrapper {
  position: absolute;
  bottom: 0;
  width: 150px;
  height: 150px;
  border: none;
  left: 0;
}

.snack-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
  outline: none;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  /* Real shadow on the canvas shape */
}

/* Patrol Animation */
@keyframes snack-patrol {
  0% {
    left: -150px;
    transform: scaleX(1);
  }

  45% {
    left: 100%;
    transform: scaleX(1);
  }

  50% {
    left: 100%;
    transform: scaleX(1);
  }

  95% {
    left: -150px;
    transform: scaleX(1);
  }

  100% {
    left: -150px;
    transform: scaleX(1);
  }
}

@keyframes aurora-sweep {
  0% {
    left: -100%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  100% {
    left: 200%;
    opacity: 0;
  }
}

body.light-theme .theme-toggle {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #333;
  box-shadow: none;
}

body.light-theme .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

body.light-theme .hero-email-display {
  color: #333;
  border-right-color: var(--accent);
}

body.light-theme .hero-email-display:hover {
  color: var(--accent-strong);
  border-right-color: var(--accent-strong);
}

/* ANIMATED HERO NAME (SHIVAM CHAUHAN) */
.hero-main-name {
  font-size: clamp(1.6rem, 3.8vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 14px 0 16px 0;
  text-align: center;
  position: relative;
  z-index: 2;
  line-height: 1.15;
}

.name-gradient-animated {
  display: inline-block;
  color: #f8fafc;
  background: none;
  -webkit-text-fill-color: currentColor;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  cursor: default;
}

.name-gradient-animated:hover {
  transform: scale(1.02);
  color: #ffffff;
}

body.light-theme .name-gradient-animated {
  color: #0f172a;
  background: none;
  -webkit-text-fill-color: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

.hero-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  letter-spacing: 0.25em;
  /* Ultra-wide premium tracking */
  text-transform: uppercase;

  display: inline-block;
  padding: 8px 24px;
  margin-bottom: 2rem;

  /* Glass Pill Design - No Border */
  background: rgba(106, 167, 255, 0.05);
  border: none;
  border-radius: 100px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  color: var(--accent);
  font-weight: 600;

  position: relative;
}

.hero-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-grid .separator {
  opacity: 0.5;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-grid {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-grid .separator {
    display: none;
  }

  .hero-grid span {
    background: var(--bg-alt);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .glassy-card-section::before {
    display: none;
  }
}

.profile-section {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 200px;
}

.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, #d3cfd8 0%, #070c3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(12, 18, 30, 0.06);
  overflow: hidden;
  animation: rotateProfile 10s linear infinite;
}

@keyframes rotateProfile {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #fff;
  align-items: flex-end;
  text-align: center;
  justify-content: center;
}

.card-name {
  font-size: 30px;
  font-weight: 600;
  justify-content: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  margin: 0;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.info-label {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-value {
  font-size: 16px;
  font-weight: 550;
}

.glassy-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  width: 100%;
}

.contact-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.contact-btn:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(69, 147, 255, 0.5);
}

/* Projects Enhanced */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 65px !important;
}

.card.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
  position: relative;
}

.card.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(106, 167, 255, 0.1), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.card.project-card:hover::before {
  left: 100%;
}

.card.project-card:hover {
  transform: translateY(-12px) rotateX(5deg) !important;
  border-color: rgba(106, 167, 255, 0.5);
  box-shadow: 0 20px 60px rgba(106, 167, 255, 0.3);
}

.card-media {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card.project-card:hover .card-media img {
  transform: scale(1.15) rotate(2deg);
}

.card-body {
  padding: 20px;
}

.card-title {
  margin-bottom: 8px;
  opacity: 1 !important;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
  font-size: 1.38rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  color: #f8fafc !important;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-theme .card-title {
  color: #0f172a !important;
  background: none !important;
  -webkit-text-fill-color: #0f172a !important;
}

.card-text {
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tags span {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.3s ease;
}

.card.project-card:hover .tags span {
  background: rgba(106, 167, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.card-actions {
  display: flex;
  gap: 10px;
}

/* Mini Projects Section */
.mini-projects-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.mini-projects-scroll::-webkit-scrollbar {
  height: 8px;
}

.mini-projects-scroll::-webkit-scrollbar-track {
  background: var(--bg-alt);
  border-radius: 10px;
}

.mini-projects-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.mini-projects-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--accent-strong);
}

.mini-project-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  flex-shrink: 0;
  width: 200px;
}

.mini-project-step::after {
  content: '→';
  position: absolute;
  font-size: 28px;
  color: var(--accent);
  top: 16px;
  right: -25px;
  z-index: 1;
  font-weight: bold;
}

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

.mini-project-step .step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(106, 167, 255, 0.3);
  z-index: 2;
}

.mini-project-step .step-content {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-project-step .step-content:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(106, 167, 255, 0.15);
}

.project-icon {
  font-size: 32px;
  margin-bottom: 4px;
}

.mini-project-step .step-content h3 {
  margin: 0;
  font-size: 16px;
  color: var(--accent);
  font-weight: 700;
}

.mini-project-step .step-content p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.tags-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin: 4px 0;
}

.tags-mini span {
  padding: 3px 8px;
  font-size: 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--muted);
}

.mini-project-step .step-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(106, 167, 255, 0.1);
  color: var(--accent);
  margin-top: 4px;
}

.btn-mini {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.btn-mini:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.mini-project-step.completed .step-number {
  background: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.mini-project-step.completed .step-status {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.mini-project-step.in-progress .step-number {
  background: linear-gradient(135deg, var(--accent) 0%, #a855f7 100%);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 4px 12px rgba(106, 167, 255, 0.5);
}

.mini-project-step.in-progress .step-status {
  background: linear-gradient(135deg, rgba(106, 167, 255, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  color: #a855f7;
  animation: glow 2s ease-in-out infinite;
}

/* Simple About Section */
.about-simple-content {
  width: 100%;
  max-width: 1400px;
  /* Significantly wider */
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.about-simple-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 24px;
}

.about-actions-simple {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(168, 85, 247, 0.3);
  }

  50% {
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
  }
}

/* Learning Path Styles - Horizontal Scroll Redesign */
.learning-path-container {
  display: flex;
  gap: 32px;
  /* Gap handled by wrapper in JS */
  padding: 20px 0 10px 0;
  /* Increased top padding to show absolute numbers */
  overflow: hidden;
  /* Hide scrollbar for marquee */
  max-width: 100vw;
  margin: 0;
  width: 100%;
}

/* Custom Scrollbar for Learning Path - Hidden */
.learning-path-container::-webkit-scrollbar {
  display: none;
}

.learning-step {
  scroll-snap-align: start;
  flex: 0 0 300px;
  /* Fixed width cards */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}

/* Remove old zig-zag positioning */
.learning-step:nth-child(n) {
  grid-row: auto;
  grid-column: auto;
}

.step-number {
  width: 36px;
  
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(106, 167, 255, 0.3);
  z-index: 2;
  position: absolute;
  top: -14px;
  /* Less protrusion */
  left: 16px;
  border: 4px solid var(--bg);
  /* Keep cutout effect */
}

.learning-step {
  scroll-snap-align: start;
  flex: 0 0 220px;
  /* Reduced width */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  padding-top: 20px;
}

.step-content {
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px 16px 16px;
  /* Compact padding */
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: left;
  width: 100%;
  height: 100%;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 160px;
  /* Reduced height */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Light Theme Specific Overrides */
body.light-theme .step-content {
  background: rgba(255, 255, 255, 0.85);
  /* Frosty White */
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 60, 100, 0.1);
}

/* Hover Effect: Three-dimensional Lift */
.step-content:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  box-shadow: 0 15px 30px rgba(106, 167, 255, 0.15);
}

.step-content h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  
  color: var(--accent);
  font-weight: 700;
}

.step-content p {
  margin: 0 0 6px 0;
  font-size: 12px;
  
  color: var(--muted);
  line-height: 1.35;
}

.step-status {
  display: inline-block;
  font-size: 10px;
  
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(106, 167, 255, 0.1);
  color: var(--accent);
  margin-top: 2px;
}

.learning-step.completed .step-number {
  background: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.learning-step.completed .step-status {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.learning-step.in-progress .step-number {
  background: linear-gradient(135deg, var(--accent) 0%, #a855f7 100%);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 4px 12px rgba(106, 167, 255, 0.5);
}

.learning-step.in-progress .step-status {
  background: linear-gradient(135deg, rgba(106, 167, 255, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  color: #a855f7;
  animation: glow 2s ease-in-out infinite;
}

/* Featured Learning Steps (C and C++) */
.learning-step.featured {
  z-index: 10;
}

.learning-step.featured .step-number {
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.learning-step.featured .step-content {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
  border-color: rgba(16, 185, 129, 0.3);
}

.learning-step.featured .step-content h3 {
  background: linear-gradient(135deg, #10b981, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6), 0 0 40px rgba(16, 185, 129, 0.3);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.8), 0 0 60px rgba(16, 185, 129, 0.5);
    transform: scale(1.05);
  }
}

/* Experience : Vertical Card Stack */
.timeline-stack-container {
  position: relative;
  padding: 100px 0;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-card-stack {
  position: sticky;
  top: 15vh;
  /* Stick to top */
  height: 60vh;
  margin-bottom: 20vh;
  /* Spacing for next card */
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.stack-content {
  width: 90%;
  max-width: 800px;
  padding: 60px;
  background: rgba(22, 22, 26, 0.95);
  /* Opaque background to hide prev card */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  /* Shadow up to separate from background */
  text-align: center;
  position: relative;
  transform-style: preserve-3d;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.intro-stack-card .stack-content {
  background: linear-gradient(135deg, #1f1f23, #151518);
  border-color: var(--accent);
}

.stack-year {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 20px;
  color: var(--accent);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.stack-icon {
  font-size: 64px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(106, 167, 255, 0.4));
}

.timeline-card-stack h2 {
  font-size: 56px;
  margin: 0 0 16px;
  background: linear-gradient(90deg, #fff, #bbb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.timeline-card-stack h3 {
  font-size: 42px;
  color: var(--text);
  margin: 0 0 12px;
  font-weight: 800;
}

.timeline-card-stack h4 {
  font-size: 20px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 24px;
}

.stat-label {
  font-size: 0.9rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

body.light-theme .stat-label {
  color: #475569;
  /* Slate */
  font-weight: 600;
}

.timeline-card-stack p {
  font-size: 18px;
  line-height: 1.7;
  color: #a3a7b7;
  max-width: 600px;
  margin: 0 auto;
}

/* Mobile: Normal vertical stack, no sticky */
@media (max-width: 768px) {
  .timeline-card-stack {
    position: relative;
    top: auto;
    height: auto;
    margin-bottom: 60px;
  }
}

/* Minimalist Skill Chips Grid */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.skill-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

body.light-theme .skill-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.skill-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(106, 167, 255, 0.15);
}

body.light-theme .skill-card:hover {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.15);
}

.skill-icon {
  display: none !important;
}

.skill-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* Backdrop */
.backdrop-ocean-premium {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #0f172a;
  transition: background 0.5s ease;
}

body.light-theme .backdrop-ocean-premium {
  background: #f0f9ff;
  /* Very Light Blue (Sky */
}

.ocean-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.1), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(30, 64, 175, 0.1), transparent 50%);
}

body.light-theme .ocean-gradient {
  background: radial-gradient(circle at 0% 0%, rgba(14, 165, 233, 0.05), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.05), transparent 50%);
}

.ocean-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: rgba(56, 189, 248, 0.05);
  filter: blur(100px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: oceanPulse 10s ease-in-out infinite;
}

body.light-theme .ocean-glow {
  background: rgba(14, 165, 233, 0.08);
  /* Stronger glow for light mode visibility */
  filter: blur(120px);
}

@keyframes oceanPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.skill-card::before {
  display: none;
}

.progress-bar,
.progress-fill,
.progress-text {
  display: none !important;
}

/* Enhanced Contact Section */
/* Contact Section : The Liquid Chrome Construct */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  margin-top: 100px;
  perspective: 2000px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Minimalist Essence */

/* Clean Contact Cards */
.contact-card {
  position: relative;
  background: transparent;
  padding: 0;
  border: none;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: opacity 0.3s ease;
  box-shadow: none;
  overflow: visible;
}

.contact-card::before {
  display: none;
}

/* Remove heavy fill */

.contact-card:hover {
  transform: translateX(5px);
  background: transparent;
  box-shadow: none;
  border: none;
  opacity: 0.8;
}

/* Minimalist Icon */
.contact-icon {
  width: 48px;
  height: 48px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: none;
  /* No spinning */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Simple Typography */
.contact-card h3 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  transition: color 0.3s;
}

.contact-card:hover h3 {
  color: #888;
}

.contact-card p {
  margin: 0;
  font-family: 'Inter', sans-serif;
  /* Back to clean font */
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-shadow: none;
}

.contact-card:hover p {
  color: #fff;
  text-shadow: none;
}

/* Minimalist Socials */
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #aaa;
  font-size: 0;
  transition: all 0.3s ease;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.social-btn::before {
  display: none;
}

/* Remove ripple */

.social-btn:hover {
  transform: translateY(-2px);
  border-color: #fff;
  background: #fff;
  color: #000;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.social-btn:hover svg {
  transform: none;
  filter: none;
}

/* Contact Form : The Quantum Glass Monolith */
.contact-form-wrapper {
  background: rgba(5, 5, 5, 0.85);
  /* Deep Void */
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  padding: 56px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  isolation: isolate;
}

/* Texture Overlay */
.contact-form-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

/* Holographic Corner Accents */
.contact-form-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, #fff 2px, transparent 2px) 0 0,
    linear-gradient(to bottom, #fff 2px, transparent 2px) 0 0,
    linear-gradient(to left, #fff 2px, transparent 2px) 100% 0,
    linear-gradient(to bottom, #fff 2px, transparent 2px) 100% 0,
    linear-gradient(to left, #fff 2px, transparent 2px) 100% 100%,
    linear-gradient(to top, #fff 2px, transparent 2px) 100% 100%,
    linear-gradient(to right, #fff 2px, transparent 2px) 0 100%,
    linear-gradient(to top, #fff 2px, transparent 2px) 0 100%;
  background-size: 10px 10px;
  background-repeat: no-repeat;
  opacity: 0.1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.contact-form-wrapper:hover::after {
  opacity: 0.4;
}

/* Active Glow Border */
.contact-form-wrapper:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(255, 255, 255, 0.05);
}

.form {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Field Labels - Tech Spec Style */
label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #555;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Active Label with Line Indicator */
.field:focus-within label {
  color: #fff;
}

.field:focus-within label::after {
  content: '';
  height: 1px;
  flex-grow: 1;
  background: var(--accent, #fff);
  margin-left: 12px;
  opacity: 0.5;
  transform-origin: left;
  animation: lineGrow 0.4s ease-out forwards;
}

@keyframes lineGrow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* Data Slot Inputs */
input,
textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 15px;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text, #ffffff) !important;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: none;
}

/* Focused input styling with clear contrast */
input:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--text, #ffffff) !important;
  border-color: var(--accent, #6aa7ff) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(106, 167, 255, 0.25) !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  opacity: 1;
  transition: opacity 0.3s;
}

input:focus::placeholder,
textarea:focus::placeholder {
  opacity: 0.6;
}

.error {
  color: #ff4444;
  min-height: 1em;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Command Deck Footer */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Spacing */
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  /* Separator line */
  position: relative;
}

/* Status Terminal */
#form-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

/* Status Indicator Dot */
#form-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #00ff88;
  /* Cyber Green */
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff88;
  animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
  0% {
    opacity: 0.5;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }

  100% {
    opacity: 0.5;
    transform: scale(0.9);
  }
}

/* Empty status text fallback */
#form-status:empty::after {
  content: '';
}

/* Liquid Chrome Send Button */
.submit-btn {
  position: relative;
  background: #0a0a0a;
  color: #fff;
  padding: 16px 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Liquid Fill Layer */
.submit-btn::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      #ffffff 0%,
      #e0e0e0 50%,
      #a0a0a0 100%);
  transition: all 0.5s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: 0;
  border-radius: 50% 50% 0 0;
  transform: scaleY(0);
  transform-origin: bottom;
}

.submit-btn span,
.submit-btn svg {
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.submit-btn:hover {
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.submit-btn:hover::before {
  top: 0;
  border-radius: 0;
  transform: scaleY(1);
}

.submit-btn:hover span {
  color: #000;
}

.submit-btn:hover svg {
  fill: #000;
  transform: translateX(4px) scale(1.1);
}

.submit-btn:active {
  transform: scale(0.98);
}

#form-status {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
}

/* Premium Compact Resume Card (Glass Pass) */
/* Resume : The Data Core */
.resume-download-card.active-v2 {
  margin-top: 60px;
  background: rgba(22, 22, 26, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.resume-download-card.active-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.resume-download-card.active-v2:hover {
  transform: translateY(-4px);
  background: rgba(22, 22, 26, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.1);
}

.resume-download-card.active-v2:hover::before {
  opacity: 1;
}

.resume-content-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.resume-icon-box {
  display: none;
  width: 48px;
  height: 48px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: all 0.3s ease;
}

.resume-download-card.active-v2:hover .resume-icon-box {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05) rotate(-5deg);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.resume-text-group h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.resume-text-group p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* Liquid Chrome Flux */
.btn-v2-resume {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 38px;
  background: #d4d4d4;
  color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 99px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  /* Bouncy spring */
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* Light Mode: High Visibility "Sapphire Surge" */
[data-theme="light"] .btn-v2-resume {
  background: #ffffff;
  color: #0066cc;
  /* Strong Blue Text */
  border: 1px solid #0066cc;
  box-shadow:
    0 8px 20px rgba(0, 102, 204, 0.2),
    inset 0 0 0 0px #0066cc;
}

[data-theme="light"] .btn-v2-resume svg {
  stroke: #0066cc;
}

/* Base Liquid Layer */
.btn-v2-resume::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      #ffffff 0%,
      #e0e0e0 40%,
      #a0a0a0 100%);
  border-radius: 50% 50% 0 0;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: -1;
}

/* Light Mode Hover Gradient (Vibrant Sapphire Liquid) */
[data-theme="light"] .btn-v2-resume::before {
  background: linear-gradient(135deg, #0066cc 0%, #0050a0 100%);
}

/* Secondary Reflection (The "Chrome" shine) */
.btn-v2-resume::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
      transparent 40%,
      rgba(255, 255, 255, 0.8) 50%,
      transparent 60%);
  transform: translateX(-150%) skewX(-45deg);
  transition: transform 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.btn-v2-resume:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 255, 255, 0.4);
  border-color: #fff;
}

[data-theme="light"] .btn-v2-resume:hover {
  color: #ffffff;
  /* Text turns white on hover */
  border-color: transparent;
  box-shadow:
    0 15px 35px rgba(0, 102, 204, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .btn-v2-resume:hover svg {
  stroke: #ffffff;
}

.btn-v2-resume:hover::before {
  top: 0;
  border-radius: 0;
}

.btn-v2-resume:hover::after {
  transform: translateX(150%) skewX(-45deg);
  transition-delay: 0.1s;
}

.btn-v2-resume svg {
  fill: none;
  stroke: #1a1a1a;
  stroke-width: 2.5px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.btn-v2-resume:hover svg {
  transform: rotate(-15deg) scale(1.2);
}

.btn-v2-resume span {
  position: relative;
  z-index: 2;
}

.btn-v2-resume:active {
  transform: scale(0.95) translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .resume-download-card.active-v2 {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 20px;
  }

  .resume-content-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  .btn-v2-resume {
    width: 100%;
    justify-content: center;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-social-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.footer-social-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.footer-social-btn:hover::before {
  left: 100%;
}

.footer-social-btn.github {
  background: #333;
  color: #fff;
  border: 1px solid #555;
}

.footer-social-btn.github:hover {
  background: #24292e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(36, 41, 46, 0.4);
}

.footer-social-btn.linkedin {
  background: #0077b5;
  color: #fff;
  border: 1px solid #006699;
}

.footer-social-btn.linkedin:hover {
  background: #006399;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

.footer-social-btn.twitter {
  background: #000;
  color: #fff;
  border: 1px solid #333;
}

.footer-social-btn.twitter:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-card {
    flex-direction: column;
    padding: 24px;
    gap: 24px;
  }

  .profile-image {
    width: 150px;
    height: 150px;
  }

  .info-section {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin: 0;
    padding: 24px;
    text-align: left;
    max-width: 100%;
  }

  .timeline-modern::before {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .learning-path-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .learning-step:nth-child(1),
  .learning-step:nth-child(2),
  .learning-step:nth-child(3) {
    grid-row: 1;
  }

  .learning-step:nth-child(4),
  .learning-step:nth-child(5) {
    grid-row: 2;
  }

  .learning-step:nth-child(6),
  .learning-step:nth-child(7),
  .learning-step:nth-child(8) {
    grid-row: 3;
  }

  .learning-step:nth-child(4),
  .learning-step:nth-child(5),
  .learning-step:nth-child(6),
  .learning-step:nth-child(7),
  .learning-step:nth-child(8) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-list {
    position: absolute;
    right: 4%;
    top: 64px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    display: none;
    flex-direction: column;
    min-width: 200px;
    box-shadow: var(--shadow);
  }

  .nav-list.show {
    display: flex;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }

  .card-name {
    font-size: 24px;
    text-align: center;
  }

  .resume-text {
    display: none;
  }

  .learning-path-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .learning-step {
    grid-row: auto !important;
    grid-column: 1 !important;
  }

  .step-content {
    padding: 12px 16px;
    max-width: 200px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Cursor trail effect */
.cursor-trail {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  mix-blend-mode: screen;
}

/* Floating particles */
.particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
  z-index: 1;
}

/* Magnetic button effect */
.btn.magnetic {
  position: relative;
  transition: transform 0.2s ease;
}

/* GLOBAL: IMMERSIVE SECTION THEMES */

/* Base Backdrop Container */
.section-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* Let clicks pass through */
  overflow: hidden;
  /* Fade edges to blend sections together */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Ensure content sits above backdrop */
.section .container {
  position: relative;
  z-index: 1;
}

/* Theme: DEEP OCEAN (About Section) */
.backdrop-ocean .ocean-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 100%);
  /* Default Dark */
}

.backdrop-ocean .ocean-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px, 40px 40px;
  background-position: 0 0, 10px 10px;
  animation: oceanDrift 20s linear infinite;
  opacity: 0.3;
}

.backdrop-ocean .ocean-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, #020617, transparent);
  filter: blur(20px);
}

@keyframes oceanDrift {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50px);
  }
}

/* Theme: VOLCANIC FORGE (Projects) */
.backdrop-forge .forge-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2a0a0a 0%, #0f172a 100%);
}

.backdrop-forge .forge-embers {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ef4444 1px, transparent 1px);
  background-size: 50px 50px;
  animation: emberRise 10s linear infinite;
  opacity: 0.4;
}

.backdrop-forge .forge-rocks {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: #1c1917;
  transform: rotate(45deg);
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.2);
  filter: blur(40px);
}

@keyframes emberRise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(-100px) scale(0);
    opacity: 0;
  }
}

/* Theme: COSMIC NEBULA (Learning Path) */
.backdrop-cosmos .cosmos-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, #2e1065 0%, #020617 70%);
}

.backdrop-cosmos .cosmos-stars {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
    radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
    radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
  background-size: 550px 550px, 350px 350px, 250px 250px;
  background-position: 0 0, 40px 60px, 130px 270px;
  animation: starTwinkle 5s infinite;
}

.backdrop-cosmos .cosmos-nebula {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent 70%);
  filter: blur(60px);
  animation: nebulaPulse 10s ease-in-out infinite alternate;
}

@keyframes starTwinkle {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes nebulaPulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }

  100% {
    transform: scale(1.2);
    opacity: 0.6;
  }
}

/* Theme: CYBER CITY (Skills) */
.backdrop-city .city-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
}

.backdrop-city .city-grid {
  position: absolute;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 50%;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.2) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(500px) rotateX(60deg);
  animation: gridScroll 20s linear infinite;
}

.backdrop-city .city-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: repeat-x bottom;
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.2);
}

@keyframes gridScroll {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 100%;
  }
}

/* Theme: AURORA BOREALIS (Contact) */
.backdrop-aurora .aurora-sky {
  position: absolute;
  inset: 0;
  background: black;
}

.backdrop-aurora .aurora-lights {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 80%;
  background: conic-gradient(from 180deg at 50% 50%, #000 0deg, #10b981 40deg, #3b82f6 100deg, #000 160deg);
  filter: blur(80px);
  opacity: 0.4;
  animation: auroraWave 10s ease-in-out infinite alternate;
}

.backdrop-aurora .aurora-treeline {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, #000, transparent);
}

@keyframes auroraWave {
  0% {
    transform: rotate(0deg) scale(1);
  }

  100% {
    transform: rotate(10deg) scale(1.1);
  }
}

/* LIGHT MODE OVERRIDES FOR BACKDROPS */

/* Ocean -> Tropical Water */
body.light-theme .backdrop-ocean .ocean-gradient {
  background: linear-gradient(180deg, #bae6fd 0%, #e0f2fe 100%);
}

body.light-theme .backdrop-ocean .ocean-particles {
  background-image:
    radial-gradient(rgba(56, 189, 248, 0.4) 1px, transparent 1px);
}

/* Forge -> Sunny Desert */
body.light-theme .backdrop-forge .forge-gradient {
  background: linear-gradient(135deg, #ffedd5 0%, #fff7ed 100%);
}

body.light-theme .backdrop-forge .forge-embers {
  background-image: radial-gradient(#f97316 1px, transparent 1px);
}

body.light-theme .backdrop-forge .forge-rocks {
  background: #f1f5f9;
  box-shadow: none;
}

/* Cosmos -> Cloud Kingdom */
body.light-theme .backdrop-cosmos .cosmos-gradient {
  background: linear-gradient(to bottom, #dbeafe 0%, #fff 100%);
}

body.light-theme .backdrop-cosmos .cosmos-stars {
  display: none;
}

body.light-theme .backdrop-cosmos .cosmos-nebula {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
}

/* City -> Blueprint Grid */
body.light-theme .backdrop-city .city-sky {
  background: #f8fafc;
}

body.light-theme .backdrop-city .city-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.2) 1px, transparent 1px);
}

/* Aurora -> Northern Morning */
body.light-theme .backdrop-aurora .aurora-sky {
  background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
}

body.light-theme .backdrop-aurora .aurora-lights {
  background: conic-gradient(from 180deg at 50% 50%, #fff 0deg, #34d399 40deg, #60a5fa 100deg, #fff 160deg);
  opacity: 0.3;
}

/* GLOBAL UNIFIER: FILM GRAIN */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg viewBox=\"0 0 200 200\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cfilter id=\"noiseFilter\"%3E%3CfeTurbulence type=\"fractalNoise\" baseFrequency=\"0.65\" numOctaves=\"3\" stitchTiles=\"stitch\"/%3E%3C/filter%3E%3Crect width=\"100%25\" height=\"100%25\" filter=\"url(%23noiseFilter)\" opacity=\"0.05\"/%3E%3C/svg%3E');
  opacity: 0.03;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Resume Card Light Mode Fix */
body.light-theme .resume-download-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

body.light-theme .resume-download-card:hover {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 15px 40px -10px rgba(37, 99, 235, 0.2);
}

body.light-theme .resume-download-card h3 {
  color: #1e293b;
}

body.light-theme .resume-download-card .resume-icon {
  filter: drop-shadow(0 0 5px rgba(37, 99, 235, 0.3));
}

/* THEME : TRULY UNIQUE MEGA-STRUCTURES */

/* ABOUT: The Kelp Cathedral (Theme ) */
/* Vertical light-bars swaying like tall underwater kelp */
.backdrop-ocean .ocean-structure {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  opacity: 0.5;
  background-image:
    linear-gradient(90deg,
      transparent 0%,
      rgba(56, 189, 248, 0.05) 10%,
      transparent 20%,
      rgba(56, 189, 248, 0.02) 40%,
      transparent 50%,
      rgba(56, 189, 248, 0.05) 70%,
      transparent 80%,
      rgba(56, 189, 248, 0.03) 90%);
  background-size: 200% 100%;
  filter: blur(20px);
  animation: kelpSway 15s ease-in-out infinite alternate;
  z-index: 0;
}

.backdrop-ocean .ocean-structure::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(15, 23, 42, 1), transparent);
}

@keyframes kelpSway {
  0% {
    transform: skewX(2deg) translateX(-20px);
  }

  100% {
    transform: skewX(-2deg) translateX(20px);
  }
}

/* PROJECTS: The Industrial Forge (Giant Gears) */
/* Circular mechanics, distinct from mountains */
.backdrop-forge .forge-structure {
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 500px;
  height: 500px;
  background: transparent;
  border: 40px dashed #3f1111;
  border-radius: 50%;
  opacity: 0.3;
  animation: gearSpin 20s linear infinite;
  clip-path: none;
  border-radius: 50%;
}

.backdrop-forge .forge-structure::before {
  content: '';
  position: absolute;
  inset: -60px;
  border: 30px dashed #2a0a0a;
  border-radius: 50%;
  animation: gearSpinReverse 30s linear infinite;
}

/* Remove Volcano Lava */
.backdrop-forge .forge-structure::after {
  display: none;
}

@keyframes gearSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes gearSpinReverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

/* LEARNING: The Vortex (Theme ) */
/* Deep space tunnel effect */
.backdrop-cosmos .cosmos-structure {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200vw;
  height: 200vw;
  background: conic-gradient(from 0deg, transparent, rgba(168, 85, 247, 0.05), transparent 30%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: vortexSpin 60s linear infinite;
  opacity: 0.7;
  border: none;
  box-shadow: none;
}

.backdrop-cosmos .cosmos-structure::after {
  content: '';
  position: absolute;
  inset: 20%;
  background: radial-gradient(circle, #000 40%, transparent 70%);
  /* Event Horizon */
  border-radius: 50%;
}

@keyframes vortexSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* SKILLS: The Cyber Grid Floor (Theme ) */
/* Perspective floor grid moving forward */
.backdrop-city .city-skyline {
  bottom: -20%;
  width: 200%;
  left: -50%;
  height: 60%;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.2) 2px, transparent 2px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.2) 2px, transparent 2px);
  background-size: 80px 80px;
  background-position: 0 0;
  transform: perspective(300px) rotateX(60deg);
  animation: gridRun 4s linear infinite;
  opacity: 0.3;
  mask-image: linear-gradient(to top, black, transparent);
  -webkit-mask-image: linear-gradient(to top, black, transparent);
}

@keyframes gridRun {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 80px;
  }
}

/* CONTACT: The Ice Shards (Theme ) */
/* Sharp aggressive crystal formations */
.backdrop-aurora .aurora-structure {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(16, 185, 129, 0.1), transparent);
  clip-path: polygon(0% 100%, 10% 20%, 20% 100%,
      30% 10%, 40% 100%,
      50% 30%, 60% 100%,
      70% 5%, 80% 100%,
      90% 40%, 100% 100%);
  filter: blur(5px);
  opacity: 0.6;
  transform: none;
  animation: shardPulse 5s ease-in-out infinite alternate;
  border-radius: 0;
}

.backdrop-aurora .aurora-structure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0.1;
  clip-path: inherit;
}

@keyframes shardPulse {
  0% {
    filter: blur(5px) drop-shadow(0 0 10px rgba(16, 185, 129, 0.2));
  }

  100% {
    filter: blur(2px) drop-shadow(0 0 20px rgba(16, 185, 129, 0.5));
  }
}

/* HERO TEXT FIXED SYNC */
.spot-title,
.spot-subtitle,
.spot-grid span {
  color: #fff;
  /* Force White in Dark Mode */
  mix-blend-mode: normal;
  /* Stop weird blending */
}

/* Light Mode Override for Hero Text */
body.light-theme .spot-title,
body.light-theme .spot-subtitle,
body.light-theme .spot-grid span {
  color: #1e293b;
  /* Dark text in Light Mode */
  text-shadow: none;
}

body.light-theme .spot-hidden-gem {
  color: #1e293b;
}

body.light-theme .spot-cta {
  background: #2563eb;
  color: #fff;
}

/* RESUME DOWNLOAD : THE LIQUID METAL (Dual-Mode Refined) */
/* Concept: Organic, living mercury. A shapeshifting droplet */

.resume-download-card {
  position: relative;
  width: fit-content;
  margin: 50px auto 0;
  display: flex;
  justify-content: center;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  /* Dark Mode Glow */
  filter: drop-shadow(0 10px 20px rgba(56, 189, 248, 0.4));
  transition: filter 0.3s;
}

/* Hide unused */
.resume-download-card::before,
.resume-download-card::after,
.resume-download-card h3,
.resume-download-card p,
.resume-icon {
  display: none;
}

/* The Fluid Droplet (Dark Mode Base) */
.resume-download-card .btn {
  position: relative;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  /* Plasma Blue */
  color: white;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Organic blob shape */
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: blobMorph 4s ease-in-out infinite;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5);
  /* Inner shine */
  cursor: pointer;
  white-space: nowrap;
}

/* Icon starts centered */
.resume-download-card .btn::before {
  content: '↓';
  font-size: 1rem;
  z-index: 2;
  transition: all 0.4s;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Text is hidden in the blob */
.resume-download-card .btn span {
  opacity: 0;
  width: 0;
  margin-left: 0;
  overflow: hidden;
  transition: all 0.4s;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* Hover Interaction: Stabilize */
.resume-download-card:hover .btn {
  width: 120px;
  /* Adjusted for "Resume" */
  height: 40px;
  border-radius: 50px;
  /* Become a pill */
  animation: none;
  /* Stop morphing */
  background: linear-gradient(90deg, #38bdf8, #2563eb);
  padding: 0 24px;
  justify-content: center;
  transform: scale(1.05);
  /* Gentle pop */
}

.resume-download-card:hover .btn::before {
  margin-right: 10px;
  transform: rotate(-360deg);
}

.resume-download-card:hover .btn span {
  opacity: 1;
  width: auto;
}

/* Liquid Morph Animation */
@keyframes blobMorph {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }

  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }

  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }

  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

/* LIGHT MODE REFINED */
/* A vibrant 'Water Droplet' aesthetic for better contrast */

body.light-theme .resume-download-card {
  /* Cleaner shadow for light mode, less 'glowing' more 'casting' */
  filter: drop-shadow(0 10px 15px rgba(37, 99, 235, 0.25));
}

body.light-theme .resume-download-card .btn {
  /* Rich Deep Blue Gradient instead of pale white */
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #ffffff;
  /* White text pops against blue */
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.4),
    /* Upper specular */
    inset 0 -5px 10px rgba(0, 0, 0, 0.1);
  /* Lower depth */
}

body.light-theme .resume-download-card .btn::before {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.light-theme .resume-download-card:hover .btn {
  background: linear-gradient(90deg, #0284c7, #2563eb);
  box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
}

/* Background System : The Chromatic Dark */

/* Base Backdrop Container */
.section-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #030303;
  /* Pitch Black Base */
}

/* About: Astral Mist (Liquid Chrome Smoke) */
.backdrop-ocean .ocean-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, #111 0%, #000 70%);
}

.backdrop-ocean .ocean-particles {
  position: absolute;
  inset: -50%;
  background-image:
    conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  filter: blur(80px);
  animation: astralSpin 20s linear infinite;
  opacity: 0.8;
}

.backdrop-ocean .ocean-structure {
  /* Smoke Plumes */
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.3;
  mix-blend-mode: overlay;
}

/* Projects: Cyber Hex (Neon Grid) */
.backdrop-forge .forge-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, #0a0a1a 0%, #000 80%);
}

.backdrop-forge .forge-embers {
  /* The Hex Grid */
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(30deg, #111 12%, transparent 12.5%, transparent 87%, #111 87.5%, #111),
    linear-gradient(150deg, #111 12%, transparent 12.5%, transparent 87%, #111 87.5%, #111),
    linear-gradient(30deg, #111 12%, transparent 12.5%, transparent 87%, #111 87.5%, #111),
    linear-gradient(150deg, #111 12%, transparent 12.5%, transparent 87%, #111 87.5%, #111),
    linear-gradient(60deg, #222 25%, transparent 25.5%, transparent 75%, #222 75%, #222),
    linear-gradient(60deg, #222 25%, transparent 25.5%, transparent 75%, #222 75%, #222);
  background-size: 40px 70px;
  opacity: 0.1;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.backdrop-forge .forge-structure {
  /* Pulse Light */
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(100, 50, 255, 0.05) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  animation: pulseHeat 6s ease-in-out infinite alternate;
}

/* Learning: Binary Void (Data Stream) */
.backdrop-cosmos .cosmos-nebula {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #000 0%, #050505 100%);
}

.backdrop-cosmos .cosmos-stars {
  /* Binary Rain */
  position: absolute;
  inset: 0;
  background-image: linear-gradient(0deg, transparent 24%, rgba(0, 255, 100, .05) 25%, rgba(0, 255, 100, .05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 100, .05) 75%, rgba(0, 255, 100, .05) 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, rgba(0, 255, 100, .05) 25%, rgba(0, 255, 100, .05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 100, .05) 75%, rgba(0, 255, 100, .05) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
  mask-image: linear-gradient(to bottom, transparent, black 50%, transparent);
  animation: gridScan 10s linear infinite;
}

/* Experience: Geometric Horizon (Wireframe) */
.xp-simple-section .mountain-backdrop {
  position: absolute;
  inset: 0;
  background: #020202;
}

.xp-simple-section .mist-layer {
  /* Wireframe Lines */
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 140%;
  height: 60%;
  background: repeating-linear-gradient(90deg,
      transparent 0,
      transparent 40px,
      rgba(255, 255, 255, 0.03) 40px,
      rgba(255, 255, 255, 0.03) 41px);
  transform: perspective(500px) rotateX(60deg);
  mask-image: linear-gradient(to top, black, transparent 80%);
}

/* Skills: The Neural Matrix (Creative Pulse) */
.backdrop-city .city-sky {
  position: absolute;
  inset: 0;
  background: #000;
  /* Deep Cognitive Void */
}

/* Dynamic Neural Web */
.backdrop-city .city-grid {
  position: absolute;
  inset: -50%;
  background-image:
    radial-gradient(circle at center, transparent 0%, #000 80%),
    /* Vignette */
    repeating-linear-gradient(0deg, transparent 0px, transparent 1px, rgba(0, 255, 150, 0.03) 1px, rgba(0, 255, 150, 0.03) 2px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 1px, rgba(0, 255, 150, 0.03) 1px, rgba(0, 255, 150, 0.03) 2px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
  transform: perspective(500px) rotateX(20deg) scale(1.5);
  animation: neuralPulse 10s ease-in-out infinite alternate;
}

/* Floating Synapse Nodes */
.backdrop-city::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(0, 255, 150, 0.15) 2px, transparent 3px),
    radial-gradient(circle, rgba(0, 255, 150, 0.1) 1px, transparent 2px);
  background-size: 110px 110px, 70px 70px;
  background-position: 0 0, 35px 35px;
  animation: synapseFloat 20s linear infinite;
  opacity: 0.6;
}

/* Data Stream Flow */
.backdrop-city::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 150, 0.05), transparent);
  transform: skewX(-20deg);
  width: 20%;
  height: 100%;
  animation: dataStream 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: blur(5px);
}

@keyframes neuralPulse {
  0% {
    transform: perspective(500px) rotateX(20deg) scale(1.5);
    filter: brightness(0.8);
  }

  100% {
    transform: perspective(500px) rotateX(25deg) scale(1.6);
    filter: brightness(1.2);
  }
}

@keyframes synapseFloat {
  0% {
    background-position: 0 0, 35px 35px;
  }

  100% {
    background-position: 110px 110px, 105px 105px;
  }
}

@keyframes dataStream {
  0% {
    left: -30%;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    left: 130%;
    opacity: 0;
  }
}

/* Contact: Sonar (Radar Scan) */
.backdrop-aurora .aurora-sky {
  background: #000;
}

.backdrop-aurora .aurora-lights {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vw;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, transparent 30%, rgba(255, 255, 255, 0.02) 31%, transparent 32%),
    radial-gradient(circle, transparent 50%, rgba(255, 255, 255, 0.02) 51%, transparent 52%),
    radial-gradient(circle, transparent 70%, rgba(255, 255, 255, 0.02) 71%, transparent 72%);
  animation: sonarPulse 10s linear infinite;
}

/* Animations */
@keyframes astralSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes sonarPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }
}

@keyframes pulseHeat {
  0% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes gridScan {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 50px;
  }
}

@keyframes driftSpace {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 100px 100px;
  }
}

.section {
  position: relative;
  overflow: hidden;
  background: transparent !important;
}

/* LIGHT THEME OVERRIDES */

/* Base container becomes light */
body.light-theme .section-backdrop {
  background: #ffffff;
}

/* About: Astral Mist (Light Mode) */
body.light-theme .backdrop-ocean .ocean-gradient {
  background: radial-gradient(circle at 20% 80%, #ffffff 0%, #e2e8f0 70%);
}

body.light-theme .backdrop-ocean .ocean-particles {
  /* Subtle grey smoke/mist */
  background-image:
    conic-gradient(from 0deg, transparent, rgba(0, 0, 0, 0.03), transparent);
  mix-blend-mode: multiply;
}

body.light-theme .backdrop-ocean .ocean-structure {
  filter: invert(1);
  /* Invert the noise texture */
  opacity: 0.05;
}

/* Learning: Binary Void (Light Mode) */
/* Learning: The Creative Daydream (Cute & Playful) */
body.light-theme .backdrop-cosmos .cosmos-nebula {
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
  /* Soft Sky Base */
}

body.light-theme .backdrop-cosmos .cosmos-stars {
  /* Floating Bubbles Pattern */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(100, 200, 255, 0.4) 0%, transparent 20px),
    radial-gradient(circle at 80% 10%, rgba(255, 182, 193, 0.4) 0%, transparent 30px),
    radial-gradient(circle at 40% 80%, rgba(144, 238, 144, 0.3) 0%, transparent 25px),
    radial-gradient(circle at 90% 90%, rgba(221, 160, 221, 0.3) 0%, transparent 15px);
  background-size: 100% 100%;
  animation: daydreamFloat 15s ease-in-out infinite alternate;
  mask-image: none;
  /* Show full color */
  mix-blend-mode: multiply;
}

body.light-theme .backdrop-cosmos::after {
  /* Doodle Texture */
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

@keyframes daydreamFloat {
  0% {
    transform: scale(1) translateY(0);
  }

  50% {
    transform: scale(1.05) translateY(-5px);
  }

  100% {
    transform: scale(1) translateY(0);
  }
}

/* Projects: Industrial Blueprint (Light Mode) */
body.light-theme .backdrop-forge .forge-gradient {
  background: radial-gradient(circle at 80% 20%, #ffffff 0%, #f1f5f9 80%);
}

body.light-theme .backdrop-forge .forge-embers {
  /* Subtle Hex Grid in Grey */
  background-image:
    linear-gradient(30deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0),
    linear-gradient(150deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0),
    linear-gradient(30deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0),
    linear-gradient(150deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0),
    linear-gradient(60deg, #cbd5e1 25%, transparent 25.5%, transparent 75%, #cbd5e1 75%, #cbd5e1),
    linear-gradient(60deg, #cbd5e1 25%, transparent 25.5%, transparent 75%, #cbd5e1 75%, #cbd5e1);
  opacity: 0.4;
  mask-image: none;
  /* Show full grid */
}

body.light-theme .backdrop-forge .forge-structure {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
}

/* Experience: Architectural Grid (Light Mode) */
body.light-theme .xp-simple-section .mountain-backdrop {
  background: #fff;
}

body.light-theme .xp-simple-section .mist-layer {
  background: repeating-linear-gradient(90deg,
      transparent 0,
      transparent 40px,
      rgba(71, 85, 105, 0.1) 40px,
      rgba(71, 85, 105, 0.1) 41px);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 80%);
}

/* Skills: Clean Circuit (Light Mode) */
body.light-theme .backdrop-city .city-sky {
  background: #f8fafc;
}

body.light-theme .backdrop-city .city-grid {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.4) 1px, transparent 0);
}

/* Contact: Signal Clean (Light Mode) */
body.light-theme .backdrop-aurora .aurora-sky {
  background: #fff;
}

body.light-theme .backdrop-aurora .aurora-lights {
  background:
    radial-gradient(circle, transparent 30%, rgba(37, 99, 235, 0.05) 31%, transparent 32%),
    radial-gradient(circle, transparent 50%, rgba(37, 99, 235, 0.05) 51%, transparent 52%),
    radial-gradient(circle, transparent 70%, rgba(37, 99, 235, 0.05) 71%, transparent 72%);
}

/* GLOBAL GLASSY CARD UPGRADE */

/* Define Glassy Variables for consistency */
:root {
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur: blur(16px);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme {
  --glass-bg: rgba(255, 255, 255, 0.65);
  /* Frosty */
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

/* Target All Card Components */
.card.project-card,
.mini-project-step .step-content,
.stack-content,
.skill-card,
.contact-form-wrapper,
.resume-download-card,
.about-simple-content,
.learning-step .step-content

/* Ensure Learning Path gets it too */
  {
  background: var(--glass-bg, rgba(255, 255, 255, 0.03)) !important;
  backdrop-filter: var(--glass-blur, blur(16px)) !important;
  -webkit-backdrop-filter: var(--glass-blur, blur(16px)) !important;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.06)) !important;
  box-shadow: var(--glass-shadow) !important;
}

/* Specialized Light Theme Adjustments (True Glass) */
body.light-theme .card.project-card,
body.light-theme .mini-project-step .step-content,
body.light-theme .stack-content,
body.light-theme .skill-card,
body.light-theme .contact-form-wrapper,
body.light-theme .resume-download-card,
body.light-theme .learning-step .step-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2)) !important;
  /* More transparent */
  backdrop-filter: blur(20px) !important;
  /* Stronger blur */
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  /* Solid white rim */
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
  /* Deep shadow */
}

/* Hover States */
.card.project-card:hover,
.skill-card:hover,
.mini-project-step .step-content:hover,
.learning-step .step-content:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25) !important;
}

body.light-theme .card.project-card:hover,
body.light-theme .skill-card:hover,
body.light-theme .learning-step .step-content:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Base container becomes light */
body.light-theme .section-backdrop {
  background: #ffffff;
}

/* About: Astral Mist (Light Mode) */
body.light-theme .backdrop-ocean .ocean-gradient {
  background: radial-gradient(circle at 20% 80%, #ffffff 0%, #e2e8f0 70%);
}

body.light-theme .backdrop-ocean .ocean-particles {
  /* Subtle grey smoke/mist */
  background-image:
    conic-gradient(from 0deg, transparent, rgba(0, 0, 0, 0.03), transparent);
  mix-blend-mode: multiply;
}

body.light-theme .backdrop-ocean .ocean-structure {
  filter: invert(1);
  /* Invert the noise texture */
  opacity: 0.05;
}

/* Learning: Binary Void (Light Mode) */
/* Learning: The Creative Daydream (Cute & Playful) */
body.light-theme .backdrop-cosmos .cosmos-nebula {
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
  /* Soft Sky Base */
}

body.light-theme .backdrop-cosmos .cosmos-stars {
  /* Floating Bubbles Pattern */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(100, 200, 255, 0.4) 0%, transparent 20px),
    radial-gradient(circle at 80% 10%, rgba(255, 182, 193, 0.4) 0%, transparent 30px),
    radial-gradient(circle at 40% 80%, rgba(144, 238, 144, 0.3) 0%, transparent 25px),
    radial-gradient(circle at 90% 90%, rgba(221, 160, 221, 0.3) 0%, transparent 15px);
  background-size: 100% 100%;
  animation: daydreamFloat 15s ease-in-out infinite alternate;
  mask-image: none;
  /* Show full color */
  mix-blend-mode: multiply;
}

body.light-theme .backdrop-cosmos::after {
  /* Doodle Texture */
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

@keyframes daydreamFloat {
  0% {
    transform: scale(1) translateY(0);
  }

  50% {
    transform: scale(1.05) translateY(-5px);
  }

  100% {
    transform: scale(1) translateY(0);
  }
}

/* Projects: Industrial Blueprint (Light Mode) */
body.light-theme .backdrop-forge .forge-gradient {
  background: radial-gradient(circle at 80% 20%, #ffffff 0%, #f1f5f9 80%);
}

body.light-theme .backdrop-forge .forge-embers {
  /* Subtle Hex Grid in Grey */
  background-image:
    linear-gradient(30deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0),
    linear-gradient(150deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0),
    linear-gradient(30deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0),
    linear-gradient(150deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0),
    linear-gradient(60deg, #cbd5e1 25%, transparent 25.5%, transparent 75%, #cbd5e1 75%, #cbd5e1),
    linear-gradient(60deg, #cbd5e1 25%, transparent 25.5%, transparent 75%, #cbd5e1 75%, #cbd5e1);
  opacity: 0.4;
  mask-image: none;
  /* Show full grid */
}

body.light-theme .backdrop-forge .forge-structure {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
}

/* Experience: Architectural Grid (Light Mode) */
body.light-theme .xp-simple-section .mountain-backdrop {
  background: #fff;
}

body.light-theme .xp-simple-section .mist-layer {
  background: repeating-linear-gradient(90deg,
      transparent 0,
      transparent 40px,
      rgba(71, 85, 105, 0.1) 40px,
      rgba(71, 85, 105, 0.1) 41px);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 80%);
}

/* Skills: Clean Circuit (Light Mode) */
body.light-theme .backdrop-city .city-sky {
  background: #f8fafc;
}

body.light-theme .backdrop-city .city-grid {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.4) 1px, transparent 0);
}

/* Contact: Signal Clean (Light Mode) */
body.light-theme .backdrop-aurora .aurora-sky {
  background: #fff;
}

body.light-theme .backdrop-aurora .aurora-lights {
  background:
    radial-gradient(circle, transparent 30%, rgba(37, 99, 235, 0.05) 31%, transparent 32%),
    radial-gradient(circle, transparent 50%, rgba(37, 99, 235, 0.05) 51%, transparent 52%),
    radial-gradient(circle, transparent 70%, rgba(37, 99, 235, 0.05) 71%, transparent 72%);
}

/* FINAL POLISH & OVERRIDES */

/* Layout Safety */
section,
.section {
  position: relative !important;
  overflow: hidden !important;
}

/* Light Mode Form Fixes */
body.light-theme .contact-form-wrapper input,
body.light-theme .contact-form-wrapper textarea {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.light-theme .contact-form-wrapper label {
  color: #0f172a !important;
  font-weight: 600;
}

body.light-theme .contact-form-wrapper input::placeholder,
body.light-theme .contact-form-wrapper textarea::placeholder {
  color: #94a3b8 !important;
}

body.light-theme .contact-form-wrapper input:focus,
body.light-theme .contact-form-wrapper textarea:focus {
  border-color: #2563eb !important;
  background: #f8fafc !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

/* Contact Form Button & Spacing */
.contact-form-wrapper .field {
  margin-bottom: 15px !important;
}

/* Raise button closer to textarea (which is last field) */
.contact-form-wrapper .field:last-of-type {
  margin-bottom: 4px !important;
}

.contact-form-wrapper .form-actions {
  margin-top: 0px !important;
  padding-top: 0 !important;
  display: flex;
  justify-content: center !important;
  width: 100%;
}

/* Premium Button Animation */
.contact-form-wrapper .btn.primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #2563eb, #0ea5e9, #2563eb);
  background-size: 200% auto;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
  border: none !important;
  padding: 12px 32px;
}

.contact-form-wrapper .btn.primary:hover {
  background-position: right center;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.6), 0 0 20px rgba(14, 165, 233, 0.4);
}

.contact-form-wrapper .btn.primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: none;
}

.contact-form-wrapper .btn.primary:hover::after {
  left: 100%;
  transition: 0.7s ease;
}

/* Light Mode Contact Info (Left Side) */
body.light-theme .contact-info .contact-card,
body.light-theme .contact-info .social-links-card {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .contact-info .contact-card h3,
body.light-theme .contact-info .social-links-card h3 {
  color: #0f172a !important;
}

body.light-theme .contact-info .contact-card p {
  color: #334155 !important;
  font-weight: 500;
}

body.light-theme .contact-icon {
  background: #e0f2fe !important;
  color: #0284c7 !important;
  box-shadow: none !important;
}

body.light-theme .social-btn {
  background: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

body.light-theme .social-btn:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

/* Hero Email Display */
.hero-email-display {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 500;
  font-style: italic !important;
  letter-spacing: 0.5px;
}

/* ABOUT SECTION PREMIUM (Deep Ocean) */

/* Backdrop ( - Light Mode Fixed) */
.backdrop-ocean-premium {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #0f172a;
  transition: background 0.5s ease;
}

body.light-theme .backdrop-ocean-premium {
  background: #f0f9ff;
  /* Light Blue Sky */
}

.ocean-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.1), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(30, 64, 175, 0.1), transparent 50%);
}

body.light-theme .ocean-gradient {
  background: radial-gradient(circle at 0% 0%, rgba(14, 165, 233, 0.05), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.05), transparent 50%);
}

.ocean-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: rgba(56, 189, 248, 0.05);
  filter: blur(100px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: oceanPulse 10s ease-in-out infinite;
}

body.light-theme .ocean-glow {
  background: rgba(14, 165, 233, 0.06);
}

@keyframes oceanPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* ABOUT SECTION FOREGROUND (Glass Upgrade) */

.about-premium-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin: 40px auto 0 auto;
  gap: 24px;
  position: relative;
  z-index: 10;
}

@media (max-width: 900px) {
  .about-premium-content {
    display: flex;
    flex-direction: column;
  }
}

/* Glass Card Container */
.about-glass-card {
  position: relative;
  padding: 32px 36px;
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}

body.light-theme .about-glass-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.about-glass-card:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Highlight Bar */
.card-highlight-bar {
  display: none !important;
}

/* Typography */
.about-text-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #fff;
  margin-bottom: 24px;
  font-weight: 500;
}

body.light-theme .about-text-lead {
  color: #1e293b;
}

.about-glass-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cad1e1;
  /* Lighter grey for better contrast on dark */
  margin-bottom: 20px;
}

body.light-theme .about-glass-card p {
  color: #475569;
}

.highlight {
  color: var(--accent);
  font-weight: 600;
  position: relative;
}

/* What I'm Doing Section */
.what-im-doing-section {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  padding: 28px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

body.light-theme .what-im-doing-section {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.doing-heading {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
}

body.light-theme .doing-heading {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 50%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.doing-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.doing-chip-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 22px 20px;
  min-height: 140px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

body.light-theme .doing-chip-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.doing-chip-card:hover {
  transform: translateY(-5px);
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.25);
}

body.light-theme .doing-chip-card:hover {
  background: rgba(67, 56, 202, 0.08);
  border-color: rgba(67, 56, 202, 0.3);
  box-shadow: 0 12px 30px rgba(67, 56, 202, 0.15);
}

.doing-chip-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #818cf8;
  margin-bottom: 8px;
  line-height: 1.35;
  display: block;
}

body.light-theme .doing-chip-title {
  color: #4338ca;
}

.doing-chip-desc {
  font-size: 0.92rem !important;
  font-weight: 400 !important;
  color: #cbd5e1 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

body.light-theme .doing-chip-desc {
  color: #475569 !important;
}

/* Visuals Column */
.about-visuals {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .about-visuals {
    height: 300px;
    display: none;
    /* Hide visual clutter on mobile */
  }
}

.stat-badge {
  position: absolute;
  padding: 16px 24px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  transition: all 0.3s ease;
}

body.light-theme .stat-badge {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.stat-badge:hover {
  transform: scale(1.1);
  border-color: var(--accent);
  z-index: 10;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .stat-num {
  background: linear-gradient(135deg, #1e293b, #334155);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-desc {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-top: 4px;
}

/* Positioning Floaters */
.float-1 {
  top: 10%;
  left: 10%;
  animation: floatBadge 6s ease-in-out infinite;
}

.float-2 {
  top: 40%;
  right: 10%;
  animation: floatBadge 7s ease-in-out infinite 1s;
}

.float-3 {
  bottom: 15%;
  left: 20%;
  animation: floatBadge 8s ease-in-out infinite 2s;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Code Decoration */
.code-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  font-size: 4rem;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

body.light-theme .code-decoration {
  color: rgba(0, 0, 0, 0.03);
}
/* Scroll Progress Bar */
.scroll-progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 10001; transition: width 0.1s ease; }

/* UNIFIED SEAMLESS PORTFOLIO CANVAS (Hero Page + About + Projects + Learning Path + Experience + Skills + Contact) */

html, body {
  overflow-x: hidden !important;
}

#main {
  overflow-x: hidden !important;
  zoom: 0.9;
}

/* Hero Canvas is now Fixed across the entire page */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, #161822 0%, #0b0c0f 100%);
  transition: background 0.5s ease;
}

body.light-theme #hero-canvas {
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #f1f5f9 100%);
}

/* Ensure body and all sections are transparent over the fixed canvas */
body {
  background: var(--bg);
}

section,
.section,
.section.alt,
.hero-section {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: relative !important;
  overflow: visible !important; /* CRITICAL: Allows ambient light to blend smoothly across section edges */
  min-height: auto !important;
  padding: 110px 0 70px 0 !important;
}

.hero-section {
  min-height: 100vh !important;
  padding: 0 !important;
}

/* Remove hard gradient fade at bottom of hero */
.hero-section::after {
  display: none !important;
}

/* Hide all old disjointed section backdrop layers */
.section-backdrop,
.mountain-backdrop,
.ocean-gradient,
.forge-gradient,
.cosmos-gradient,
.city-sky,
.aurora-sky {
  display: none !important;
}

/* Unified Typography across all sections to match Page */
h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  margin-bottom: 36px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

body.light-theme h2 {
  background: linear-gradient(135deg, #0f172a 30%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Unified Glassmorphic Card Styling to match Page aesthetic */
.about-glass-card,
.project-card,
.learning-step,
.timeline-content,
.skill-card,
.contact-card,
.social-links-card,
.contact-form-wrapper {
  background: rgba(18, 20, 26, 0.65) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme .about-glass-card,
body.light-theme .project-card,
body.light-theme .learning-step,
body.light-theme .timeline-content,
body.light-theme .skill-card,
body.light-theme .contact-card,
body.light-theme .social-links-card,
body.light-theme .contact-form-wrapper {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Card Hover Unification */
.about-glass-card:hover,
.project-card:hover,
.learning-step:hover,
.timeline-content:hover,
.skill-card:hover,
.contact-card:hover,
.social-links-card:hover,
.contact-form-wrapper:hover {
  border-color: rgba(106, 167, 255, 0.3) !important;
  box-shadow: 0 15px 40px rgba(106, 167, 255, 0.15);
}

body.light-theme .about-glass-card:hover,
body.light-theme .project-card:hover,
body.light-theme .learning-step:hover,
body.light-theme .timeline-content:hover,
body.light-theme .skill-card:hover,
body.light-theme .contact-card:hover,
body.light-theme .social-links-card:hover,
body.light-theme .contact-form-wrapper:hover {
  border-color: rgba(37, 99, 235, 0.3) !important;
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.12);
}

/* ORGANIC ELEGANT SECTION AMBIANCE (Large soft overlapping light glows that blend seamlessly across edges) */

.section::before {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  filter: blur(200px);
  pointer-events: none;
  opacity: 0.18;
  z-index: 0;
  transition: opacity 0.5s ease;
}

body.light-theme .section::before {
  opacity: 0.32;
  filter: blur(220px);
}

/* ABOUT SECTION - Sapphire Blue */
#about::before {
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, #3b82f6 0%, #06b6d4 60%, transparent 80%);
}

#about h2 {
  background: linear-gradient(135deg, #ffffff 40%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme #about h2 {
  background: linear-gradient(135deg, #0f172a 40%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#about .about-glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

/* PROJECTS SECTION - Cyber Emerald */
#projects::before {
  top: -100px;
  left: -200px;
  background: radial-gradient(circle, #10b981 0%, #14b8a6 60%, transparent 80%);
}

#projects h2 {
  background: linear-gradient(135deg, #ffffff 40%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme #projects h2 {
  background: linear-gradient(135deg, #0f172a 40%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#projects .project-card:hover {
  border-color: rgba(52, 211, 153, 0.4) !important;
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.18) !important;
}

#projects .tags span {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

body.light-theme #projects .tags span {
  background: rgba(5, 150, 105, 0.08);
  color: #047857;
  border-color: rgba(5, 150, 105, 0.2);
}

/* LEARNING PATH SECTION - Electric Violet */
#learning-path::before {
  top: -100px;
  right: -200px;
  background: radial-gradient(circle, #8b5cf6 0%, #6366f1 60%, transparent 80%);
}

#learning-path h2 {
  background: linear-gradient(135deg, #ffffff 40%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme #learning-path h2 {
  background: linear-gradient(135deg, #0f172a 40%, #6d28d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#learning-path .learning-step:hover {
  border-color: rgba(167, 139, 250, 0.4) !important;
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.18) !important;
}

/* EXPERIENCE SECTION - Sunset Amber */
#experience::before {
  top: -100px;
  left: -150px;
  background: radial-gradient(circle, #f59e0b 0%, #d97706 60%, transparent 80%);
}

#experience h2 {
  background: linear-gradient(135deg, #ffffff 40%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme #experience h2 {
  background: linear-gradient(135deg, #0f172a 40%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#experience .timeline-content:hover {
  border-color: rgba(251, 191, 36, 0.4) !important;
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.18) !important;
}

#experience .timeline-marker {
  background: #f59e0b !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5) !important;
}

#experience .timeline-tag {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

body.light-theme #experience .timeline-tag {
  background: rgba(180, 83, 9, 0.08);
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.2);
}

/* SKILLS SECTION - Neon Rose */
#skills::before {
  top: -100px;
  right: -200px;
  background: radial-gradient(circle, #ec4899 0%, #8b5cf6 60%, transparent 80%);
}

#skills h2 {
  background: linear-gradient(135deg, #ffffff 40%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme #skills h2 {
  background: linear-gradient(135deg, #0f172a 40%, #be185d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#skills .skill-card:hover {
  border-color: rgba(244, 114, 182, 0.4) !important;
  box-shadow: 0 15px 40px rgba(236, 72, 153, 0.18) !important;
}

#skills .progress-fill {
  background: linear-gradient(90deg, #ec4899, #8b5cf6) !important;
}

/* CONTACT SECTION - Mint Aurora */
#contact::before {
  bottom: -150px;
  left: -150px;
  background: radial-gradient(circle, #14b8a6 0%, #06b6d4 60%, transparent 80%);
}

#contact h2 {
  background: linear-gradient(135deg, #ffffff 40%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme #contact h2 {
  background: linear-gradient(135deg, #0f172a 40%, #0f766e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#contact .contact-card:hover,
#contact .contact-form-wrapper:hover {
  border-color: rgba(45, 212, 191, 0.4) !important;
  box-shadow: 0 15px 40px rgba(20, 184, 166, 0.18) !important;
}

/* PREMIUM CONNECT WITH ME & CONTACT STYLES */

.contact-header-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px auto;
}

.connect-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
  margin-bottom: 18px;
}

body.light-theme .connect-status-badge {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.25);
  color: #047857;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.contact-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  margin-top: 10px;
}

body.light-theme .contact-subtitle {
  color: #64748b;
}

/* Social Connect Card */
.social-connect-card {
  background: rgba(18, 20, 26, 0.7) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  margin-top: 10px;
}

body.light-theme .social-connect-card {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.social-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.social-card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

body.light-theme .social-card-header h3 {
  color: #0f172a;
}

.fast-reply-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.15);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
}

body.light-theme .fast-reply-badge {
  background: rgba(15, 118, 110, 0.08);
  color: #0d9488;
  border-color: rgba(15, 118, 110, 0.2);
}

.social-card-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

body.light-theme .social-card-desc {
  color: #64748b;
}

/* Social Grid Buttons */
.social-grid-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 520px) {
  .social-grid-buttons {
    grid-template-columns: 1fr;
  }
}

.social-connect-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

body.light-theme .social-connect-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.social-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}

body.light-theme .social-icon-box {
  background: rgba(0, 0, 0, 0.06);
  color: #1e293b;
}

.social-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.social-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

body.light-theme .social-title {
  color: #0f172a;
}

.social-handle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Space Mono', monospace;
}

body.light-theme .social-handle {
  color: #64748b;
}

.social-arrow {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Brand Hover Customization */
.social-connect-btn.github:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.social-connect-btn.github:hover .social-icon-box {
  background: #fff;
  color: #000;
}

.social-connect-btn.linkedin:hover {
  background: rgba(0, 119, 181, 0.18);
  border-color: rgba(0, 119, 181, 0.4);
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.25);
  transform: translateY(-3px);
}

.social-connect-btn.linkedin:hover .social-icon-box {
  background: #0077b5;
  color: #fff;
}

.social-connect-btn.twitter:hover {
  background: rgba(29, 161, 242, 0.18);
  border-color: rgba(29, 161, 242, 0.4);
  box-shadow: 0 8px 25px rgba(29, 161, 242, 0.25);
  transform: translateY(-3px);
}

.social-connect-btn.twitter:hover .social-icon-box {
  background: #1da1f2;
  color: #fff;
}

.social-connect-btn.mail:hover {
  background: rgba(20, 184, 166, 0.18);
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 8px 25px rgba(20, 184, 166, 0.25);
  transform: translateY(-3px);
}

.social-connect-btn.mail:hover .social-icon-box {
  background: #14b8a6;
  color: #fff;
}

.social-connect-btn:hover .social-arrow {
  color: #fff;
  transform: translate(3px, -3px);
}

body.light-theme .social-connect-btn:hover .social-arrow {
  color: #0f172a;
}

/* Contact Cards text fix */
.contact-card-text h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

body.light-theme .contact-card-text h3 {
  color: #64748b;
}

.contact-card-text p a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-card-text p a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

body.light-theme .contact-card-text p a {
  color: #0284c7;
}

/* Form Title */
.form-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}

body.light-theme .form-title {
  color: #0f172a;
}

.send-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #14b8a6 0%, #0284c7 100%) !important;
  box-shadow: 0 8px 25px rgba(20, 184, 166, 0.3) !important;
  transition: all 0.3s ease !important;
}

.send-btn:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.45) !important;
}

/* NOTEBOOK VAULT CARD & PARCHMENT JOURNAL MODAL */

/* Vault Card in Projects Grid */
.notebook-vault-card {
  position: relative;
  background: linear-gradient(145deg, rgba(20, 24, 33, 0.95), rgba(13, 16, 23, 0.98)) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.12) !important;
  border-radius: 20px !important;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.notebook-vault-card:hover {
  transform: none !important;
  border-color: rgba(245, 158, 11, 0.65) !important;
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.2) !important;
}

body.light-theme .notebook-vault-card {
  background: linear-gradient(145deg, #ffffff, #fffdf8) !important;
  border: 1px solid rgba(217, 119, 6, 0.3) !important;
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.1) !important;
}

.notebook-vault-inner {
  padding: 30px 24px 26px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.notebook-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, #f59e0b, #d97706, #b45309);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
}

.notebook-ribbon {
  position: absolute;
  top: 0;
  right: 28px;
  width: 14px;
  height: 42px;
  background: #ef4444;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}

.notebook-vault-title {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  font-size: 1.45rem !important;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  text-align: center !important;
  width: 100%;
}

body.light-theme .notebook-vault-title {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Creative Three-dimensional Animated Book Showcase */
.notebook-3d-showcase {
  position: relative;
  width: 100%;
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  perspective: 900px;
}

/* Radial Golden Aura Glow */
.book-aura-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.05) 60%, transparent 80%);
  filter: blur(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 0;
  opacity: 0.6;
}

.notebook-vault-card:hover .book-aura-glow {
  transform: none !important;
  opacity: 0.8;
}

/* The Three-dimensional Animated ZIP Archive Box */
.zip-file-box {
  position: relative;
  width: 140px;
  height: 155px;
  transform-style: preserve-3d;
  transform: rotateY(-8deg) rotateX(4deg);
  cursor: pointer;
  z-index: 2;
}

.notebook-vault-card:hover .zip-file-box,
.zip-file-box:hover {
  transform: rotateY(-8deg) rotateX(4deg) !important;
}

/* Front Folder Cover */
.zip-folder-front {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 110px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95) 0%, rgba(180, 83, 9, 0.95) 100%);
  border: 1px solid #fbbf24;
  border-radius: 8px 16px 12px 12px;
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.35), 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  z-index: 10;
  transform-origin: bottom center;
  transform: translateZ(10px);
}

.notebook-vault-card:hover .zip-folder-front,
.zip-file-box:hover .zip-folder-front {
  transform: translateZ(10px) !important;
}

body.light-theme .zip-folder-front {
  background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
  border-color: #f59e0b;
}

/* Zipper Track & Puller */
.zip-zipper-line {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 18px;
  width: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-left: 2px dashed rgba(255, 255, 255, 0.5);
  border-right: 2px dashed rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: center;
}

.zip-puller {
  position: absolute;
  top: 8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.zip-puller-svg {
  display: block;
}

.notebook-vault-card:hover .zip-puller,
.zip-file-box:hover .zip-puller {
  transform: none !important;
}

.zip-clean-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fef08a;
  margin-top: 4px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

body.light-theme .zip-clean-logo {
  color: #fef3c7;
}

.notebook-vault-card:hover .zip-clean-logo,
.zip-file-box:hover .zip-clean-logo {
  transform: none !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* CASE STUDIES CARD SPECIFIC ACCENTS */
.case-studies-card {
  border-color: rgba(96, 165, 250, 0.35) !important;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15) !important;
}

.case-studies-card:hover {
  transform: none !important;
  border-color: rgba(96, 165, 250, 0.75) !important;
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.25) !important;
}

body.light-theme .case-studies-card {
  border-color: rgba(37, 99, 235, 0.35) !important;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1) !important;
}

.case-spine {
  background: linear-gradient(180deg, #3b82f6, #2563eb, #1d4ed8) !important;
}

.case-aura {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, transparent 70%) !important;
}

.case-folder-back {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8) !important;
  border-color: rgba(96, 165, 250, 0.4) !important;
}

.case-folder-front {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(29, 78, 216, 0.9)) !important;
  border-color: rgba(96, 165, 250, 0.5) !important;
}

.case-file-3 {
  background: #0f172a !important;
  border-color: #3b82f6 !important;
  color: #93c5fd !important;
}

.case-file-2 {
  background: #0f172a !important;
  border-color: #60a5fa !important;
  color: #bfdbfe !important;
}

.case-file-1 {
  background: #0f172a !important;
  border-color: #93c5fd !important;
  color: #dbeafe !important;
}

.case-zipper-line {
  border-right-color: #60a5fa !important;
}

.case-clean-logo {
  color: #60a5fa !important;
}

.case-studies-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border-color: rgba(96, 165, 250, 0.5) !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important;
}

.case-studies-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5) !important;
}

/* Case Studies Modal Tabs & Controls */
.cs-tab-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cs-tab-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cs-tab-btn.active {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  color: #0f172a;
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(226, 232, 240, 0.3);
}

/* Silver Read Button in Case Studies */
.cs-read-btn {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 40%, #cbd5e1 100%) !important;
  color: #0f172a !important;
  border: 1px solid #ffffff !important;
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 3px 12px rgba(226, 232, 240, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.25s ease;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.cs-read-btn:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%) !important;
  color: #020617 !important;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

body.light-theme .cs-tab-btn {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
}

body.light-theme .case-study-card-item {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

.zip-label-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  font-weight: 800;
  color: #000;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.1em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Back Folder Wall */
.zip-folder-back {
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 135px;
  background: linear-gradient(135deg, #231c12 0%, #120e08 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  transform: translateZ(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* Floating Files Popping out of ZIP */
.zip-file-item {
  position: absolute;
  left: 10px;
  width: 120px;
  height: 38px;
  background: rgba(30, 36, 50, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fbbf24;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

body.light-theme .zip-file-item {
  background: #ffffff;
  border-color: rgba(217, 119, 6, 0.5);
  color: #b45309;
}

.zip-file-item.file-1 {
  top: 40px;
  transform: translateZ(0px);
  z-index: 5;
}

.zip-file-item.file-2 {
  top: 25px;
  transform: translateZ(-2px);
  z-index: 4;
}

.zip-file-item.file-3 {
  top: 10px;
  transform: translateZ(-4px);
  z-index: 3;
}

.notebook-vault-card:hover .zip-file-item.file-1,
.zip-file-box:hover .zip-file-item.file-1 {
  transform: translateY(-22px);
  transition-delay: 0.02s;
}

.notebook-vault-card:hover .zip-file-item.file-2,
.zip-file-box:hover .zip-file-item.file-2 {
  transform: translateY(-40px);
  transition-delay: 0.05s;
}

.notebook-vault-card:hover .zip-file-item.file-3,
.zip-file-box:hover .zip-file-item.file-3 {
  transform: translateY(-58px);
  transition-delay: 0.08s;
}

/* Magical Particles Floating Aura */
.book-magic-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.magic-particle {
  position: absolute;
  font-size: 1rem;
  opacity: 0.6;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8));
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.magic-particle.p1 { top: 12%; left: 10%; animation: magicFloat1 3s ease-in-out infinite; }
.magic-particle.p2 { top: 8%; right: 12%; animation: magicFloat2 3.5s ease-in-out infinite 0.5s; }
.magic-particle.p3 { bottom: 18%; left: 8%; animation: magicFloat1 2.8s ease-in-out infinite 1s; }
.magic-particle.p4 { bottom: 12%; right: 10%; animation: magicFloat2 3.2s ease-in-out infinite 0.2s; }
.magic-particle.p5 { top: 48%; right: 2%; animation: magicFloat1 2.5s ease-in-out infinite 0.7s; }

@keyframes magicFloat1 {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.5; }
  50% { transform: translateY(-8px) scale(1.2) rotate(12deg); opacity: 0.95; }
}

@keyframes magicFloat2 {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.5; }
  50% { transform: translateY(8px) scale(1.15) rotate(-10deg); opacity: 0.9; }
}

.notebook-vault-card:hover .magic-particle.p1 { transform: translate(-14px, -20px) scale(1.35); opacity: 1; }
.notebook-vault-card:hover .magic-particle.p2 { transform: translate(18px, -22px) scale(1.4); opacity: 1; }
.notebook-vault-card:hover .magic-particle.p3 { transform: translate(-18px, 18px) scale(1.25); opacity: 1; }
.notebook-vault-card:hover .magic-particle.p4 { transform: translate(20px, 15px) scale(1.38); opacity: 1; }
.notebook-vault-card:hover .magic-particle.p5 { transform: translate(24px, -12px) scale(1.3); opacity: 1; }

.notebook-cover-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

body.light-theme .notebook-cover-title {
  color: #0f172a;
}

.notebook-cover-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

body.light-theme .notebook-cover-desc {
  color: #475569;
}

.notebook-cover-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.vault-stat-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: 8px;
}

body.light-theme .vault-stat-badge {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

.open-notebook-btn {
  width: 100%;
  min-height: 34px !important;
  height: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 40%, #cbd5e1 100%) !important;
  color: #0f172a !important;
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  font-size: 0.82rem !important;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1px solid #ffffff !important;
  box-shadow: 0 4px 14px rgba(226, 232, 240, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  white-space: normal !important;
  word-break: break-word !important;
  text-align: center !important;
}

.open-notebook-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  pointer-events: none;
}

.open-notebook-btn:hover {
  transform: none !important;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%) !important;
  color: #020617 !important;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
  border-color: #ffffff !important;
}

.open-notebook-btn:active {
  transform: none !important;
}

body.light-theme .open-notebook-btn {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25) !important;
}

body.light-theme .open-notebook-btn:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.35) !important;
}

/* NOTEBOOK OVERLAY MODAL */
.notebook-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 20000;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 20px;
}

.notebook-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.notebook-modal-container {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.notebook-modal-overlay.active .notebook-modal-container {
  transform: scale(1) translateY(0);
}

/* Notebook Binder Rings */
.notebook-spirals {
  display: flex;
  justify-content: space-around;
  padding: 0 40px;
  margin-bottom: -10px;
  z-index: 10;
}

.notebook-spirals .ring {
  width: 16px;
  height: 24px;
  background: linear-gradient(135deg, #e2e8f0, #94a3b8, #475569);
  border-radius: 10px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Parchment Paper Page Body */
.notebook-paper-page {
  background: #171a22;
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 35px 35px 25px 35px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow-y: auto;
  max-height: 82vh;
  /* Ruled notebook line background texture */
  background-image: repeating-linear-gradient(rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 32px);
}

body.light-theme .notebook-paper-page {
  background: #fefcf6;
  border-color: rgba(217, 119, 6, 0.3);
  background-image: repeating-linear-gradient(rgba(217, 119, 6, 0.06) 0px, rgba(217, 119, 6, 0.06) 1px, transparent 1px, transparent 32px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.notebook-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 25px;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

body.light-theme .notebook-modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.notebook-confidential-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

#notebook-modal-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 6px 0;
}

body.light-theme #notebook-modal-title {
  color: #0f172a;
}

.notebook-modal-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

body.light-theme .notebook-modal-subtitle {
  color: #64748b;
}

.notebook-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.notebook-modal-close:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  transform: rotate(90deg);
}

body.light-theme .notebook-modal-close {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1e293b;
}

/* Stats Dashboard Bar */
.notebook-stats-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}

@media (max-width: 600px) {
  .notebook-stats-dashboard {
    grid-template-columns: 1fr;
  }
}

.nb-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

body.light-theme .nb-stat-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.nb-stat-icon {
  font-size: 1.6rem;
}

.nb-stat-info {
  display: flex;
  flex-direction: column;
}

.nb-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

body.light-theme .nb-stat-val {
  color: #0f172a;
}

.nb-stat-lbl {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

body.light-theme .nb-stat-lbl {
  color: #64748b;
}

/* Notebook Search Bar */
.notebook-search-wrapper {
  margin-bottom: 16px;
  width: 100%;
}

.nb-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(15, 20, 28, 0.7);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 8px 16px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.nb-search-box:focus-within {
  border-color: #f59e0b;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 15px rgba(245, 158, 11, 0.25);
  background: rgba(15, 20, 28, 0.95);
}

body.light-theme .nb-search-box {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.light-theme .nb-search-box:focus-within {
  border-color: #d97706;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05), 0 0 15px rgba(217, 119, 6, 0.2);
  background: #ffffff;
}

.nb-search-icon {
  font-size: 0.95rem;
  margin-right: 10px;
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
}

.nb-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f3f4f6;
  font-family: inherit;
  font-size: 0.9rem;
}

.nb-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

body.light-theme .nb-search-input {
  color: #1e293b;
}

body.light-theme .nb-search-input::placeholder {
  color: #94a3b8;
}

.nb-search-clear-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  display: none;
  transition: all 0.2s ease;
}

.nb-search-clear-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

body.light-theme .nb-search-clear-btn {
  color: rgba(0, 0, 0, 0.4);
}

/* Category Filter Tabs */
.notebook-tabs-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.nb-tab-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.nb-tab-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.nb-tab-btn.active {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%) !important;
  color: #0f172a !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(226, 232, 240, 0.3);
}

body.light-theme .nb-tab-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: #475569;
}

body.light-theme .nb-tab-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.25);
}

body.light-theme .nb-tab-btn.active {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

/* Project Index Counter Indicator */
.nb-slider-counter {
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 auto 12px auto;
  letter-spacing: 0.06em;
  background: transparent;
  border: none;
  padding: 0;
  display: block;
  box-shadow: none;
  user-select: none;
}

body.light-theme .nb-slider-counter {
  color: #64748b;
  background: transparent;
}

/* Notebook Slider Carousel Wrapper */
.notebook-slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-bottom: 25px;
  position: relative;
}

.nb-nav-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
  user-select: none;
  flex-shrink: 0;
  z-index: 5;
}

.nb-nav-btn:hover {
  background: #f59e0b;
  color: #000;
  transform: scale(1.12);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.45);
}

.nb-nav-btn:active {
  transform: scale(0.96);
}

body.light-theme .nb-nav-btn {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.35);
  color: #b45309;
}

body.light-theme .nb-nav-btn:hover {
  background: #d97706;
  color: #fff;
}

/* Entries Container Inside Notebook - Project at a time */
.notebook-entries-grid {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.nb-entry-card {
  width: 100%;
  max-width: 440px;
  min-height: 540px;
  aspect-ratio: 210 / 297;
  background: linear-gradient(170deg, rgba(24, 28, 38, 0.98) 0%, rgba(16, 20, 28, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 4px 16px 12px 12px;
  padding: 32px 28px 24px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  /* Multi-stacked A paper sheets shadow */
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 6px 0 -2px rgba(245, 158, 11, 0.08),
    0 10px 0 -4px rgba(30, 36, 50, 0.9),
    0 16px 0 -8px rgba(18, 22, 32, 0.7),
    0 22px 45px rgba(0, 0, 0, 0.55);
  animation: nbCardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* A Dog-ear fold in top right corner */
.nb-entry-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent rgba(245, 158, 11, 0.45) transparent transparent;
  filter: drop-shadow(-2px 2px 3px rgba(0, 0, 0, 0.4));
  pointer-events: none;
  z-index: 2;
}

/* Red / accent margin line on left side of A paper */
.nb-entry-card::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 1px;
  background: rgba(245, 158, 11, 0.2);
  pointer-events: none;
}

@keyframes nbCardFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.nb-entry-card:hover {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 8px 0 -2px rgba(245, 158, 11, 0.12),
    0 12px 0 -4px rgba(30, 36, 50, 0.95),
    0 24px 50px rgba(245, 158, 11, 0.22);
  transform: translateY(-4px);
}

body.light-theme .nb-entry-card {
  background: #ffffff;
  border-color: rgba(217, 119, 6, 0.3);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 6px 0 -2px rgba(217, 119, 6, 0.08),
    0 10px 0 -4px #f8fafc,
    0 16px 0 -8px #f1f5f9,
    0 22px 45px rgba(0, 0, 0, 0.12);
}

body.light-theme .nb-entry-card::before {
  border-color: transparent rgba(217, 119, 6, 0.4) transparent transparent;
}

body.light-theme .nb-entry-card::after {
  background: rgba(217, 119, 6, 0.18);
}

body.light-theme .nb-entry-card:hover {
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.08),
    0 8px 0 -2px rgba(217, 119, 6, 0.12),
    0 24px 50px rgba(217, 119, 6, 0.18);
}

.nb-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

body.light-theme .nb-entry-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.nb-a4-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.light-theme .nb-a4-tag {
  color: #b45309;
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.25);
}

.nb-minimal-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  opacity: 0.65;
  transition: opacity 0.2s ease;
  user-select: none;
}

.nb-entry-card:hover .nb-minimal-stats,
.nb-minimal-stats:hover {
  opacity: 1;
}

body.light-theme .nb-minimal-stats {
  color: #64748b;
}

.nb-views-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.view-svg-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.75;
  flex-shrink: 0;
}

.nb-stats-dot {
  opacity: 0.35;
  font-size: 0.65rem;
}

/* Minimal Heart Button */
.nb-heart-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  outline: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nb-heart-btn .heart-icon {
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nb-heart-btn:hover {
  color: #f87171;
}

.nb-heart-btn:hover .heart-icon {
  transform: scale(1.2);
}

.nb-heart-btn.liked {
  color: #ef4444;
  font-weight: 700;
}

body.light-theme .nb-heart-btn:hover {
  color: #dc2626;
}

body.light-theme .nb-heart-btn.liked {
  color: #dc2626;
}

.nb-entry-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

body.light-theme .nb-entry-title {
  color: #0f172a;
}

.nb-entry-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

body.light-theme .nb-entry-desc {
  color: #334155;
}

.nb-entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.nb-entry-tags span {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: rgba(245, 158, 11, 0.9);
  background: rgba(245, 158, 11, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

body.light-theme .nb-entry-tags span {
  color: #92400e;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(217, 119, 6, 0.25);
  font-weight: 700;
}

/* Actions in Entry */
.nb-entry-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nb-action-btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.nb-btn-svg {
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nb-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.nb-action-btn:hover .nb-btn-svg {
  opacity: 1;
}

.nb-action-btn.demo-btn {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.22);
  color: #f59e0b;
}

.nb-action-btn.demo-btn:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.nb-action-btn.code-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
}

.nb-action-btn.code-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Light Theme Action Buttons */
body.light-theme .nb-action-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569;
}

body.light-theme .nb-action-btn.demo-btn {
  background: rgba(217, 119, 6, 0.07);
  border-color: rgba(217, 119, 6, 0.22);
  color: #d97706;
}

body.light-theme .nb-action-btn.demo-btn:hover {
  background: rgba(217, 119, 6, 0.14);
  border-color: rgba(217, 119, 6, 0.35);
  color: #b45309;
}

body.light-theme .nb-action-btn.code-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
}

body.light-theme .nb-action-btn.code-btn:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.18);
  color: #0f172a;
}

/* Floating Heart Animation */
.floating-heart-anim {
  position: fixed;
  font-size: 1.5rem;
  pointer-events: none;
  z-index: 30000;
  animation: floatHeartUp 0.8s ease-out forwards;
}

@keyframes floatHeartUp {
  0% { transform: translate(-50%, 0) scale(0.6); opacity: 1; }
  100% { transform: translate(-50%, -60px) scale(1.4); opacity: 0; }
}

.notebook-page-footer {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

body.light-theme .notebook-page-footer {
  border-top-color: rgba(0, 0, 0, 0.1);
  color: #64748b;
}

/* INTERACTIVE MINI-APP DEMO SANDBOX MODAL */
.mini-demo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  z-index: 25000;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 20px;
}

.mini-demo-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mini-demo-modal-container {
  width: 100%;
  max-width: 720px;
  background: #12151e;
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.35s ease;
}

body.light-theme .mini-demo-modal-container {
  background: #ffffff;
  border-color: rgba(15, 118, 110, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.mini-demo-modal-overlay.active .mini-demo-modal-container {
  transform: scale(1);
}

.mini-demo-header {
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.light-theme .mini-demo-header {
  background: rgba(0, 0, 0, 0.03);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.mini-demo-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(20, 184, 166, 0.15);
  color: #2dd4bf;
}

#mini-demo-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 4px 0 0 0;
}

body.light-theme #mini-demo-title {
  color: #0f172a;
}

.mini-demo-close {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 1.8rem;
  cursor: pointer;
}

.mini-demo-close:hover {
  color: #fff;
}

.mini-demo-body {
  padding: 25px;
  max-height: 70vh;
  overflow-y: auto;
}

/* Sandbox Specific Styles */
/* Markdown Sandbox */
.sandbox-md-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 600px) {
  .sandbox-md-wrap { grid-template-columns: 1fr; }
}

.sandbox-md-col label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #aaa;
  display: block;
  margin-bottom: 6px;
}

.sandbox-md-col textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  font-family: monospace;
  font-size: 0.85rem;
}

.sandbox-md-preview {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 180px;
  color: #ddd;
  font-size: 0.9rem;
}

body.light-theme .sandbox-md-preview {
  background: rgba(0, 0, 0, 0.03);
  color: #1e293b;
}

/* Glassmorphism Sandbox */
.sandbox-glass-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .sandbox-glass-wrap { grid-template-columns: 1fr; }
}

.sandbox-glass-controls label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #ccc;
  margin-top: 10px;
}

.sandbox-glass-controls input[type="range"] {
  width: 100%;
  margin-bottom: 10px;
}

.glass-preview-box {
  padding: 25px;
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Pomodoro Sandbox */
.sandbox-pomo-wrap {
  text-align: center;
  padding: 20px 0;
}

.pomo-display {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
}

#pomo-time {
  font-family: 'Space Mono', monospace;
  font-size: 3.5rem;
  font-weight: 900;
  color: #34d399;
}

/* Pixel Art Sandbox */
.sandbox-pixel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pixel-palette {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s;
}

.color-dot.active {
  transform: scale(1.25);
  border-color: #fff;
}

.pixel-grid {
  display: grid;
  grid-template-columns: repeat(12, 22px);
  grid-template-rows: repeat(12, 22px);
  gap: 2px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px;
  border-radius: 10px;
}

.pixel-cell {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  cursor: pointer;
}

/* Color Harmony Sandbox */
.color-bars-container {
  display: flex;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.color-bar-item {
  flex: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: flex 0.3s;
}

.color-bar-item:hover {
  flex: 1.5;
}

.color-hex {
  font-family: 'Space Mono', monospace;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

/* ASCII Output Box */
.ascii-output-box {
  background: #000;
  color: #34d399;
  padding: 15px;
  border-radius: 10px;
  font-size: 0.75rem;
  overflow-x: auto;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Speed Typing Sandbox */
.type-target-text {
  font-family: monospace;
  font-size: 0.95rem;
  color: #38bdf8;
  background: rgba(0, 0, 0, 0.4);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

#type-input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.type-stats {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  font-family: monospace;
  color: #ccc;
}

/* MINI PROJECTS INTERACTIVE IMAGE GALLERY */
.nb-view-mode-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  background: rgba(15, 20, 30, 0.6);
  padding: 6px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

body.light-theme .nb-view-mode-tabs {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.nb-view-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.nb-view-tab-btn:hover {
  color: #f8fafc;
}

body.light-theme .nb-view-tab-btn:hover {
  color: #0f172a;
}

.nb-view-tab-btn.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.gallery-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.nb-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nb-search-wrap input {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  outline: none;
  width: 200px;
  transition: border-color 0.2s ease, width 0.2s ease;
}

.nb-search-wrap input:focus {
  border-color: #f59e0b;
  width: 230px;
}

body.light-theme .nb-search-wrap input {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

#nb-vault-search-clear {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
}

.gallery-filter-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-tab-btn {
  background: rgba(22, 26, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-tab-btn:hover {
  background: rgba(30, 36, 50, 0.9);
  color: #f8fafc;
  border-color: rgba(245, 158, 11, 0.4);
}

.gallery-tab-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.15) 100%);
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

body.light-theme .gallery-tab-btn {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
  color: #64748b;
}

body.light-theme .gallery-tab-btn:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(217, 119, 6, 0.4);
}

body.light-theme .gallery-tab-btn.active {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
  border-color: #d97706;
  color: #b45309;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.15);
}

.gallery-count-badge {
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  line-height: 1;
}

body.light-theme .gallery-count-badge {
  background: rgba(0, 0, 0, 0.06);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Gallery Card */
.gallery-card {
  background: rgba(18, 22, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(245, 158, 11, 0.15);
}

body.light-theme .gallery-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

body.light-theme .gallery-card:hover {
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1), 0 0 20px rgba(217, 119, 6, 0.1);
}

/* Card Media & Image Screenshot Preview */
.gallery-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f1219;
  overflow: hidden;
  cursor: pointer;
}

.gallery-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-card-media img {
  transform: scale(1.06);
}

.gallery-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fbbf24;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  z-index: 2;
}

/* Hover Overlay */
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Card Body */
.gallery-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-card-meta {
  margin-bottom: 14px;
}

.gallery-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 6px 0;
  transition: color 0.2s ease;
}

.gallery-card:hover .gallery-card-title {
  color: #fbbf24;
}

body.light-theme .gallery-card-title {
  color: #0f172a;
}

body.light-theme .gallery-card:hover .gallery-card-title {
  color: #d97706;
}

.gallery-card-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
  text-align: justify;
}

body.light-theme .gallery-card-desc {
  color: #64748b;
}

.gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.gallery-tag-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: 4px;
}

body.light-theme .gallery-tag-pill {
  color: #475569;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.gallery-card-footer {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.gallery-action-btn {
  flex: 1;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.gallery-action-btn.primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.gallery-action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

.gallery-action-btn.outline {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-action-btn.outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

body.light-theme .gallery-action-btn.outline {
  color: #475569;
  border-color: #cbd5e1;
}

body.light-theme .gallery-action-btn.outline:hover {
  background: #f8fafc;
  color: #0f172a;
}

/* Coding Profile Section Styles */
.section-subtitle {
  text-align: center;
  color: #94a3b8;
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 75px !important;
}

body.light-theme .section-subtitle {
  color: #64748b;
}

.coding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 65px !important;
}

.coding-card {
  position: relative;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.4);
  text-decoration: none !important;
  cursor: pointer;
  color: #ffffff !important;
  overflow: hidden;
}

.coding-card-action {
  display: none !important;
}

.coding-card:hover {
  transform: translateY(-6px) scale(1.02);
  background: rgba(30, 41, 59, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 18px 42px -6px rgba(0, 0, 0, 0.6);
}

/* Individual Platform Border Accent on Hover (Dark Mode) */
.coding-card.leetcode-card:hover {
  border-color: rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 16px 38px -6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.25) !important;
}

.coding-card.github-card:hover {
  border-color: rgba(99, 102, 241, 0.6) !important;
  box-shadow: 0 16px 38px -6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.25) !important;
}

.coding-card.gfg-card:hover {
  border-color: rgba(34, 197, 94, 0.6) !important;
  box-shadow: 0 16px 38px -6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 197, 94, 0.25) !important;
}

.coding-card.hackerrank-card:hover {
  border-color: rgba(20, 184, 166, 0.6) !important;
  box-shadow: 0 16px 38px -6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(20, 184, 166, 0.25) !important;
}

.coding-card.codolio-card:hover {
  border-color: rgba(168, 85, 247, 0.6) !important;
  box-shadow: 0 16px 38px -6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.25) !important;
}

.coding-card.codechef-card:hover {
  border-color: rgba(217, 119, 6, 0.6) !important;
  box-shadow: 0 16px 38px -6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(217, 119, 6, 0.25) !important;
}

.coding-card.codeforces-card:hover {
  border-color: rgba(59, 130, 246, 0.6) !important;
  box-shadow: 0 16px 38px -6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.25) !important;
}

.coding-card.codingninjas-card:hover {
  border-color: rgba(249, 115, 22, 0.6) !important;
  box-shadow: 0 16px 38px -6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(249, 115, 22, 0.25) !important;
}

/* Light Theme Variant */
body.light-theme .coding-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.06) !important;
  color: #0f172a !important;
}

body.light-theme .coding-card:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1) !important;
}

.coding-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.coding-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.coding-icon.leetcode {
  color: #fbbf24;
}

.coding-icon.github {
  color: #ffffff;
}

body.light-theme .coding-icon {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

body.light-theme .coding-icon.github {
  color: #0f172a;
}

.coding-card-title h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff !important;
}

body.light-theme .coding-card-title h3 {
  color: #0f172a !important;
}

.coding-handle {
  display: none !important;
}

.coding-stats {
  display: flex;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-theme .coding-stats {
  background: #f8fafc;
  border-color: #f1f5f9;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

body.light-theme .stat-value {
  color: #0f172a;
}

.stat-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
}

.coding-card-action {
  margin-top: auto;
}

.coding-link-btn {
  width: 100%;
  justify-content: center;
  height: 40px;
  font-size: 0.9rem;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #94a3b8;
  font-size: 1rem;
}

/* SPLIT-SCREEN MODE (LEFT HERO, RIGHT CONTENT) */
body.split-mode-active {
  overflow: hidden;
}

body:not(.split-mode-active) #hero-style-simple {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
}

body:not(.split-mode-active) #hero-style-simple .hero-content {
  transform: none;
  max-width: 850px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body:not(.split-mode-active) #hero-style-simple .hero-image-container {
  margin-bottom: 16px;
}

body:not(.split-mode-active) #hero-style-simple .hero-pfp {
  width: clamp(200px, 28vh, 320px);
  height: clamp(200px, 28vh, 320px);
}

body:not(.split-mode-active) #hero-style-simple .hero-actions {
  margin-top: 20px;
}

body.split-mode-active #hero-style-simple {
  position: fixed;
  top: 16px;
  left: 32px;
  width: calc(25vw - 36px);
  min-width: 270px;
  max-width: 320px;
  height: calc(100vh - 32px);
  z-index: 999;
  padding: 28px 20px;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

body.light-theme.split-mode-active #hero-style-simple {
  background: transparent !important;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: none;
}

body.split-mode-active #hero-style-simple .hero-badge,
body.split-mode-active #hero-style-simple .hero-marquee,
body.split-mode-active #hero-style-simple .hero-actions,
body.split-mode-active #hero-style-simple .hero-grid,
body.split-mode-active #hero-style-simple .hero-email-display,
body.split-mode-active #theme-toggle,
body.split-mode-active .theme-toggle {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.split-mode-active #hero-style-simple .hero-image-container {
  margin-bottom: 8px;
}

body.split-mode-active #hero-style-simple .hero-pfp {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
}

body.split-mode-active #hero-style-simple .hero-main-name {
  font-size: 1.3rem;
  margin: 6px 0 4px 0;
}

body.split-mode-active #hero-style-simple .hero-subtitle {
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: #94a3b8;
  text-align: center;
}

/* Card Contact Info in Split Mode */
.split-card-contact-info {
  display: none;
}

body.split-mode-active #hero-style-simple .split-card-contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin-top: 14px;
  padding: 16px 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body.light-theme.split-mode-active #hero-style-simple .split-card-contact-info {
  border-top-color: rgba(0, 0, 0, 0.12);
}

.card-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  color: #f1f5f9;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  text-align: left;
  width: 100%;
  overflow: hidden;
}

.card-info-row span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.card-info-row:hover {
  color: #38bdf8;
  transform: translateX(3px);
}

body.light-theme .card-info-row {
  color: #1e293b;
}

body.light-theme a.card-info-row:hover {
  color: #0284c7;
}

.card-info-row .info-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  stroke: #38bdf8;
}

body.light-theme .card-info-row .info-icon {
  stroke: #0284c7;
}

.card-social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 14px;
  margin-top: 10px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

body.light-theme .social-icon-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

.social-icon-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.social-icon-btn.linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff;
}

.social-icon-btn.github:hover {
  background: #24292e;
  border-color: #24292e;
  color: #ffffff;
}

.social-icon-btn.twitter:hover {
  background: #1d9bf0;
  border-color: #1d9bf0;
  color: #ffffff;
}

.social-icon-btn.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

/* Active button highlight in split mode */
body.split-mode-active .hero-actions .btn.active-split-nav {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8) !important;
  font-weight: 800;
  transform: scale(1.03);
}

body.light-theme.split-mode-active .hero-actions .btn.active-split-nav {
  background: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(15, 23, 42, 0.3) !important;
}

/* Right content panel (screen area) */
.split-right-panel {
  position: fixed;
  top: 16px;
  right: 16px;
  width: calc(100vw - 25vw - 24px);
  max-width: calc(100vw - 320px);
  height: calc(100vh - 32px);
  z-index: 998;
  background: rgba(10, 14, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

body.light-theme .split-right-panel {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

body.split-mode-active .split-right-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.split-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

body.light-theme .split-panel-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

.split-panel-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(110deg, #9ca3af, #ffffff, #9ca3af);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: silverFlow 3s linear infinite;
}

body.light-theme .split-panel-title {
  background: none;
  -webkit-text-fill-color: initial;
  color: #0f172a;
}

.split-panel-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 99px;
  background: linear-gradient(110deg, #9ca3af, #ffffff, #9ca3af);
  background-size: 200% 100%;
  animation: silverFlow 2.5s linear infinite;
  border: none;
  color: #000000;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}

.split-panel-close:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

.split-panel-body {
  padding: 32px 40px 30px 40px;
  overflow-y: auto;
  height: calc(100vh - 150px);
}

/* Bottom Navigation Footer in Split Panel */
.split-panel-footer {
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 26, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.light-theme .split-panel-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.split-nav-bottom-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.split-nav-bottom-row .split-bottom-btn,
.split-bottom-btn {
  height: 38px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 99px;
  white-space: nowrap;
  background: linear-gradient(110deg, #9ca3af, #ffffff, #9ca3af) !important;
  background-size: 200% 100% !important;
  animation: silverFlow 2.5s linear infinite !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  color: #000000 !important;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

body.light-theme .split-nav-bottom-row .split-bottom-btn,
body.light-theme .split-bottom-btn {
  background: linear-gradient(110deg, #cbd5e1, #ffffff, #cbd5e1) !important;
  color: #0f172a !important;
}

.split-nav-bottom-row .split-bottom-btn:hover,
.split-bottom-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.75) !important;
  color: #000000 !important;
}

body.light-theme .split-nav-bottom-row .split-bottom-btn:hover,
body.light-theme .split-bottom-btn:hover {
  box-shadow: 0 0 20px rgba(15, 23, 42, 0.25) !important;
  color: #0f172a !important;
}

/* Active clicked button highlight */
.split-nav-bottom-row .split-bottom-btn.active-split-nav {
  background: linear-gradient(110deg, #ffffff, #f8fafc, #ffffff) !important;
  background-size: 200% 100% !important;
  animation: silverFlow 1.8s linear infinite !important;
  color: #000000 !important;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.95), inset 0 0 10px rgba(255, 255, 255, 0.8) !important;
  font-weight: 900;
  transform: scale(1.08);
  border: 2px solid #ffffff !important;
  outline: none;
}

body.light-theme .split-nav-bottom-row .split-bottom-btn.active-split-nav {
  background: linear-gradient(110deg, #1e293b, #0f172a, #1e293b) !important;
  background-size: 200% 100% !important;
  color: #ffffff !important;
  box-shadow: 0 0 22px rgba(15, 23, 42, 0.5) !important;
  border: 2px solid #0f172a !important;
}

/* Ensure general buttons match liquid silver, EXCEPT coding profile cards */
body.split-mode-active .split-panel-body .btn:not(.coding-card):not(.coding-link-btn),
body.split-mode-active .split-panel-body a.btn:not(.coding-card):not(.coding-link-btn),
body.split-mode-active .split-panel-body .project-card .btn,
body.split-mode-active .split-panel-body .case-studies-btn,
body.split-mode-active .split-panel-body .open-notebook-btn,
body.split-mode-active .split-panel-body .social-connect-btn,
body.split-mode-active .split-panel-body .contact-card a {
  background: linear-gradient(110deg, #9ca3af, #ffffff, #e2e8f0, #9ca3af) !important;
  background-size: 200% 100% !important;
  animation: silverFlow 2.5s linear infinite !important;
  color: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  font-weight: 700 !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.35) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.light-theme.split-mode-active .split-panel-body .btn:not(.coding-card):not(.coding-link-btn),
body.light-theme.split-mode-active .split-panel-body a.btn:not(.coding-card):not(.coding-link-btn),
body.light-theme.split-mode-active .split-panel-body .project-card .btn,
body.light-theme.split-mode-active .split-panel-body .case-studies-btn,
body.light-theme.split-mode-active .split-panel-body .open-notebook-btn,
body.light-theme.split-mode-active .split-panel-body .social-connect-btn,
body.light-theme.split-mode-active .split-panel-body .contact-card a {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

body.split-mode-active .split-panel-body .social-connect-btn .social-title,
body.split-mode-active .split-panel-body .social-connect-btn .social-handle,
body.split-mode-active .split-panel-body .social-connect-btn .social-arrow {
  color: #ffffff !important;
}

body.light-theme.split-mode-active .split-panel-body .social-connect-btn .social-title,
body.light-theme.split-mode-active .split-panel-body .social-connect-btn .social-handle,
body.light-theme.split-mode-active .split-panel-body .social-connect-btn .social-arrow {
  color: #0f172a !important;
}

body.split-mode-active .split-panel-body .social-connect-btn .social-icon-box {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

body.split-mode-active .split-panel-body .btn:hover,
body.split-mode-active .split-panel-body a.btn:hover,
body.split-mode-active .split-panel-body .project-card .btn:hover,
body.split-mode-active .split-panel-body .coding-link-btn:hover,
body.split-mode-active .split-panel-body .case-studies-btn:hover,
body.split-mode-active .split-panel-body .open-notebook-btn:hover,
body.split-mode-active .split-panel-body .social-connect-btn:hover,
body.split-mode-active .split-panel-body .contact-card a:hover {
  transform: scale(1.03) translateY(-2px) !important;
  background: rgba(51, 65, 85, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

body.split-mode-active .split-panel-body a.card-info-row {
  color: #f1f5f9;
}

body.split-mode-active .split-panel-body a.card-info-row .info-icon {
  stroke: #cbd5e1;
}

body.split-mode-active .split-panel-body a.card-info-row:hover {
  color: #ffffff;
}

body.split-mode-active .split-panel-body a.card-info-row:hover .info-icon {
  stroke: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

/* Split Panel Body Content Styling */
.split-panel-body {
  padding: 24px 32px !important;
  overflow-y: auto !important;
}

.split-panel-body * {
  opacity: 1 !important;
  visibility: visible !important;
}

/* About Glass Card in Split Panel */
.split-panel-body .about-glass-card {
  width: 100% !important;
  max-width: 100% !important;
  padding: 24px 28px !important;
  background: rgba(15, 23, 42, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  aspect-ratio: auto !important;
  display: block !important;
  transform: none !important;
}

body.light-theme .split-panel-body .about-glass-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.split-panel-body .about-text-lead,
.split-panel-body .about-glass-card p {
  font-size: 1rem !important;
  line-height: 1.7 !important;
  margin-bottom: 16px !important;
  color: var(--text) !important;
  display: block !important;
}

/* Skills Grid in Split Panel */
.split-panel-body .skills-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  width: 100% !important;
  overflow-x: visible !important;
}

.split-panel-body .skill-card {
  aspect-ratio: auto !important;
  padding: 10px 18px !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  min-height: unset !important;
}

body.light-theme .split-panel-body .skill-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

.split-panel-body .skill-card h3 {
  font-size: 0.95rem !important;
  margin: 0 !important;
  color: var(--text) !important;
}

/* Experience Section in Split Panel */
.split-panel-body .timeline-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  width: 100% !important;
}

.split-panel-body .timeline-item {
  aspect-ratio: auto !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.split-panel-body .timeline-content {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  width: 100% !important;
}

body.light-theme .split-panel-body .timeline-content {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

.split-panel-body .timeline-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin-bottom: 4px !important;
}

.split-panel-body .timeline-company {
  font-size: 0.9rem !important;
  color: var(--accent) !important;
  margin-bottom: 8px !important;
}

.split-panel-body .timeline-desc {
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
  color: var(--muted) !important;
  margin-bottom: 12px !important;
}

.split-panel-body .tech-tags,
.split-panel-body .tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.split-panel-body .timeline-tag,
.split-panel-body .tags span {
  font-size: 0.75rem !important;
  padding: 3px 10px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text) !important;
}

/* Projects & Coding Profile in Split Panel */
.split-panel-body .projects-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
  align-items: start !important;
  gap: 20px !important;
  width: 100% !important;
  overflow-x: visible !important;
  margin-top: 65px !important;
}

.split-panel-body .coding-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  align-items: stretch !important;
  gap: 14px !important;
  width: 100% !important;
  overflow-x: visible !important;
  margin-top: 55px !important;
}

.split-panel-body .project-card,
.split-panel-body .coding-card {
  aspect-ratio: auto !important;
  padding: 12px 14px !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  color: #f8fafc !important;
}

body.light-theme .split-panel-body .project-card,
body.light-theme .split-panel-body .coding-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

.split-panel-body .card-media {
  width: 100% !important;
  height: 140px !important;
  aspect-ratio: auto !important;
  border-radius: 10px !important;
  object-fit: cover !important;
}

.split-panel-body .card-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin: 10px 0 6px 0 !important;
}

.split-panel-body .card-text {
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  color: var(--muted) !important;
  margin-bottom: 10px !important;
}

.split-panel-body .card-actions {
  display: flex !important;
  gap: 8px !important;
  margin-top: auto !important;
}

.split-panel-body .card-actions .btn {
  padding: 6px 14px !important;
  font-size: 0.8rem !important;
  min-height: 32px !important;
  border-radius: 8px !important;
}

div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) .notebook-3d-showcase,
.split-panel-body .notebook-3d-showcase {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
}

/* Contact / Send Message form fix - compact spacing and height */
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(2),
.split-panel-body .contact-layout,
.split-panel-body .contact-form-wrapper,
.split-panel-body #contact-form {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.split-panel-body .contact-layout {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin-top: 0 !important;
}

.split-panel-body .contact-form-wrapper {
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-top: 0 !important;
}

.split-panel-body .form-title,
.split-panel-body .contact-form-wrapper h3 {
  font-size: 1.1rem !important;
  margin-bottom: 10px !important;
  font-weight: 700 !important;
}

.split-panel-body #contact-form .field,
.split-panel-body .contact-form-wrapper .field {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin-bottom: 8px !important;
  gap: 3px !important;
}

.split-panel-body #contact-form label,
.split-panel-body .contact-form-wrapper label,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) label,
#contact-form label {
  display: none !important;
}

.split-panel-body #contact-form input,
.split-panel-body #contact-form textarea,
.split-panel-body .contact-form-wrapper input,
.split-panel-body .contact-form-wrapper textarea {
  width: 100% !important;
  max-width: 100% !important;
  padding: 10px 14px !important;
  font-size: 0.9rem !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  min-height: 38px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  transition: border-color 0.2s, background-color 0.2s !important;
}

.split-panel-body #contact-form input:focus,
.split-panel-body #contact-form textarea:focus,
.split-panel-body .contact-form-wrapper input:focus,
.split-panel-body .contact-form-wrapper textarea:focus {
  outline: none !important;
  border-color: var(--accent, #6aa7ff) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

body.light-theme .split-panel-body #contact-form input,
body.light-theme .split-panel-body #contact-form textarea,
body.light-theme .split-panel-body .contact-form-wrapper input,
body.light-theme .split-panel-body .contact-form-wrapper textarea,
body.light-theme input,
body.light-theme textarea {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

body.light-theme .split-panel-body #contact-form input:focus,
body.light-theme .split-panel-body #contact-form textarea:focus,
body.light-theme .split-panel-body .contact-form-wrapper input:focus,
body.light-theme .split-panel-body .contact-form-wrapper textarea:focus,
body.light-theme input:focus,
body.light-theme textarea:focus {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #2563eb !important;
}

.split-panel-body #contact-form textarea,
.split-panel-body .contact-form-wrapper textarea {
  min-height: 70px !important;
  height: 80px !important;
  line-height: 1.4 !important;
  resize: vertical !important;
}

.split-panel-body #contact-form small,
.split-panel-body .contact-form-wrapper small,
.split-panel-body .connect-status-badge,
.split-panel-body .contact-info,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1),
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(2),
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(3),
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(3) {
  display: none !important;
}

.split-panel-body #contact-form button,
.split-panel-body .contact-form-wrapper button {
  width: 100% !important;
  min-height: 38px !important;
  padding: 8px 16px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  margin-top: 4px !important;
  cursor: pointer !important;
}

.split-panel-body::-webkit-scrollbar {
  width: 8px;
}

.split-panel-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.split-panel-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

@media (max-width: 868px) {
  body.split-mode-active #hero-style-simple {
    width: 100vw;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .split-right-panel {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    height: auto;
  }
}

.section-popup-body::-webkit-scrollbar {
  width: 8px;
}

.section-popup-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.section-popup-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* Hide split panel close button permanently */
#split-panel-close,
button#split-panel-close,
.split-panel-close,
div#split-right-panel:nth-of-type(1) > div:nth-of-type(1) > button#split-panel-close:nth-of-type(1) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Hide user selected elements in split panel body */
/* Cleaned up default rules so resume panel renders completely */

/* Split Panel Container & Footer Position Alignment (Detached Top Floating Navigation) */
div#split-right-panel:nth-of-type(1),
.split-right-panel {
  height: calc(100vh - 32px) !important;
  max-height: calc(100vh - 32px) !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-content: flex-start !important;
}

div#split-right-panel:nth-of-type(1) > div:nth-of-type(1),
.split-panel-header {
  order: 1 !important;
  width: calc(25% - 24px) !important;
  margin: 16px 8px 8px 16px !important;
  padding: 12px 16px !important;
  background: rgba(15, 23, 42, 0.7) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

body.light-theme div#split-right-panel:nth-of-type(1) > div:nth-of-type(1),
body.light-theme .split-panel-header {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
}

/* Detached Top Floating iOS Water Glassy Navigation Bar */
div#split-right-panel:nth-of-type(1) > div:nth-of-type(3),
.split-panel-footer {
  order: 2 !important;
  width: calc(75% - 24px) !important;
  position: relative !important;
  margin: 16px 16px 24px 8px !important;
  padding: 12px 20px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border-radius: 26px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

body.light-theme div#split-right-panel:nth-of-type(1) > div:nth-of-type(3),
body.light-theme .split-panel-footer {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
}

div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2),
.split-panel-body {
  order: 3 !important;
  width: 100% !important;
  height: calc(100% - 76px) !important;
  max-height: calc(100% - 76px) !important;
  flex: 1 1 calc(100% - 76px) !important;
  padding: 12px 16px 20px 16px !important;
  margin: 0 !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}

div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > *,
.split-panel-body > * {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Hide Top Sheen Line */
div#split-right-panel:nth-of-type(1) > div:nth-of-type(3)::before,
.split-panel-footer::before {
  display: none !important;
}

/* Navigation Row Alignment */
.split-nav-bottom-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  flex-wrap: wrap !important;
}

/* Pure Liquid Silver Navigation Buttons */
div#split-right-panel:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) .split-bottom-btn,
div#split-right-panel:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) a,
.split-nav-bottom-row .split-bottom-btn,
.split-bottom-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 99px !important;
  padding: 2px 18px !important;
  height: 32px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  background: linear-gradient(110deg, #9ca3af, #ffffff, #e2e8f0, #9ca3af) !important;
  background-size: 200% 100% !important;
  animation: silverFlow 3s linear infinite !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  color: #000000 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

body.light-theme div#split-right-panel:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) .split-bottom-btn,
body.light-theme div#split-right-panel:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) a,
body.light-theme .split-nav-bottom-row .split-bottom-btn,
body.light-theme .split-bottom-btn {
  background: linear-gradient(110deg, #cbd5e1, #ffffff, #cbd5e1) !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

div#split-right-panel:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) .split-bottom-btn:hover,
div#split-right-panel:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) a:hover,
.split-nav-bottom-row .split-bottom-btn:hover,
.split-bottom-btn:hover {
  background: linear-gradient(110deg, #ffffff, #f8fafc, #ffffff) !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.7), inset 0 0 6px rgba(255, 255, 255, 0.8) !important;
}

body.light-theme div#split-right-panel:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) .split-bottom-btn:hover,
body.light-theme div#split-right-panel:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) a:hover,
body.light-theme .split-nav-bottom-row .split-bottom-btn:hover,
body.light-theme .split-bottom-btn:hover {
  background: linear-gradient(110deg, #ffffff, #f1f5f9, #ffffff) !important;
  color: #0f172a !important;
  box-shadow: 0 0 12px rgba(15, 23, 42, 0.15) !important;
}

/* Active Clicked / Selected Liquid Silver Pill */
div#split-right-panel:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) .split-bottom-btn.active-split-nav,
div#split-right-panel:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) a.active-split-nav,
.split-nav-bottom-row .split-bottom-btn.active-split-nav,
.split-bottom-btn.active-split-nav {
  background: linear-gradient(110deg, #ffffff, #f1f5f9, #ffffff) !important;
  background-size: 200% 100% !important;
  animation: silverFlow 1.8s linear infinite !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-radius: 99px !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.8), inset 0 0 8px rgba(255, 255, 255, 0.8) !important;
  transform: scale(1.02) !important;
  position: relative !important;
  z-index: 5 !important;
}

body.light-theme div#split-right-panel:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) .split-bottom-btn.active-split-nav,
body.light-theme div#split-right-panel:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) a.active-split-nav,
body.light-theme .split-nav-bottom-row .split-bottom-btn.active-split-nav,
body.light-theme .split-bottom-btn.active-split-nav {
  background: linear-gradient(110deg, #1e293b, #0f172a, #1e293b) !important;
  color: #ffffff !important;
  border: 1px solid #0f172a !important;
  box-shadow: 0 0 14px rgba(15, 23, 42, 0.35) !important;
}

/* Tiny Project Name Only Cards without Hover Transform Animations */
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article:not(.card-expanded),
.split-panel-body .projects-grid .project-card:not(.card-expanded),
.projects-grid .project-card:not(.card-expanded) {
  align-self: start !important;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  min-height: 54px !important;
  height: auto !important;
  max-height: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  cursor: pointer !important;
  opacity: 0.95 !important;
  transform: none !important;
  animation: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}

/* Reset vault inner container padding when not expanded so card dimensions match standard cards */
.notebook-vault-card:not(.card-expanded) .notebook-vault-inner {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: auto !important;
}

.notebook-vault-card:not(.card-expanded) .notebook-vault-top-row {
  margin-bottom: 0 !important;
  justify-content: center !important;
}

.notebook-vault-card:not(.card-expanded) .notebook-ribbon {
  display: none !important;
}

/* Education Section Accent Border ONLY for Standard Project Cards (Smart Agriculture, Project Beta, Project Gamma) */
.project-card.standard-project-card:not(.card-expanded),
.projects-grid .project-card.standard-project-card:not(.card-expanded) {
  border: 1.5px solid #818cf8 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), 0 0 12px rgba(129, 140, 248, 0.25) !important;
}

.project-card.standard-project-card:not(.card-expanded):hover,
.projects-grid .project-card.standard-project-card:not(.card-expanded):hover {
  border-color: #a5b4fc !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), 0 0 16px rgba(129, 140, 248, 0.4) !important;
}

body.light-theme .project-card.standard-project-card:not(.card-expanded),
body.light-theme .projects-grid .project-card.standard-project-card:not(.card-expanded) {
  border: 1.5px solid #4f46e5 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 0 10px rgba(79, 70, 229, 0.2) !important;
}

body.light-theme .project-card.standard-project-card:not(.card-expanded):hover,
body.light-theme .projects-grid .project-card.standard-project-card:not(.card-expanded):hover {
  border-color: #3730a3 !important;
}

/* Hide inner card details only when card is NOT expanded */
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article:not(.card-expanded) .card-media,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article:not(.card-expanded) .card-text,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article:not(.card-expanded) .tags,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article:not(.card-expanded) .card-actions,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article:not(.card-expanded) .notebook-3d-showcase,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article:not(.card-expanded) .card-vault-stats-badges,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article:not(.card-expanded) .notebook-spine,
.projects-grid .project-card:not(.card-expanded) .card-media,
.projects-grid .project-card:not(.card-expanded) .card-text,
.projects-grid .project-card:not(.card-expanded) .tags,
.projects-grid .project-card:not(.card-expanded) .card-actions,
.projects-grid .project-card:not(.card-expanded) .notebook-3d-showcase,
.projects-grid .project-card:not(.card-expanded) .card-vault-stats-badges,
.projects-grid .project-card:not(.card-expanded) .notebook-spine {
  display: none !important;
}

/* Card Body reset for tiny layout when not expanded */
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article:not(.card-expanded) .card-body,
.projects-grid .project-card:not(.card-expanded) .card-body {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Format Project Title as clean compact text that wraps properly without truncation */
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article:not(.card-expanded) .card-title,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article:not(.card-expanded) h3,
.projects-grid .project-card:not(.card-expanded) .card-title,
.projects-grid .project-card:not(.card-expanded) h3 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  padding: 2px 0 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  width: 100% !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.light-theme div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article:not(.card-expanded) .card-title,
body.light-theme div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article:not(.card-expanded) h3,
body.light-theme .projects-grid .project-card:not(.card-expanded) .card-title,
body.light-theme .projects-grid .project-card:not(.card-expanded) h3 {
  color: #0f172a !important;
}

/* Hover State for non-expanded tiny cards (no scale transform animation) */
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article:not(.card-expanded):hover,
.projects-grid .project-card:not(.card-expanded):hover {
  transform: none !important;
  animation: none !important;
  opacity: 1 !important;
  z-index: 10 !important;
  border-color: rgba(96, 165, 250, 0.6) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 12px rgba(96, 165, 250, 0.25) !important;
}

body.light-theme div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article:not(.card-expanded):hover,
body.light-theme .projects-grid .project-card:not(.card-expanded):hover {
  border-color: rgba(59, 130, 246, 0.6) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 0 14px rgba(59, 130, 246, 0.25) !important;
}

.coding-desc {
  font-size: 0.8rem;
  color: #cbd5e1 !important;
  line-height: 1.35;
  margin: 2px 0 0 0;
  text-align: left;
  font-weight: 400;
}

body.light-theme .coding-desc {
  color: #475569 !important;
}

/* FULL PROPER CARD WHEN CLICKED / EXPANDED (PROPER FIT & COMPACT ACCURATE BUTTONS) */
.projects-grid .project-card.card-expanded,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article.card-expanded {
  grid-column: auto !important;
  align-self: start !important;
  width: 100% !important;
  max-width: 320px !important;
  aspect-ratio: auto !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  min-height: auto !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  text-align: left !important;
  cursor: pointer !important;
  opacity: 1 !important;
  transform: scale(1) translateY(-2px) !important;
  border-color: rgba(96, 165, 250, 0.75) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(96, 165, 250, 0.3) !important;
  z-index: 20 !important;
  animation: iosExpandCard 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  transition: all 0.35s ease !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.light-theme .projects-grid .project-card.card-expanded,
body.light-theme div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article.card-expanded {
  border-color: rgba(59, 130, 246, 0.75) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 0 18px rgba(59, 130, 246, 0.25) !important;
}

@keyframes iosExpandCard {
  0% {
    transform: scale(0.9) translateY(6px);
    opacity: 0.7;
  }
  100% {
    transform: scale(1) translateY(-2px);
    opacity: 1;
  }
}

.projects-grid .project-card.card-expanded .card-body,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article.card-expanded .card-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  text-align: left !important;
  width: 100% !important;
  height: auto !important;
  margin-top: 4px !important;
}

.projects-grid .project-card.card-expanded .card-media,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article.card-expanded .card-media {
  display: block !important;
  width: 100% !important;
  height: 105px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  margin-bottom: 8px !important;
  flex-shrink: 0 !important;
}

.projects-grid .project-card.card-expanded .card-media img,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article.card-expanded .card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.projects-grid .project-card.card-expanded .card-title,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article.card-expanded .card-title {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  overflow: visible !important;
  text-overflow: clip !important;
  margin-bottom: 4px !important;
  line-height: 1.3 !important;
  width: 100% !important;
}

.projects-grid .project-card.card-expanded .card-text,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article.card-expanded .card-text {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
  margin-bottom: 6px !important;
  color: var(--muted) !important;
  text-align: left !important;
}

.projects-grid .project-card.card-expanded .tags,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article.card-expanded .tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  margin-bottom: 8px !important;
  justify-content: flex-start !important;
}

.projects-grid .project-card.card-expanded .tags span,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article.card-expanded .tags span {
  font-size: 0.7rem !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.projects-grid .project-card.card-expanded .card-actions,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article.card-expanded .card-actions {
  display: flex !important;
  gap: 8px !important;
  margin-top: 8px !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

.projects-grid .project-card.card-expanded .card-actions .btn,
div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2) > div:nth-of-type(1) > article.card-expanded .card-actions .btn {
  padding: 6px 14px !important;
  font-size: 0.8rem !important;
  height: 32px !important;
  line-height: 1 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

article.card-expanded .notebook-3d-showcase,
.project-card.card-expanded .notebook-3d-showcase {
  display: flex !important;
  margin: 14px 0 !important;
}

article.card-expanded .card-vault-stats-badges,
.project-card.card-expanded .card-vault-stats-badges {
  display: flex !important;
}

article.card-expanded .notebook-spine,
.project-card.card-expanded .notebook-spine {
  display: block !important;
}

div#split-right-panel:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) > a:nth-of-type(1) {
  display: none !important;
}

/* PROFESSIONAL RESUME DOCUMENT COMPONENT */
.resume-paper-card {
  position: relative;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 8px 0 !important;
  box-shadow: none !important;
  color: var(--text, #f8fafc);
  margin: 0 auto;
  max-width: 100%;
}

.resume-download-btn-top {
  position: sticky;
  top: 20px;
  float: right;
  margin-bottom: -42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(110deg, #9ca3af, #ffffff, #e2e8f0, #9ca3af) !important;
  background-size: 200% 100% !important;
  animation: silverFlow 2.5s linear infinite !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  color: #000000 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.35) !important;
}

.resume-download-btn-top svg {
  stroke: #000000 !important;
}

.resume-download-btn-top:hover {
  background: linear-gradient(110deg, #ffffff, #f8fafc, #ffffff) !important;
  border-color: #ffffff !important;
  color: #000000 !important;
  transform: translateY(-2px) scale(1.08) !important;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.8) !important;
}

body.light-theme .resume-download-btn-top {
  background: linear-gradient(110deg, #cbd5e1, #ffffff, #cbd5e1) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .resume-download-btn-top svg {
  stroke: #0f172a !important;
}

body.light-theme .resume-download-btn-top:hover {
  background: linear-gradient(110deg, #ffffff, #f1f5f9, #ffffff) !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
  color: #0f172a !important;
  box-shadow: 0 0 20px rgba(15, 23, 42, 0.2) !important;
}

body.light-theme .resume-paper-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.resume-header-block {
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.light-theme .resume-header-block {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.resume-name {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 6px 0;
}

body.light-theme .resume-name {
  background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.resume-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: #94a3b8;
  margin: 0;
}

body.light-theme .resume-role {
  color: #475569;
}

.resume-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.88rem;
  color: #cbd5e1;
  font-weight: 500;
}

body.light-theme .resume-contact-bar {
  color: #334155;
}

.resume-section {
  margin-bottom: 48px;
}

.resume-sec-heading {
  font-size: 1.45rem;
  font-weight: 800;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
}

.resume-sec-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
}

body.light-theme .resume-sec-heading {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 50%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .resume-sec-heading::after {
  background: rgba(0, 0, 0, 0.12);
}

.resume-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0;
}

body.light-theme .resume-text {
  color: #475569;
}

.resume-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resume-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px 20px;
}

body.light-theme .resume-item {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.resume-item-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #f1f5f9;
}

body.light-theme .resume-item-title {
  color: #0f172a;
}

.resume-item-date {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

body.light-theme .resume-item-date {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
}

.resume-item-sub {
  font-size: 1rem;
  font-weight: 600;
  color: #818cf8;
  margin-bottom: 8px;
}

body.light-theme .resume-item-sub {
  color: #4f46e5;
}

.resume-item-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
}

body.light-theme .resume-item-desc {
  color: #64748b;
}

/* Resume Progress Bars Grid */
.resume-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .resume-skills-grid {
    grid-template-columns: 1fr;
  }
}

.resume-skill-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.light-theme .resume-skill-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}

body.light-theme .skill-info {
  color: #1e293b;
}

.skill-pct {
  font-size: 0.82rem;
  color: #818cf8;
  font-weight: 700;
}

body.light-theme .skill-pct {
  color: #4f46e5;
}

.skill-bar-bg {
  width: 100%;
  height: 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

body.light-theme .skill-bar-bg {
  background: rgba(0, 0, 0, 0.08);
}

.skill-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #6366f1 0%, #3b82f6 100%);
  transition: width 0.8s ease-out;
}

.resume-skills-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resume-skill-cat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
}

body.light-theme .resume-skill-cat {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

.cat-label {
  display: none !important;
}

.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pills span {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body.light-theme .cat-pills span {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
  color: #1e293b;
}

.cat-pills span:hover {
  border-color: #6366f1;
  color: #a5b4fc;
  transform: translateY(-1px);
}

.resume-projects-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.resume-proj-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
}

body.light-theme .resume-proj-item {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

.resume-tech-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

body.light-theme .resume-tech-badge {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.resume-bullets {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.55;
}

body.light-theme .resume-bullets {
  color: #475569;
}

.resume-actions-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
}

body.light-theme .resume-actions-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
  .resume-paper-card {
    padding: 24px 20px;
  }
  .resume-download-btn-top {
    top: 12px;
    width: 38px;
    height: 38px;
    margin-bottom: -38px;
  }
  .resume-name {
    font-size: 1.6rem;
    padding-right: 40px;
  }
  .resume-contact-bar {
    flex-direction: column;
    gap: 8px;
  }
}

/* Hide scrolling page sections below hero on main page body */
main > section:not(#hero-style-simple),
body > footer,
.site-footer {
  display: none !important;
}

/* RESPONSIVE DESIGN SYSTEM (Desktop, Tablet, Mobile & Landscape) */

/* Mobile Menu Toggle Button (Desktop default: hidden) */
.mobile-menu-toggle {
  display: none;
}

.hero-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Tablet & Mobile Breakpoint (<= ) - Full Split Screen & Layout Adaptation */
@media (max-width: 868px) {
  /* Prevent horizontal scroll on mobile */
  html, body {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }

  /* Marquee scaling */
  .hero-text-big {
    font-size: clamp(2.5rem, 11vw, 6rem) !important;
  }

  /* Mobile Navigation Menu Toggle */
  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    border-radius: 99px !important;
    background: linear-gradient(110deg, #9ca3af, #ffffff, #9ca3af) !important;
    background-size: 200% 100% !important;
    color: #000000 !important;
    border: none !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    z-index: 101 !important;
  }

  body.light-theme .mobile-menu-toggle {
    background: linear-gradient(110deg, #1e293b, #0f172a, #1e293b) !important;
    color: #ffffff !important;
  }

  .mobile-menu-toggle .hamburger-icon line {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .hero-actions.menu-open .mobile-menu-toggle .line-top {
    transform: translateY(6px) rotate(45deg);
    transform-origin: center;
  }

  .hero-actions.menu-open .mobile-menu-toggle .line-mid {
    opacity: 0;
  }

  .hero-actions.menu-open .mobile-menu-toggle .line-bot {
    transform: translateY(-6px) rotate(-45deg);
    transform-origin: center;
  }

  .hero-nav-links {
    display: none !important;
    width: 100% !important;
    max-width: 300px !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 14px !important;
    padding: 16px !important;
    background: rgba(15, 23, 42, 0.96) !important;
    backdrop-filter: blur(28px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
  }

  body.light-theme .hero-nav-links {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
  }

  .hero-actions.menu-open .hero-nav-links {
    display: flex !important;
    animation: slideDownMenu 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes slideDownMenu {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-nav-links .btn {
    width: 100% !important;
    justify-content: center !important;
    height: 42px !important;
    font-size: 0.95rem !important;
  }

  /* Mobile Split Screen Layout Overrides */
  body.split-mode-active #hero-style-simple {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 8px 16px !important;
    z-index: 1000 !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(10, 14, 26, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  body.split-mode-active #hero-style-simple .hero-pfp {
    width: 38px !important;
    height: 38px !important;
  }

  body.split-mode-active #hero-style-simple .split-card-contact-info,
  body.split-mode-active #hero-style-simple .hero-main-name,
  body.split-mode-active #hero-style-simple .hero-subtitle,
  body.split-mode-active #hero-style-simple .hero-grid,
  body.split-mode-active #hero-style-simple .hero-marquee {
    display: none !important;
  }

  /* Right Panel Mobile Fullscreen Overlay */
  div#split-right-panel:nth-of-type(1),
  .split-right-panel {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 9999 !important;
    background: rgba(10, 14, 26, 0.98) !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  body.light-theme div#split-right-panel:nth-of-type(1),
  body.light-theme .split-right-panel {
    background: rgba(248, 250, 252, 0.98) !important;
  }

  div#split-right-panel:nth-of-type(1) > div:nth-of-type(1),
  .split-panel-header {
    order: 1 !important;
    width: calc(100% - 20px) !important;
    margin: 10px 10px 4px 10px !important;
    padding: 10px 16px !important;
    border-radius: 16px !important;
    flex-shrink: 0 !important;
  }

  div#split-right-panel:nth-of-type(1) > div:nth-of-type(3),
  .split-panel-footer {
    order: 2 !important;
    width: calc(100% - 20px) !important;
    margin: 4px 10px 10px 10px !important;
    padding: 8px 10px !important;
    border-radius: 18px !important;
    flex-shrink: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .split-nav-bottom-row {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    width: max-content !important;
    min-width: 100% !important;
    gap: 8px !important;
    padding-bottom: 2px !important;
  }

  .split-bottom-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    height: 36px !important;
  }

  div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2),
  .split-panel-body {
    order: 3 !important;
    width: 100% !important;
    height: calc(100vh - 130px) !important;
    max-height: calc(100vh - 130px) !important;
    padding: 0 10px 10px 10px !important;
    flex: 1 1 auto !important;
  }

  /* Single Column Grids for Cards on Tablet/Mobile */
  .projects-grid,
  .coding-grid,
  .skills-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .coding-card,
  .project-card,
  article.card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Contact layout single column on mobile */
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .contact-form-wrapper {
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }

  /* Resume paper card mobile adjustments */
  .resume-paper-card {
    padding: 20px 14px !important;
  }

  .cat-pills span {
    font-size: 0.78rem !important;
    padding: 4px 10px !important;
  }
}

/* Small Mobile Phones Breakpoint (<= ) */
@media (max-width: 480px) {
  .hero-pfp {
    width: 130px !important;
    height: 130px !important;
  }

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

  .hero-grid {
    gap: 8px !important;
    font-size: 0.85rem !important;
  }

  .split-panel-title {
    font-size: 1.1rem !important;
  }

  .coding-card-header {
    gap: 10px !important;
  }

  .coding-icon {
    width: 42px !important;
    height: 42px !important;
  }

  .coding-card-title h3 {
    font-size: 1.05rem !important;
  }

  .stat-value {
    font-size: 1.1rem !important;
  }

  .stat-label {
    font-size: 0.72rem !important;
  }

  .btn {
    min-height: 44px !important;
    padding: 0 16px !important;
    font-size: 0.88rem !important;
  }
}

/* Mobile Landscape Orientation Support (<= height) */
@media (max-height: 500px) and (orientation: landscape) {
  #hero-style-simple {
    padding: 12px !important;
  }

  .hero-pfp {
    width: 80px !important;
    height: 80px !important;
  }

  div#split-right-panel:nth-of-type(1) > div#split-panel-body:nth-of-type(2),
  .split-panel-body {
    height: calc(100vh - 100px) !important;
    max-height: calc(100vh - 100px) !important;
  }

  div#split-right-panel:nth-of-type(1) > div:nth-of-type(1),
  .split-panel-header,
  div#split-right-panel:nth-of-type(1) > div:nth-of-type(3),
  .split-panel-footer {
    padding: 6px 10px !important;
    margin: 4px !important;
  }
}

