/* ============================================================
   Game On Escapes — Design B4: Location-Themed
   Per-location color palettes with radial gradient backgrounds,
   shadcn-inspired components, and animations.
   ============================================================ */

/* ---------- Layout ---------- */
.max-w-7xl { max-width: 1440px !important; }
@media (min-width: 1280px) {
  .max-w-7xl { max-width: min(1440px, 94vw) !important; }
}

/* ---------- Self-hosted Fonts ---------- */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/bebas-neue-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/oswald-latin.woff2') format('woff2');
}

/* ========== BASE / HOMEPAGE THEME ========== */
:root {
  /* Homepage defaults: dark neutral with warm gold accents */
  --color-bg:           #0a0a0f;
  --color-surface:      #111118;
  --color-surface2:     #1a1a24;
  --color-border:       #2a2a38;
  --color-primary:      #F59E0B;
  --color-primary-light:#FCD34D;
  --color-accent:       #E11D48;
  --color-accent-light: #FB7185;
  --color-text:         #F1F5F9;
  --color-muted:        #94A3B8;
  /* Radial gradient orbs */
  --orb-1: rgba(245, 158, 11, 0.08);
  --orb-2: rgba(225, 29, 72, 0.06);
  --orb-pos-1: 20% 30%;
  --orb-pos-2: 80% 70%;
}

/* ========== CARY THEME: Black, Grey, Yellow/Gold, White ========== */
.theme-cary {
  --color-bg:           #0a0a0a;
  --color-surface:      #141414;
  --color-surface2:     #1e1e1e;
  --color-border:       #333333;
  --color-primary:      #F59E0B;
  --color-primary-light:#FCD34D;
  --color-accent:       #FBBF24;
  --color-accent-light: #FDE68A;
  --color-text:         #F9FAFB;
  --color-muted:        #9CA3AF;
  --orb-1: rgba(245, 158, 11, 0.1);
  --orb-2: rgba(251, 191, 36, 0.06);
  --orb-pos-1: 15% 20%;
  --orb-pos-2: 85% 60%;
}

/* ========== BOXYARD THEME: Red primary, Blue accent ========== */
.theme-boxyard {
  --color-bg:           #050d12;
  --color-surface:      #0a1a22;
  --color-surface2:     #0f2230;
  --color-border:       #1a3545;
  --color-primary:      #dc3232;
  --color-primary-light:#ea6485;
  --color-accent:       #00acf8;
  --color-accent-light: #ade7ff;
  --color-text:         #F1F8FC;
  --color-muted:        #7FB5CC;
  --orb-1: rgba(0, 172, 248, 0.1);
  --orb-2: rgba(220, 50, 50, 0.06);
  --orb-pos-1: 25% 35%;
  --orb-pos-2: 75% 65%;
}

/* ========== MOREHEAD THEME: Coastal — Ocean Blue, Seafoam, Sand ========== */
.theme-morehead {
  --color-bg:           #060d14;
  --color-surface:      #0c1a28;
  --color-surface2:     #12253a;
  --color-border:       #1e3a52;
  --color-primary:      #38BDF8;
  --color-primary-light:#7DD3FC;
  --color-accent:       #2DD4BF;
  --color-accent-light: #5EEAD4;
  --color-text:         #F0F9FF;
  --color-muted:        #7CB8D0;
  --orb-1: rgba(56, 189, 248, 0.1);
  --orb-2: rgba(45, 212, 191, 0.07);
  --orb-pos-1: 30% 25%;
  --orb-pos-2: 70% 75%;
}

/* ========== GREENVILLE THEME: Purple & Gold ========== */
.theme-greenville {
  --color-bg:           #0a0812;
  --color-surface:      #140f22;
  --color-surface2:     #1e1832;
  --color-border:       #2e2548;
  --color-primary:      #A855F7;
  --color-primary-light:#C084FC;
  --color-accent:       #EAB308;
  --color-accent-light: #FDE047;
  --color-text:         #F5F3FF;
  --color-muted:        #A3A0C0;
  --orb-1: rgba(168, 85, 247, 0.1);
  --orb-2: rgba(234, 179, 8, 0.07);
  --orb-pos-1: 20% 40%;
  --orb-pos-2: 80% 60%;
}

/* ========== DURHAM/CHAPEL HILL THEME: Duke Blue + Carolina Blue + White ========== */
.theme-durham {
  --color-bg:           #040810;
  --color-surface:      #0a1220;
  --color-surface2:     #101e34;
  --color-border:       #1a3058;
  --color-primary:      #4B9CD3;
  --color-primary-light:#7DB8E0;
  --color-accent:       #003087;
  --color-accent-light: #1a50a8;
  --color-text:         #EEF4FA;
  --color-muted:        #8AACC4;
  --orb-1: rgba(75, 156, 211, 0.1);
  --orb-2: rgba(0, 48, 135, 0.08);
  --orb-pos-1: 25% 30%;
  --orb-pos-2: 75% 70%;
}

/* ---------- Base Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ---------- Radial Gradient Background ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 600px 600px at var(--orb-pos-1), var(--orb-1), transparent),
    radial-gradient(ellipse 500px 500px at var(--orb-pos-2), var(--orb-2), transparent),
    var(--color-bg);
  pointer-events: none;
}

/* ---------- Typography ---------- */
.font-display {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

/* ---------- Navigation (Frosted Glass) ---------- */
.nav-bar {
  background: rgba(17, 17, 24, 0.7);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s;
}

.nav-logo img {
  height: 48px;
  width: auto;
  transition: filter 0.3s, transform 0.3s;
}
.nav-logo img:hover {
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.5));
  transform: scale(1.03);
}

.nav-links a {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  padding: 4px 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a:hover::after { width: 100%; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 14px; /* bridge the gap — mouse travels over this invisible area */
  background: transparent;
  min-width: 200px;
  z-index: 200;
  transition: opacity 0.15s ease, visibility 0s linear 0.15s;
}
/* Inner panel holds the visual styling */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 14px; left: 0; right: 0; bottom: 0;
  background: rgba(30, 30, 44, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: -1;
}
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.15s ease, visibility 0s linear 0s;
}
.dropdown-menu a {
  display: block;
  padding: 12px 18px;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--color-primary); color: white !important; }
.dropdown-menu a:hover::after { display: none; }

/* Mobile nav */
#mobile-menu {
  background: rgba(17, 17, 24, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.06);
}
#mobile-menu a {
  display: block;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  padding: 14px 24px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
#mobile-menu a:hover { background: var(--color-primary); color: white; padding-left: 32px; }
#mobile-menu .mobile-sub a {
  padding-left: 40px;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Hamburger */
#hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero Sections ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
  animation: hero-zoom 20s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.hero-content { position: relative; z-index: 1; }

/* Diagonal divider */
.diagonal-bottom {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--color-surface);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 2;
}
.diagonal-bottom-dark {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--color-bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 2;
}

/* ---------- Buttons (shadcn-inspired) ---------- */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #000;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.1em;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 20px color-mix(in srgb, var(--color-primary) 30%, transparent);
  color: #000;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.1em;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.btn-secondary:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  color: white;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--color-text);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.1em;
  font-size: 1rem;
  padding: 11px 32px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* ---------- Section Styles ---------- */
.section-dark {
  background: transparent;
  color: var(--color-text);
  position: relative;
}
.section-accent {
  background: var(--color-primary);
  color: #000;
  position: relative;
}
.section-cream {
  background: var(--color-surface);
  color: var(--color-text);
  position: relative;
}
.section-charcoal-light {
  background: var(--color-surface2);
  color: var(--color-text);
  position: relative;
}

/* ---------- Stats Bar ---------- */
.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: 0.05em;
}
.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 4px;
}

/* ---------- Cards (shadcn-style) ---------- */
.room-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  scroll-snap-align: start;
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
}
/* Content body stretches, button pins to bottom */
.room-card > div:last-child {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.room-card > div:last-child > a:last-child {
  margin-top: auto;
}
.room-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.3),
    0 0 30px color-mix(in srgb, var(--color-primary) 10%, transparent);
}
.room-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.room-card:hover img { transform: scale(1.06); }

/* ---------- Carousel (mobile-first) ---------- */
.rooms-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-surface);
}
.rooms-carousel::-webkit-scrollbar { height: 4px; }
.rooms-carousel::-webkit-scrollbar-track { background: var(--color-surface); border-radius: 2px; }
.rooms-carousel::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 2px; }

@media (min-width: 768px) {
  .rooms-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .room-card { flex: unset; }
}

/* ---------- Location Cards ---------- */
.location-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.location-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.location-card-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent, var(--color-primary-light)));
}

/* Room count badge */
.room-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: #000;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--color-primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: var(--color-muted);
  line-height: 1.7;
}
.faq-answer.open {
  max-height: 500px;
  padding-bottom: 20px;
}
.faq-icon {
  font-size: 1.2rem;
  color: var(--color-primary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-question.active .faq-icon { transform: rotate(45deg); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--color-surface);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 400px at 20% 80%, var(--orb-1), transparent),
    radial-gradient(ellipse 400px 400px at 80% 20%, var(--orb-2), transparent);
  pointer-events: none;
}
.page-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  line-height: 1;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.page-hero-sub {
  font-family: 'Inter', sans-serif;
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-top: 12px;
}

/* ---------- Badge / Tag ---------- */
.badge {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}
.badge-red { background: var(--color-accent); color: white; }
.badge-orange { background: var(--color-primary); color: #000; font-weight: 600; }
.badge-new {
  background: var(--color-primary);
  color: #000;
  font-weight: 600;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 50%, transparent); }
  50% { box-shadow: 0 0 0 6px transparent; }
}
.badge-seasonal { background: #22C55E; color: white; }
.badge-dueling { background: var(--color-accent-light); color: #000; font-weight: 600; }
.badge-horror {
  background: rgba(0,0,0,0.4);
  color: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  backdrop-filter: blur(4px);
}

/* ---------- Angled Section Divider ---------- */
.clip-diagonal-top {
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
  margin-top: -40px;
  padding-top: 80px;
}
.clip-both {
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  padding: 80px 0;
  margin: -20px 0;
}

/* ---------- Footer ---------- */
footer {
  background: #06060a;
  border-top: 1px solid var(--color-border);
}
footer h4 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.12em;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}
footer a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.88rem;
}
footer a:hover { color: var(--color-primary); }
footer p { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: all 0.2s;
  color: white !important;
}
.footer-social a:hover { background: var(--color-primary); border-color: var(--color-primary); }

/* ---------- Award Badge ---------- */
.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-primary);
  padding: 8px 18px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
.award-badge .star { color: var(--color-primary); font-size: 1.2rem; }
.award-badge span {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: var(--color-primary);
}

/* ---------- Hours Table ---------- */
.hours-table td {
  padding: 8px 12px;
  font-size: 0.88rem;
}
.hours-table td:first-child {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
.hours-table tr:nth-child(even) { background: rgba(255,255,255,0.02); }

/* ---------- Game Show Section ---------- */
.gameshow-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.gameshow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 300px 300px at 80% 20%, var(--orb-1), transparent),
    radial-gradient(ellipse 200px 200px at 10% 80%, var(--orb-2), transparent);
  pointer-events: none;
}

/* ---------- Corporate Clients ---------- */
.client-name {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  transition: color 0.3s, transform 0.3s;
}
.client-name:hover { color: var(--color-primary); transform: scale(1.05); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .page-hero { padding: 60px 0 80px; }
  .clip-diagonal-top { clip-path: polygon(0 2%, 100% 0, 100% 100%, 0 100%); }
  .clip-both { clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%); }
  .diagonal-bottom, .diagonal-bottom-dark { height: 40px; }
  .btn-primary, .btn-secondary, .btn-outline { font-size: 0.9rem; padding: 10px 24px; }
}

/* ---------- Scroll Animations (staggered + spring) ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scale-in variant */
.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Horizontal Rule ---------- */
.hr-red {
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent, var(--color-primary-light)), transparent);
  border: none;
  margin: 0;
}

/* ---------- Misc ---------- */
::selection { background: var(--color-primary); color: #000; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ---------- Book Banner ---------- */
.book-banner {
  background: var(--color-primary);
  padding: 16px 0;
}
.book-banner * { color: #000; }
.book-banner a { color: #000 !important; }

/* ---------- Floating Orbs Animation ---------- */
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(10px, -20px) scale(1.05); }
  50% { transform: translate(-5px, -10px) scale(0.98); }
  75% { transform: translate(-15px, 5px) scale(1.02); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: float-orb 15s ease-in-out infinite;
  filter: blur(60px);
}

/* ---------- Shimmer Animation ---------- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-text {
  background: linear-gradient(90deg, var(--color-text) 0%, var(--color-primary) 50%, var(--color-text) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

/* ---------- Counter Animation ---------- */
@keyframes count-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.count-animate {
  animation: count-up 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
