/* =========================================================
   SYNTH PORTFOLIO — Omarchy Synthwave '84 Theme
   Exact colors from ~/.config/omarchy/themes/synthwave84/
   Deep purple dominant. Electric violet (#8f00ff) primary.
   Neon yellow (#ffff66), hot pink (#ff007f), cyan (#03edf9),
   magenta (#ff00ff) accent sparks.
   ========================================================= */

/* ---------------------------------------------------------
   CSS Custom Properties — Exact Omarchy Synthwave '84 Palette
   --------------------------------------------------------- */
:root {
  /* Base — exact from waybar background & alacritty bg */
  --bg-deep: #0d0221;
  --bg-dark: #0d0221;
  --bg-card: rgba(36, 0, 55, 0.65);
  --bg-card-hover: rgba(56, 10, 80, 0.75);
  --bg-glass: rgba(13, 2, 33, 0.55);

  /* Text — white primary, lavender secondary */
  --text-bright: #ffffff;
  --text-primary: #d8c4f0;
  --text-secondary: #a88ec8;
  --text-muted: #8b6db0;

  /* PRIMARY — Electric Violet #8f00ff (omarchy primary) */
  --accent-purple: #8f00ff;
  --accent-purple-bright: #b14aff;
  --accent-purple-glow: rgba(143, 0, 255, 0.45);
  --accent-purple-soft: rgba(143, 0, 255, 0.08);

  /* Neon Yellow #ffff66 (omarchy foreground/title) */
  --accent-yellow: #ffff66;
  --accent-yellow-glow: rgba(255, 255, 102, 0.4);
  --accent-yellow-soft: rgba(255, 255, 102, 0.08);

  /* Hot Pink #ff007f (omarchy cpu_box/net_box) */
  --accent-pink: #ff007f;
  --accent-pink-bright: #ff4da6;
  --accent-pink-glow: rgba(255, 0, 127, 0.45);
  --accent-pink-soft: rgba(255, 0, 127, 0.08);

  /* Cyan #03edf9 (omarchy cyan) */
  --accent-cyan: #03edf9;
  --accent-cyan-bright: #5cfcff;
  --accent-cyan-glow: rgba(3, 237, 249, 0.45);
  --accent-cyan-soft: rgba(3, 237, 249, 0.08);

  /* Magenta #ff00ff (omarchy magenta) */
  --accent-magenta: #ff00ff;
  --accent-magenta-glow: rgba(255, 0, 255, 0.4);

  /* Red #ff0040 & Blue #0080ff (omarchy red/blue) */
  --accent-red: #ff0040;
  --accent-blue: #0080ff;
  --accent-green-bright: #00ff88;
  --accent-green-soft: rgba(0, 255, 136, 0.08);

  /* Dark purples from alacritty */
  --dark-purple: #262335;
  --mid-purple: #614d85;

  /* Borders & shadows */
  --border-subtle: rgba(143, 0, 255, 0.08);
  --border-hover: rgba(143, 0, 255, 0.25);
  --border-cyan: rgba(3, 237, 249, 0.12);

  --shadow-glow-purple: 0 0 50px rgba(143, 0, 255, 0.2);
  --shadow-glow-pink: 0 0 50px rgba(255, 0, 127, 0.2);
  --shadow-glow-cyan: 0 0 50px rgba(3, 237, 249, 0.2);
  --shadow-glow-yellow: 0 0 50px rgba(255, 255, 102, 0.15);
  --shadow-card: 0 12px 48px rgba(0, 0, 0, 0.6);

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------
   Reset & Base
   --------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-pink);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-purple);
  color: var(--bg-deep);
  padding: 10px 24px;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 9999;
  transition: top 0.3s ease;
  letter-spacing: 0.02em;
}

.skip-link:focus {
  top: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------------------------------------------------
   THEME TOGGLE
   --------------------------------------------------------- */
.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
  margin-left: 12px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(3, 237, 249, 0.15);
  transform: rotate(12deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-icon-sun,
.theme-icon-moon {
  position: absolute;
  transition: var(--transition-smooth);
}

/* Default (synthwave84) shows moon icon (switch to light) */
html[data-theme="synthwave84"] .theme-icon-sun,
html[data-theme="cyberlight"] .theme-icon-moon {
  opacity: 0;
  transform: scale(0.5) rotate(-45deg);
  pointer-events: none;
}

html[data-theme="synthwave84"] .theme-icon-moon,
html[data-theme="cyberlight"] .theme-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* ---------------------------------------------------------
   CYBERLIGHT THEME — Alternate (soft purple-tinted light)
   --------------------------------------------------------- */
html[data-theme="cyberlight"] {
  --bg-deep: #f5f0ff;
  --bg-dark: #ede6f8;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-hover: rgba(255, 255, 255, 0.88);
  --bg-glass: rgba(245, 240, 255, 0.65);

  --text-bright: #1a0d2e;
  --text-primary: #2d1b4e;
  --text-secondary: #5a4080;
  --text-muted: #8b70b0;

  --accent-purple: #7a00e0;
  --accent-purple-bright: #9a30ff;
  --accent-purple-glow: rgba(122, 0, 224, 0.3);
  --accent-purple-soft: rgba(122, 0, 224, 0.08);

  --accent-yellow: #d4c000;
  --accent-yellow-glow: rgba(212, 192, 0, 0.3);
  --accent-yellow-soft: rgba(212, 192, 0, 0.08);

  --accent-pink: #d00060;
  --accent-pink-bright: #e04080;
  --accent-pink-glow: rgba(208, 0, 96, 0.3);
  --accent-pink-soft: rgba(208, 0, 96, 0.08);

  --accent-cyan: #00a0a8;
  --accent-cyan-bright: #00c8d0;
  --accent-cyan-glow: rgba(0, 160, 168, 0.3);
  --accent-cyan-soft: rgba(0, 160, 168, 0.08);

  --accent-magenta: #c000c0;
  --accent-magenta-glow: rgba(192, 0, 192, 0.3);

  --accent-red: #d00030;
  --accent-blue: #0060c0;

  --dark-purple: #e0d4f0;
  --mid-purple: #a080c8;

  --border-subtle: rgba(122, 0, 224, 0.1);
  --border-hover: rgba(122, 0, 224, 0.25);
  --border-cyan: rgba(0, 160, 168, 0.12);

  --shadow-glow-purple: 0 0 40px rgba(122, 0, 224, 0.12);
  --shadow-glow-pink: 0 0 40px rgba(208, 0, 96, 0.12);
  --shadow-glow-cyan: 0 0 40px rgba(0, 160, 168, 0.12);
  --shadow-glow-yellow: 0 0 40px rgba(212, 192, 0, 0.1);
  --shadow-card: 0 12px 48px rgba(0, 0, 0, 0.1);
}

html[data-theme="cyberlight"] body {
  background: linear-gradient(180deg, #f5f0ff 0%, #ede6f8 100%);
}

html[data-theme="cyberlight"] .navbar {
  background: rgba(245, 240, 255, 0.9);
  border-bottom-color: rgba(122, 0, 224, 0.08);
}

html[data-theme="cyberlight"] .navbar.scrolled {
  background: rgba(245, 240, 255, 0.98);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 0 20px rgba(122,0,224,0.04);
}

html[data-theme="cyberlight"] .nav-menu {
  background: rgba(245, 240, 255, 0.98);
}

html[data-theme="cyberlight"] .hero-stars {
  opacity: 0.35;
}

html[data-theme="cyberlight"] .hero-sun {
  opacity: 0.6;
}

html[data-theme="cyberlight"] .hero-grid-floor {
  opacity: 0.4;
}

html[data-theme="cyberlight"] .hero-vignette {
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg-deep) 85%);
}

html[data-theme="cyberlight"] .hero-scanlines {
  opacity: 0.15;
}

html[data-theme="cyberlight"] .section::before {
  opacity: 0.15;
}

/* ---------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 2, 33, 0.85);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(13, 2, 33, 0.95);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(143, 0, 255, 0.05);
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(143, 0, 255, 0.3);
}

.logo-bracket {
  color: var(--accent-purple);
}

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

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.02em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
  transition: width 0.3s ease;
  border-radius: 1px;
  box-shadow: 0 0 8px var(--accent-purple-glow);
}

.nav-link:hover {
  color: var(--text-bright);
  text-shadow: 0 0 12px var(--accent-purple-glow);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-bright);
  transition: var(--transition-smooth);
  border-radius: 1px;
}

/* ---------------------------------------------------------
   HERO SECTION — Omarchy Synthwave '84
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}

/* --- Synthwave Scene --- */
.hero-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Starfield — with purple, yellow, pink, cyan stars */
.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.95), transparent),
    radial-gradient(1.5px 1.5px at 40px 70px, rgba(143,0,255,0.5), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.85), transparent),
    radial-gradient(2px 2px at 160px 120px, rgba(255,0,127,0.3), transparent),
    radial-gradient(1px 1px at 230px 180px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 300px 50px, rgba(255,255,102,0.35), transparent),
    radial-gradient(1px 1px at 350px 150px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 450px 80px, rgba(3,237,249,0.25), transparent),
    radial-gradient(1.5px 1.5px at 500px 200px, rgba(255,255,255,0.65), transparent),
    radial-gradient(2px 2px at 600px 60px, rgba(143,0,255,0.3), transparent),
    radial-gradient(1px 1px at 650px 140px, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 750px 100px, rgba(3,237,249,0.2), transparent),
    radial-gradient(1.5px 1.5px at 800px 190px, rgba(255,255,255,0.55), transparent),
    radial-gradient(2px 2px at 900px 40px, rgba(255,255,102,0.3), transparent),
    radial-gradient(1px 1px at 950px 170px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 1050px 90px, rgba(255,0,127,0.2), transparent),
    radial-gradient(2px 2px at 1100px 220px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 1200px 30px, rgba(143,0,255,0.3), transparent);
  background-repeat: repeat;
  background-size: 1200px 300px;
  animation: starTwinkle 6s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  0% { opacity: 0.45; }
  100% { opacity: 0.7; }
}

/* OutRun Sun — purple (#8f00ff) primary, to pink (#ff007f), to red (#ff0040) */
.hero-sun {
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(
    to bottom,
    var(--accent-purple) 0%,
    var(--accent-pink) 40%,
    var(--accent-red) 70%,
    transparent 100%
  );
  box-shadow:
    0 0 60px rgba(143, 0, 255, 0.25),
    0 0 120px rgba(255, 0, 127, 0.15);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  animation: sunPulse 6s ease-in-out infinite alternate;
  overflow: hidden;
}

@keyframes sunPulse {
  0% {
    transform: translateX(-50%) scale(1);
    box-shadow:
      0 0 60px rgba(143, 0, 255, 0.25),
      0 0 120px rgba(255, 0, 127, 0.15);
  }
  100% {
    transform: translateX(-50%) scale(1.08);
    box-shadow:
      0 0 80px rgba(143, 0, 255, 0.4),
      0 0 160px rgba(255, 0, 127, 0.25),
      0 0 240px rgba(255, 0, 127, 0.1);
  }
}

/* Hard sun stripes — fluid scrolling */
.hero-sun::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 10px,
    rgba(13, 2, 33, 0.7) 10px,
    rgba(13, 2, 33, 0.7) 18px
  );
  animation: stripeScroll 2s linear infinite;
}

@keyframes stripeScroll {
  0% { background-position: 0 0; }
  100% { background-position: 0 18px; }
}

/* Perspective Grid Floor — purple-tinted with cyan verticals */
.hero-grid-floor {
  position: absolute;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 52%;
  background-image:
    linear-gradient(rgba(143, 0, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 237, 249, 0.25) 1px, transparent 1px);
  background-size: 100% 40px, 70px 100%;
  transform: perspective(500px) rotateX(65deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 80%);
  animation: gridMove 8s linear infinite;
}

@keyframes gridMove {
  0% {
    background-position: 0 0, 0 0;
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
  100% {
    background-position: 0 160px, 0 0;
    opacity: 0.7;
  }
}

/* Palm Silhouettes */
.hero-palm {
  position: absolute;
  bottom: 30%;
  width: 80px;
  height: 120px;
  z-index: 1;
  opacity: 0.35;
  color: var(--bg-deep);
  animation: palmSway 5s ease-in-out infinite alternate;
  transform-origin: bottom center;
}

.hero-palm-left {
  left: 8%;
  animation-delay: 0s;
}

.hero-palm-right {
  right: 8%;
  transform: scaleX(-1);
  animation-delay: -2.5s;
}

.hero-palm svg {
  width: 100%;
  height: 100%;
  color: var(--bg-deep);
}

@keyframes palmSway {
  0% { transform: rotate(-2deg); }
  100% { transform: rotate(2deg); }
}

.hero-palm-right {
  right: 8%;
  transform: scaleX(-1);
  animation-delay: -2.5s;
}

/* Override for right palm to keep scaleX while swaying */
.hero-palm-right {
  right: 8%;
  transform: scaleX(-1);
  animation-name: palmSwayRight;
  animation-delay: -2.5s;
}

@keyframes palmSwayRight {
  0% { transform: scaleX(-1) rotate(-2deg); }
  100% { transform: scaleX(-1) rotate(2deg); }
}

/* Vignette */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 25%, var(--bg-deep) 80%);
}

/* CRT Scanlines */
.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  animation: crtFlicker 0.15s infinite;
  opacity: 0.85;
}

@keyframes crtFlicker {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.75; }
}

/* --- Hero Content --- */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: var(--accent-purple-soft);
  border: 1px solid rgba(143, 0, 255, 0.2);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-purple-bright);
  margin-bottom: 28px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(143, 0, 255, 0.08);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-purple);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-bright);
}

.hero-title .line {
  display: block;
}

/* Chrome gradient text — silver to purple (#8f00ff) */
.hero-title .line:last-child {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #e0d4ff 25%,
    #c285ff 45%,
    #8f00ff 55%,
    #5a00a0 75%,
    #240037 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 44px;
  line-height: 1.75;
  font-weight: 400;
}

.highlight {
  color: var(--accent-cyan);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(3, 237, 249, 0.25);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: #fff;
  box-shadow: 0 4px 30px rgba(143, 0, 255, 0.35), 0 0 15px rgba(143, 0, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(143, 0, 255, 0.45), 0 0 25px rgba(143, 0, 255, 0.3);
  filter: brightness(1.1);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-bright);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: rgba(3, 237, 249, 0.06);
  color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-outline {
  background: transparent;
  color: var(--text-bright);
  border: 1px solid var(--border-subtle);
  padding: 14px 32px;
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-soft);
  box-shadow: 0 0 20px rgba(3, 237, 249, 0.1);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease-out 0.8s both;
  z-index: 1;
}

.mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 3px;
  height: 5px;
  background: var(--accent-purple);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.8s ease-in-out infinite;
  box-shadow: 0 0 6px var(--accent-purple-glow);
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ---------------------------------------------------------
   SECTIONS
   --------------------------------------------------------- */
.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  max-width: 620px;
  margin-bottom: 72px;
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-yellow);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 255, 102, 0.25);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: var(--text-bright);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.75;
}

/* Neon section dividers — purple forward */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 900px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-pink), var(--accent-cyan), var(--accent-purple), transparent);
  opacity: 0.25;
  box-shadow: 0 0 12px rgba(143, 0, 255, 0.1);
}

/* ---------------------------------------------------------
   ABOUT / STATS
   --------------------------------------------------------- */
.about {
  background: var(--bg-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow-purple), var(--shadow-card);
}

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

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------
   PROJECTS
   --------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 36px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink), var(--accent-cyan));
  opacity: 0;
  transition: opacity 0.35s ease;
  box-shadow: 0 0 10px rgba(143, 0, 255, 0.2);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-7px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), var(--shadow-glow-purple);
}

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

.project-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg-glass) 0%, rgba(143, 0, 255, 0.04) 100%);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.project-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent-purple-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple-bright);
  transition: var(--transition-fast);
  overflow: hidden;
}

.project-icon svg {
  width: 24px;
  height: 24px;
}

/* ===== Project Icon Animations ===== */

/* Waveform bars bounce */
.icon-synth svg path {
  transform-origin: center bottom;
  animation: barBounce 1.6s ease-in-out infinite;
}
.icon-synth svg path:nth-child(1) { animation-delay: 0.0s; }
.icon-synth svg path:nth-child(2) { animation-delay: 0.15s; }
.icon-synth svg path:nth-child(3) { animation-delay: 0.3s; }
.icon-synth svg path:nth-child(4) { animation-delay: 0.45s; }
.icon-synth svg path:nth-child(5) { animation-delay: 0.6s; }
.icon-synth svg path:nth-child(6) { animation-delay: 0.75s; }

@keyframes barBounce {
  0%, 100% { transform: scaleY(0.6); opacity: 0.7; }
  50% { transform: scaleY(1.15); opacity: 1; }
}

/* Wing flutter */
.icon-wing svg {
  animation: wingFlutter 2.5s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes wingFlutter {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(4deg) scale(1.05); }
  75% { transform: rotate(-4deg) scale(1.05); }
}

/* Janus mask rotate */
.icon-janus svg {
  animation: maskTilt 3s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes maskTilt {
  0%, 100% { transform: rotate(0deg); }
  33% { transform: rotate(6deg); }
  66% { transform: rotate(-6deg); }
}

/* Mesh node pulse */
.icon-mesh svg {
  animation: meshPulse 2.5s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes meshPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.icon-mesh circle[fill="currentColor"] {
  animation: meshNodePulse 2.5s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes meshNodePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Forge spark + hammer */
.icon-forge svg {
  animation: forgeStrike 2.8s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes forgeStrike {
  0%, 90%, 100% { transform: rotate(0deg); }
  92% { transform: rotate(-8deg) scale(1.05); }
  94% { transform: rotate(4deg) scale(0.98); }
}

/* Book page flip */
.icon-bible svg {
  animation: pageTurn 3.5s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes pageTurn {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.85); }
}

/* Rocket thrust */
.icon-rocket svg {
  animation: rocketThrust 2s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes rocketThrust {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-2px); }
  50% { transform: translateY(1px); }
}

/* Heartbeat pulse */
.icon-heart svg {
  animation: heartbeat 1.8s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.15); }
  28% { transform: scale(1); }
  42% { transform: scale(1.12); }
  70% { transform: scale(1); }
}

/* Beacon rotate rays */
.icon-beacon svg {
  animation: beaconSpin 6s linear infinite;
  transform-origin: center center;
}

@keyframes beaconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Mesh nodes pulse */
.icon-mesh svg circle {
  animation: nodePulse 2s ease-in-out infinite;
  transform-origin: center center;
}
.icon-mesh svg circle:nth-child(1) { animation-delay: 0s; }
.icon-mesh svg circle:nth-child(2) { animation-delay: 0.4s; }
.icon-mesh svg circle:nth-child(3) { animation-delay: 0.8s; }
.icon-mesh svg circle:nth-child(4) { animation-delay: 1.2s; }

@keyframes nodePulse {
  0%, 100% { opacity: 1; r: 3; }
  50% { opacity: 0.5; r: 4; }
}

/* Sword shimmer */
.icon-sword svg {
  animation: swordShimmer 2.4s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes swordShimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Clock tick */
.icon-clock svg {
  animation: clockTick 3s ease-in-out infinite;
  transform-origin: 12px 12px;
}

.icon-clock svg circle {
  animation: clockGlow 4s ease-in-out infinite alternate;
  transform-origin: center center;
}

.icon-clock svg polyline {
  animation: handSweep 2s ease-in-out infinite;
  transform-origin: 12px 12px;
}

.icon-clock svg path:nth-child(3),
.icon-clock svg path:nth-child(4),
.icon-clock svg path:nth-child(5),
.icon-clock svg path:nth-child(6) {
  animation: tickMarkPulse 2.5s ease-in-out infinite;
  transform-origin: center center;
}
.icon-clock svg path:nth-child(3) { animation-delay: 0s; }
.icon-clock svg path:nth-child(4) { animation-delay: 0.3s; }
.icon-clock svg path:nth-child(5) { animation-delay: 0.6s; }
.icon-clock svg path:nth-child(6) { animation-delay: 0.9s; }

@keyframes clockTick {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(3deg); }
  40% { transform: rotate(-2deg); }
  60% { transform: rotate(1deg); }
  80% { transform: rotate(-0.5deg); }
}

@keyframes clockGlow {
  0%, 100% { filter: drop-shadow(0 0 0px var(--accent-cyan)); }
  50% { filter: drop-shadow(0 0 6px rgba(3, 237, 249, 0.5)); }
}

@keyframes handSweep {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  75% { transform: rotate(-4deg); }
}

@keyframes tickMarkPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Psalm page reveal */
.icon-psalm svg {
  animation: psalmOpen 3.2s ease-in-out infinite;
  transform-origin: left center;
}

@keyframes psalmOpen {
  0%, 100% { transform: scaleX(1); }
  40% { transform: scaleX(0.78); }
  70% { transform: scaleX(0.95); }
}

/* Amp sound waves pulse */
.icon-amp svg {
  animation: ampVibrate 2.5s ease-in-out infinite;
  transform-origin: center center;
}

.icon-amp svg polygon {
  animation: speakerThump 1.2s ease-in-out infinite;
  transform-origin: center center;
}

.icon-amp svg path:nth-child(2),
.icon-amp svg path:nth-child(3) {
  animation: wavePulse 1.4s ease-in-out infinite;
  transform-origin: right center;
}
.icon-amp svg path:nth-child(2) { animation-delay: 0s; }
.icon-amp svg path:nth-child(3) { animation-delay: 0.25s; }

@keyframes ampVibrate {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-0.5px); }
  40% { transform: translateX(0.5px); }
  60% { transform: translateX(-0.3px); }
  80% { transform: translateX(0.3px); }
}

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

@keyframes wavePulse {
  0%, 100% { opacity: 0.5; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.15); }
}

/* Habit trophy glow */
.icon-habit svg {
  animation: habitGlow 2.5s ease-in-out infinite alternate;
  transform-origin: center bottom;
}

@keyframes habitGlow {
  0%, 100% { filter: drop-shadow(0 0 0px var(--accent-yellow)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 8px rgba(255, 255, 102, 0.6)); transform: scale(1.05); }
}

/* Fit heartbeat + dumbbell pulse */
.icon-fit svg {
  animation: fitPulse 2s ease-in-out infinite;
  transform-origin: center center;
}

.icon-fit svg path:nth-child(1) {
  animation: heartbeatLine 1.4s ease-in-out infinite;
  transform-origin: center center;
}

.icon-fit svg rect {
  animation: weightLift 1.8s ease-in-out infinite alternate;
  transform-origin: center bottom;
}
.icon-fit svg rect:nth-child(3) { animation-delay: 0s; }
.icon-fit svg rect:nth-child(4) { animation-delay: 0.2s; }

@keyframes fitPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes heartbeatLine {
  0%, 100% { opacity: 1; stroke-width: 1.5; }
  25% { opacity: 0.7; stroke-width: 1.2; }
  50% { opacity: 1; stroke-width: 1.8; }
  75% { opacity: 0.8; stroke-width: 1.3; }
}

@keyframes weightLift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}

/* Link chain pulse + node glow */
.icon-link svg {
  animation: linkPulse 2s ease-in-out infinite;
  transform-origin: center center;
}

.icon-link svg path:nth-child(1),
.icon-link svg path:nth-child(2) {
  animation: chainSwing 2.5s ease-in-out infinite;
  transform-origin: center center;
}
.icon-link svg path:nth-child(1) { animation-delay: 0s; }
.icon-link svg path:nth-child(2) { animation-delay: 0.3s; }

.icon-link svg circle {
  animation: nodeGlow 1.8s ease-in-out infinite alternate;
  transform-origin: center center;
}

@keyframes linkPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes chainSwing {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  75% { transform: rotate(-3deg); }
}

@keyframes nodeGlow {
  0%, 100% { filter: drop-shadow(0 0 0px var(--accent-purple)); opacity: 0.8; }
  50% { filter: drop-shadow(0 0 6px rgba(143, 0, 255, 0.5)); opacity: 1; }
}

/* Shark swim + fin sway */
.icon-shark svg {
  animation: sharkSwim 2.2s ease-in-out infinite;
  transform-origin: center center;
}

.icon-shark svg path:nth-child(3) {
  animation: finSway 1.4s ease-in-out infinite;
  transform-origin: 13px 5px;
}

.icon-shark svg circle {
  animation: eyeBlink 3s ease-in-out infinite;
  transform-origin: 7px 12px;
}

.icon-shark svg path:nth-child(8),
.icon-shark svg path:nth-child(9),
.icon-shark svg path:nth-child(10) {
  animation: gillPulse 1.8s ease-in-out infinite;
  transform-origin: center center;
}
.icon-shark svg path:nth-child(8) { animation-delay: 0s; }
.icon-shark svg path:nth-child(9) { animation-delay: 0.2s; }
.icon-shark svg path:nth-child(10) { animation-delay: 0.4s; }

@keyframes sharkSwim {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(1.5px) rotate(1.5deg); }
  75% { transform: translateX(-1px) rotate(-1deg); }
}

@keyframes finSway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(8deg); }
}

@keyframes eyeBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.2); }
}

@keyframes gillPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Glyph pixel blink */
.icon-glyph svg rect {
  animation: pixelBlink 2s ease-in-out infinite alternate;
  transform-origin: center center;
}
.icon-glyph svg rect:nth-child(1) { animation-delay: 0s; }
.icon-glyph svg rect:nth-child(2) { animation-delay: 0.4s; }
.icon-glyph svg rect:nth-child(3) { animation-delay: 0.8s; }
.icon-glyph svg rect:nth-child(4) { animation-delay: 1.2s; }

@keyframes pixelBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

/* Budget coin spin */
.icon-budget svg {
  animation: coinSpin 3s ease-in-out infinite;
  transform-origin: center center;
}

.icon-budget svg circle {
  animation: coinGlow 2s ease-in-out infinite alternate;
  transform-origin: center center;
}

@keyframes coinSpin {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(20deg); }
}

@keyframes coinGlow {
  0%, 100% { filter: drop-shadow(0 0 0px var(--accent-green-bright)); }
  50% { filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.5)); }
}

/* Hover boost */
.project-card:hover .project-icon svg {
  animation-duration: 0.6s !important;
}

.project-card:hover .project-icon {
  transform: scale(1.12) rotate(-3deg);
  box-shadow: 0 0 24px var(--accent-purple-glow);
}

/* Pause animations when reduced-motion is preferred */
@media (prefers-reduced-motion: reduce) {
  .project-icon svg,
  .project-icon svg path,
  .project-icon svg circle {
    animation: none !important;
  }
}

.project-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.project-version {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan-bright);
  background: var(--accent-cyan-soft);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 500;
  border: 1px solid rgba(3, 237, 249, 0.1);
}

.project-status {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 100px;
}

.project-status.stable {
  color: var(--accent-cyan-bright);
  background: rgba(3, 237, 249, 0.06);
  border: 1px solid rgba(3, 237, 249, 0.1);
}

.project-status.beta {
  color: var(--accent-yellow);
  background: rgba(255, 255, 102, 0.06);
  border: 1px solid rgba(255, 255, 102, 0.1);
}

.project-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  color: var(--text-bright);
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 22px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(38, 35, 53, 0.5);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.project-card:hover .tech-tag {
  border-color: rgba(143, 0, 255, 0.12);
}

.tech-tag.rust { color: var(--accent-purple-bright); border-color: rgba(143, 0, 255, 0.15); }
.tech-tag.ruby { color: var(--accent-pink-bright); border-color: rgba(255, 0, 127, 0.15); }
.tech-tag.ts { color: var(--accent-cyan-bright); border-color: rgba(3, 237, 249, 0.15); }
.tech-tag.dart { color: var(--accent-yellow); border-color: rgba(255, 255, 102, 0.15); }
.tech-tag.cpp { color: var(--accent-blue); border-color: rgba(0, 128, 255, 0.15); }
.tech-tag.python { color: var(--accent-yellow); border-color: rgba(255, 255, 102, 0.15); }
.tech-tag.elixir { color: var(--accent-magenta); border-color: rgba(255, 0, 255, 0.15); }
.tech-tag.flutter { color: var(--accent-cyan-bright); border-color: rgba(3, 237, 249, 0.15); }

.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  min-height: 22px;
}

.repo-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.repo-stat svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.7;
}

.repo-stat-value {
  font-variant-numeric: tabular-nums;
}

.project-card:hover .repo-stat {
  color: var(--text-secondary);
}

.project-metrics {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.project-links a svg {
  width: 16px;
  height: 16px;
}

.project-links a:hover {
  color: var(--accent-purple-bright);
  text-shadow: 0 0 8px rgba(143, 0, 255, 0.2);
}

.projects-footer {
  margin-top: 56px;
  text-align: center;
}

/* ---------------------------------------------------------
   SKILLS
   --------------------------------------------------------- */
.skills {
  background: var(--bg-dark);
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.skills-category {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 36px;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.skills-category:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow-purple);
}

.skills-cat-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 12px;
}

.skills-cat-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: linear-gradient(to bottom, var(--accent-purple), var(--accent-pink));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(143, 0, 255, 0.25);
}

.skill-item {
  margin-bottom: 20px;
}

.skill-item:last-child {
  margin-bottom: 0;
}

.skill-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.skill-bar {
  height: 7px;
  background: rgba(38, 35, 53, 0.6);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-magenta), var(--accent-cyan));
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
  box-shadow: 0 0 14px var(--accent-purple-glow);
}

/* ---------------------------------------------------------
   CONTACT
   --------------------------------------------------------- */
.contact {
  padding-bottom: 60px;
}

.contact-card {
  background: linear-gradient(135deg, var(--bg-glass) 0%, rgba(143, 0, 255, 0.04) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: radial-gradient(circle, rgba(143, 0, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.contact-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  color: var(--text-bright);
}

.contact-desc {
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
  font-size: 1.08rem;
  line-height: 1.75;
  position: relative;
}

.contact-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  border-radius: 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
  font-weight: 600;
  font-size: 0.96rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.contact-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-btn:hover {
  border-color: var(--accent-purple);
  background: rgba(143, 0, 255, 0.08);
  color: var(--accent-purple-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-purple);
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
  background: var(--bg-dark);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-pink), var(--accent-cyan), transparent);
  opacity: 0.35;
  box-shadow: 0 0 10px rgba(143, 0, 255, 0.1);
}

/* Live GitHub Stats Note */
.github-live-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: opacity 0.5s ease;
}

.github-live-note.loading {
  opacity: 0.6;
}

.github-live-note.error {
  opacity: 0.5;
}

.github-live-note a {
  color: var(--accent-purple-bright);
  font-weight: 500;
}

.github-live-note a:hover {
  color: var(--accent-cyan);
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent-cyan-glow);
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.footer-content {
  text-align: center;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-bright);
  text-shadow: 0 0 15px rgba(143, 0, 255, 0.2);
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-text a {
  color: var(--accent-purple-bright);
  font-weight: 500;
}

.footer-text a:hover {
  color: var(--accent-cyan);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.footer-wave {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  font-style: italic;
  color: var(--accent-cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 12px var(--accent-cyan-glow), 0 0 24px rgba(3, 237, 249, 0.15);
  animation: wavePulse 3s ease-in-out infinite;
}

@keyframes wavePulse {
  0%, 100% { opacity: 0.75; text-shadow: 0 0 12px var(--accent-cyan-glow), 0 0 24px rgba(3, 237, 249, 0.15); }
  50% { opacity: 1; text-shadow: 0 0 18px var(--accent-cyan-glow), 0 0 36px rgba(3, 237, 249, 0.25); }
}

html[data-theme="cyberlight"] .footer-wave {
  color: var(--accent-cyan-bright);
  text-shadow: 0 0 8px rgba(0, 160, 168, 0.2);
}

/* ---------------------------------------------------------
   SCROLL REVEAL ANIMATIONS
   --------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

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

  .project-card.featured {
    grid-column: span 1;
  }

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

  .section {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 52px;
  }

  .hero-sun {
    width: 240px;
    height: 240px;
    bottom: 28%;
  }

  .hero-palm {
    width: 60px;
    height: 90px;
  }
}

@media (max-width: 600px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(13, 2, 33, 0.98);
    flex-direction: column;
    padding: 28px;
    gap: 18px;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(20px);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .hero-cta {
    flex-direction: column;
  }

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-card {
    padding: 28px 16px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .project-card {
    padding: 28px;
  }

  .contact-card {
    padding: 48px 28px;
  }

  .contact-links {
    flex-direction: column;
  }

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

  .hero-sun {
    width: 180px;
    height: 180px;
    bottom: 25%;
  }

  .hero-palm {
    display: none;
  }
}

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

  .project-metrics {
    flex-direction: column;
    gap: 5px;
  }

  .container {
    padding: 0 20px;
  }
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
