/* ========================================
   FAIZAN'S BIRTHDAY WEBSITE - GLOBAL STYLES
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Poppins:wght@300;400;600;700;900&family=Pacifico&family=Bangers&display=swap');

/* ===== CSS VARIABLES FOR THEMES ===== */
:root {
  /* Romantic Pink Theme (Default) */
  --primary: #ff6b9d;
  --secondary: #c44569;
  --accent: #f8b500;
  --bg-gradient-1: #ffeaa7;
  --bg-gradient-2: #fab1a0;
  --bg-gradient-3: #ff7675;
  --text-color: #2d3436;
  --text-light: #636e72;
  --card-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  --glow: 0 0 30px rgba(255, 107, 157, 0.5);
}

/* Neon Dark Theme */
[data-theme="neon-dark"] {
  --primary: #00f5ff;
  --secondary: #ff00ff;
  --accent: #ffff00;
  --bg-gradient-1: #0a0a0a;
  --bg-gradient-2: #1a0033;
  --bg-gradient-3: #000066;
  --text-color: #ffffff;
  --text-light: #b0b0b0;
  --card-bg: rgba(0, 0, 0, 0.8);
  --shadow: 0 0 30px rgba(0, 245, 255, 0.5);
  --glow: 0 0 50px rgba(255, 0, 255, 0.8);
}

/* Sky Blue Calm Theme */
[data-theme="sky-blue"] {
  --primary: #0984e3;
  --secondary: #74b9ff;
  --accent: #00cec9;
  --bg-gradient-1: #74b9ff;
  --bg-gradient-2: #a29bfe;
  --bg-gradient-3: #dfe6e9;
  --text-color: #2d3436;
  --text-light: #636e72;
  --card-bg: rgba(255, 255, 255, 0.95);
  --shadow: 0 10px 40px rgba(9, 132, 227, 0.3);
  --glow: 0 0 30px rgba(116, 185, 255, 0.5);
}

/* Golden Royal Theme */
[data-theme="golden-royal"] {
  --primary: #d4af37;
  --secondary: #ffd700;
  --accent: #ff6b35;
  --bg-gradient-1: #2c1810;
  --bg-gradient-2: #4a3728;
  --bg-gradient-3: #8b6914;
  --text-color: #f5f5dc;
  --text-light: #d4af37;
  --card-bg: rgba(44, 24, 16, 0.95);
  --shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
  --glow: 0 0 40px rgba(255, 215, 0, 0.6);
}

/* Cartoon Fun Theme */
[data-theme="cartoon-fun"] {
  --primary: #ff6b6b;
  --secondary: #4ecdc4;
  --accent: #ffe66d;
  --bg-gradient-1: #ff6b6b;
  --bg-gradient-2: #4ecdc4;
  --bg-gradient-3: #ffe66d;
  --text-color: #2c3e50;
  --text-light: #34495e;
  --card-bg: rgba(255, 255, 255, 0.95);
  --shadow: 8px 8px 0px rgba(0, 0, 0, 0.2);
  --glow: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-color);
  transition: all 0.5s ease;
}

/* ===== BACKGROUND SECTIONS ===== */
.bg-section-1 {
  background: linear-gradient(135deg, var(--bg-gradient-1), var(--bg-gradient-2), var(--bg-gradient-3));
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

.bg-section-2 {
  background: linear-gradient(45deg, #0a0a0a, #1a0033, #000066, #330033);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
}

.bg-section-3 {
  background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 50%, #B8E6F0 100%);
  position: relative;
  overflow: hidden;
}

.bg-section-3::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='50' rx='40' ry='25' fill='rgba(255,255,255,0.3)'/%3E%3C/svg%3E") repeat;
  animation: floatClouds 20s linear infinite;
  opacity: 0.6;
}

.bg-section-4 {
  background: linear-gradient(180deg, #1a0033 0%, #330066 50%, #000000 100%);
  position: relative;
  overflow: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes floatClouds {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

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

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

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

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

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes flip {
  from { transform: perspective(400px) rotateY(90deg); opacity: 0; }
  to { transform: perspective(400px) rotateY(0deg); opacity: 1; }
}

@keyframes wobble {
  0% { transform: translateX(0%); }
  15% { transform: translateX(-25%) rotate(-5deg); }
  30% { transform: translateX(20%) rotate(3deg); }
  45% { transform: translateX(-15%) rotate(-3deg); }
  60% { transform: translateX(10%) rotate(2deg); }
  75% { transform: translateX(-5%) rotate(-1deg); }
  100% { transform: translateX(0%); }
}

@keyframes rubberBand {
  0% { transform: scale3d(1, 1, 1); }
  30% { transform: scale3d(1.25, 0.75, 1); }
  40% { transform: scale3d(0.75, 1.25, 1); }
  50% { transform: scale3d(1.15, 0.85, 1); }
  65% { transform: scale3d(0.95, 1.05, 1); }
  75% { transform: scale3d(1.05, 0.95, 1); }
  100% { transform: scale3d(1, 1, 1); }
}

@keyframes swing {
  20% { transform: rotate3d(0, 0, 1, 15deg); }
  40% { transform: rotate3d(0, 0, 1, -10deg); }
  60% { transform: rotate3d(0, 0, 1, 5deg); }
  80% { transform: rotate3d(0, 0, 1, -5deg); }
  100% { transform: rotate3d(0, 0, 1, 0deg); }
}

@keyframes tada {
  0% { transform: scale3d(1, 1, 1); }
  10%, 20% { transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); }
  30%, 50%, 70%, 90% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); }
  40%, 60%, 80% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); }
  100% { transform: scale3d(1, 1, 1); }
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

@keyframes rollIn {
  from {
    opacity: 0;
    transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate3d(0, 0, 1, 0deg);
  }
}

@keyframes lightSpeedIn {
  from {
    transform: translate3d(100%, 0, 0) skewX(-30deg);
    opacity: 0;
  }
  60% {
    transform: skewX(20deg);
    opacity: 1;
  }
  80% {
    transform: skewX(-5deg);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fireworks {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

@keyframes balloonFloat {
  0%, 100% { transform: translateY(100vh) rotate(-5deg); }
  50% { transform: translateY(-10vh) rotate(5deg); }
}

/* ===== PAGE CONTAINER ===== */
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 100px 20px 20px 20px;
  position: relative;
  overflow: hidden;
}

.page-content {
  background: var(--card-bg);
  border-radius: 30px;
  padding: 40px;
  max-width: 800px;
  width: 100%;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
  text-align: center;
}

/* ===== TYPOGRAPHY ===== */
.heading-1 {
  font-family: 'Dancing Script', cursive;
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.heading-2 {
  font-family: 'Pacifico', cursive;
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 15px;
}

.heading-3 {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  color: var(--accent);
  letter-spacing: 2px;
}

.paragraph {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 20px;
}

.poetry {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  line-height: 2;
  color: var(--text-light);
  font-style: italic;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  margin: 10px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: var(--glow);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 3px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== NAVIGATION ===== */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-counter {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--card-bg);
  padding: 8px 20px;
  border-radius: 25px;
  box-shadow: var(--shadow);
}

.controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

.control-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: var(--card-bg);
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.control-btn:hover {
  transform: scale(1.1);
  background: var(--primary);
  color: white;
}

/* ===== THEME SELECTOR ===== */
.theme-selector {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 15px;
  box-shadow: var(--shadow);
  z-index: 999;
  display: none;
}

.theme-selector.active {
  display: block;
}

.theme-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  margin: 5px;
  transition: all 0.3s ease;
}

.theme-option:hover {
  transform: scale(1.2);
  border-color: white;
}

.theme-romantic { background: linear-gradient(135deg, #ff6b9d, #c44569); }
.theme-neon { background: linear-gradient(135deg, #00f5ff, #ff00ff); }
.theme-sky { background: linear-gradient(135deg, #0984e3, #74b9ff); }
.theme-golden { background: linear-gradient(135deg, #d4af37, #ffd700); }
.theme-cartoon { background: linear-gradient(135deg, #ff6b6b, #4ecdc4); }

/* ===== STICKERS ===== */
.sticker {
  position: absolute;
  width: 100px;
  height: 100px;
  animation: float 3s ease-in-out infinite;
  z-index: 5;
  pointer-events: none;
}

.sticker-1 { top: 10%; left: 5%; animation-delay: 0s; }
.sticker-2 { top: 20%; right: 5%; animation-delay: 0.5s; }
.sticker-3 { bottom: 20%; left: 8%; animation-delay: 1s; }
.sticker-4 { bottom: 15%; right: 10%; animation-delay: 1.5s; }

/* ===== CONFETTI ===== */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ===== BALLOONS ===== */
.balloon {
  position: absolute;
  width: 60px;
  height: 80px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  animation: balloonFloat 8s ease-in-out infinite;
  box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.2);
}

.balloon::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  width: 2px;
  height: 30px;
  background: rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
}

/* ===== FIREWORKS ===== */
.firework {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: fireworkExplode 1s ease-out forwards;
}

@keyframes fireworkExplode {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(30);
    opacity: 0;
  }
}

/* ===== TYPING EFFECT ===== */
.typing-text {
  border-right: 3px solid var(--primary);
  animation: blink 0.75s step-end infinite;
  white-space: pre-wrap;
  word-wrap: break-word;
  text-align: left;
  line-height: 1.8;
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* ===== QUIZ STYLES ===== */
.quiz-container {
  text-align: left;
  margin: 20px 0;
}

.quiz-question {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-color);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  padding: 15px 20px;
  background: var(--card-bg);
  border: 2px solid var(--primary);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.quiz-option:hover {
  background: var(--primary);
  color: white;
  transform: translateX(10px);
}

.quiz-option.selected {
  background: var(--primary);
  color: white;
}

.quiz-option.correct {
  background: #00b894;
  border-color: #00b894;
  color: white;
}

.quiz-option.wrong {
  background: #d63031;
  border-color: #d63031;
  color: white;
}

/* ===== GAME STYLES ===== */
.game-container {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.game-canvas {
  width: 100%;
  height: 400px;
  background: #000;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.game-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 10px 0;
}

/* ===== CAKE STYLES ===== */
.cake-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 30px auto;
}

.cake {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cake:hover {
  transform: scale(1.05);
}

.cake-layer {
  position: absolute;
  border-radius: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.cake-layer-1 {
  bottom: 0;
  width: 250px;
  height: 80px;
  background: linear-gradient(180deg, #8B4513, #654321);
}

.cake-layer-2 {
  bottom: 80px;
  width: 200px;
  height: 70px;
  background: linear-gradient(180deg, #D2691E, #8B4513);
}

.cake-layer-3 {
  bottom: 150px;
  width: 150px;
  height: 60px;
  background: linear-gradient(180deg, #F4A460, #D2691E);
}

.cake-frosting {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: #FFB6C1;
  border-radius: 20px 20px 0 0;
}

.candle {
  position: absolute;
  bottom: 210px;
  width: 15px;
  height: 50px;
  background: linear-gradient(180deg, #FF6347, #FF4500);
  border-radius: 5px;
  left: 50%;
  transform: translateX(-50%);
}

.candle::after {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 15px;
  background: radial-gradient(ellipse at center, #FFD700, #FF8C00);
  border-radius: 50%;
  animation: flicker 0.5s ease-in-out infinite alternate;
}

@keyframes flicker {
  0% { transform: translateX(-50%) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) scale(1.2); opacity: 0.8; }
}

/* ===== GIFT BOX ===== */
.gift-box {
  width: 200px;
  height: 200px;
  margin: 30px auto;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gift-box:hover {
  transform: scale(1.1);
}

.gift-lid {
  position: absolute;
  top: 0;
  left: -10px;
  width: 220px;
  height: 50px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  border-radius: 10px;
  transition: all 0.5s ease;
  z-index: 2;
}

.gift-body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 160px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  border-radius: 0 0 10px 10px;
  z-index: 1;
}

.gift-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 100%;
  background: #ffd700;
  z-index: 3;
}

.gift-bow {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 40px;
  z-index: 4;
}

.gift-bow::before,
.gift-bow::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  background: #ffd700;
  border-radius: 50%;
}

.gift-bow::before {
  left: 0;
  transform: rotate(-30deg);
}

.gift-bow::after {
  right: 0;
  transform: rotate(30deg);
}

.gift-box.open .gift-lid {
  transform: translateY(-100px) rotate(-20deg);
}

/* ===== MEMORY GAME ===== */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 400px;
  margin: 20px auto;
}

.memory-card {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.memory-card:hover {
  transform: scale(1.05);
}

.memory-card.flipped {
  background: white;
  transform: rotateY(180deg);
}

.memory-card.matched {
  background: #00b894;
  animation: pulse 0.5s ease;
}

/* ===== TIC TAC TOE ===== */
.ttt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 300px;
  margin: 20px auto;
}

.ttt-cell {
  aspect-ratio: 1;
  background: var(--card-bg);
  border: 3px solid var(--primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-color);
}

.ttt-cell:hover {
  background: var(--primary);
  color: white;
}

.ttt-cell.x {
  color: #e74c3c;
}

.ttt-cell.o {
  color: #3498db;
}

/* ===== SECRETS REVEAL ===== */
.secret-card {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  padding: 30px;
  margin: 15px;
  cursor: pointer;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

.secret-card::before {
  content: '?';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: white;
  font-weight: bold;
}

.secret-card.revealed::before {
  display: none;
}

.secret-card.revealed {
  background: var(--card-bg);
}

.secret-text {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s ease;
  font-size: 1.2rem;
  color: var(--text-color);
}

.secret-card.revealed .secret-text {
  opacity: 1;
  transform: scale(1);
}

/* ===== POPUP ===== */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: var(--card-bg);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  z-index: 10000;
  text-align: center;
  transition: all 0.3s ease;
}

.popup.active {
  transform: translate(-50%, -50%) scale(1);
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

.popup-overlay.active {
  display: block;
}

/* ===== RUNAWAY BUTTON ===== */
.runaway-btn {
  position: relative;
  transition: all 0.2s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .heading-1 { font-size: 2.5rem; }
  .heading-2 { font-size: 1.8rem; }
  .heading-3 { font-size: 1.5rem; }
  .paragraph { font-size: 1rem; }
  .page-content { padding: 25px; margin: 10px; }
  .nav-bar { padding: 10px 15px; }
  .memory-grid { grid-template-columns: repeat(3, 1fr); }
  .game-canvas { height: 300px; }
}

@media (max-width: 480px) {
  .heading-1 { font-size: 2rem; }
  .btn { padding: 12px 30px; font-size: 1rem; }
  .sticker { width: 60px; height: 60px; }
}

/* ===== ANIMATION CLASSES ===== */
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-shake { animation: shake 0.5s ease-in-out; }
.animate-rotate { animation: rotate 10s linear infinite; }
.animate-bounce { animation: bounce 1s ease infinite; }
.animate-slide-left { animation: slideInLeft 0.8s ease forwards; }
.animate-slide-right { animation: slideInRight 0.8s ease forwards; }
.animate-slide-up { animation: slideInUp 0.8s ease forwards; }
.animate-slide-down { animation: slideInDown 0.8s ease forwards; }
.animate-fade { animation: fadeIn 1s ease forwards; }
.animate-zoom { animation: zoomIn 0.6s ease forwards; }
.animate-flip { animation: flip 0.8s ease forwards; }
.animate-wobble { animation: wobble 1s ease forwards; }
.animate-rubber { animation: rubberBand 1s ease forwards; }
.animate-swing { animation: swing 1s ease forwards; }
.animate-tada { animation: tada 1s ease forwards; }
.animate-heartbeat { animation: heartBeat 1.5s ease-in-out infinite; }
.animate-roll { animation: rollIn 1s ease forwards; }
.animate-lightspeed { animation: lightSpeedIn 1s ease forwards; }

/* ===== HIDDEN CLASS ===== */
.hidden { display: none !important; }

/* ===== PAGE TRANSITION ===== */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  z-index: 9998;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.page-transition.active {
  transform: scaleX(1);
}
