@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* ── Color Palette (overridden by themes) ── */
  --accent-1: #00f0ff;
  --accent-2: #a855f7;
  --accent-3: #ec4899;
  --accent-green: #22c55e;
  --accent-orange: #f97316;
  --particle-rgb: 0, 240, 255;

  /* Surfaces — Dark */
  --bg-primary: #050508;
  --bg-secondary: #0a0a10;
  --bg-card: rgba(15, 15, 25, 0.7);
  --bg-card-hover: rgba(25, 25, 45, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --bg-nav-scrolled: rgba(5, 5, 8, 0.85);
  --bg-mobile-menu: rgba(5, 5, 8, 0.95);

  /* Derived (computed from accent) */
  --accent-cyan: var(--accent-1);
  --accent-purple: var(--accent-2);
  --accent-pink: var(--accent-3);
  --gradient-primary: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(var(--particle-rgb), 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(var(--particle-rgb), 0.3), rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.3));
  --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--particle-rgb), 0.15) 0%, transparent 60%);

  /* Text */
  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-tertiary: #555570;
  --text-accent: var(--accent-1);
  --text-on-gradient: #050508;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(var(--particle-rgb), 0.2);

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

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-glow-cyan: 0 0 30px rgba(var(--particle-rgb), 0.15);
  --shadow-glow-purple: 0 0 30px rgba(168, 85, 247, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.2s var(--ease-out-expo);
  --transition-medium: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);
}

/* ── THEME: Emerald & Gold ── */
[data-theme="emerald"] {
  --accent-1: #10b981;
  --accent-2: #f59e0b;
  --accent-3: #34d399;
  --particle-rgb: 16, 185, 129;
}

/* ── THEME: Ocean Blue ── */
[data-theme="ocean"] {
  --accent-1: #3b82f6;
  --accent-2: #6366f1;
  --accent-3: #818cf8;
  --particle-rgb: 59, 130, 246;
}

/* ── THEME: Sunset Flame ── */
[data-theme="sunset"] {
  --accent-1: #f97316;
  --accent-2: #ef4444;
  --accent-3: #fbbf24;
  --particle-rgb: 249, 115, 22;
}

/* ── THEME: Arctic Frost ── */
[data-theme="arctic"] {
  --accent-1: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #a78bfa;
  --particle-rgb: 99, 102, 241;
}

/* ── THEME: Neon Lime ── */
[data-theme="neon"] {
  --accent-1: #84cc16;
  --accent-2: #22d3ee;
  --accent-3: #a3e635;
  --particle-rgb: 132, 204, 22;
}

/* ── LIGHT MODE (WARM) ── */
[data-mode="light"] {
  --bg-primary: #f8f6f0;
  --bg-secondary: #f0ede6;
  --bg-card: rgba(250, 248, 243, 0.85);
  --bg-card-hover: rgba(240, 237, 230, 0.95);
  --bg-glass: rgba(0, 0, 0, 0.03);
  --bg-glass-hover: rgba(0, 0, 0, 0.06);
  --bg-nav-scrolled: rgba(248, 246, 240, 0.9);
  --bg-mobile-menu: rgba(248, 246, 240, 0.97);
  --text-primary: #2c2b29;
  --text-secondary: #5e5c58;
  --text-tertiary: #a19f99;
  --text-on-gradient: #ffffff;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-accent: rgba(var(--particle-rgb), 0.25);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
  --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--particle-rgb), 0.08) 0%, transparent 60%);
  --gradient-subtle: linear-gradient(135deg, rgba(var(--particle-rgb), 0.06) 0%, rgba(168, 85, 247, 0.06) 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--particle-rgb), 0.2) transparent;
}

html::-webkit-scrollbar {
  width: 6px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: rgba(var(--particle-rgb), 0.2);
  border-radius: 3px;
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--particle-rgb), 0.4);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) var(--space-xl);
  transition: all var(--transition-medium);
  backdrop-filter: blur(0px);
}

.nav.scrolled {
  background: var(--bg-nav-scrolled);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-logo .logo-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo .logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

@keyframes pulse-dot {

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

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-medium);
}

.nav-link:hover {
  color: var(--text-primary);
}

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

.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  transition: all var(--transition-fast);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-cta:hover {
  background: rgba(var(--particle-rgb), 0.1);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5xl) var(--space-xl);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  z-index: 0;
  filter: blur(2px) saturate(0.5);
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--particle-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--particle-rgb), 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 20;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-lg);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: var(--space-2xl);
  background: rgba(var(--particle-rgb), 0.04);
  animation: fadeInDown 0.8s var(--ease-out-expo) 0.2s both;
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both;
}

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

.hero-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s both;
}

.hero-terminal {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-cyan);
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.7s both;
  min-height: 1.5em;
}

.hero-terminal .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent-cyan);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.8s both;
  flex-wrap: wrap;
}

.hero-ens {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  animation: fadeInUp 0.8s var(--ease-out-expo) 1s both;
}

.ens-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.ens-tag:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: rgba(var(--particle-rgb), 0.05);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-tertiary);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 0.8s var(--ease-out-expo) 1.2s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-on-gradient);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--particle-rgb), 0.3);
}

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

.btn-ghost:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  background: var(--bg-glass-hover);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════════════════════════════ */
.section {
  padding: var(--space-5xl) var(--space-xl);
  position: relative;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: var(--space-4xl);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-label::before {
  content: '//';
  opacity: 0.5;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: var(--space-md);
  max-width: 600px;
  line-height: 1.7;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  margin: 0 auto;
  max-width: 1280px;
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════════════════════ */
.projects-filter {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  font-family: var(--font-mono);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(var(--particle-rgb), 0.05);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: var(--space-xl);
}

.project-card {
  position: relative;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #007a4b 0%, #005634 100%);
  /* Highway Green */
  border: 4px solid #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: all var(--transition-medium);
  cursor: pointer;
  color: #ffffff;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), inset 0 0 0 2px rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, #008a55 0%, #00663d 100%);
  border-color: #ffffff;
}

.project-card-header {
  padding: var(--space-lg) var(--space-xl) 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.project-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.project-card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-card-status .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fce300;
  /* Yellow dot */
  animation: pulse-dot 2s ease-in-out infinite;
}

.project-card-body {
  padding: var(--space-md) var(--space-xl);
}

.project-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.project-card-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-mono);
}

.project-card-footer {
  padding: 0 var(--space-xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transition: all var(--transition-fast);
}

.project-card:hover .tech-pill {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: #fce300;
  /* Highway Yellow */
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all var(--transition-fast);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-family: var(--font-sans);
  margin-top: var(--space-sm);
}

.project-card-link:hover {
  color: #ffffff;
  gap: var(--space-sm);
}

.project-card-link .arrow {
  transition: transform var(--transition-fast);
  background: #fce300;
  color: #005634;
  padding: 2px 6px;
  border-radius: 4px;
}

.project-card:hover .project-card-link .arrow {
  transform: translateX(4px);
  background: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4xl);
  align-items: start;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: sticky;
  top: 100px;
}

.about-avatar-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.about-avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-lg);
  position: relative;
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 20px rgba(var(--particle-rgb), 0.25), 0 0 60px rgba(var(--particle-rgb), 0.1);
  outline: 3px solid rgba(var(--particle-rgb), 0.3);
  outline-offset: 2px;
  transition: box-shadow 0.4s, outline-color 0.4s;
}

.about-avatar-img:hover {
  box-shadow: 0 0 30px rgba(var(--particle-rgb), 0.4), 0 0 80px rgba(var(--particle-rgb), 0.15);
  outline-color: rgba(var(--particle-rgb), 0.5);
}

.about-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.about-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.about-socials {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  background: var(--bg-glass);
}

.social-icon:hover {
  border-color: var(--accent-cyan);
  background: rgba(var(--particle-rgb), 0.05);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-cyan);
}

.about-bio {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

.about-bio strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* SF BART Transit Map Timeline */
.experience-timeline {
  margin-top: var(--space-2xl);
  margin-left: 10px;
}

.experience-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
  margin-left: -10px;
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: var(--space-xl);
  cursor: pointer;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* The thick transit line */
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: -10px;
  width: 6px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(var(--particle-rgb), 0.4);
  z-index: 1;
}

.timeline-item:last-child::before {
  display: none;
}

/* The Station Stop (Circle) */
.timeline-item::after {
  content: '';
  position: absolute;
  left: -7px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 4px solid var(--accent-cyan);
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 10px rgba(var(--particle-rgb), 0.4);
}

.timeline-item:hover::after {
  transform: scale(1.3);
  background-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(var(--particle-rgb), 0.8);
}

.timeline-role {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 2px;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.timeline-item:hover .timeline-role {
  color: var(--accent-cyan);
}

.timeline-company {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 4px;
}

/* CSS Tooltip for Transit Schedule */
.timeline-period {
  position: absolute;
  left: 3rem;
  top: -2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
}

.timeline-period::before {
  content: 'STATION INFO // ';
  display: block;
  font-size: 0.6rem;
  color: var(--text-tertiary);
  margin-bottom: 2px;
  letter-spacing: 0.05em;
}

.timeline-item:hover .timeline-period {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* United Airlines 787 Animation */
.united-plane-icon {
  position: absolute;
  top: 50%;
  left: -20px;
  width: 32px;
  height: 32px;
  color: #005A9C;
  /* United Blue */
  opacity: 0;
  transform: translateY(-50%) rotate(45deg);
  z-index: 10;
  pointer-events: none;
}

.timeline-item.takeoff-active .united-plane-icon {
  animation: planeFlyRightAndUp 4s forwards cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes planeFlyRightAndUp {
  0% {
    opacity: 0;
    transform: translate(0, -50%) rotate(90deg);
    /* Nose pointing right */
  }

  15% {
    opacity: 1;
    transform: translate(40px, -50%) rotate(90deg);
    /* Rolling right */
  }

  40% {
    opacity: 1;
    transform: translate(120px, -50%) rotate(75deg);
    /* Starting to pitch up */
  }

  70% {
    opacity: 1;
    transform: translate(300px, -150px) rotate(45deg);
    /* Climbing */
  }

  100% {
    opacity: 0;
    transform: translate(500px, -350px) rotate(25deg);
    /* Disappearing up and right */
  }
}

/* ═══════════════════════════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

/* ─── SF Tourist Destinations Themes ─── */

/* Golden Gate Bridge Theme */
.sf-theme-golden-gate {
  border-top: 4px solid #c0362c;
  /* International Orange */
  background: linear-gradient(180deg, rgba(192, 54, 44, 0.05) 0%, var(--bg-card) 100%);
}

.sf-theme-golden-gate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(192, 54, 44, 0.2) 50%, transparent 51%),
    /* Bridge tower */
    linear-gradient(135deg, transparent 40%, rgba(192, 54, 44, 0.1) 41%, transparent 42%),
    /* Cable */
    linear-gradient(45deg, transparent 58%, rgba(192, 54, 44, 0.1) 59%, transparent 60%);
  /* Cable */
  pointer-events: none;
  opacity: 0.5;
}

.sf-theme-golden-gate .skill-bar-fill {
  background: linear-gradient(90deg, #c0362c, #ff5722);
  box-shadow: 0 0 10px rgba(192, 54, 44, 0.5);
}

.sf-theme-golden-gate .skill-group-title {
  color: #ff6a50;
}

/* Alcatraz Island Theme */
.sf-theme-alcatraz {
  border-left: 4px solid #556b78;
  /* Cold steel/ocean */
  background: linear-gradient(135deg, rgba(85, 107, 120, 0.1) 0%, var(--bg-card) 100%);
}

.sf-theme-alcatraz::before {
  content: '';
  position: absolute;
  inset: 0;
  /* subtle prison bar shadow pattern */
  background: repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(0, 0, 0, 0.2) 40px, rgba(0, 0, 0, 0.2) 43px);
  pointer-events: none;
}

.sf-theme-alcatraz .skill-bar-fill {
  background: linear-gradient(90deg, #556b78, #8ea8b8);
  box-shadow: 0 0 10px rgba(85, 107, 120, 0.5);
}

.sf-theme-alcatraz .skill-group-title {
  color: #8ea8b8;
  letter-spacing: 2px;
}

/* Palace of Fine Arts Theme */
.sf-theme-palace {
  border-bottom: 4px solid #d4af37;
  /* Rose gold / Marble */
  background: radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.08) 0%, var(--bg-card) 70%);
}

.sf-theme-palace::before {
  content: '';
  position: absolute;
  inset: 0;
  /* subtle dome column texture */
  background: radial-gradient(circle at top right, transparent 30%, rgba(212, 175, 55, 0.05) 30%, rgba(212, 175, 55, 0.05) 32%, transparent 32%);
  pointer-events: none;
}

.sf-theme-palace .skill-bar-fill {
  background: linear-gradient(90deg, #b38b22, #d4af37);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.sf-theme-palace .skill-group-title {
  color: #d4af37;
  font-family: serif;
  font-style: italic;
}

/* Coit Tower Theme */
.sf-theme-coit {
  border-right: 4px solid #e0e0e0;
  /* Concrete cylinder */
  background: linear-gradient(0deg, rgba(224, 224, 224, 0.05) 0%, var(--bg-card) 100%);
}

.sf-theme-coit::before {
  content: '';
  position: absolute;
  top: 0;
  right: 10px;
  width: 40px;
  height: 100%;
  /* Coit tower vertical indentations / beacon light */
  background:
    linear-gradient(90deg, transparent 20%, rgba(255, 255, 255, 0.02) 20%, rgba(255, 255, 255, 0.02) 40%, transparent 40%, transparent 60%, rgba(255, 255, 255, 0.02) 60%, rgba(255, 255, 255, 0.02) 80%, transparent 80%),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 200, 0.1) 0%, transparent 20px);
  pointer-events: none;
}

.sf-theme-coit .skill-bar-fill {
  background: linear-gradient(90deg, #999, #e0e0e0);
  box-shadow: 0 0 10px rgba(224, 224, 224, 0.5);
}

.sf-theme-coit .skill-group-title {
  color: #e0e0e0;
  text-transform: uppercase;
}

.skill-group:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.skill-item {
  margin-bottom: var(--space-md);
}

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

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.skill-name {
  font-weight: 500;
}

.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.skill-bar {
  height: 4px;
  background: var(--bg-glass);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--gradient-primary);
  width: 0;
  transition: width 1.2s var(--ease-out-expo);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  background: var(--bg-glass);
}

.contact-link-item:hover {
  border-color: var(--accent-cyan);
  background: rgba(var(--particle-rgb), 0.03);
  transform: translateX(6px);
}

.contact-link-icon {
  font-size: 1.2rem;
  width: 36px;
  text-align: center;
}

.contact-link-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.contact-link-value {
  font-size: 0.9rem;
  font-weight: 500;
}

/* SF Muni/BART Ticket Kiosk Aesthetic */
.contact-form {
  background: #2a2a35;
  /* Metallic dark gray casing */
  border: 8px solid #4a4a5a;
  /* Chunky metallic border */
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.8),
    /* Inset depth for casing */
    10px 10px 30px rgba(0, 0, 0, 0.5);
  /* Outer shadow */
  position: relative;
}

/* CRT Monitor Screen for the inner area */
.contact-form::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 6.5rem;
  /* Screen bounding box */
  background: #050505;
  /* Deep black screen */
  border: 8px solid #111;
  /* Screen bezel */
  border-top-color: #0a0a0a;
  border-bottom-color: #1a1a1a;
  border-radius: 4px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 1);
  z-index: 1;
  pointer-events: none;
}

/* Scanlines overlay */
.contact-form::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 6.5rem;
  background: repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.15) 1px,
      transparent 1px,
      transparent 2px);
  z-index: 10;
  pointer-events: none;
  border-radius: 4px;
}

.contact-form>* {
  position: relative;
  z-index: 5;
  /* Keep content above screen background */
}

.contact-form h3 {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-xl);
  margin-top: 0.5rem;
  color: #33ff33;
  /* Retro neon green */
  text-shadow: 0 0 5px rgba(51, 255, 51, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 1rem;
}

.form-group {
  margin-bottom: var(--space-lg);
  padding: 0 1rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #33ff33;
  margin-bottom: var(--space-xs);
  font-family: var(--font-mono);
  text-shadow: 0 0 5px rgba(51, 255, 51, 0.5);
  text-transform: uppercase;
}

.form-label::before {
  content: '>';
  margin-right: 5px;
  opacity: 0.7;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm) 0;
  border: none;
  border-bottom: 2px solid #114411;
  /* Retro terminal underline */
  border-radius: 0;
  background: transparent;
  color: #33ff33;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(51, 255, 51, 0.3);
  font-style: italic;
}

.form-input:focus,
.form-textarea:focus {
  border-bottom-color: #33ff33;
  box-shadow: 0 4px 6px -4px rgba(51, 255, 51, 0.2);
  background: rgba(0, 20, 0, 0.5);
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

/* Chunky Hardware Submit Button */
.form-submit {
  display: block;
  width: calc(100% - 2rem);
  margin: 4.5rem 1rem 0 1rem;
  /* Push it down below the screen */
  padding: 16px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  /* Emergency Red */
  border: 2px solid #fca5a5;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.1s ease;
  cursor: pointer;
  /* 3D button effect using box-shadow */
  box-shadow: 0 6px 0 #7f1d1d, 0 10px 15px rgba(0, 0, 0, 0.4);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 15;
  /* outside the screen overlay */
}

.form-submit:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #7f1d1d, 0 4px 5px rgba(0, 0, 0, 0.4);
}

.form-submit:hover {
  filter: brightness(1.1);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   SF ANIMATED FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer-sf {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg,
      #0a0a1a 0%,
      #1a1040 15%,
      #2d1b69 30%,
      #6b2fa0 45%,
      #c44e3f 60%,
      #e8843a 72%,
      #f5b041 85%,
      #ffd97d 100%);
  border-top: 1px solid rgba(var(--particle-rgb), 0.15);
  min-height: 320px;
}

/* Stars */
.sf-stars {
  position: absolute;
  inset: 0;
  height: 50%;
}

.sf-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 1;
  }
}

/* Fog */
.sf-fog {
  position: absolute;
  bottom: 60px;
  left: -100%;
  width: 300%;
  height: 80px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08), transparent);
  animation: fogDrift 20s linear infinite;
  z-index: 5;
}

@keyframes fogDrift {
  from {
    transform: translateX(-33.3%);
  }

  to {
    transform: translateX(0%);
  }
}

/* Golden Gate Bridge */
.sf-bridge {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 160px;
  z-index: 3;
}

.bridge-tower {
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 140px;
  background: linear-gradient(to right, #c0392b, #e74c3c, #c0392b);
  border-radius: 2px 2px 0 0;
  z-index: 4;
}

.bridge-tower-left {
  left: 60px;
}

.bridge-tower-right {
  right: 60px;
}

.bridge-beam {
  position: absolute;
  left: -4px;
  width: 18px;
  height: 3px;
  background: #c0392b;
}

.bridge-beam:nth-child(1) {
  top: 20%;
}

.bridge-beam:nth-child(2) {
  top: 50%;
}

.bridge-beam:nth-child(3) {
  top: 80%;
}

.bridge-deck {
  position: absolute;
  bottom: 30px;
  left: 10px;
  right: 10px;
  height: 6px;
  background: linear-gradient(to right, #922b21, #c0392b, #e74c3c, #c0392b, #922b21);
  border-radius: 1px;
  z-index: 3;
}

.bridge-cable {
  position: absolute;
  bottom: 30px;
  left: 65px;
  right: 65px;
  height: 110px;
  border: 2px solid #c0392b;
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 2;
}

.bridge-cable-2 {
  left: 20px;
  right: 20px;
  height: 80px;
  border-color: rgba(192, 57, 43, 0.5);
}

/* Skyline */
.sf-skyline {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  height: 160px;
  z-index: 2;
}

.sf-building {
  position: absolute;
  bottom: 0;
  left: var(--l, 50%);
  width: var(--w, 24px);
  height: var(--h, 80px);
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 2px 2px 0 0;
}

.sf-building::before {
  content: '';
  position: absolute;
  inset: 4px;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 8px,
      rgba(255, 200, 50, 0.15) 8px,
      rgba(255, 200, 50, 0.15) 10px);
  background-size: 100%;
}

/* Transamerica Pyramid */
.sf-transamerica {
  width: 0 !important;
  height: 0 !important;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 130px solid #1a1a2e;
  background: none !important;
  border-radius: 0 !important;
}

.sf-transamerica::before {
  display: none;
}

/* Salesforce Tower */
.sf-salesforce {
  width: 26px !important;
  height: 155px !important;
  border-radius: 12px 12px 0 0 !important;
  background: linear-gradient(180deg, #2c3e6b 0%, #1a1a2e 100%) !important;
}

/* Cable car */
.sf-cablecar {
  position: absolute;
  bottom: 45px;
  font-size: 1.5rem;
  z-index: 6;
  animation: cablecarRide 12s linear infinite;
}

@keyframes cablecarRide {
  0% {
    left: -40px;
  }

  100% {
    left: calc(100% + 40px);
  }
}

/* Hills */
.sf-hills {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55px;
  background:
    radial-gradient(ellipse 120% 60px at 15% 100%, #1a4d2e 100%, transparent 100%),
    radial-gradient(ellipse 100% 50px at 45% 100%, #1e5631 100%, transparent 100%),
    radial-gradient(ellipse 130% 55px at 75% 100%, #1a4d2e 100%, transparent 100%),
    radial-gradient(ellipse 90% 45px at 95% 100%, #1e5631 100%, transparent 100%);
  z-index: 4;
}

/* Footer content */
.sf-footer-content {
  position: relative;
  z-index: 10;
  padding: 0 var(--space-xl) var(--space-lg);
  margin-top: auto;
}

.sf-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sf-footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sf-location {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

.sf-copyright {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
}

.sf-footer-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.sf-social {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.sf-social:hover {
  color: #fff;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

/* Light mode overrides */
[data-mode="light"] .footer-sf {
  background: linear-gradient(180deg,
      #e8f4fd 0%,
      #b8d9f0 15%,
      #87ceeb 30%,
      #6bb3d9 45%,
      #e8843a 65%,
      #f5b041 80%,
      #ffd97d 100%);
}

[data-mode="light"] .sf-star {
  display: none;
}

[data-mode="light"] .sf-fog {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.2), transparent);
}

[data-mode="light"] .sf-building {
  background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
}

[data-mode="light"] .sf-location {
  color: rgba(30, 30, 30, 0.9);
}

[data-mode="light"] .sf-copyright {
  color: rgba(30, 30, 30, 0.5);
}

[data-mode="light"] .sf-social {
  color: rgba(30, 30, 30, 0.6);
  background: rgba(0, 0, 0, 0.06);
}

[data-mode="light"] .sf-social:hover {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.1);
}

[data-mode="light"] .sf-footer-inner {
  border-top-color: rgba(0, 0, 0, 0.1);
}

[data-mode="light"] .sf-hills {
  background:
    radial-gradient(ellipse 120% 60px at 15% 100%, #27ae60 100%, transparent 100%),
    radial-gradient(ellipse 100% 50px at 45% 100%, #2ecc71 100%, transparent 100%),
    radial-gradient(ellipse 130% 55px at 75% 100%, #27ae60 100%, transparent 100%),
    radial-gradient(ellipse 90% 45px at 95% 100%, #2ecc71 100%, transparent 100%);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-sf {
    min-height: 280px;
  }

  .sf-bridge {
    width: 200px;
    height: 120px;
  }

  .bridge-tower {
    height: 100px;
  }

  .bridge-tower-left {
    left: 40px;
  }

  .bridge-tower-right {
    right: 40px;
  }

  .bridge-cable {
    left: 45px;
    right: 45px;
    height: 80px;
  }

  .bridge-cable-2 {
    left: 10px;
    right: 10px;
    height: 60px;
  }

  .bridge-deck {
    bottom: 22px;
  }

  .sf-skyline {
    height: 120px;
  }

  .sf-building {
    transform: scale(0.8);
    transform-origin: bottom;
  }

  .sf-cablecar {
    font-size: 1.2rem;
  }

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

  .sf-footer-left {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .footer-sf {
    min-height: 250px;
  }

  .sf-bridge {
    width: 160px;
    height: 100px;
  }

  .bridge-tower {
    height: 80px;
    width: 8px;
  }

  .bridge-tower-left {
    left: 30px;
  }

  .bridge-tower-right {
    right: 30px;
  }

  .bridge-cable {
    left: 35px;
    right: 35px;
    height: 60px;
  }

  .bridge-cable-2 {
    left: 5px;
    right: 5px;
    height: 45px;
  }

  .bridge-deck {
    bottom: 18px;
    height: 4px;
  }

  .sf-skyline {
    height: 90px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

.stagger-5 {
  transition-delay: 0.5s;
}

.stagger-6 {
  transition-delay: 0.6s;
}

.stagger-7 {
  transition-delay: 0.7s;
}

/* ═══════════════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════════════ */
.stats-bar {
  position: relative;
  padding: var(--space-3xl) var(--space-xl);
  max-width: 1280px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ═══ SF THEME ENHANCEMENTS ═══ */

/* Bay Bridge Stats Scene */
.bay-bridge-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.stats-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.bb-tower {
  position: absolute;
  bottom: 0;
  width: 60px;
  height: 150%;
  background: linear-gradient(to top, #c0362c, transparent);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0% 100%);
}

.bb-tower::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 30%;
  background: var(--bg-tertiary);
  /* Cutout */
}

.bb-tower.left {
  left: 15%;
}

.bb-tower.right {
  right: 15%;
}

.bb-cables {
  position: absolute;
  top: 25%;
  left: -10%;
  width: 120%;
  height: 60%;
  border-bottom: 4px solid #c0362c;
  border-radius: 50%;
}

.bb-traffic-lanes {
  position: absolute;
  bottom: 15%;
  left: 0;
  width: 100%;
  height: 12px;
  display: flex;
  align-items: center;
}

.bb-car {
  position: absolute;
  width: 8px;
  height: 3px;
  border-radius: 2px;
  background: #ff3333;
  /* default tail lights */
  box-shadow: 0 0 5px #ff3333;
}

.bb-car.left-bound {
  background: #ffaa00;
  box-shadow: 0 0 5px #ffaa00;
}

@keyframes driveLeft {
  from {
    transform: translateX(110vw);
  }

  to {
    transform: translateX(-10vw);
  }
}

@keyframes driveRight {
  from {
    transform: translateX(-10vw);
  }

  to {
    transform: translateX(110vw);
  }
}

.c1 {
  animation: driveLeft 8s linear infinite;
  top: 0;
}

.c2 {
  animation: driveLeft 6s linear infinite 2s;
  top: 0;
}

.c3 {
  animation: driveLeft 10s linear infinite 5s;
  top: 2px;
}

.c4 {
  animation: driveRight 7s linear infinite 1s;
  bottom: 0;
}

.c5 {
  animation: driveRight 9s linear infinite 3s;
  bottom: 0;
}

.c6 {
  animation: driveRight 5s linear infinite 6s;
  bottom: 2px;
}

.c7 {
  animation: driveRight 8s linear infinite 4s;
  bottom: 2px;
}

.c8 {
  animation: driveLeft 7.5s linear infinite 1.5s;
  top: 2px;
}

.c9 {
  animation: driveRight 6.5s linear infinite 2.5s;
  bottom: 0;
}


/* About SF Hoarding Board */
.sf-billboard-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
  perspective: 1000px;
}

/* Base poles that support the structure */
.sf-billboard-supports {
  display: flex;
  justify-content: space-between;
  width: 60%;
  height: 80px;
  position: relative;
  z-index: 1;
  background:
    linear-gradient(90deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%),
    linear-gradient(0deg, #111, #2a2a2a);
}

.support-pole {
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, #151515, #333 50%, #151515);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8), 5px 0 15px rgba(0, 0, 0, 0.5);
  border-left: 1px solid #444;
  border-right: 1px solid #111;
  position: relative;
}

.support-pole::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -5px;
  right: -5px;
  height: 4px;
  background: #222;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.support-pole::after {
  content: '';
  position: absolute;
  top: 60%;
  left: -5px;
  right: -5px;
  height: 4px;
  background: #222;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.sf-billboard-structure {
  background: #111;
  padding: 15px;
  border: 4px solid #000;
  border-bottom-width: 8px;
  border-radius: 4px;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.8),
    inset 0 0 0 2px #444,
    inset 0 0 20px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 2;
  transform: rotateX(2deg);
  /* slight tilt up */
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 500px;
}

.sf-billboard-structure:hover {
  transform: rotateX(0deg) translateY(-5px);
}

/* Spotlights mounted on top */
.sf-billboard-lights {
  position: absolute;
  top: -15px;
  left: 10%;
  right: 10%;
  display: flex;
  justify-content: space-around;
  z-index: 5;
}

.sf-billboard-lights::before,
.sf-billboard-lights::after {
  content: '';
  width: 30px;
  height: 15px;
  background: #222;
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
  border: 2px solid #111;
  position: relative;
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

/* Light beams */
.sf-billboard-lights .beam {
  position: absolute;
  top: 10px;
  width: 150px;
  height: 250px;
  background: linear-gradient(180deg, rgba(255, 235, 150, 0.15) 0%, transparent 100%);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  pointer-events: none;
  opacity: 0.8;
  animation: flickerLight 4s infinite alternate;
}

.sf-billboard-lights .beam.left {
  left: 5%;
  transform: translateX(-50%);
}

.sf-billboard-lights .beam.right {
  right: 5%;
  transform: translateX(50%);
}

@keyframes flickerLight {

  0%,
  100% {
    opacity: 0.8;
  }

  5%,
  15% {
    opacity: 0.9;
  }

  10%,
  20% {
    opacity: 0.7;
  }

  50% {
    opacity: 0.85;
  }
}

/* Warning trim across bottom edge */
.sf-billboard-structure::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(45deg, #ffd700, #ffd700 10px, #111 10px, #111 20px);
  border-radius: 0 0 2px 2px;
}

.sf-billboard-content {
  background: var(--bg-secondary);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 2px;
  border: 1px solid #333;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.sf-billboard-content::before {
  /* Subtle dirt/grunge overlay */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

.about-avatar-area {
  position: relative;
  z-index: 2;
}

/* Cyberpunk Glitch Effect for Billboard */
.glitching {
  animation: glitch-anim 0.2s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch-anim {
  0% {
    transform: translate(0)
  }

  20% {
    transform: translate(-2px, 2px);
    text-shadow: 2px 0 #00ffff, -2px 0 #ff00ff;
  }

  40% {
    transform: translate(-2px, -2px);
    text-shadow: none;
    filter: hue-rotate(90deg) opacity(0.8);
  }

  60% {
    transform: translate(2px, 2px);
    text-shadow: 2px 0 #00ffff, -2px 0 #ff00ff;
  }

  80% {
    transform: translate(2px, -2px);
    text-shadow: none;
    filter: hue-rotate(-90deg) opacity(0.9);
  }

  100% {
    transform: translate(0);
    filter: none;
    text-shadow: none;
  }
}

.glitching-avatar {
  animation: glitch-anim-img 0.2s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch-anim-img {
  0% {
    transform: translate(0);
    filter: hue-rotate(0deg);
    opacity: 1;
  }

  20% {
    transform: translate(-4px, 2px);
    filter: hue-rotate(90deg) contrast(1.5);
    opacity: 0.8;
  }

  40% {
    transform: translate(4px, -2px);
    filter: hue-rotate(-90deg) contrast(1.2);
    opacity: 0.9;
  }

  60% {
    transform: translate(-2px, 4px);
    filter: hue-rotate(180deg) invert(0.2);
    opacity: 0.7;
  }

  80% {
    transform: translate(2px, -4px);
    filter: hue-rotate(45deg);
    opacity: 0.9;
  }

  100% {
    transform: translate(0);
    filter: none;
    opacity: 1;
  }
}

.building-base {
  width: 70%;
  height: 50px;
  background: repeating-linear-gradient(90deg, #222, #222 10px, #1a1a1a 10px, #1a1a1a 15px);
  border-top: 4px solid #444;
  position: relative;
  z-index: 1;
  margin-top: -5px;
  border-radius: 0 0 4px 4px;
  box-shadow: inset 0 10px 10px rgba(0, 0, 0, 0.5);
}


/* Skills Digital Sign */
.sf-digital-sign {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.sign-frame {
  background: #050505;
  border: 4px solid #333;
  border-radius: 8px;
  padding: 1rem 3rem;
  box-shadow: inset 0 0 20px #000, 0 10px 20px rgba(0, 0, 0, 0.5);
  text-align: center;
  position: relative;
}

.sign-frame::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 10px;
  background: #333;
  border-radius: 4px 4px 0 0;
}

.led-text {
  font-family: 'Courier New', Courier, monospace;
  color: #ffaa00;
  /* Amber LED color */
  text-transform: uppercase;
  letter-spacing: 5px;
  text-shadow: 0 0 5px #ffaa00, 0 0 10px #ffaa00;
  margin: 0;
  font-size: 1.8rem;
  font-weight: 900;
}

.led-text span {
  display: block;
  font-size: 0.9rem;
  color: #00ffcc;
  /* neon green */
  text-shadow: 0 0 5px #00ffcc;
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
}


/* SF Street Scene */
.sf-street-scene {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  margin-bottom: 3rem;
  border-bottom: 6px solid #222;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.1);
}

.asphalt {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 25px;
  background: #1a1a1a;
  box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.5);
}

.street-lines {
  position: absolute;
  bottom: 10px;
  width: 200%;
  height: 3px;
  background: repeating-linear-gradient(90deg, #ffd700 0, #ffd700 30px, transparent 30px, transparent 60px);
  animation: driveLines 1.5s linear infinite;
}

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

  to {
    transform: translateX(-60px);
  }
}

.street-pole {
  position: absolute;
  bottom: 25px;
  width: 8px;
  height: 100px;
  background: linear-gradient(to right, #444, #222);
  left: 20%;
}

.street-pole::after {
  content: '';
  position: absolute;
  top: 0;
  left: -15px;
  width: 30px;
  height: 12px;
  background: #333;
  border-radius: 50% 50% 0 0;
  box-shadow: 0 5px 10px rgba(255, 255, 200, 0.2);
}

.street-pole.p2 {
  left: 70%;
}

.sf-bus-wrapper {
  position: absolute;
  bottom: 25px;
  left: -250px;
  animation: driveBus 18s linear infinite;
  z-index: 5;
}

@keyframes driveBus {
  0% {
    transform: translateX(-15vw);
  }

  100% {
    transform: translateX(115vw);
  }
}

.sf-bus {
  position: relative;
  width: 220px;
  height: 85px;
  background: #c62828;
  /* SF Trolley Red */
  border-radius: 12px 12px 0 0;
  border: 2px solid #8e0000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.bus-roof {
  position: absolute;
  top: -10px;
  left: 15px;
  width: 190px;
  height: 10px;
  background: #e0e0e0;
  border-radius: 6px 6px 0 0;
  border: 1px solid #9e9e9e;
}

.bus-body {
  position: relative;
  width: 100%;
  height: 100%;
}

.bus-windows {
  display: flex;
  justify-content: space-evenly;
  padding-top: 15px;
}

.b-window {
  width: 35px;
  height: 35px;
  background: rgba(200, 230, 255, 0.9);
  border-radius: 4px;
  border: 2px solid #d4af37;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 25px;
  background: #2a2a2a;
  border-radius: 10px 10px 0 0;
}

.passenger1 {
  height: 20px;
  width: 15px;
}

.passenger2 {
  height: 28px;
  width: 18px;
}

.passenger3 {
  height: 22px;
  width: 16px;
}

.passenger4 {
  height: 26px;
  width: 19px;
}

.bus-doors {
  position: absolute;
  right: 25px;
  bottom: 12px;
  width: 20px;
  height: 48px;
  border: 2px solid #d4af37;
  border-radius: 2px;
  background: rgba(200, 230, 255, 0.4);
}

.bus-ad-board {
  position: absolute;
  bottom: 12px;
  left: 15px;
  width: 150px;
  height: 30px;
  background: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bus-ad-board .ad-text {
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 1px;
  line-height: 1;
}

.bus-ad-board .ad-subtext {
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #c62828;
}

.bus-lights {
  position: absolute;
  bottom: 15px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 5px;
  box-sizing: border-box;
}

.headlight {
  width: 10px;
  height: 10px;
  background: #fffacd;
  border-radius: 50%;
  box-shadow: 0 0 10px 5px rgba(255, 250, 205, 0.6);
}

.taillight {
  width: 10px;
  height: 10px;
  background: #ff0000;
  border-radius: 50%;
  box-shadow: 0 0 10px 3px rgba(255, 0, 0, 0.8);
}

.bus-chassis {
  position: absolute;
  bottom: -15px;
  width: 100%;
  display: flex;
  justify-content: space-around;
  z-index: -1;
}

.bus-wheel {
  width: 32px;
  height: 32px;
  background: #222;
  border: 4px solid #000;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.wheel-rim {
  width: 14px;
  height: 14px;
  background: #aaa;
  border-radius: 50%;
  border: 2px solid #888;
}

/* Speech Bubble (Interactive Trolley) */
.speech-bubble {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  padding: 8px 12px;
  font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
  font-weight: bold;
  font-size: 0.8rem;
  border: 4px solid #000;
  border-radius: 4px;
  z-index: 100;
  white-space: nowrap;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.speech-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 12px;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
  z-index: -1;
  margin-top: 4px;
}

@keyframes popIn {
  from {
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
  }

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

/* Mouse-Move Parallax Depth */
.sf-billboard-supports,
.street-pole {
  transform: translateX(calc(var(--parallax-x, 0) * -20px));
  transition: transform 0.1s ease-out;
}

.sf-building-base,
.asphalt {
  transform: translateX(calc(var(--parallax-x, 0) * -10px));
  transition: transform 0.1s ease-out;
}

.stats-background {
  transform: translateX(calc(var(--parallax-x, 0) * 15px));
  transition: transform 0.1s ease-out;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    position: static;
  }

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

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

  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-mobile-menu);
    backdrop-filter: blur(20px);
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border-subtle);
    gap: var(--space-lg);
    animation: fadeInDown 0.3s var(--ease-out-expo);
  }

  .hero {
    padding: var(--space-4xl) var(--space-md) var(--space-3xl);
  }

  .hero-scroll-indicator {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

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

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

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

  .stats-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .section {
    padding: var(--space-3xl) var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero-ens {
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-3xl);
  }

  .hero-scroll-indicator {
    display: none;
  }

  .stats-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-btn {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.7rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   LOADING STATE
   ═══════════════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

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

/* ═══════════════════════════════════════════════════════════════
   THEME SWITCHER
   ═══════════════════════════════════════════════════════════════ */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1rem;
  position: relative;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(var(--particle-rgb), 0.1);
  transform: scale(1.1);
}

.theme-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  min-width: 220px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transition: all 0.25s var(--ease-out-expo);
  z-index: 2000;
}

.theme-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.theme-panel-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.theme-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.theme-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.theme-dot:hover {
  transform: scale(1.2);
}

.theme-dot.active {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px var(--bg-primary), 0 0 12px rgba(var(--particle-rgb), 0.3);
}

.theme-dot[data-theme="cyber"] {
  background: linear-gradient(135deg, #00f0ff, #a855f7, #ec4899);
}

.theme-dot[data-theme="emerald"] {
  background: linear-gradient(135deg, #10b981, #f59e0b, #34d399);
}

.theme-dot[data-theme="ocean"] {
  background: linear-gradient(135deg, #3b82f6, #6366f1, #818cf8);
}

.theme-dot[data-theme="sunset"] {
  background: linear-gradient(135deg, #f97316, #ef4444, #fbbf24);
}

.theme-dot[data-theme="arctic"] {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
}

.theme-dot[data-theme="neon"] {
  background: linear-gradient(135deg, #84cc16, #22d3ee, #a3e635);
}

.theme-divider {
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: 12px;
}

.mode-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mode-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.mode-switch {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--bg-glass-hover);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.mode-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: all var(--transition-fast);
}

.mode-switch.light {
  background: rgba(var(--particle-rgb), 0.15);
  border-color: var(--accent-cyan);
}

.mode-switch.light::after {
  left: 23px;
  background: var(--accent-cyan);
}

/* Smooth transitions when switching themes */
body,
.nav,
.project-card,
.about-card,
.skill-group,
.contact-form,
.contact-link-item,
.footer-sf,
.stats-bar,
.form-input,
.form-textarea,
.btn,
.filter-btn,
.ens-tag,
.hero-badge,
.social-icon,
.sf-social,
.section-divider {
  transition: background-color 0.4s ease, color 0.4s ease,
    border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Light mode particle opacity tweak */
[data-mode="light"] .hero-canvas {
  opacity: 0.4;
}

[data-mode="light"] .hero-grid-bg {
  opacity: 0.3;
}

@media (max-width: 768px) {
  .theme-panel {
    right: -40px;
  }
}