/* Design Tokens */
:root {
  /* Primary Colors - Charcoal Slate */
  --primary-base: #0F1115;
  --primary-700: #1B1F27;
  --primary-600: #252B36;
  --primary-500: #2E3644;
  --primary-300: #4B5563;
  --primary-200: #6B7280;
  --primary-text: #E5E7EB;

  /* Secondary Colors - Neon Orange */
  --secondary-base: #FF6B35;
  --secondary-700: #E85A2B;
  --secondary-500: #FF8C5A;
  --secondary-300: #FFB899;

  /* Grays */
  --gray-900: #0B0D12;
  --gray-800: #141821;
  --gray-700: #1F2430;
  --gray-600: #2B3242;
  --gray-500: #3B4256;
  --gray-400: #5B647B;
  --gray-300: #7C859B;
  --gray-200: #A3A9B8;
  --gray-100: #D1D5DB;

  /* Dark Mode (Default) */
  --bg: var(--primary-base);
  --surface: var(--primary-700);
  --text-primary: var(--primary-text);
  --text-secondary: var(--gray-300);
  --accent: var(--secondary-base);
  --outline: rgba(229, 231, 235, 0.15);
  --shadow: rgba(0, 0, 0, 0.3);
  --polaroid-bg: #FFFFFF;
}

/* Light Mode */
[data-theme="light"] {
  --bg: #FAFAFB;
  --surface: #FFFFFF;
  --text-primary: #0B1220;
  --text-secondary: #4B5563;
  --accent: var(--secondary-700);
  --outline: rgba(11, 18, 32, 0.08);
  --shadow: rgba(0, 0, 0, 0.08);
  --polaroid-bg: #FFFFFF;
}

/* Spacing */
:root {
  --section-gap: clamp(2rem, 5vw, 4rem);
  --component-gap: 1rem;
  --container-padding: clamp(1rem, 3vw, 2rem);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
}

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

:root {
  --font-display: 'Caveat', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1vw, 1rem);
  line-height: 1.6;
  color: var(--text-primary);
  background: 
    radial-gradient(ellipse at top left, rgba(255, 107, 53, 0.015) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(184, 212, 255, 0.01) 0%, transparent 50%),
    radial-gradient(ellipse at center, rgba(200, 168, 255, 0.008) 0%, transparent 70%),
    linear-gradient(180deg, #0F1115 0%, #0B0D12 100%);
  background-color: var(--bg);
  min-height: 100vh;
  padding: calc(var(--container-padding) + 20vh) var(--container-padding);
  position: relative;
  text-transform: lowercase;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.01) 2px, rgba(255, 255, 255, 0.01) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.01) 2px, rgba(255, 255, 255, 0.01) 4px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

/* Zoomies mode - spatial gradient background */
body.zoomies-mode {
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(155, 181, 255, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(200, 168, 255, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(255, 212, 184, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(184, 255, 212, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 30% 60%, rgba(255, 229, 184, 0.15) 0%, transparent 35%),
    linear-gradient(135deg, #0F1115 0%, #1a1d2a 25%, #0B0D12 50%, #1a1d2a 75%, #0F1115 100%);
  background-size: 200% 200%;
  animation: zoomiesGradient 3s ease-in-out infinite;
  background-color: var(--bg);
}

@keyframes zoomiesGradient {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

body.zoomies-mode::before {
  opacity: 0.6;
  animation: zoomiesGrid 2s linear infinite;
}

@keyframes zoomiesGrid {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, 20px);
  }
}

/* Background Stars */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.006) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(155, 181, 255, 0.006) 0%, transparent 50%);
}

/* Galaxy Spiral */
.galaxy-spiral {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* Behind stars but above background */
  opacity: 0.15;
}

/* Galaxy spiral rotation handled by JavaScript animation */

/* Warp Speed Lines */
.warp-speed-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 500; /* Above background, below content */
  overflow: hidden;
}

.warp-line {
  position: absolute;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.star,
.planet,
.spaceship {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  animation: drift-left 120s linear infinite;
}

.star svg,
.planet svg,
.spaceship svg {
  display: block;
}

.planet {
  animation-duration: 180s; /* Planets move slower than stars */
}

/* Planet Shadows */
.planet-shadow {
  position: absolute;
  transform: translate(-50%, -50%);
  animation: drift-left 180s linear infinite;
  pointer-events: none;
}

.spaceship {
  animation-duration: 150s; /* Spaceships move at medium speed */
  animation-timing-function: linear;
}

/* Shooting Stars */
.shooting-star {
  position: absolute;
  width: 2px;
  height: 100px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(139, 92, 246, 0.6) 100%
  );
  border-radius: 50%;
  box-shadow: 
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(139, 92, 246, 0.6),
    0 0 30px rgba(107, 70, 193, 0.4);
  transform-origin: top center;
  transform: translate(-50%, -50%) rotate(var(--angle, 0deg));
  animation: shooting-star-move 2s linear forwards;
  opacity: 0;
}

@keyframes shooting-star-move {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(calc(var(--start-x, 0%) - 50%), calc(var(--start-y, 0%) - 50%)) rotate(var(--angle, 0deg)) scale(0.5);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(calc(var(--end-x, 100%) - 50%), calc(var(--end-y, 100%) - 50%)) rotate(var(--angle, 0deg)) scale(1.2);
  }
}

/* Nebula Clouds */
.nebula {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: nebula-drift 200s linear infinite;
  pointer-events: none;
  opacity: 0.1;
}

@keyframes nebula-drift {
  0% {
    transform: translate(-50%, -50%) translateX(100vw) scale(1);
    opacity: 0.05;
  }
  25% {
    opacity: 0.12;
  }
  50% {
    transform: translate(-50%, -50%) translateX(0vw) scale(1.1);
    opacity: 0.15;
  }
  75% {
    opacity: 0.12;
  }
  100% {
    transform: translate(-50%, -50%) translateX(-100vw) scale(1);
    opacity: 0.05;
  }
}

/* Asteroids */
.asteroid {
  position: absolute;
  transform: translate(-50%, -50%);
  animation: asteroid-drift 140s linear infinite;
}

@keyframes asteroid-drift {
  0% {
    transform: translate(-50%, -50%) translateX(100vw) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) translateX(-100vw) rotate(360deg);
  }
}

@keyframes drift-left {
  0% {
    transform: translate(-50%, -50%) translateX(100vw);
  }
  100% {
    transform: translate(-50%, -50%) translateX(-100vw);
  }
}

/* Comets */
.comet {
  position: absolute;
  transform: translate(-50%, -50%);
  animation: comet-drift 100s linear infinite;
}

@keyframes comet-drift {
  0% {
    transform: translate(-50%, -50%) translateX(100vw) rotate(0deg);
    opacity: 0.4;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) translateX(-100vw) rotate(360deg);
    opacity: 0.4;
  }
}

/* Space Dust */
.space-dust {
  position: absolute;
  transform: translate(-50%, -50%);
  animation: dust-drift 160s linear infinite, dust-twinkle 3s ease-in-out infinite;
}

@keyframes dust-drift {
  0% {
    transform: translate(-50%, -50%) translateX(100vw);
  }
  100% {
    transform: translate(-50%, -50%) translateX(-100vw);
  }
}

@keyframes dust-twinkle {
  0%, 100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Constellations */
.constellation {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--angle, 0deg));
  animation: constellation-drift 180s linear infinite;
}

@keyframes constellation-drift {
  0% {
    transform: translate(-50%, -50%) translateX(100vw) rotate(var(--angle, 0deg));
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) translateX(-100vw) rotate(var(--angle, 0deg));
    opacity: 0.1;
  }
}

/* Black Holes */
.black-hole {
  position: absolute;
  transform: translate(-50%, -50%);
  animation: blackhole-drift 220s linear infinite, blackhole-pulse 8s ease-in-out infinite;
}

@keyframes blackhole-drift {
  0% {
    transform: translate(-50%, -50%) translateX(100vw) scale(1);
  }
  100% {
    transform: translate(-50%, -50%) translateX(-100vw) scale(1);
  }
}

@keyframes blackhole-pulse {
  0%, 100% {
    box-shadow: 
      0 0 30px rgba(76, 29, 149, 0.3),
      inset 0 0 15px rgba(0, 0, 0, 0.9);
    opacity: 0.6;
  }
  50% {
    box-shadow: 
      0 0 50px rgba(76, 29, 149, 0.5),
      inset 0 0 20px rgba(0, 0, 0, 0.95);
    opacity: 0.8;
  }
}

/* Pulsars */
.pulsar {
  position: absolute;
  transform: translate(-50%, -50%);
  animation: pulsar-drift 130s linear infinite, pulsar-pulse 1.5s ease-in-out infinite;
}

@keyframes pulsar-drift {
  0% {
    transform: translate(-50%, -50%) translateX(100vw);
  }
  100% {
    transform: translate(-50%, -50%) translateX(-100vw);
  }
}

@keyframes pulsar-pulse {
  0%, 100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 9px rgba(139, 92, 246, 0.6);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
    box-shadow: 0 0 20px rgba(139, 92, 246, 1);
  }
}

/* Solar Flares */
.solar-flare {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--angle, 0deg));
  animation: solar-flare-appear 1.5s ease-out forwards;
}

@keyframes solar-flare-appear {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) scale(0.5);
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) scale(1.5) translateY(-20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .star,
  .planet,
  .spaceship,
  .asteroid,
  .nebula,
  .comet,
  .space-dust,
  .constellation,
  .black-hole,
  .pulsar {
    animation: none;
  }
  
  .shooting-star,
  .solar-flare {
    display: none;
  }
}


/* Container */
.container {
  max-width: clamp(42rem, 80vw, 64rem);
  margin: 0 auto;
}

/* Content Container (invisible box) */
.content-container {
  position: relative;
  max-width: clamp(42rem, 80vw, 64rem);
  margin: 0 auto;
  border: 1px solid var(--accent);
  z-index: 10;
  background-color: var(--bg);
}


/* Social Links (Top Right) */
.social-links {
  position: fixed;
  top: var(--container-padding);
  right: var(--container-padding);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  transition: all 0.15s ease-out;
  text-decoration: none;
}

.social-link:hover,
.social-link:focus {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 8px rgba(255, 107, 53, 0.2);
  outline: none;
}

.social-link svg {
  display: block;
}

/* Dog container */
.dog-container {
  position: fixed;
  display: inline-block;
}

/* Dog Energy Bar */
.dog-energy-bar-container {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 1001;
  pointer-events: none;
}

.energy-icon {
  color: rgba(139, 92, 246, 0.8);
  filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.6));
  flex-shrink: 0;
  animation: energy-pulse 2s ease-in-out infinite;
}

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

.dog-energy-bar-wrapper {
  flex: 1;
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.dog-energy-bar {
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 30, 0.8);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  flex: 1;
}

.dog-energy-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
  border-radius: 4px;
  transition: width 0.3s ease, background 0.3s ease;
  box-shadow: 
    0 0 8px rgba(34, 197, 94, 0.5),
    inset 0 0 4px rgba(255, 255, 255, 0.2);
}

/* Sleep Bubbles (zzz) */
.sleep-bubbles {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 1002;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sleep-z {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: rgba(139, 92, 246, 0.8);
  text-shadow: 
    0 0 8px rgba(139, 92, 246, 0.6),
    0 0 4px rgba(107, 70, 193, 0.4);
  animation: float-up 2s ease-in-out infinite;
  display: inline-block;
}

.sleep-z:nth-child(1) {
  animation-delay: 0s;
}

.sleep-z:nth-child(2) {
  animation-delay: 0.2s;
}

.sleep-z:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes float-up {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-15px) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translateY(-30px) scale(0.8);
    opacity: 0;
  }
}

/* Dog Action Buttons (Top Left) */
.dog-actions {
  position: fixed;
  top: var(--container-padding);
  left: var(--container-padding);
  z-index: 1000;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dog-action-btn {
  padding: 0.375rem 0.75rem;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--outline);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius-lg);
  transition: all 0.15s ease-out;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.dog-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Effects Toggle Button (Top Right) */
.effects-toggle-btn {
  position: fixed;
  top: var(--container-padding);
  right: var(--container-padding);
  z-index: 1001; /* Above dog actions */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--outline);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius-lg);
  transition: all 0.15s ease-out;
  white-space: nowrap;
}

.effects-toggle-btn:hover,
.effects-toggle-btn:focus {
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 8px rgba(255, 107, 53, 0.2);
  outline: none;
}

.effects-toggle-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
}

.effects-toggle-text {
  font-size: 0.875rem;
}

/* Hide effects when toggled off */
body.effects-hidden .stars-container,
body.effects-hidden .galaxy-spiral,
body.effects-hidden .warp-speed-lines,
body.effects-hidden .dog-container,
body.effects-hidden .dog-actions,
body.effects-hidden .dog-feed-reminder,
body.effects-hidden .gravity-waves-svg {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.feed-btn-text {
  position: relative;
  z-index: 1;
}

.feed-timer-fill,
.play-timer-fill,
.zoomies-timer-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
  opacity: 0.3;
  z-index: 0;
  border-radius: var(--radius-lg);
}

.play-btn-text,
.zoomies-btn-text {
  position: relative;
  z-index: 1;
}

.dog-action-btn:hover,
.dog-action-btn:focus {
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 8px rgba(255, 107, 53, 0.2);
  outline: none;
}

.keyboard-hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-secondary);
  display: inline-block;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--container-padding) + 3rem) 0 0;
  margin-bottom: clamp(1rem, 2vw, 2rem);
}

/* Hero Name */
.hero-name {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2rem var(--container-padding);
  text-align: center;
}

.name-text {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-transform: lowercase;
  position: relative;
  
  /* Subtle space-themed aura - very subtle glow */
  text-shadow: 
    0 0 8px rgba(139, 92, 246, 0.25),
    0 0 16px rgba(107, 70, 193, 0.15),
    0 0 24px rgba(76, 29, 149, 0.1),
    0 0 2px rgba(139, 92, 246, 0.3);
  
  /* Very subtle pulsing animation */
  animation: spaceAura 6s ease-in-out infinite;
}

@keyframes spaceAura {
  0%, 100% {
    text-shadow: 
      0 0 8px rgba(139, 92, 246, 0.25),
      0 0 16px rgba(107, 70, 193, 0.15),
      0 0 24px rgba(76, 29, 149, 0.1),
      0 0 2px rgba(139, 92, 246, 0.3);
  }
  50% {
    text-shadow: 
      0 0 10px rgba(139, 92, 246, 0.3),
      0 0 20px rgba(107, 70, 193, 0.18),
      0 0 30px rgba(76, 29, 149, 0.12),
      0 0 2px rgba(139, 92, 246, 0.35);
  }
}

.typewriter-cursor {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 8vw, 6rem);
  color: var(--accent);
  animation: blink 1s infinite;
  margin-left: 0.1em;
}

@media (prefers-reduced-motion: reduce) {
  .name-text {
    animation: none;
    text-shadow: 
      0 0 8px rgba(139, 92, 246, 0.25),
      0 0 2px rgba(107, 70, 193, 0.3);
  }
  
  .typewriter-cursor {
    animation: none;
  }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Bio Section */
.bio {
  max-width: clamp(32rem, 70vw, 48rem);
  margin: 0 auto var(--section-gap);
  padding: 0 var(--container-padding);
  font-size: clamp(0.95rem, 1vw, 1rem);
  line-height: 1.7;
}

.bio p {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.bio p:last-child {
  margin-bottom: 0;
}

.bio-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.bio-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  transition: all 0.15s ease-out;
  text-decoration: none;
  opacity: 1;
}

.bio-social-link:hover,
.bio-social-link:focus {
  color: var(--accent);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--accent), 0 0 8px rgba(255, 107, 53, 0.2);
  outline: none;
}

.bio-social-link svg {
  display: block;
}

.highlight-link {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease-out, color 0.15s ease-out;
}

.highlight-link:hover,
.highlight-link:focus {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}

.highlight-tag {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--accent);
  background: rgba(255, 107, 53, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
}

[data-theme="light"] .highlight-tag {
  background: rgba(232, 90, 43, 0.15);
}

/* Journey Section */
.journey {
  max-width: clamp(42rem, 80vw, 64rem);
  margin: 0 auto 1rem;
  padding: 0 var(--container-padding);
}

.journey-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
  font-family: var(--font-body);
}

/* Timeline Section */
.timeline {
  max-width: clamp(42rem, 80vw, 64rem);
  margin: 0 auto 1rem;
  padding: 0 var(--container-padding);
  position: relative;
}

.dog-img {
  position: fixed;
  width: 180px;
  height: 180px;
  opacity: 0.8;
  pointer-events: auto;
  z-index: 1000; /* Above leash */
  transition: transform 0.1s ease-out;
  transform-origin: center center;
  object-fit: contain;
  image-rendering: auto;
  display: block;
  background: transparent;
}

/* Sleeping dog gif now has transparent background */
.dog-img.dog-sleeping {
  mix-blend-mode: normal;
  filter: none;
}

.dog-img.dog-awake {
  mix-blend-mode: screen;
  filter: none;
}



.dog-container {
  position: fixed;
  display: inline-block;
  pointer-events: none;
  z-index: 1000; /* Above leash */
  width: 180px;
  height: 180px;
}

.leash-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 900;
}

.space-pole-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 895; /* Below dog and leash, above stars */
  transition: opacity 0.3s ease;
}

.leash-line {
  stroke: #8B4513; /* Brown color */
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
}

.leash-svg {
  transition: opacity 0.3s ease;
}

.leash-svg[style*="display: none"],
.leash-svg[style*="display:none"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Hide all dog-related elements on smaller screens */
@media (max-width: 1200px) {
  .dog-img,
  .dog-container,
  .dog-energy-bar-container,
  .sleep-bubbles,
  .gravity-waves-svg,
  .dog-actions,
  .dog-feed-reminder {
    display: none !important;
  }
}

/* Normal cursor */
body {
  cursor: auto;
}

/* Feed mode cursor */
body.feed-mode,
body.feed-mode *,
body.feed-mode *::before,
body.feed-mode *::after {
  cursor: url('dog-treats.png') 120 120, pointer !important;
}

/* Ensure cursor works on all interactive elements */
body.feed-mode a,
body.feed-mode button,
body.feed-mode input,
body.feed-mode textarea,
body.feed-mode select {
  cursor: url('dog-treats.png') 120 120, pointer !important;
}

/* Play mode cursor */
body.play-mode,
body.play-mode *,
body.play-mode *::before,
body.play-mode *::after {
  cursor: url('bone.png') 80 80, pointer !important;
}

body.play-mode a,
body.play-mode button,
body.play-mode input,
body.play-mode textarea,
body.play-mode select {
  cursor: url('bone.png') 80 80, pointer !important;
}

/* Visual cursor fallback (if image cursor doesn't work) */
.feed-cursor {
  position: fixed;
  width: 240px;
  height: 240px;
  background-image: url('dog-treats.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.play-cursor {
  position: fixed;
  width: 160px;
  height: 160px;
  background-image: url('bone.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Bone element */
.bone-element {
  position: fixed;
  width: 60px;
  height: 60px;
  background-image: url('bone.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  animation: boneDrop 0.3s ease-out;
}

@keyframes boneDrop {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(360deg);
    opacity: 1;
  }
}

@keyframes boneCollect {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(0) rotate(360deg);
    opacity: 0;
  }
}

/* Bone collection particles */
.bone-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #FFD700;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  box-shadow: 0 0 4px rgba(255, 215, 0, 0.8);
}


/* Food particles */
.food-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #8B4513;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  box-shadow: 0 0 4px rgba(139, 69, 19, 0.6);
}

/* Heart particles (Minecraft style) */
.heart-particle {
  position: fixed;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 10001;
  font-size: 16px;
  line-height: 1;
  color: #ff6b9d;
  text-shadow: 0 0 4px rgba(255, 107, 157, 0.8);
  user-select: none;
}

/* Woof text */
.woof-text {
  position: fixed;
  pointer-events: none;
  z-index: 10002;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 2rem;
  font-weight: 600;
  color: #FFFFFF;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.5);
  user-select: none;
  transform: translate(-50%, -50%);
  animation: woofFloat 1.5s ease-out forwards;
}

@keyframes woofFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(0) scale(0.5);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(-10px) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-60px) scale(0.8);
  }
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--outline);
  transition: opacity 0.15s ease-out;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item:hover {
  opacity: 1;
}

.timeline-item:hover .timeline-icon {
  transform: scale(1.05);
}

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

.timeline-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  transition: transform 0.15s ease-out;
}

.icon-circle {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease-out;
  overflow: hidden;
}

.company-logo {
  width: 85%;
  height: 85%;
  object-fit: contain;
  display: block;
}

.timeline-item:hover .icon-circle {
  background: rgba(255, 107, 53, 0.05);
}

.timeline-content {
  min-width: 0;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.25rem;
  transition: color 0.15s ease-out;
}

.timeline-title:hover,
.timeline-title:focus {
  color: var(--accent);
  outline: none;
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.timeline-descriptor {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.timeline-skills {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease-out, max-height 0.2s ease-out, margin-top 0.2s ease-out;
  display: block;
  margin-top: 0;
}

.timeline-item:hover .timeline-skills {
  opacity: 1;
  max-height: 2rem;
  margin-top: 0.5rem;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .timeline-item {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
  }
  
  .timeline-year {
    grid-column: 1 / -1;
    text-align: left;
    margin-top: 0.25rem;
  }
}

/* Timeline Scroll Arrow */
.timeline-scroll-arrow {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 50%;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.timeline-scroll-arrow.visible {
  opacity: 1;
  visibility: visible;
}

.timeline-scroll-arrow:hover,
.timeline-scroll-arrow:focus {
  background: rgba(255, 107, 53, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 12px rgba(255, 107, 53, 0.3);
  transform: translateX(-50%) translateY(-4px);
  outline: none;
}

.timeline-scroll-arrow svg {
  display: block;
  animation: scrollArrowBounce 2s ease-in-out infinite;
}

@keyframes scrollArrowBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.timeline-scroll-arrow:hover svg,
.timeline-scroll-arrow:focus svg {
  animation: scrollArrowBounce 1s ease-in-out infinite;
}

/* Footer */
.footer {
  max-width: clamp(42rem, 80vw, 64rem);
  margin: 0 auto;
  padding: var(--section-gap) var(--container-padding) calc(var(--container-padding) + 20vh);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--outline);
  padding-top: var(--section-gap);
}

.footer-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.footer-accent {
  color: var(--accent);
  font-style: italic;
}

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s ease-out;
  padding: 0;
}

.theme-toggle:hover,
.theme-toggle:focus {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 8px rgba(255, 107, 53, 0.2);
  outline: none;
}

.theme-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Focus Styles */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Responsive Adjustments */
@media (min-width: 1024px) {
  .timeline-item {
    padding: 1.75rem 0;
  }
}

@media (max-width: 768px) {
  .social-links {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 1rem;
  }
  
  .dog-actions {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 1rem;
  }
  
  .hero {
    min-height: auto;
    padding-top: 2rem;
  }
}
