/* ============================================================
   1+ VR & AI Creative — Official Website Styles
   Apple-inspired Design System
   Version: 1.0 | Date: 2026-07-24
   ============================================================ */

/* ==================== CSS VARIABLES (Design Tokens) ==================== */
:root {
  /* Colors */
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-gray-bg: #F5F5F7;
  --color-text-primary: #1D1D1F;
  --color-text-secondary: #6E6E73;
  --color-text-tertiary: #A1A1A6;
  --color-accent: #0071E3;
  --color-accent-hover: #0077ED;
  --color-accent-light: rgba(0, 113, 227, 0.08);
  --color-border: #D2D2D7;
  --color-success: #30D158;
  --color-error: #FF3B30;

  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                   "Segoe UI", "PingFang SC", "Noto Sans SC",
                   "Microsoft YaHei", sans-serif;

  --text-hero: clamp(2.5rem, 5vw, 3.5rem);
  --text-h2: clamp(2rem, 4vw, 2.5rem);
  --text-h3: 1.5rem;
  --text-body: 1.0625rem;
  --text-caption: 0.875rem;
  --text-small: 0.75rem;

  --leading-tight: 1.07;
  --leading-normal: 1.47;
  --leading-relaxed: 1.65;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  --section-padding: clamp(4rem, 8vw, 6.25rem);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9800px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-nav: 0 1px 4px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --ease-out: cubic-bezier(.25, .46, .45, .94);
  --transition-fast: 150ms var(--ease-out);
  --transition-normal: 300ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);

  /* Layout */
  --navbar-height: 60px;
  --container-max: 1200px;
}


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

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

/* ==================== MOUSE CURSOR GLOW FOLLOWER ==================== */
.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    circle,
    rgba(0, 113, 227, 0.10) 0%,
    rgba(100, 80, 220, 0.06) 40%,
    transparent 70%
  );
  filter: blur(8px);
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* Hide on touch devices */
@media (hover: none) and (pointer: coarse) {
  .cursor-glow { display: none !important; }
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
}


/* ==================== CONTAINER ==================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.section {
  padding: var(--section-padding) 0;
}


/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 12px 24px;
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.btn-secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  padding: 10px 0;
  border-radius: 0;
  font-weight: 500;
}
.btn-ghost:hover {
  background: none;
  color: var(--color-accent-hover);
}
.btn-ghost::after {
  content: '';
  display: block;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width var(--transition-normal);
  margin-top: 4px;
}
.btn-ghost:hover::after {
  width: 100%;
}

.btn-ghost-light {
  color: var(--color-white);
}
.btn-ghost-light::after {
  background: var(--color-white);
}
.btn-ghost-light:hover {
  color: rgba(255, 255, 255, 0.8);
}

.btn-lg {
  padding: 14px 28px;
  font-size: var(--text-body);
}

.btn-full {
  width: 100%;
}


/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-nav);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo .logo-img {
  height: 38px;
  width: auto;
  transition: transform var(--transition-fast);
}
.nav-logo:hover .logo-img {
  transform: scale(1.03);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  padding: 4px 0;
  position: relative;
  transition: color var(--transition-fast);
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-text-primary);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 1px;
  transition: width var(--transition-normal);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-text-primary);
  color: var(--color-white) !important;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 13px;
}
.nav-cta:hover {
  background: #333333;
}
.nav-cta::after {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-text-primary);
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
}
.lang-toggle:hover {
  border-color: var(--color-black);
  color: var(--color-black);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-text-primary);
  border-radius: 1px;
  transition: all var(--transition-normal);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 80vw);
  background: var(--color-white);
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  padding: calc(var(--navbar-height) + 24px) 28px 28px;
}
.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-link {
  display: block;
  padding: 16px 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: color var(--transition-fast);
}
.mobile-link:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.mobile-link:hover {
  color: var(--color-accent);
}

/* Mobile overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .lang-toggle { font-size: 10px; padding: 3px 8px; }
}


/* ==================== HERO SECTION ==================== */
.hero {
  background-color: var(--color-black);
  color: var(--color-white);
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--navbar-height) + 40px);
  overflow: hidden;
  position: relative;
}

/* ---- Hero Particle Canvas (Constellation Background) ---- */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

/* ---- Floating Glow Orbs ---- */
.hero-glow-orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform, opacity;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.25) 0%, transparent 70%);
  top: -80px;
  right: -100px;
  animation: orbFloat1 12s ease-in-out infinite;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(120, 80, 220, 0.18) 0%, transparent 70%);
  bottom: -60px;
  left: -80px;
  animation: orbFloat2 15s ease-in-out infinite;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 180, 220, 0.15) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  animation: orbFloat3 10s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.08); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -25px) scale(1.05); }
  66% { transform: translate(-30px, 15px) scale(0.92); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(-30px) scale(1.15); opacity: 0.9; }
}

/* ---- Center Pulse Ring ---- */
.hero-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 1;
  pointer-events: none;
  animation: pulseRing 4s ease-in-out infinite;
}

.hero-pulse-ring::before,
.hero-pulse-ring::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.hero-pulse-ring::before {
  width: 700px;
  height: 700px;
  animation: pulseRing 4s ease-in-out infinite 1s;
}

.hero-pulse-ring::after {
  width: 900px;
  height: 900px;
  animation: pulseRing 4s ease-in-out infinite 2s;
}

@keyframes pulseRing {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.02); }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80vh;
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Hero Entrance Animations (Staggered) ---- */
.hero-logo {
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: heroFadeUp 1s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: 0.2s;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: heroFadeUp 1s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: 0.5s;
}

.hero-subtitle {
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  line-height: var(--leading-relaxed);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  opacity: 0;
  animation: heroFadeUp 1s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: 0.75s;
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: heroFadeUp 1s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: 1s;
}

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

.hero-logo-img {
  height: clamp(120px, 18vw, 220px);
  width: auto;
  object-fit: contain;
}

/* Hero buttons — black/white contrast on dark hero */
.hero .btn-primary {
  background-color: var(--color-white);
  color: var(--color-black) !important;
}
.hero .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.hero .btn-secondary {
  color: var(--color-white);
  border-color: var(--color-white);
}
.hero .btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

@media (max-width: 900px) {
  .hero-inner {
    min-height: auto;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-3xl);
  }
  .hero-logo-img {
    height: clamp(100px, 28vw, 170px);
  }
  .hero-particles { opacity: 0.3; }
  .hero-pulse-ring,
  .hero-pulse-ring::before,
  .hero-pulse-ring::after { display: none; }
  .orb-1, .orb-2 { width: 250px; height: 250px; filter: blur(60px); }
  .orb-3 { width: 180px; height: 180px; filter: blur(50px); }
}
}


/* ==================== PILLARS SECTION ==================== */
.pillars {
  background: var(--color-white);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.pillar-card {
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  transition: all var(--transition-slow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar-icon svg {
  width: 100%;
  height: 100%;
}

.pillar-title {
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.pillar-subtitle {
  font-size: var(--text-small);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
}

.pillar-desc {
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

@media (max-width: 600px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}


/* ==================== BUSINESS SECTIONS ==================== */
.business {
  overflow: hidden;
}

.business-light {
  background: var(--color-white);
}
.business-dark {
  background: var(--color-black);
  color: var(--color-white);
}

.business-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.business-reverse .business-image {
  order: -1;
}

.business-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.business-dark .business-tag {
  color: #5ac8fa;
}

.business-title {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.business-subtitle {
  font-size: var(--text-caption);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-md);
}
.business-dark .business-subtitle {
  color: rgba(255, 255, 255, 0.55);
}

.business-desc {
  font-size: var(--text-caption);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 480px;
}
.business-dark .business-desc {
  color: rgba(255, 255, 255, 0.7);
}

.business-features {
  margin-bottom: var(--space-lg);
}
.business-features li {
  position: relative;
  padding-left: 24px;
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
  line-height: 2;
}
.business-dark .business-features li {
  color: rgba(255, 255, 255, 0.7);
}
.business-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}
.business-dark .business-features li::before {
  color: #5ac8fa;
}

.business-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.business-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}
.business-dark .business-image img {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* Fentu Platform Card inside Business 4 */
.fentu-platform {
  background: rgba(90, 200, 250, 0.08);
  border: 1px solid rgba(90, 200, 250, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.fentu-name {
  font-size: var(--text-caption);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: #5ac8fa;
}

.fentu-stats {
  display: flex;
  gap: var(--space-lg);
}

.fentu-stat {
  display: flex;
  flex-direction: column;
}

.fentu-stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

.fentu-stat-label {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
  .business-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .business-reverse .business-image {
    order: 0;
  }
  .fentu-stats {
    flex-wrap: wrap;
    gap: var(--space-md);
  }
}


/* ==================== EQUIPMENT SECTION ==================== */
.equipment {
  background: var(--color-gray-bg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
}

.equipment-scroll {
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-sm) 0;
}
.equipment-scroll::-webkit-scrollbar {
  display: none;
}

/* Gradient edge hinting scrollability (left only) */
.equipment-scroll::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 2;
}
.equipment-scroll::before {
  left: 0;
  background: linear-gradient(to right, var(--color-gray-bg), transparent);
}

.equipment-track {
  display: flex;
  gap: var(--space-lg);
  padding: 0 calc(var(--container-max) * 0.05);
  width: max-content;
}

.equip-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.equip-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.equip-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e8ed;
  padding: 16px;
}
.equip-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}
.equip-card:hover .equip-img img {
  transform: scale(1.05);
}

.equip-name {
  font-size: var(--text-body);
  font-weight: 600;
  padding: var(--space-md) var(--space-md) 4px;
  color: var(--color-text-primary);
}

.equip-desc {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  padding: 0 var(--space-md) var(--space-md);
}


/* ==================== GAMES SECTION ==================== */
.games {
  background: var(--color-black);
  padding: 0;
  position: relative;
}

.games-overlay {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-image: url('assets/image5.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.games-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.games-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-3xl) 0;
}

.games-title {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: 4px;
}

.games-subtitle {
  font-size: var(--text-caption);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.games-desc {
  font-size: var(--text-caption);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-xl);
}

.games-highlights {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.games-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-caption);
  color: rgba(255, 255, 255, 0.85);
}

.games-hl-icon {
  font-size: 1.2rem;
}

@media (max-width: 600px) {
  .games-overlay {
    min-height: 60vh;
  }
  .games-highlights {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
}


/* ==================== ABOUT SECTION ==================== */
.about {
  background: var(--color-white);
}

.about-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  margin-bottom: var(--space-4xl);
}

.about-text .section-title {
  margin-bottom: var(--space-lg);
}

.about-desc {
  font-size: var(--text-caption);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.about-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}

/* Timeline */
.timeline {
  margin-bottom: var(--space-3xl);
}

.timeline-title {
  font-size: var(--text-h3);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.timeline-track {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0 clamp(16px, 3vw, 48px);
}
.timeline-track::before {
  content: '';
  position: absolute;
  top: 14px;
  left: clamp(16px, 3vw, 48px);
  right: clamp(16px, 3vw, 48px);
  height: 2px;
  background: var(--color-border);
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.timeline-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-border);
  z-index: 1;
  margin-bottom: var(--space-md);
  transition: all var(--transition-normal);
}

.timeline-dot-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.15);
}

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

.timeline-year {
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--color-text-primary);
  display: block;
  margin-bottom: 4px;
}

.timeline-text {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.stat-card {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--color-gray-bg);
}

.stat-num {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.stat-plus,
.stat-pct {
  font-size: 0.5em;
  color: var(--color-accent);
  vertical-align: super;
}

.stat-label {
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr;
  }

  .timeline-track {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-left: 32px;
  }
  .timeline-track::before {
    top: 0;
    bottom: 0;
    left: 14px;
    right: auto;
    width: 2px;
    height: 100%;
  }

  .timeline-item {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
  }

  .timeline-content {
    text-align: left;
  }

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


/* ==================== PARTNERS SECTION ==================== */
.partners {
  background: var(--color-black);
}

.partners-overline {
  font-size: var(--text-caption);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
  text-align: center;
}

.partners .section-title {
  color: var(--color-white);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-lg);
  align-items: center;
  justify-items: center;
}

.partner-logo {
  width: 100%;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  filter: grayscale(100%);
  opacity: 0.55;
  transition: all var(--transition-normal);
}
.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.partner-logo img {
  max-height: 52px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}


/* ==================== CONTACT SECTION ==================== */
.contact {
  background: linear-gradient(135deg, #1d1d1f 0%, #000000 100%);
  color: var(--color-white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: stretch;
}

.contact-form-wrap {
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-size: var(--text-h2);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.contact-subtitle {
  font-size: var(--text-caption);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  position: relative;
}

.form-group-full {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  font-size: var(--text-caption);
  transition: all var(--transition-fast);
  outline: none;
}
.form-input:focus {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}
.form-input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.15);
}

.form-label {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: var(--text-caption);
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  transition: all var(--transition-fast);
}
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: -9px;
  left: 12px;
  font-size: 10px;
  color: var(--color-accent);
  background: #1d1d1f;
  padding: 0 6px;
}

.form-error {
  display: block;
  font-size: 11px;
  color: var(--color-error);
  margin-top: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
}
.form-error.show {
  opacity: 1;
  transform: translateY(0);
}

.form-textarea {
  resize: vertical;
  flex: 1;
  min-height: 0;
}

.form-success {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-md);
  background: rgba(48, 209, 88, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-success);
  font-size: var(--text-caption);
  display: none;
}
.form-success.show {
  display: block;
  animation: fadeUp 0.4s var(--ease-out);
}

/* Contact section submit button — black/white contrast */
.contact-form button[type="submit"] {
  width: 100%;
  padding: 8px 28px;
  border-radius: var(--radius-sm) !important;
  background-color: var(--color-white) !important;
  color: var(--color-black) !important;
  border: none !important;
}
.contact-form button[type="submit"]:hover {
  background-color: rgba(255, 255, 255, 0.85) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

/* Contact Info Side */
.info-title {
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: var(--space-xl);
}

/* Borderless contact carousel */
.contact-carousel {
  position: relative;
}

.contact-slides {
  position: relative;
  overflow: hidden;
}

.contact-slide {
  display: none;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  animation: fadeUp 0.35s var(--ease-out);
}

.contact-slide.active {
  display: grid;
}

.contact-slide-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wechat-qr {
  text-align: center;
  align-self: center;
}

.qr-img {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  padding: 14px;
  margin: 0 auto var(--space-sm);
  object-fit: contain;
}

.qr-caption {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.5);
}

.contact-slide-info {
  min-width: 0;
}

.contact-person-header {
  margin-bottom: var(--space-md);
}

.contact-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.contact-role {
  font-size: var(--text-caption);
  color: rgba(255, 255, 255, 0.5);
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.info-items--compact {
  gap: var(--space-xs);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-caption);
  color: rgba(255, 255, 255, 0.75);
}

.info-item--email .info-text {
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.info-text {
  white-space: nowrap;
  line-height: var(--leading-normal);
}

.info-item--location {
  align-items: flex-start;
}

.location-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: -4px;
  margin-right: 2px;
}
.info-icon svg {
  width: 100%;
  height: 100%;
}

/* Carousel navigation */
.contact-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.carousel-prev,
.carousel-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  transform: translateY(-1px);
}

.carousel-prev:focus-visible,
.carousel-next:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  width: 24px;
  background: var(--color-white);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Shared address block below carousel */
.contact-address {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Static map image — clickable to open Amap */
.contact-map-embed {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  background: #1a1a1a;
  margin-top: 10px;
  position: relative;
}

.map-static-link {
  display: block;
  position: relative;
  text-decoration: none;
}

.map-static-link img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-base);
}

.map-static-link:hover img {
  transform: scale(1.02);
}

.map-overlay-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: rgba(255,255,255,0.85);
  font-size: var(--text-caption);
  text-align: center;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.map-static-link:hover .map-overlay-hint {
  color: #fff;
}

/* Address title (same style as the contact title above) */
.info-title--address {
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.contact-address-text {
  font-size: var(--text-caption);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-sm);
  line-height: var(--leading-relaxed);
}

@media (max-width: 900px) {
  .contact-slide {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }
  .contact-slide-visual {
    order: 1;
  }
  .contact-slide-info {
    order: 2;
  }
  .info-items {
    align-items: center;
  }
  .contact-address {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .qr-img {
    width: 150px;
    height: 150px;
    padding: 12px;
  }
  .contact-map-img {
    height: 130px;
  }
}


/* ==================== FOOTER ==================== */
.footer {
  background: var(--color-gray-bg);
  padding-top: var(--space-3xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
}

.footer-logo {
  height: 108px;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a,
.footer-col span {
  font-size: 12px;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}
.footer-col a:hover {
  color: var(--color-text-primary);
}

/* Footer contact carousel (borderless) */
.footer-contact-carousel {
  margin-top: 2px;
}

.footer-contact-slides {
  position: relative;
  min-height: 84px;
}

.footer-contact-slide {
  display: none;
  flex-direction: column;
  gap: 2px;
  animation: fadeUp 0.35s var(--ease-out);
}
.footer-contact-slide.active {
  display: flex;
}

.footer-contact-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.footer-contact-role {
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

.footer-contact-email,
.footer-contact-phone {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  white-space: nowrap;
}

.footer-contact-nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.footer-contact-prev,
.footer-contact-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.footer-contact-prev:hover,
.footer-contact-next:hover {
  background: var(--color-text-primary);
  color: var(--color-white);
}
.footer-contact-prev:focus-visible,
.footer-contact-next:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.footer-contact-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-contact-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.footer-contact-dot.active {
  width: 18px;
  background: var(--color-text-primary);
}
.footer-contact-dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

.footer-icp {
  color: var(--color-text-tertiary);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 420px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}


/* ==================== BUSINESS IMAGE CAROUSEL ==================== */
.biz-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.biz-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.biz-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.biz-carousel-slide.active {
  opacity: 1;
}

.biz-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

/* Dots indicator — small circles at bottom center, no border */
.biz-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.biz-carousel-dots::before {
  /* subtle dark backdrop for dots readability on any image */
  content: '';
  position: absolute;
  inset: -4px -12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: -1;
}

.biz-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.biz-carousel-dot.active {
  background: #fff;
  transform: scale(1.25);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

.biz-carousel-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}


/* ==================== GAMES GALLERY MODAL ==================== */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.gallery-modal.open {
  display: flex;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: galleryFadeIn 0.3s ease;
}

.gallery-modal-content {
  position: relative;
  z-index: 1;
  width: min(900px, 92vw);
  max-height: 90vh;
  background: rgba(20, 20, 22, 0.95);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  padding: var(--space-xl);
  animation: gallerySlideUp 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.gallery-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.gallery-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: rotate(90deg);
}

.gallery-modal-title {
  font-size: var(--text-h3);
  font-weight: 600;
  color: #fff;
  text-align: center;
  padding-right: 36px;
}

.gallery-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.gallery-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide.active {
  opacity: 1;
}

.gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.gallery-carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.gallery-dot.active {
  background: #0071E3;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(0, 113, 227, 0.5);
}

.gallery-modal-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
}

.gallery-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: scale(1.08);
}

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

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

@media (max-width: 600px) {
  .gallery-modal-content {
    width: 96vw;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
  }
  .gallery-modal-title {
    font-size: 1.15rem;
  }
  .gallery-carousel-track {
    aspect-ratio: 4 / 3;
  }
  .gallery-nav-btn {
    width: 38px;
    height: 38px;
  }
}


/* ==================== SCROLL REVEAL ANIMATION ==================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 300ms; }


/* ==================== KEYFRAME ANIMATIONS ==================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.shake {
  animation: shake 0.4s ease-in-out;
}


/* ==================== UTILITY CLASSES ==================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body.menu-open {
  overflow: hidden;
}
