/* ===== CSS CUSTOM PROPERTIES & THEME SYSTEM ===== */
:root {
  /* Primary Colors - Enhanced Neon Theme */
  --primary-color: #00ff41;
  --primary-dark: #00cc33;
  --primary-light: #4dff70;
  --primary-glow: rgba(0, 255, 65, 0.4);
  --primary-shadow: 0 0 20px rgba(0, 255, 65, 0.6);

  /* Secondary Colors */
  --secondary-color: #ff0080;
  --secondary-dark: #cc0066;
  --secondary-light: #ff4da6;
  --secondary-glow: rgba(255, 0, 128, 0.4);

  /* Accent Colors - Extended Palette */
  --accent-blue: #00d4ff;
  --accent-purple: #8b5cf6;
  --accent-orange: #ff6b35;
  --accent-yellow: #ffd700;
  --accent-rainbow: linear-gradient(45deg, #ff0080, #ff8c00, #ffd700, #00ff41, #00d4ff, #8b5cf6);

  /* Status Colors */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ff3333;
  --danger-dark: #cc0000;
  --danger-glow: rgba(255, 51, 51, 0.4);
  --info-color: #3b82f6;

  /* Background System - Enhanced */
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --bg-glass: rgba(26, 26, 26, 0.8);
  --bg-card: rgba(42, 42, 42, 0.9);
  --bg-overlay: rgba(0, 0, 0, 0.85);
  --bg-gradient: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #666666;
  --text-accent: var(--primary-color);

  /* Border & Shadow System - Enhanced */
  --border-primary: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 255, 65, 0.3);
  --border-active: var(--primary-color);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-color: rgba(0, 0, 0, 0.4); /* NEW: Defined missing shadow color */

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

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions - Enhanced */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* NEW: Default ease transition */
  --transition-ease: ease;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* Z-index Scale */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 50;
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-tooltip: 400;
  --z-notification: 500;
  --z-loading: 9999;

  /* NEW: Confetti and Fall animation properties */
  --confetti-x: 50%; /* Default X position for confetti */
  --confetti-y: 50%; /* Default Y position for confetti */
  --fall-x: 100px;   /* Default X translation for fall animation */
  --fall-y: 300px;   /* Default Y translation for fall animation */
}

/* Dark Theme (Default from HTML) */
[data-theme="dark"] {
  --bg-primary: #000000;
  --bg-secondary: #0f0f0f;
  --bg-tertiary: #1a1a1a;
  --bg-glass: rgba(15, 15, 15, 0.85);
  --bg-card: rgba(26, 26, 26, 0.95);
}

/* Light Theme */
[data-theme="light"] {
  --primary-color: #007bff; /* Standard blue for light mode */
  --primary-dark: #0056b3;
  --primary-light: #6aaaff;
  --primary-glow: rgba(0, 123, 255, 0.4);
  --primary-shadow: 0 0 20px rgba(0, 123, 255, 0.6);

  --secondary-color: #6c757d;
  --secondary-dark: #5a6268;
  --secondary-light: #8e949a;
  --secondary-glow: rgba(108, 117, 125, 0.4);

  --accent-blue: #0056b3;
  --accent-purple: #6610f2;
  --accent-orange: #fd7e14;
  --accent-yellow: #ffc107;
  --accent-rainbow: linear-gradient(45deg, #e63946, #f4a261, #f0e68c, #a7c957, #457b9d, #6a0572);


  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #e5e7eb;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(248, 250, 252, 0.95);

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-accent: var(--primary-color);

  --border-primary: rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(0, 123, 255, 0.2);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Cyberpunk Theme */
[data-theme="cyberpunk"] {
  --primary-color: #ff00ff; /* Neon Pink */
  --primary-dark: #cc00cc;
  --primary-light: #ff66ff;
  --primary-glow: rgba(255, 0, 255, 0.5);
  --primary-shadow: 0 0 20px rgba(255, 0, 255, 0.6);

  --secondary-color: #00ffff; /* Cyan */
  --secondary-dark: #00cccc;
  --secondary-light: #66ffff;
  --secondary-glow: rgba(0, 255, 255, 0.4);

  --accent-blue: #00ffff;
  --accent-purple: #a500ff; /* Deeper Purple */
  --accent-orange: #ff9900;
  --accent-yellow: #fefe00;
  --accent-rainbow: linear-gradient(45deg, #ff00ff, #00ffff, #fefe00, #39ff14, #8b5cf6, #ff0080);

  --success-color: #39ff14; /* Neon Green */
  --warning-color: #ffcc00;
  --danger-color: #ff3333;
  --info-color: #00ffff;

  --bg-primary: #0a0014; /* Very Dark Purple */
  --bg-secondary: #1a0028;
  --bg-tertiary: #2a003c;
  --bg-glass: rgba(10, 0, 20, 0.85);
  --bg-card: rgba(30, 0, 45, 0.95);
  --bg-overlay: rgba(0, 0, 0, 0.9);

  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #505050;
  --text-accent: var(--primary-color);

  --border-primary: rgba(255, 255, 255, 0.15);
  --shadow-glow: 0 0 30px var(--primary-glow), 0 0 30px var(--secondary-glow);
}


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* Ensure footer stays at bottom */
}

/* Enhanced Animated Background (using before and after for multiple layers) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, var(--primary-glow) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--secondary-glow) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, var(--accent-blue) 0%, transparent 50%),
    radial-gradient(circle at 60% 60%, var(--accent-purple) 0%, transparent 50%);
  background-size: 150% 150%; /* Make gradients larger for movement */
  animation: backgroundFloat 30s ease-in-out infinite alternate; /* Added alternate */
  pointer-events: none;
  z-index: -2;
  opacity: 0.3; /* Subtle background glow */
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  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: -1;
  opacity: 0.1; /* Very subtle grid overlay */
  animation: backgroundGridPulse 10s linear infinite; /* Added a subtle pulse */
}

@keyframes backgroundFloat {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(10%, -10%) rotate(5deg) scale(1.05);
  }
  50% {
    transform: translate(0, 10%) rotate(0deg) scale(1);
  }
  75% {
    transform: translate(-10%, -5%) rotate(-5deg) scale(1.03);
  }
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

@keyframes backgroundGridPulse {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.05; }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.2;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em; /* Slightly tighter for modern feel */
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); } /* Responsive font sizes */
h2 { font-size: clamp(1.75rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h4 { font-size: clamp(1.25rem, 3vw, 1.8rem); }
h5 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
  text-shadow: 0 0 8px var(--primary-glow);
}

strong, b {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary); /* Ensure strong text stands out */
}

em {
  font-style: italic;
  color: var(--text-secondary);
}

/* --- Lists --- */
ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
  list-style-type: disc; /* Default to disc, can be customized for specific lists */
}

li {
  margin-bottom: var(--space-sm);
}

/* --- Global Section Styling --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding: var(--space-md);
}

.section-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: var(--font-weight-black);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  background: var(--accent-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1; /* Ensure tight line-height for large titles */
}

.title-icon {
  font-size: 1.2em; /* Relative to parent font size */
  line-height: 1;
  filter: drop-shadow(0 0 5px var(--primary-glow));
}

.section-subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}


/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--bg-primary);
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: var(--z-tooltip);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

/* Focus Styles - Enhanced for better visibility */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px; /* Increased offset for visibility */
  border-radius: var(--radius-sm); /* Apply to rounded elements */
}

/* Special handling for elements where default outline doesn't look good */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--primary-color); /* Stronger focus indicator */
  outline-offset: 4px; /* More prominent offset */
  border-radius: var(--radius-md); /* Consistent rounding */
  box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 6px var(--primary-glow); /* Outer glow for focus */
}

/* ===== LOADING SCREEN - Enhanced ===== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: var(--z-loading);
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transition-slow) var(--transition-ease), visibility var(--transition-slow);
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* Allow interaction with elements behind */
}

.loading-screen.game-loading {
  background: #000000; /* Darker background specific for game loading */
}

.loading-content {
  text-align: center;
  max-width: 450px; /* Slightly wider content area */
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl); /* More rounded */
  box-shadow: var(--shadow-xl), 0 0 50px rgba(0, 255, 65, 0.1); /* Stronger shadow with glow */
  animation: popIn 0.5s var(--transition-spring) forwards; /* Pop-in animation */
}

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

.loading-text {
  font-size: clamp(1.5rem, 4vw, 2.25rem); /* Responsive text size */
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-lg);
  background: var(--accent-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); /* Subtle text glow */
}

@keyframes shimmerText {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); } /* More prominent shimmer */
}

.loading-progress {
  width: 90%; /* Wider progress bar */
  height: 6px; /* Slightly thicker */
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto var(--space-md);
  box-shadow: var(--shadow-inset);
}

.loading-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light)); /* Gradient fill */
  border-radius: var(--radius-full);
  transition: width 0.3s ease-out; /* Smoother transition for progress */
  box-shadow: 0 0 15px var(--primary-glow); /* Glow on the bar */
}

.loading-tip {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: var(--space-md);
}

.snake-loader {
  display: flex;
  gap: var(--space-md); /* Increased gap for more distinct segments */
  margin-bottom: var(--space-2xl); /* More space below loader */
  justify-content: center;
}

.snake-segment {
  width: 25px; /* Larger segments */
  height: 25px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  border-radius: var(--radius-full); /* Perfectly round */
  animation: snakeMove 1.8s ease-in-out infinite; /* Slower, smoother animation */
  box-shadow: 0 0 15px var(--primary-glow); /* Stronger glow */
}

.snake-segment:nth-child(2) { animation-delay: 0.15s; } /* Adjusted delays */
.snake-segment:nth-child(3) { animation-delay: 0.3s; }
.snake-segment:nth-child(4) { animation-delay: 0.45s; }

@keyframes snakeMove {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
    box-shadow: 0 0 15px var(--primary-glow);
  }
  25% {
    transform: translateY(-25px) scale(1.1) rotate(15deg); /* Softer rotation/scale */
    box-shadow: 0 0 25px var(--primary-glow);
  }
  50% {
    transform: translateY(-15px) scale(1.05) rotate(0deg);
    box-shadow: 0 0 15px var(--primary-glow);
  }
  75% {
    transform: translateY(-20px) scale(1.08) rotate(-15deg);
    box-shadow: 0 0 20px var(--primary-glow);
  }
}

/* ===== LAYOUT SYSTEM ===== */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 0; /* Starts hidden */
  animation: fadeIn 0.8s forwards var(--transition-ease); /* Animates in after load */
  animation-delay: 0.5s; /* Delay after loading screen might hide */
}

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

.container {
  width: 100%;
  max-width: 1300px; /* Slightly wider container */
  margin: 0 auto;
  padding: 0 var(--space-lg); /* Generous padding for all screens */
}

/* --- Global Elements Styling --- */
.ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--space-2xl) 0;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  min-height: 100px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.ad-container:hover {
  box-shadow: var(--shadow-md), var(--primary-shadow);
  border-color: var(--primary-color);
}

.ad-container ins {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  top: var(--space-xl); /* Positioned from top for better visibility in different layouts */
  right: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  z-index: var(--z-notification);
  pointer-events: none; /* Allows clicks to pass through to elements below */
  width: 100%;
  max-width: 380px; /* Max width for toasts */
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  pointer-events: auto; /* Re-enable pointer events for the toast itself */
  opacity: 0;
  transform: translateX(100%);
  animation: toastSlideIn var(--transition-normal) ease-out forwards;
}

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

.toast-message {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem; /* Larger close button */
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.toast-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transform: rotate(90deg); /* Little animation */
}

.toast-info { border-left: 5px solid var(--info-color); }
.toast-success { border-left: 5px solid var(--success-color); }
.toast-warning { border-left: 5px solid var(--warning-color); }
.toast-danger { border-left: 5px solid var(--danger-color); }

/* --- Cookie Consent Banner --- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-overlay); /* Darker overlay for consent */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px var(--shadow-color);
  padding: var(--space-md) 0;
  z-index: var(--z-modal); /* High z-index to be on top */
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s var(--transition-ease), opacity 0.5s var(--transition-ease);
}

.cookie-consent.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.cookie-text {
  flex: 1 1 60%;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.cookie-text a {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.cookie-btn {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.cookie-accept {
  background-color: var(--primary-color);
  color: var(--bg-primary);
  border: 1px solid var(--primary-color);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.cookie-accept:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.cookie-settings {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.cookie-settings:hover {
  background-color: rgba(var(--primary-color-rgb, 0, 255, 65), 0.1);
  color: var(--primary-light);
  border-color: var(--primary-light);
}

/* Fallback for --primary-color-rgb if not defined dynamically (defined in JS as well) */
:root {
  --primary-color-rgb: 0, 255, 65;
}

/* --- Utility Classes --- */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--text-muted);
}

.mt-auto {
  margin-top: auto;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* For elements with icons and text next to each other */
.icon-text-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ===== ANIMATIONS & EFFECTS (Generic) ===== */
.fade-in {
  animation: fadeIn var(--transition-normal) ease-out;
}

.slide-up {
  animation: slideInUp var(--transition-normal) ease-out;
}

.slide-down {
  animation: slideInDown var(--transition-normal) ease-out;
}

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

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

/* Ensure smooth rendering for interactive elements */
* {
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
  -webkit-touch-callout: none; /* Disable callouts on long press */
}

/* Remove default browser styles for form elements */
input, textarea, select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* ===== CUSTOM SCROLLBAR (for the whole document) ===== */
* {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--primary-color) var(--bg-tertiary); /* Thumb and track color */
}

/* Webkit (Chrome, Safari) scrollbar styles */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}

*::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-tertiary); /* Border around thumb */
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* ===== SELECTION STYLES ===== */
::selection {
  background: var(--primary-color);
  color: var(--bg-primary);
}

::-moz-selection {
  background: var(--primary-color);
  color: var(--bg-primary);
}

/* ===== EASTER EGG STYLES (Konami Code) ===== */
@keyframes rainbow {
  0%, 100% { filter: hue-rotate(0deg); }
  25% { filter: hue-rotate(90deg); }
  50% { filter: hue-rotate(180deg); }
  75% { filter: hue-rotate(270deg); }
}
/* This class will be applied to body when konami code is activated */
.rainbow-active {
  animation: rainbow 2s ease-in-out;
}

/* Add an active state for elements on click, like team members */
.clicked {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}
