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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-glass: rgba(18, 18, 26, 0.7);
  --accent-green: #00ff88;
  --accent-green-dim: #00cc6a;
  --accent-purple: #9146ff;
  --accent-gold: #ffd700;
  --text-primary: #f0f0f5;
  --text-secondary: #8888aa;
  --text-accent: #00ff88;
  --border-glow: 0 0 20px rgba(0, 255, 136, 0.3);
  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 50%, #0a1a0f 100%);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--text-secondary);
}

strong {
  color: var(--text-primary);
}

/* ===== UTILITIES ===== */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 136, 0.12);
  border-radius: var(--radius-md);
}

.hidden {
  display: none !important;
}

.section-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-xs);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  margin-bottom: var(--space-lg);
}

section {
  padding: var(--space-xl) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100vh;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-md);
}

#confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  opacity: 0.85;
  z-index: 1;
}

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

.hero-pretitle {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--accent-green);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
  position: relative;
}

.hero-age {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(5rem, 15vw, 12rem);
  color: var(--accent-gold);
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.2);
  line-height: 1;
  margin-top: -0.1em;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.hero-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--accent-green);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  min-width: 80px;
}

.countdown-number {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.countdown-done {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  margin-bottom: var(--space-lg);
  animation: countGlow 1.5s ease-in-out infinite alternate;
}

.scroll-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.scroll-cta:hover {
  color: var(--accent-green);
}

.arrow-down {
  font-size: 1.5rem;
  animation: bounceDown 1.5s ease-in-out infinite;
}

/* ===== TIMELINE ===== */
#journey {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-md) 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0, 255, 136, 0.1);
  transform: translateX(-50%);
}

.timeline-line-fill {
  width: 100%;
  height: 0%;
  background: var(--accent-green);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
  transition: height 0.1s linear;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
}

.timeline-item.left {
  left: 0;
  padding-right: calc(var(--space-lg) + 10px);
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  padding-left: calc(var(--space-lg) + 10px);
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: calc(var(--space-sm) + 12px);
  width: 16px;
  height: 16px;
  background: var(--bg-dark);
  border: 3px solid var(--accent-green);
  border-radius: 50%;
  z-index: 2;
}

.timeline-item.left .timeline-dot {
  right: -8px;
}

.timeline-item.right .timeline-dot {
  left: -8px;
}

.timeline-dot.active {
  background: var(--accent-green);
  animation: pulse 2s ease-in-out infinite;
}

.timeline-card {
  padding: var(--space-md);
}

.timeline-card h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.timeline-year {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-green);
  letter-spacing: 0.1em;
}

.timeline-img-wrap {
  margin: var(--space-sm) 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.timeline-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.timeline-card p {
  font-size: 0.95rem;
}

/* ===== FLIPPY ===== */
#flippy {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.03) 0%, transparent 70%);
}

.flippy-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.flippy-hero-image {
  position: relative;
  text-align: center;
}

.flippy-main-art {
  max-height: 600px;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.2), 0 0 80px rgba(0, 255, 136, 0.05);
  animation: float 4s ease-in-out infinite;
}

.flippy-name-plate {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-sm);
}

.flippy-name-plate h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  color: var(--accent-green);
  letter-spacing: 0.2em;
}

.flippy-name-plate p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.flippy-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

.detail-card {
  padding: var(--space-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--border-glow);
}

.detail-card h4 {
  color: var(--accent-green);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-img-wrap {
  margin: var(--space-sm) 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.detail-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ===== STATS ===== */
#stats {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-sm);
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  padding: var(--space-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--border-glow);
}

.stat-number {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: var(--space-xs);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-note {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-green);
  font-style: italic;
  margin-top: 0.25rem;
}

.stat-card.featured {
  grid-column: span 2;
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

/* ===== JOKES ===== */
#jokes {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.jokes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-sm);
  max-width: 1000px;
  margin: 0 auto;
}

.joke-card {
  padding: var(--space-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.joke-card:nth-child(odd) {
  transform: rotate(-0.5deg);
}

.joke-card:nth-child(even) {
  transform: rotate(0.5deg);
}

.joke-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--border-glow);
}

.joke-card:nth-child(1) { border-left: 3px solid var(--accent-green); }
.joke-card:nth-child(2) { border-left: 3px solid var(--accent-purple); }
.joke-card:nth-child(3) { border-left: 3px solid var(--accent-gold); }
.joke-card:nth-child(4) { border-left: 3px solid var(--accent-green); }
.joke-card:nth-child(5) { border-left: 3px solid var(--accent-purple); }
.joke-card:nth-child(6) { border-left: 3px solid var(--accent-gold); }

.joke-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-xs);
}

.joke-card h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.joke-img-wrap {
  margin: var(--space-sm) 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.joke-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ===== MUSIC PLAYER ===== */
#music {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.player-container {
  max-width: 600px;
  margin: 0 auto;
}

.player-main {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.player-art {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.15);
}

.player-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-info {
  text-align: center;
}

.player-track-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.player-track-artist {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.player-progress {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.player-time {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  color: var(--text-secondary);
  min-width: 40px;
}

.player-time:last-child {
  text-align: right;
}

.player-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.player-progress-fill {
  height: 100%;
  background: var(--accent-green);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.player-progress-bar:hover .player-progress-fill {
  background: var(--accent-gold);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.player-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.player-btn-play {
  background: var(--accent-green);
  color: var(--bg-dark);
  width: 52px;
  height: 52px;
}

.player-btn-play:hover {
  background: var(--accent-green-dim);
  color: var(--bg-dark);
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--text-secondary);
}

.player-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.player-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--accent-green);
  border-radius: 50%;
  cursor: pointer;
}

.player-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--accent-green);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Playlist */
.playlist {
  padding: var(--space-xs);
  max-height: 300px;
  overflow-y: auto;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.playlist-item.active {
  background: rgba(0, 255, 136, 0.1);
  box-shadow: inset 0 0 10px rgba(0, 255, 136, 0.1);
}

.playlist-item-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  color: var(--text-secondary);
  min-width: 24px;
}

.playlist-item.active .playlist-item-number {
  color: var(--accent-green);
}

.playlist-item-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.playlist-item.active .playlist-item-title {
  color: var(--accent-green);
}

.playlist-item-artist {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-left: auto;
}

/* Mini Player */
.mini-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.mini-player-info {
  flex: 1;
  min-width: 0;
}

.mini-player-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-player-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-player-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.mini-player-btn:hover {
  color: var(--accent-green);
}

.mini-player-progress {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.mini-player-progress-fill {
  height: 100%;
  background: var(--accent-green);
  width: 0%;
  transition: width 0.1s linear;
}

/* ===== FOOTER ===== */
#footer {
  max-width: none;
  padding: var(--space-lg) var(--space-md);
  border-top: 2px solid;
  border-image: linear-gradient(to right, var(--accent-green), var(--accent-purple)) 1;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
}

.footer-links a:nth-child(1):hover { color: var(--accent-purple); transform: translateY(-2px); }
.footer-links a:nth-child(2):hover { color: var(--text-primary); transform: translateY(-2px); }
.footer-links a:nth-child(3):hover { color: #ff0000; transform: translateY(-2px); }

.footer-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section {
    padding: var(--space-lg) var(--space-sm);
  }

  /* Timeline mobile */
  .timeline-line {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 50px !important;
    padding-right: var(--space-sm) !important;
    text-align: left !important;
  }

  .timeline-dot {
    left: 12px !important;
    right: auto !important;
  }

  /* Flippy mobile */
  .flippy-showcase {
    grid-template-columns: 1fr;
  }

  .flippy-main-art {
    max-height: 400px;
  }

  /* Stats mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card.featured {
    grid-column: span 2;
  }

  /* Jokes mobile */
  .jokes-grid {
    grid-template-columns: 1fr;
  }

  /* Countdown mobile */
  .countdown-unit {
    padding: var(--space-xs) var(--space-sm);
    min-width: 60px;
  }

  /* Player mobile */
  .player-art {
    width: 150px;
    height: 150px;
  }

  .player-volume {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-age {
    font-size: 5rem;
  }

  .countdown {
    gap: 0.5rem;
  }

  .countdown-unit {
    min-width: 50px;
    padding: 0.4rem 0.5rem;
  }

  .countdown-number {
    font-size: 1.4rem;
  }

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

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