/* ============================================================
   SAIMBISOFT — Core Design System (Light Theme)
   ============================================================
   Numerology-Inspired Color Palette:
     Number 7 (Date Total)  → Violet / Purple / Lavender
     Number 1 (Full DOB)    → Gold / Yellow / Sun tones

   Palette:
     --bg-primary:   #ffffff  (clean white)
     --bg-secondary: #f4f0ff  (soft lavender tint)
     --accent-1:     #7c3aed  (royal violet — Num 7)
     --accent-2:     #f59e0b  (golden amber — Num 1)
     --accent-3:     #facc15  (bright yellow — Num 1)
     --text-primary: #1e1b4b  (deep indigo-black)
     --text-secondary:#4b5563  (warm gray)

   Typography:
     Headings  → Outfit  (Google Fonts)
     Body text → Inter   (Google Fonts)
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Core: Purple (7) · Gold/Yellow (1) · White */
  --white: #ffffff;
  --black: #0f0b1a;
  --bg-primary: #ebe8f4;
  /* Stronger off-white/lavender background for better contrast */
  --bg-secondary: #e1dced;
  --bg-card: #ffffff;
  --bg-card-hover: #faf8ff;
  --accent-1: #7c3aed;
  --accent-1-light: #ede9fe;
  --accent-2: #f59e0b;
  --accent-3: #facc15;
  --gradient-main: linear-gradient(135deg, #7c3aed, #a78bfa, #c4b5fd);
  --gradient-vibrant: linear-gradient(135deg, #7c3aed, #8b5cf6);
  --gradient-gold: linear-gradient(135deg, #f59e0b, #facc15, #fef08a);
  --text-primary: #1e1b4b;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border-light: rgba(124, 58, 237, 0.1);
  --border-card: rgba(124, 58, 237, 0.08);
  --shadow-soft: 0 4px 24px rgba(124, 58, 237, 0.08);
  --shadow-card: 0 8px 32px rgba(124, 58, 237, 0.06);
  --shadow-glow: 0 4px 30px rgba(124, 58, 237, 0.15);
  --nav-bg: rgba(255, 255, 255, 0.6);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.92);
  --hero-bg-dark: var(--bg-primary);
  --hero-bg-light: var(--accent-1-light);
  --glow-1: rgba(124, 58, 237, 0.04);
  --glow-2: rgba(245, 158, 11, 0.03);
  --skeleton-bar: rgba(124, 58, 237, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;
  --transition-slow: 0.6s ease;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
}

[data-theme="dark"] {
  --bg-primary: #0d0815;
  --bg-secondary: #150e24;
  --bg-card: rgba(21, 14, 36, 0.75);
  --bg-card-hover: rgba(21, 14, 36, 0.95);
  --accent-1: #a855f7;
  --accent-1-light: rgba(168, 85, 247, 0.15);
  --accent-2: #fef08a;
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #a78bfa;
  --border-light: rgba(168, 85, 247, 0.12);
  --border-card: rgba(168, 85, 247, 0.15);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 4px 30px rgba(168, 85, 247, 0.2);
  --nav-bg: rgba(13, 8, 21, 0.6);
  --nav-bg-scrolled: rgba(13, 8, 21, 0.92);
  --hero-bg-dark: var(--bg-primary);
  --hero-bg-light: #180b30;
  --glow-1: rgba(168, 85, 247, 0.08); /* stronger for dark */
  --glow-2: rgba(254, 240, 138, 0.04);
  --skeleton-bar: rgba(168, 85, 247, 0.08);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

/* Subtle decorative background blobs */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 600px at 15% 25%, var(--glow-1), transparent),
    radial-gradient(ellipse 500px 500px at 85% 75%, var(--glow-2), transparent);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent-1);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

ul,
ol {
  list-style: none;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  display: inline-block;
  background: var(--gradient-vibrant);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
}

.gradient-text {
  background: var(--gradient-vibrant);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-vibrant);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent-1);
  border: 2px solid var(--accent-1);
}

.btn-outline:hover {
  background: var(--accent-1);
  color: #fff;
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gradient-gold);
  color: #1e1b4b !important;
  /* Forces dark text even in dark mode */
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
  color: #1e1b4b !important;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.3);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ---------- Glass Card (now light elevated card) ---------- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124, 58, 237, 0.15);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-base);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar.scrolled {
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(124, 58, 237, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  background: var(--gradient-vibrant);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.navbar-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  /* Prevents the logo edges from being cropped out */
  background-color: #ffffff;
  /* Gives solid backing for JPGs */
  margin-right: 0.75rem;

  /* Light Mode: Yellow line, Purple glow */
  border: 1px solid rgba(245, 158, 11, 0.5);
  /* Yellow Line */
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.45);
  /* Purple Glow */
  transition: all var(--transition-base);
}

[data-theme="dark"] .navbar-logo {
  /* Dark Mode: White line, Yellow glow (Reduced to balance with Light Mode) */
  border-color: rgba(255, 255, 255, 0.35);
  /* White Line */
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  /* Yellow Glow */
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-links a {
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-vibrant);
  transition: all var(--transition-base);
  transform: translateX(-50%);
  border-radius: 2px;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--accent-1);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 60%;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
  transition: transform var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn:hover {
  transform: scale(1.1) rotate(10deg);
}


/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hero-bg-light) 0%, var(--hero-bg-dark) 60%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle 400px at 30% 40%, rgba(124, 58, 237, 0.06), transparent),
    radial-gradient(circle 300px at 70% 60%, rgba(245, 158, 11, 0.04), transparent),
    radial-gradient(circle 200px at 50% 80%, rgba(124, 58, 237, 0.03), transparent);
  animation: heroFloat 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(20px, -20px) rotate(1deg);
  }

  66% {
    transform: translate(-15px, 15px) rotate(-1deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-1-light);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 50px;
  color: var(--accent-1);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero h1 {
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Game Card ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.game-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-soft);
}

.game-card:hover,
.game-card.anim-element.visible:hover {
  border-color: transparent;
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px) scale(1.02);
  z-index: 2;
}

.game-card:active,
.game-card.anim-element.visible:active {
  transform: scale(0.98);
}

.game-card:focus {
  outline: none;
}

.game-card-image {
  width: 100%;
  height: auto;
  min-height: 150px;
  object-fit: contain;
  border-bottom: none;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-image .placeholder-icon {
  font-size: 4rem;
  opacity: 0.8;
}

.game-card-body {
  padding: 1.5rem;
}

.game-card-body h3 {
  margin-bottom: 0.5rem;
}

.game-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  font-family: var(--font-heading);
}

.tag-genre {
  background: var(--accent-1-light);
  color: var(--accent-1);
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.tag-platform {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-2);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.game-card-body .release-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.game-card-body .description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* Play Store button */
.game-card-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

/* ---------- Game Modal ---------- */
.game-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.game-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.game-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.game-modal-overlay.active .game-modal-content {
  transform: translateY(0) scale(1);
}

.game-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.game-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.game-modal-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border-card);
}

.game-modal-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.game-modal-body {
  padding: 2rem;
}

.game-modal-body .description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

/* ---------- News Timeline ---------- */
.news-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.news-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), transparent);
  border-radius: 2px;
}

.news-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3rem;
}

.news-item::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--gradient-vibrant);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.25);
}

.news-date-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 50px;
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
}

.news-item .glass-card {
  padding: 1.5rem;
}

.news-item h3 {
  margin-bottom: 0.25rem;
}

.news-item h4 {
  font-size: 1.1rem;
  color: var(--accent-1);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.news-item p {
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- About Sections ---------- */
.about-hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.about-hero h1 {
  margin-bottom: 0.75rem;
}

.about-hero .subtitle {
  font-size: 1.15rem;
  color: var(--accent-1);
  font-family: var(--font-heading);
  font-weight: 500;
}

/* About Flow Section */
.about-flow {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.about-flow-item {
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.about-flow-item .flow-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.about-flow-item .flow-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.about-flow-item h3 {
  font-size: 1.2rem;
  color: var(--accent-1);
}

.about-flow-item p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.about-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.about-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.about-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.about-card p {
  font-size: 0.9rem;
}

/* ---------- Collapsible Sections (ToS / Privacy) ---------- */
.collapsible {
  margin-bottom: 1rem;
}

.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  user-select: none;
}

.collapsible-header:hover {
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: var(--shadow-soft);
}

.collapsible-header h3 {
  font-size: 1.1rem;
}

.collapsible-header .chevron {
  font-size: 1.2rem;
  transition: transform var(--transition-base);
  color: var(--text-muted);
}

.collapsible.open .collapsible-header {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-color: rgba(124, 58, 237, 0.2);
}

.collapsible.open .chevron {
  transform: rotate(180deg);
}

.collapsible-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.collapsible.open .collapsible-body {
  max-height: 3000px;
}

.collapsible-content {
  padding: 1.5rem;
}

.collapsible-content h4 {
  color: var(--accent-1);
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}

.collapsible-content p,
.collapsible-content li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.collapsible-content ul {
  padding-left: 1.25rem;
  list-style: disc;
  margin-bottom: 0.75rem;
}

.collapsible-content li {
  margin-bottom: 0.35rem;
}

/* ---------- Contact Section ---------- */
.contact-bar {
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

.contact-bar a {
  font-size: 1.05rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 0;
  text-align: center;
  background: var(--bg-secondary);
  margin-top: auto;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-1-light);
  border: 1px solid rgba(124, 58, 237, 0.12);
  color: var(--accent-1);
  font-size: 1.1rem;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-1);
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Scroll-triggered Animation Targets ---------- */
.anim-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-element.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-left {
  transform: translateX(-40px);
}

.anim-left.visible {
  transform: translateX(0);
}

.anim-right {
  transform: translateX(40px);
}

.anim-right.visible {
  transform: translateX(0);
}

.anim-scale {
  transform: scale(0.9);
}

.anim-scale.visible {
  transform: scale(1);
}

/* Staggered delays */
.anim-delay-1 {
  transition-delay: 0.1s;
}

.anim-delay-2 {
  transition-delay: 0.2s;
}

.anim-delay-3 {
  transition-delay: 0.3s;
}

.anim-delay-4 {
  transition-delay: 0.4s;
}

/* ---------- Loading Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg,
      var(--skeleton-bar) 25%,
      var(--border-light) 50%,
      var(--skeleton-bar) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  height: 320px;
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  width: 80%;
}

.skeleton-text.short {
  width: 50%;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: right var(--transition-base);
    border-left: 1px solid var(--border-light);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.05);
  }

  .navbar-links.open {
    right: 0;
  }

  .navbar-links a {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

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

  .news-timeline::before {
    left: 14px;
  }

  .news-item {
    padding-left: 45px;
  }

  .news-item::before {
    left: 7px;
    width: 14px;
    height: 14px;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

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

/* ---------- Image Gallery & Dots Pagination ---------- */
.gallery-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.image-gallery {
  display: flex;
  gap: 0;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  padding: 0;
  margin: 0;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.image-gallery::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Edge hides native bar */
}

.image-gallery img {
  flex: 0 0 100%;
  /* Fully remove side boundary gaps! */
  scroll-snap-align: start;
  scroll-snap-stop: always;
  /* Prevents fast scrolling jumping past images */
  border-radius: 0;
  aspect-ratio: auto;
  max-height: 450px;
  /* Dynamic adaptation */
  object-fit: contain;
  border: none;
}

.gallery-dots {
  position: absolute;
  bottom: 8px;
  /* Overlay internally like Instagram */
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 0.35rem 0.7rem;
  background-color: rgba(255, 255, 255, 0.4);
  /* Light colored round cornered square */
  border-radius: 14px;
  width: fit-content;
  margin: 0;
}

.gallery-dots .dot {
  width: 6px;
  height: 6px;
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: none;
  border-radius: 50%;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.gallery-dots .dot.active {
  background-color: var(--accent-1);
  /* Purple/Themed */
  transform: scale(1.4);
}

/* Media query cleanup */
@media (min-width: 600px) {
  .hero-content {
    flex-direction: row;
  }
}