
:root {
  --theme-primary: #a855f7;
  --theme-secondary: #ec4899;
  --theme-accent: #ef4444;
  --bg-primary: #0a0a0a;
  --bg-secondary: rgba(31, 41, 55, 0.8);
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: rgba(255, 255, 255, 0.9);
  --text-primary: #1f2937;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --border-color: rgba(0, 0, 0, 0.1);
}

/* Dark Mode Theme */
[data-theme="dark"] {
  --bg-primary: #111827;
  --bg-secondary: rgba(31, 41, 55, 0.9);
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --theme-primary: #6366f1;
  --theme-secondary: #8b5cf6;
}

/* Sepia Theme */
[data-theme="sepia"] {
  --bg-primary: #2c1810;
  --bg-secondary: rgba(92, 51, 23, 0.8);
  --text-primary: #f4e4bc;
  --text-secondary: #e6d3a3;
  --text-muted: #c9b037;
  --theme-primary: #d4af37;
  --theme-secondary: #cd853f;
}

/* Cyberpunk Theme */
[data-theme="cyberpunk"] {
  --bg-primary: #0d0208;
  --bg-secondary: rgba(255, 0, 110, 0.1);
  --text-primary: #00f5ff;
  --text-secondary: #ff006e;
  --text-muted: #8338ec;
  --theme-primary: #ff006e;
  --theme-secondary: #00f5ff;
  --theme-accent: #8338ec;
}

/* Mountain Theme */
[data-theme="mountains"] {
  --bg-primary: #1a2332;
  --bg-secondary: rgba(52, 73, 94, 0.8);
  --text-primary: #ecf0f1;
  --text-secondary: #bdc3c7;
  --text-muted: #95a5a6;
  --theme-primary: #3498db;
  --theme-secondary: #2ecc71;
}

/* Ocean Theme */
[data-theme="ocean"] {
  --bg-primary: #001122;
  --bg-secondary: rgba(0, 51, 102, 0.8);
  --text-primary: #e6f3ff;
  --text-secondary: #b3d9ff;
  --text-muted: #80bfff;
  --theme-primary: #0099cc;
  --theme-secondary: #00ccff;
}

/* Forest Theme */
[data-theme="forest"] {
  --bg-primary: #0f1419;
  --bg-secondary: rgba(34, 68, 34, 0.8);
  --text-primary: #e8f5e8;
  --text-secondary: #c8e6c9;
  --text-muted: #a5d6a7;
  --theme-primary: #4caf50;
  --theme-secondary: #8bc34a;
}

/* Sunset Theme */
[data-theme="sunset"] {
  --bg-primary: #1a0f1a;
  --bg-secondary: rgba(102, 51, 102, 0.8);
  --text-primary: #ffe6f2;
  --text-secondary: #ffb3d9;
  --text-muted: #ff80bf;
  --theme-primary: #ff6b9d;
  --theme-secondary: #ffa726;
}

/* Aurora Theme */
[data-theme="aurora"] {
  --bg-primary: #0a0e1a;
  --bg-secondary: rgba(16, 32, 64, 0.8);
  --text-primary: #e0f2e7;
  --text-secondary: #b8e6c1;
  --text-muted: #7dd3fc;
  --theme-primary: #10b981;
  --theme-secondary: #06b6d4;
}

/* Desert Theme */
[data-theme="desert"] {
  --bg-primary: #2d1b0e;
  --bg-secondary: rgba(139, 69, 19, 0.8);
  --text-primary: #faf0e6;
  --text-secondary: #deb887;
  --text-muted: #cd853f;
  --theme-primary: #ff8c00;
  --theme-secondary: #ffd700;
}

/* Galaxy Theme */
[data-theme="galaxy"] {
  --bg-primary: #0f0f23;
  --bg-secondary: rgba(25, 25, 112, 0.8);
  --text-primary: #e6e6fa;
  --text-secondary: #dda0dd;
  --text-muted: #9370db;
  --theme-primary: #9932cc;
  --theme-secondary: #ba55d3;
}

/* Neon City Theme */
[data-theme="neon"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: rgba(20, 20, 20, 0.9);
  --text-primary: #00ffff;
  --text-secondary: #ff00ff;
  --text-muted: #ffff00;
  --theme-primary: #00ffff;
  --theme-secondary: #ff00ff;
  --theme-accent: #ffff00;
}

/* Retro Wave Theme */
[data-theme="retro"] {
  --bg-primary: #2d1b69;
  --bg-secondary: rgba(45, 27, 105, 0.8);
  --text-primary: #ff6ec7;
  --text-secondary: #00d4ff;
  --text-muted: #ffd700;
  --theme-primary: #ff6ec7;
  --theme-secondary: #00d4ff;
  --theme-accent: #ffd700;
}

/* Volcanic Landscape Theme */
[data-theme="volcano"] {
  --bg-primary: #1a0a0a;
  --bg-secondary: rgba(139, 0, 0, 0.8);
  --text-primary: #ffdddd;
  --text-secondary: #ffaaaa;
  --text-muted: #ff6666;
  --theme-primary: #ff4500;
  --theme-secondary: #dc143c;
  --theme-accent: #b22222;
}

/* Arctic Tundra Theme */
[data-theme="arctic"] {
  --bg-primary: #f0f8ff;
  --bg-secondary: rgba(176, 224, 230, 0.8);
  --text-primary: #2f4f4f;
  --text-secondary: #708090;
  --text-muted: #778899;
  --theme-primary: #4682b4;
  --theme-secondary: #87ceeb;
  --theme-accent: #5f9ea0;
}

/* Tropical Paradise Theme */
[data-theme="tropical"] {
  --bg-primary: #006400;
  --bg-secondary: rgba(0, 128, 0, 0.8);
  --text-primary: #f0fff0;
  --text-secondary: #98fb98;
  --text-muted: #90ee90;
  --theme-primary: #32cd32;
  --theme-secondary: #00fa9a;
  --theme-accent: #00ff7f;
}

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

body {
  font-family: "Space Grotesk", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: all 0.3s ease;
  text-transform: lowercase; /* Make all text lowercase by default */
}

/* Font variations */
.orbitron-font {
  font-family: "Orbitron", sans-serif;
}

.comfortaa-font {
  font-family: "Comfortaa", sans-serif;
}

.mono-font {
  font-family: "Courier New", monospace;
}

.inter-font {
  font-family: "Inter", sans-serif;
}

/* Headings - Use futuristic font for all headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Orbitron", sans-serif;
  text-transform: lowercase; /* Keep headings lowercase too */
}

/* Game titles should remain normal case */
.overlay-text,
.favorite-game-title,
.search-item-title,
.media-title {
  text-transform: none !important;
}

.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: none;
}

.star {
  position: absolute;
  background: var(--text-primary);
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Digital rain effect - Fixed to not affect footer */
.digital-rain {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1 !important; /* Ensure it stays behind everything */
  overflow: hidden;
  background: #000;
}

.discord-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #5865f2, #7289da);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.discord-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(88, 101, 242, 0.5);
}

.discord-button i {
  font-size: 1.5rem;
  color: white;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 250, 252, 0.9);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
  color: var(--theme-secondary);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: "Orbitron", sans-serif;
  background: linear-gradient(to right, var(--theme-primary), var(--theme-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 400px;
  margin: 0 2rem;
}

.search-container {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: "Inter", sans-serif; /* Better font for search */
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

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

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-top: 0.25rem;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 1001;
}

.search-dropdown.show {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--border-color);
}

.search-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.search-item-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
  margin-right: 0.75rem;
  object-fit: cover;
}

.search-item-title {
  font-weight: 500;
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  cursor: pointer;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
}

.mobile-menu-btn:hover {
  color: var(--text-primary);
}

.page-section {
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

.page-section.hidden {
  display: none;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 4rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  padding: 0 1rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 0.001rem;
  font-family: "Space Grotesk", sans-serif;
  background: linear-gradient(to right, var(--theme-primary), var(--theme-secondary), var(--theme-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  min-height: 1.5rem;
}

.typing-cursor::after {
  content: "|";
  animation: blink 1s infinite;
  color: var(--theme-primary);
}

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

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.hero-btn.primary {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.hero-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

.hero-btn.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.games-container {
  padding: 6rem 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.games-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Favorites Section */
.favorites-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.favorites-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.favorites-title i {
  color: #ffd700;
}

.favorites-horizontal {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-primary) transparent;
}

.favorites-horizontal::-webkit-scrollbar {
  height: 6px;
}

.favorites-horizontal::-webkit-scrollbar-track {
  background: transparent;
}

.favorites-horizontal::-webkit-scrollbar-thumb {
  background: var(--theme-primary);
  border-radius: 3px;
}

.favorite-game-button {
  position: relative;
  min-width: 120px;
  width: 120px;
  height: 140px;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
}

.favorite-game-button:hover {
  transform: translateY(-4px);
  border-color: var(--theme-primary);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

.favorite-game-button img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.favorite-game-title {
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  color: var(--text-primary);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.favorite-game-button .favorite-btn {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.8rem;
}

/* Games Count */
.games-count {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-family: "Inter", sans-serif;
}

/* Games Search */
.games-search-container {
  position: relative;
  max-width: 500px;
  margin: 2rem auto;
}

.games-search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: "Inter", sans-serif; /* Better font for search */
  outline: none;
  transition: all 0.3s ease;
}

.games-search-input:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
  transform: translateY(-2px);
}

.games-search-input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.25rem;
  pointer-events: none;
}

.games-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  justify-items: center;
}

.game-button {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: var(--bg-secondary);
  border: 3px solid transparent;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.game-button:hover::before {
  opacity: 0.1;
}

.game-button:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: var(--theme-primary);
  box-shadow: 0 15px 35px rgba(168, 85, 247, 0.3);
}

.game-button:hover .overlay-text {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.game-button:hover img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.game-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  border-radius: 0.75rem;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  color: white;
  font-family: "Comfortaa", sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  z-index: 2;
  width: 90%;
  background: rgba(0, 0, 0, 0.85);
  padding: 1rem 0.75rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(15px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Favorite Button */
.favorite-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.favorite-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.favorite-btn.favorited {
  color: #ffd700;
}

.favorite-btn i {
  font-size: 1.2rem;
}

/* Loading and Error States */
.loading-games,
.no-games-found {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  color: var(--text-muted);
  text-align: center;
}

.loading-spinner {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: spin 1s linear infinite;
  color: var(--theme-primary);
}

.no-games-found i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--theme-primary);
}

.no-games-found h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.no-games-found p {
  font-size: 1.1rem;
  opacity: 0.8;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Section Titles */
.section-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  font-family: "Orbitron", sans-serif;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary), var(--theme-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2rem;
  line-height: 1.6;
}

.media-container {
  padding: 6rem 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.media-header {
  text-align: center;
  margin-bottom: 3rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.media-card {
  background: var(--bg-secondary);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.5);
}

.media-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  cursor: pointer;
}

.media-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.media-thumbnail:hover img {
  transform: scale(1.05);
}

.media-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.media-play-button:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.media-info {
  padding: 1.5rem;
}

.media-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.media-description {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.media-type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--theme-primary);
  color: white;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.tools-section {
  padding: 6rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tool-card {
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.5);
}

.tool-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.tool-icon {
  font-size: 2rem;
  margin-right: 1rem;
  color: var(--theme-primary);
}

.tool-title {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: "Orbitron", sans-serif;
  background: linear-gradient(to right, var(--theme-primary), var(--theme-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tool-description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Calculator Tool */
.calculator-container {
  background: var(--bg-primary);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.calculator-display {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
}

.calculator-display input {
  width: 100%;
  padding: 1rem;
  font-size: 1.5rem;
  text-align: right;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: "Courier New", monospace;
}

.calculator-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
}

.calc-btn {
  padding: 1.25rem;
  font-size: 1.25rem;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.calc-btn.operator {
  background: rgba(168, 85, 247, 0.2);
  color: var(--theme-primary);
}

.calc-btn.equals {
  background: var(--theme-primary);
  color: white;
  grid-row: span 2;
}

.calc-btn.clear {
  background: var(--theme-accent);
  color: white;
}

.calc-btn.zero {
  grid-column: span 2;
}

/* Timer Tool */
.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.timer-display {
  font-size: 3rem;
  font-family: "Courier New", monospace;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  min-width: 300px;
  text-align: center;
}

.timer-inputs {
  display: flex;
  gap: 0.5rem;
}

.timer-inputs input {
  width: 80px;
  padding: 0.75rem;
  text-align: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 1rem;
}

.timer-controls {
  display: flex;
  gap: 0.5rem;
}

.timer-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timer-btn.start {
  background: var(--theme-primary);
  color: white;
}

.timer-btn.pause {
  background: var(--theme-secondary);
  color: white;
}

.timer-btn.reset {
  background: var(--theme-accent);
  color: white;
}

/* Ruffle Emulator Tool */
.ruffle-container {
  height: 400px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.ruffle-frame {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.5rem;
}

/* Dictionary Tool */
.dictionary-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dictionary-mode-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mode-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mode-btn.active {
  background: var(--theme-primary);
  color: white;
  border-color: var(--theme-primary);
}

.dictionary-input-group {
  display: flex;
  gap: 0.5rem;
}

.dictionary-input {
  flex: 1;
  padding: 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: "Inter", sans-serif;
}

.dictionary-btn {
  padding: 0.75rem 1.5rem;
  background: var(--theme-primary);
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dictionary-results {
  height: 300px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow-y: auto;
  padding: 1rem;
}

.dictionary-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
  color: var(--text-muted);
}

.dictionary-placeholder i {
  font-size: 3rem;
}

.dictionary-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
  color: var(--text-muted);
}

.dictionary-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.5rem;
  color: var(--theme-accent);
  text-align: center;
}

.dictionary-error i {
  font-size: 2rem;
}

.dictionary-result {
  padding: 0.5rem;
}

.word-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.word-title {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.word-phonetic {
  color: var(--text-muted);
  font-style: italic;
}

.definition-section {
  margin-bottom: 1.5rem;
}

.part-of-speech {
  color: var(--theme-primary);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.definitions-list {
  padding-left: 1.5rem;
}

.definition-item {
  margin-bottom: 0.75rem;
}

.definition-text {
  margin-bottom: 0.25rem;
}

.definition-example {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

.encyclopedia-content {
  line-height: 1.6;
}

.encyclopedia-extract {
  margin-bottom: 1rem;
}

.encyclopedia-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--theme-primary);
  text-decoration: none;
  font-weight: 500;
}

.encyclopedia-link:hover {
  text-decoration: underline;
}

/* ExtPrint3r Tool */
.extprint-container {
  height: 500px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.extprint-frame {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.5rem;
}

/* AI Chatbot Tool */
.chatbot-container {
  display: flex;
  flex-direction: column;
  height: 400px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.chat-message {
  display: flex;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.chat-message.user-message {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--theme-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.5rem;
  flex-shrink: 0;
}

.user-message .message-avatar {
  background: var(--theme-secondary);
}

.message-avatar i {
  color: white;
  font-size: 0.9rem;
}

.message-content {
  background: var(--bg-secondary);
  padding: 0.75rem;
  border-radius: 0.75rem;
  max-width: 80%;
  word-wrap: break-word;
}

.user-message .message-content {
  background: var(--theme-primary);
  color: white;
}

.chat-input-container {
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  outline: none;
  font-family: "Inter", sans-serif;
}

.chat-input:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.chat-send-btn {
  padding: 0.75rem 1rem;
  background: linear-gradient(to right, var(--theme-primary), var(--theme-secondary));
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-send-btn:hover {
  transform: translateY(-1px);
}

/* Typing indicator */
.typing-dots {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing-bounce {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.bookmarklets-section {
  padding: 6rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.bookmarklets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.bookmarklet-card {
  background: var(--bg-secondary);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.bookmarklet-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.5);
}

.bookmarklet-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-family: "Orbitron", sans-serif;
  background: linear-gradient(to right, var(--theme-primary), var(--theme-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bookmarklet-description {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.bookmarklet-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(to right, var(--theme-primary), var(--theme-secondary));
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.bookmarklet-link:hover {
  transform: translateY(-1px);
}

.settings-section {
  padding: 6rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.settings-group {
  background: var(--bg-secondary);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.settings-group h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  font-family: "Orbitron", sans-serif;
  background: linear-gradient(to right, var(--theme-primary), var(--theme-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.setting-item {
  margin-bottom: 1.5rem;
}

.setting-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.setting-select,
.setting-input {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  font-family: "Inter", sans-serif;
}

.setting-select:focus,
.setting-input:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.setting-button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, var(--theme-primary), var(--theme-secondary));
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.setting-button:hover {
  transform: translateY(-1px);
}

.setting-select option {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: none;
  outline: none;
  font-family: "Space Grotesk", sans-serif;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.modal-content.large {
  max-width: 800px;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: "Orbitron", sans-serif;
  background: linear-gradient(to right, var(--theme-primary), var(--theme-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.modal-body {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.modal-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-btn.primary {
  background: linear-gradient(to right, var(--theme-primary), var(--theme-secondary));
  color: white;
  border: none;
}

.modal-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

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

.modal-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

/* Privacy and Terms Content */
.privacy-content,
.terms-content {
  color: var(--text-secondary);
}

.privacy-content h4,
.terms-content h4 {
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
  font-size: 1.25rem;
}

.privacy-content p,
.terms-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.privacy-content ul,
.terms-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.privacy-content li,
.terms-content li {
  margin-bottom: 0.5rem;
}

.footer {
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1rem 1rem;
  margin-top: 4rem;
  position: relative;
  z-index: 10; /* Ensure footer stays above digital rain */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  font-family: "Orbitron", sans-serif;
  background: linear-gradient(to right, var(--theme-primary), var(--theme-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-title {
  color: var(--text-primary);
}

.footer-description {
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

.mobile-menu {
  display: none;
  background: var(--bg-secondary);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
}

.mobile-menu.show {
  display: block;
}

.mobile-search {
  margin-bottom: 1rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

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

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 1rem;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .nav-center {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
  }

  .calculator-buttons {
    grid-template-columns: repeat(4, 1fr);
  }

  .calc-btn {
    padding: 1rem;
    font-size: 1rem;
  }

  .timer-display {
    font-size: 2.5rem;
    min-width: auto;
    width: 100%;
  }

  .timer-inputs {
    width: 100%;
    justify-content: space-between;
  }

  .timer-inputs input {
    width: 30%;
  }

  .timer-controls {
    width: 100%;
    justify-content: space-between;
  }

  .timer-btn {
    flex: 1;
    justify-content: center;
  }

  .dictionary-input-group {
    flex-direction: column;
  }

  .dictionary-btn {
    width: 100%;
    justify-content: center;
  }

  .modal-content {
    width: 95%;
  }

  .favorites-horizontal {
    gap: 0.75rem;
  }

  .favorite-game-button {
    min-width: 100px;
    width: 100px;
    height: 120px;
  }

  .favorite-game-button img {
    width: 60px;
    height: 60px;
  }

  .favorite-game-title {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2.25rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }

  .game-button {
    width: 140px;
    height: 140px;
  }

  .overlay-text {
    font-size: 14px;
    padding: 0.5rem;
  }

  .calculator-display input {
    font-size: 1.25rem;
  }

  .calc-btn {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .timer-display {
    font-size: 2rem;
    padding: 0.75rem 1.5rem;
  }

  .setting-button {
    width: 100%;
    margin-right: 0;
    justify-content: center;
  }

  .modal-header h3 {
    font-size: 1.25rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-footer {
    padding: 1rem;
    flex-direction: column;
  }

  .modal-btn {
    width: 100%;
    text-align: center;
  }

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

  .favorites-section {
    padding: 1rem;
  }

  .favorites-horizontal {
    gap: 0.5rem;
  }

  .favorite-game-button {
    min-width: 90px;
    width: 90px;
    height: 110px;
  }

  .favorite-game-button img {
    width: 50px;
    height: 50px;
  }

  .favorite-game-title {
    font-size: 0.65rem;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

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

.slow-animation * {
  animation-duration: 4s !important;
  transition-duration: 0.6s !important;
}

.fast-animation * {
  animation-duration: 1.5s !important;
  transition-duration: 0.15s !important;
}

.ultra-animation * {
  animation-duration: 0.8s !important;
  transition-duration: 0.1s !important;
}

/* Dynamic backgrounds */
.dynamic-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
