/* ===========================================
   Atomic Games Limited - Corporate Website CSS
   ===========================================

   Professional minimalism with storytelling warmth
   Hong Kong-based, globally minded game studio
   =========================================== */

/* ===========================================
   CSS Custom Properties - Brand Color Palette
   =========================================== */

:root {
  /* =========================================
     🎮 PLAYFUL GAME STUDIO COLOR PALETTE
     Cozy, warm, story-driven aesthetic
     ========================================= */

  /* Primary Colors - Warm & Inviting */
  --color-bg: #FFFBFC;
  /* Warm cream - cozy foundation */
  --color-text: #2D2D2D;
  /* Soft black - friendly readability */
  --color-headline: #1A1A2E;
  /* Deep purple-black - story mood */

  /* Primary Accent - Warm Pink */
  --color-accent: #E91E63;
  /* Warm pink - playful energy */

  /* Secondary Accent - Soft Blush */
  --color-accent-secondary: #F48FB1;
  /* Soft blush - gentle hover states */

  /* NEW: Tertiary Accents - Atomic Theme Colors */
  --color-accent-yellow: #FFD54F;
  /* Sunny yellow - joy & energy */
  --color-accent-blue: #81D4FA;
  /* Soft sky - dreamy stories */
  --color-accent-purple: #CE93D8;
  /* Lavender - magical touch */

  /* Neutral Colors - Warmer Tones */
  --color-bg-alt: #FFF5F7;
  /* Blush tint - warm sections */
  --color-bg-cream: #FDF8F5;
  /* Cream - cozy alternative */
  --color-text-secondary: #6B5B6E;
  /* Warm gray - friendly captions */
  --color-border: #F3E5F5;
  /* Lavender border - soft dividers */

  /* Spacing System (rem-based for accessibility) */
  --spacing-xs: 0.25rem;
  /* 4px */
  --spacing-sm: 0.5rem;
  /* 8px */
  --spacing-md: 1rem;
  /* 16px */
  --spacing-lg: 1.5rem;
  /* 24px */
  --spacing-xl: 2rem;
  /* 32px */
  --spacing-2xl: 3rem;
  /* 48px */
  --spacing-3xl: 4rem;
  /* 64px */
  --spacing-4xl: 6rem;
  /* 96px */

  /* Typography Scale */
  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.875rem;
  /* 14px */
  --font-size-base: 1rem;
  /* 16px */
  --font-size-lg: 1.125rem;
  /* 18px */
  --font-size-xl: 1.25rem;
  /* 20px */
  --font-size-2xl: 1.5rem;
  /* 24px */
  --font-size-3xl: 1.875rem;
  /* 30px */
  --font-size-4xl: 2.25rem;
  /* 36px */
  --font-size-5xl: 3rem;
  /* 48px */
  --font-size-6xl: 3.75rem;
  /* 60px */

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Border Radius - More Rounded = Friendlier */
  --border-radius-sm: 0.5rem;
  /* 8px - softer */
  --border-radius-md: 1rem;
  /* 16px - friendly */
  --border-radius-lg: 1.5rem;
  /* 24px - playful */
  --border-radius-xl: 2rem;
  /* 32px - extra cozy */
  --border-radius-full: 9999px;
  /* Fully rounded */

  /* Shadows - Softer, Warmer */
  --shadow-sm: 0 2px 8px rgba(233, 30, 99, 0.06);
  --shadow-md: 0 4px 20px rgba(233, 30, 99, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 40px rgba(233, 30, 99, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 16px 60px rgba(233, 30, 99, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 30px rgba(233, 30, 99, 0.2);

  /* Transitions - Slightly Bouncier */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-particles: 0;
}

/* ===========================================
   Reset & Normalize Styles
   =========================================== */

/* Import Google Fonts - Friendlier Typography */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Quicksand:wght@500;600;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}



body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  /* overflow-x: hidden; - Removed to fix sticky scrolling */
}

/* ✨ Floating Story Particles Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    /* Dark magenta particles */
    radial-gradient(3px 3px at 15% 25%, #C2185B, transparent),
    radial-gradient(2px 2px at 85% 15%, #C2185B, transparent),
    radial-gradient(3px 3px at 45% 75%, #C2185B, transparent),
    /* Pink particles */
    radial-gradient(4px 4px at 70% 35%, #E91E63, transparent),
    radial-gradient(2px 2px at 25% 60%, #E91E63, transparent),
    radial-gradient(3px 3px at 90% 80%, #E91E63, transparent),
    /* Light pink particles */
    radial-gradient(3px 3px at 55% 20%, #F48FB1, transparent),
    radial-gradient(2px 2px at 10% 85%, #FF6EC7, transparent),
    radial-gradient(4px 4px at 75% 55%, #F48FB1, transparent),
    /* Additional pink gradient particles */
    radial-gradient(2px 2px at 35% 45%, #FF6EC7, transparent),
    radial-gradient(3px 3px at 60% 90%, #F48FB1, transparent);
  background-size: 150% 150%;
  animation: floatingParticles 30s ease-in-out infinite;
  opacity: 0.25;
  pointer-events: none;
  z-index: var(--z-particles);
}

@keyframes floatingParticles {

  0%,
  100% {
    background-position: 0% 0%;
    transform: translateY(0);
  }

  25% {
    background-position: 50% 25%;
  }

  50% {
    background-position: 100% 50%;
    transform: translateY(-20px);
  }

  75% {
    background-position: 50% 75%;
  }
}

/* Ensure content is above particles */
main,
header,
footer {
  position: relative;
  z-index: 1;
}

/* Performance: Optimize rendering for animated elements */
[data-animate],
[data-parallax],
.hero-parallax-layer,
.hero-content,
.tech-card,
.game-card,
.value-card {
  backface-visibility: hidden;
  perspective: 1000px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--spacing-md) 0;
  font-family: 'Quicksand', 'Nunito', sans-serif;
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-headline);
}

h1 {
  font-size: var(--font-size-4xl);
  font-weight: 800;
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
}

h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: 600;
}

h5 {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

h6 {
  font-size: var(--font-size-base);
  font-weight: 600;
}

p {
  margin: 0 0 var(--spacing-md) 0;
}

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

a:hover,
a:focus {
  color: var(--color-accent-secondary);
}

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

ul,
ol {
  margin: 0 0 var(--spacing-md) 0;
  padding-left: var(--spacing-xl);
}

li {
  margin-bottom: var(--spacing-xs);
}

/* ===========================================
   Layout Utilities
   =========================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Flexbox Utilities */
/* ===========================================
   Scrolling Panels System
   =========================================== */

/* Ensure full height for stacking effect */
/* Ensure full height for stacking effect */
html,
body {
  height: 100%;
  /* overflow-x: hidden; - Removed as it can break position: sticky context */
  margin: 0;
}

/* Panel Base Class */
/* Panel Base Class */
.panel {
  width: 100%;
  min-height: 110vh;
  /* Increased from 100vh for more natural scrolling */
  position: relative;
  /* Reverted to relative for GSAP */
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

/* IMPORTANT: don't let generic section padding break full-screen panels */
section.panel {
  padding: 0;
}

/* Ensure container handles spacing inside full-screen panels */
.panel .container {
  padding-top: var(--spacing-3xl);
  /* Increased from var(--spacing-xl) = 64px */
  padding-bottom: var(--spacing-3xl);
  /* Increased from var(--spacing-xl) = 64px */
}

/* Explicit Z-Index Removed - GSAP handles context, or natural flow works better with pinning */

/* ===========================================
   Section-Specific Background Colors
   =========================================== */

/* Grey Background Sections: Hero, Technology, Values */
.panel.hero,
.panel.technology,
.panel.values {
  background-color: #F5F5F7 !important;
  /* Apple-style light grey */
  color: #1D1D1F;
}

.panel.hero h1,
.panel.hero h2,
.panel.hero h3,
.panel.technology h1,
.panel.technology h2,
.panel.technology h3,
.panel.values h1,
.panel.values h2,
.panel.values h3 {
  color: #1D1D1F;
}

.panel.hero p,
.panel.technology p,
.panel.values p {
  color: #424245;
}

/* Hero-specific accent color */
.panel.hero .hero-feel,
.panel.hero .hero-title span:not(.hero-title-line-1) {
  color: #E91E63;
  /* Pink accent on grey */
}

/* Magenta Background Sections: About, Games, Contact */
.panel.about,
.panel.games,
.panel.contact {
  background-color: #C2185B !important;
  /* Strong magenta */
  color: #FFFFFF;
}

.panel.about h1,
.panel.about h2,
.panel.about h3,
.panel.games h1,
.panel.games h2,
.panel.games h3,
.panel.contact h1,
.panel.contact h2,
.panel.contact h3 {
  color: #FFFFFF;
}

.panel.about p,
.panel.games p,
.panel.contact p {
  color: rgba(255, 255, 255, 0.9);
}

.panel.about .section-description,
.panel.games .section-description,
.panel.contact .section-description {
  color: rgba(255, 255, 255, 0.8);
}

/* Fix buttons on Magenta background */
.panel.about .btn-secondary,
.panel.games .btn-secondary,
.panel.contact .btn-secondary {
  border-color: #FFFFFF;
  color: #FFFFFF;
  background: transparent;
}

.panel.about .btn-secondary:hover,
.panel.games .btn-secondary:hover,
.panel.contact .btn-secondary:hover {
  background: #FFFFFF;
  color: #C2185B;
}

/* Fix cards on Magenta background to pop */
.panel.about .game-card,
.panel.about .tech-card,
.panel.about .value-card,
.panel.games .tech-card,
.panel.games .value-card,
.panel.contact .game-card,
.panel.contact .tech-card,
.panel.contact .value-card {
  background: #FFFFFF;
  color: #2D2D2D;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Override: Game cards in games panel should have transparent background */
.panel.games .game-card {
  background: transparent;
  box-shadow: none;
}

.panel.about .game-card h3,
.panel.about .tech-card h3,
.panel.about .value-card h3,
.panel.games .game-card h3,
.panel.games .tech-card h3,
.panel.games .value-card h3,
.panel.contact .game-card h3,
.panel.contact .tech-card h3,
.panel.contact .value-card h3 {
  color: #C2185B;
}

/* Links on Magenta background */
.panel.about a:not(.btn):not(.game-link),
.panel.games a:not(.btn):not(.game-link),
.panel.contact a:not(.btn):not(.game-link) {
  color: rgba(255, 255, 255, 0.95);
}

.panel.about a:not(.btn):not(.game-link):hover,
.panel.about a:not(.btn):not(.game-link):focus,
.panel.games a:not(.btn):not(.game-link):hover,
.panel.games a:not(.btn):not(.game-link):focus,
.panel.contact a:not(.btn):not(.game-link):hover,
.panel.contact a:not(.btn):not(.game-link):focus {
  color: #FFFFFF;
}

/* Game links on magenta background (inside white cards, so keep accent color) */
.panel.games .game-link {
  color: #C2185B;
}

.panel.games .game-link:hover,
.panel.games .game-link:focus {
  color: #E91E63;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm {
  gap: var(--spacing-sm);
}

.gap-md {
  gap: var(--spacing-md);
}

.gap-lg {
  gap: var(--spacing-lg);
}

.gap-xl {
  gap: var(--spacing-xl);
}

/* Grid Utilities */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Spacing Utilities */
.m-0 {
  margin: 0;
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mt-xl {
  margin-top: var(--spacing-xl);
}

.mt-2xl {
  margin-top: var(--spacing-2xl);
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mb-xl {
  margin-bottom: var(--spacing-xl);
}

.mb-2xl {
  margin-bottom: var(--spacing-2xl);
}

.p-sm {
  padding: var(--spacing-sm);
}

.p-md {
  padding: var(--spacing-md);
}

.p-lg {
  padding: var(--spacing-lg);
}

.p-xl {
  padding: var(--spacing-xl);
}

.p-2xl {
  padding: var(--spacing-2xl);
}

/* Text Utilities */
.text-center {
  text-align: center;
}

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

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

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

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

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* ===========================================
   Component Base Styles
   =========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-2xl);
  font-family: 'Quicksand', 'Nunito', sans-serif;
  font-size: var(--font-size-base);
  font-weight: 700;
  line-height: var(--line-height-tight);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--border-radius-md);
  /* Rounded corners */
  cursor: pointer;
  transition: all var(--transition-bounce);
  min-height: 52px;
  /* Touch-friendly & playful */
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
  position: relative;
  overflow: visible;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #C2185B;
  border-color: #C2185B;
  color: #FFFFFF;
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(233, 30, 99, 0.4), 0 0 30px rgba(233, 30, 99, 0.2);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: var(--color-bg);
  color: var(--color-text);
  border-color: var(--color-text);
  border-width: 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--color-text);
  color: var(--color-bg);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

/* Reduce spacing for About section header */
.about .section-header {
  margin-bottom: var(--spacing-xl);
}

.section-header h2 {
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '✨';
  display: inline-block;
  margin-left: var(--spacing-sm);
  animation: gentleFloat 2s ease-in-out infinite;
  font-size: 0.7em;
  vertical-align: middle;
}

@keyframes gentleFloat {

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

  50% {
    transform: translateY(-5px) scale(1.1);
    opacity: 0.8;
  }
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Game Tags */
.game-tag {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(255, 213, 79, 0.1));
  border-radius: var(--border-radius-full);
  border: 1px solid rgba(233, 30, 99, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
  margin-top: var(--spacing-3xl);
  text-align: center;
  animation: bounceGentle 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: var(--font-size-sm);
  color: #E0E0E0;
  /* Light grey for dark background */
  font-weight: 600;
  opacity: 0.7;
}

@keyframes bounceGentle {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* Cards */
.card {
  background-color: var(--color-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Placeholder Images - Enhanced with Gradients */
.placeholder-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-cream) 50%, rgba(244, 143, 177, 0.1) 100%);
  border: 2px dashed var(--color-border);
  border-radius: var(--border-radius-lg);
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  font-weight: 600;
  letter-spacing: 0.02em;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  transition: all var(--transition-normal);
}

/* ===========================================
   Form Styles
   =========================================== */

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-md);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-md);
  transition: border-color var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===========================================
   Comprehensive Responsive Design
   =========================================== */

/* ===========================================
   Mobile (< 768px) - Default/Mobile-First
   =========================================== */

/* Mobile Navigation (already implemented in nav section) */

/* Mobile Section Layouts */
.hero {
  padding: calc(70px + var(--spacing-xl)) 0 var(--spacing-2xl) 0;
  min-height: auto;
}

.hero-grid {
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
}

.hero-left {
  order: 1;
}

.hero-right {
  order: 2;
  min-height: 350px;
}

.hero-title {
  font-size: var(--font-size-3xl);
}

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

.hero-actions .btn {
  width: 100%;
  max-width: 300px;
}

/* Mobile Content Sections */
.about-content {
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  text-align: center;
}

.about-visual {
  order: -1;
}

.tech-grid,
.games-grid,
.values-grid {
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.careers-content {
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

/* Contact content now uses flexbox, no grid needed */

.investors-content {
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

/* Mobile Footer */
.footer-content {
  grid-template-columns: 1fr;
  text-align: center;
}

.footer-section {
  margin-bottom: var(--spacing-xl);
}

.footer-bottom {
  flex-direction: column;
  gap: var(--spacing-md);
}

.legal-links {
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* Contact form removed */

/* ===========================================
   Tablet (768px - 1023px)
   =========================================== */

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-xl);
  }

  /* Typography Scaling */
  h1 {
    font-size: var(--font-size-5xl);
  }

  h2 {
    font-size: var(--font-size-4xl);
  }

  h3 {
    font-size: var(--font-size-3xl);
  }

  /* Hero Adjustments */
  .hero {
    padding: calc(70px + var(--spacing-2xl)) 0 var(--spacing-3xl) 0;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
  }

  .hero-left {
    order: 0;
  }

  .hero-right {
    order: 0;
    min-height: 450px;
  }

  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .hero-actions {
    flex-direction: row;
    justify-content: flex-start;
  }

  .hero-actions .btn {
    width: auto;
  }

  /* Tablet Content Layouts */
  .about-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    text-align: left;
  }

  .about-visual {
    order: 0;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .careers-content {
    grid-template-columns: 1fr 1fr;
  }

  /* Contact content now uses flexbox, no grid needed */

  .investors-content {
    grid-template-columns: 1fr 1fr;
  }

  /* Tablet Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .legal-links {
    flex-direction: row;
    gap: var(--spacing-lg);
  }
}

/* ===========================================
   Desktop (1024px+)
   =========================================== */

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--spacing-2xl);
  }

  /* Desktop Typography */
  h1 {
    font-size: var(--font-size-6xl);
  }

  h2 {
    font-size: var(--font-size-5xl);
  }

  /* Desktop Hero */
  .hero-grid {
    gap: var(--spacing-4xl);
  }

  .hero-right {
    min-height: 500px;
  }

  .hero-title {
    font-size: var(--font-size-5xl);
  }

  /* Desktop Content Layouts */
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  /* Desktop Footer */
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
  }

  .footer-bottom {
    padding: var(--spacing-2xl) 0;
  }
}

/* ===========================================
   Large Desktop (1440px+)
   =========================================== */

@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  /* Enhanced spacing for large screens */
  section {
    padding: var(--spacing-4xl) 0;
  }

  .hero {
    padding: calc(70px + var(--spacing-4xl)) 0 var(--spacing-4xl) 0;
  }
}

/* ===========================================
   Touch Device Optimizations
   =========================================== */

/* Touch-friendly button sizes (minimum 44px) */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 48px;
    padding: var(--spacing-lg) var(--spacing-2xl);
  }

  .social-link {
    min-width: 48px;
    height: 48px;
    padding: 0 var(--spacing-lg);
  }

  /* Remove hover effects on touch devices */
  .tech-card:hover,
  .game-card:hover,
  .btn:hover,
  .social-link:hover {
    transform: none;
  }

  .nav-link:hover::after {
    display: none;
  }
}

/* ===========================================
   Print Styles
   =========================================== */

@media print {

  .header,
  .footer,
  .btn,
  .social-links {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 0;
  }

  section {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Contact form removed */
}

/* ===========================================
   Hero Section Styles
   =========================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* Background color handled by .panel:nth-child() rules */
  padding: calc(70px + var(--spacing-2xl)) 0 var(--spacing-4xl) 0;
  /* Account for fixed header */
  position: relative;
  overflow: hidden;
}

/* =========================================
   FLOATING PARTICLES - The "Wow" Effect
   ========================================= */

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  animation: floatParticle 15s ease-in-out infinite;
}

/* Dark Magenta Particles */
.particle-1 {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #C2185B 0%, #E91E63 100%);
  /* Dark magenta to pink gradient */
  top: 15%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 18s;
  box-shadow: 0 0 8px rgba(194, 24, 91, 0.6);
}

.particle-2 {
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #E91E63 0%, #C2185B 100%);
  /* Pink to dark magenta gradient */
  top: 25%;
  left: 85%;
  animation-delay: -3s;
  animation-duration: 22s;
  box-shadow: 0 0 6px rgba(233, 30, 99, 0.6);
}

.particle-3 {
  width: 15px;
  height: 15px;
  background: radial-gradient(circle, #C2185B 0%, #E91E63 50%, #C2185B 100%);
  /* Dark magenta gradient */
  top: 70%;
  left: 15%;
  animation-delay: -6s;
  animation-duration: 20s;
  box-shadow: 0 0 10px rgba(194, 24, 91, 0.7);
}

/* Medium Pink Particles */
.particle-4 {
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #E91E63 0%, #F48FB1 100%);
  /* Pink to light pink gradient */
  top: 20%;
  left: 70%;
  animation-delay: -2s;
  animation-duration: 16s;
  box-shadow: 0 0 7px rgba(233, 30, 99, 0.5);
}

.particle-5 {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #F48FB1 0%, #E91E63 100%);
  /* Light pink to pink gradient */
  top: 60%;
  left: 80%;
  animation-delay: -8s;
  animation-duration: 24s;
  box-shadow: 0 0 9px rgba(244, 143, 177, 0.6);
}

.particle-6 {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #E91E63 0%, #F48FB1 100%);
  /* Pink gradient */
  top: 80%;
  left: 30%;
  animation-delay: -4s;
  animation-duration: 19s;
  box-shadow: 0 0 5px rgba(233, 30, 99, 0.5);
}

/* Light Pink Particles */
.particle-7 {
  width: 11px;
  height: 11px;
  background: radial-gradient(circle, #F48FB1 0%, #FF6EC7 100%);
  /* Medium to light pink gradient */
  top: 35%;
  left: 5%;
  animation-delay: -1s;
  animation-duration: 17s;
  box-shadow: 0 0 8px rgba(244, 143, 177, 0.5);
}

.particle-8 {
  width: 9px;
  height: 9px;
  background: radial-gradient(circle, #FF6EC7 0%, #F48FB1 100%);
  /* Light pink gradient */
  top: 45%;
  left: 90%;
  animation-delay: -5s;
  animation-duration: 21s;
  box-shadow: 0 0 7px rgba(255, 110, 199, 0.5);
}

.particle-9 {
  width: 13px;
  height: 13px;
  background: radial-gradient(circle, #F48FB1 0%, #FF6EC7 50%, #F48FB1 100%);
  /* Light pink gradient */
  top: 85%;
  left: 60%;
  animation-delay: -7s;
  animation-duration: 23s;
  box-shadow: 0 0 9px rgba(244, 143, 177, 0.6);
}

/* Additional Pink Gradient Particles */
.particle-10 {
  width: 7px;
  height: 7px;
  background: radial-gradient(circle, #FF6EC7 0%, #F48FB1 100%);
  /* Light pink gradient */
  top: 10%;
  left: 45%;
  animation-delay: -9s;
  animation-duration: 25s;
  box-shadow: 0 0 6px rgba(255, 110, 199, 0.5);
}

.particle-11 {
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #E91E63 0%, #F48FB1 50%, #FF6EC7 100%);
  /* Pink to light pink gradient */
  top: 55%;
  left: 25%;
  animation-delay: -11s;
  animation-duration: 18s;
  box-shadow: 0 0 7px rgba(233, 30, 99, 0.5);
}

.particle-12 {
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #C2185B 0%, #E91E63 50%, #F48FB1 100%);
  /* Dark magenta to pink gradient */
  top: 75%;
  left: 95%;
  animation-delay: -13s;
  animation-duration: 20s;
  box-shadow: 0 0 6px rgba(194, 24, 91, 0.6);
}

@keyframes floatParticle {

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

  25% {
    transform: translate(30px, -40px) scale(1.2);
    opacity: 0.9;
  }

  50% {
    transform: translate(-20px, -80px) scale(0.8);
    opacity: 0.5;
  }

  75% {
    transform: translate(40px, -40px) scale(1.1);
    opacity: 0.8;
  }
}

/* =========================================
   GRADIENT ORBS - Soft Glowing Background
   ========================================= */

.hero-orbs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: floatOrb 25s ease-in-out infinite;
}

.orb-pink {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(233, 30, 99, 0.3) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.orb-yellow {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 213, 79, 0.25) 0%, transparent 70%);
  bottom: 10%;
  left: -10%;
  animation-delay: -8s;
}

.orb-blue {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(129, 212, 250, 0.2) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  animation-delay: -15s;
}

@keyframes floatOrb {

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

  33% {
    transform: translate(50px, -30px) scale(1.1);
  }

  66% {
    transform: translate(-30px, 20px) scale(0.95);
  }
}

/* =========================================
   ANIMATED ATOM LOGO - Story Particles
   ========================================= */

.hero-logo-mark {
  margin-bottom: var(--spacing-xl);
  display: flex;
  justify-content: center;
  align-items: center;
  /* Ensure vertical centering too */
}

.logo-atom {
  position: relative;
  width: 240px;
  height: 200px;
  /* Increased to accommodate elliptical orbits (largest is 220px wide) */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center the entire atom structure */
}

/* Logo Image in Center */
.atom-core-logo {
  position: absolute;
  top: 50%;
  left: 15%;
  transform: translate(calc(-30% +50px), calc(-50% + 0px));
  width: 200px;
  height: auto;
  animation: logoPulse 2s ease-in-out infinite;
  z-index: 2;
  /* Ensure logo is perfectly centered */
  /* If the bomb is not visually centered in the image, 
     adjust with: transform: translate(calc(-50% + Xpx), calc(-50% + Ypx)); */
}

@keyframes logoPulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.atom-orbit {
  position: absolute;
  top: 70%;
  left: 45%;
  border: 2px solid transparent;
  /* Elliptical shape - wider than tall */
  transform-origin: 50% 50%;
  /* Explicitly set transform origin to center */
  /* Center the transform origin - orbits rotate around the center */
}

.orbit-1 {
  width: 280px;
  height: 100px;
  /* Elliptical: wider horizontally */
  transform: translate(-50%, -50%);
  /* Perfect centering using transform */
  border-color: rgba(233, 30, 99, 0.5);
  /* Pink gradient - inner orbit */
  border-radius: 50%;
  /* border-radius creates the ellipse */
  animation: orbit 4s linear infinite;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, transparent 50%);
}

.orbit-2 {
  width: 240px;
  height: 130px;
  /* Elliptical: wider horizontally */
  border-color: rgba(244, 143, 177, 0.5);
  /* Lighter pink gradient - middle orbit */
  border-radius: 50%;
  animation: orbitReverse 6s linear infinite;
  background: linear-gradient(135deg, rgba(244, 143, 177, 0.1) 0%, transparent 50%);
}

.orbit-3 {
  width: 230px;
  height: 160px;
  /* Elliptical: wider horizontally */
  border-color: rgba(255, 110, 199, 0.5);
  /* Lightest pink gradient - outer orbit */
  border-radius: 50%;
  animation: orbitWithRotation 8s linear infinite;
  background: linear-gradient(135deg, rgba(255, 110, 199, 0.1) 0%, transparent 50%);
}

.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  top: -6px;
  left: 50%;
  margin-left: -6px;
  /* Center the dot horizontally at the top of the orbit */
  /* Dots will follow the elliptical path as the orbit rotates */
}

.orbit-1 .orbit-dot {
  background: radial-gradient(circle, #E91E63 0%, #C2185B 100%);
  /* Deep pink gradient */
  box-shadow: 0 0 12px rgba(233, 30, 99, 0.8), 0 0 20px rgba(233, 30, 99, 0.4);
}

.orbit-2 .orbit-dot {
  background: radial-gradient(circle, #F48FB1 0%, #E91E63 100%);
  /* Medium pink gradient */
  box-shadow: 0 0 12px rgba(244, 143, 177, 0.8), 0 0 20px rgba(244, 143, 177, 0.4);
}

.orbit-3 .orbit-dot {
  background: radial-gradient(circle, #FF6EC7 0%, #F48FB1 100%);
  /* Light pink gradient */
  box-shadow: 0 0 12px rgba(255, 110, 199, 0.8), 0 0 20px rgba(255, 110, 199, 0.4);
}

@keyframes orbit {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbitReverse {
  from {
    transform: translate(-50%, -50%) rotate(60deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(420deg);
  }
}

@keyframes orbitWithRotation {
  from {
    transform: translate(-50%, -50%) rotate(120deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(480deg);
  }
}

/* Hero pseudo-elements removed - using abstract shapes instead */

/* Floating Decorative Shapes - Removed for dark hero background */

.about::before {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, rgba(255, 110, 199, 0.06) 0%, transparent 70%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 20%;
  left: 5%;
  animation: floatShape 22s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}

.technology::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(216, 27, 96, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  bottom: 10%;
  right: 15%;
  animation: floatShape 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.games::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, rgba(255, 110, 199, 0.07) 0%, transparent 70%);
  border-radius: 50% 30% 70% 50% / 50% 50% 50% 50%;
  top: 15%;
  left: 10%;
  animation: floatShape 16s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.values::after {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(216, 27, 96, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  bottom: 15%;
  left: 8%;
  animation: floatShape 19s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatShape {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.4;
  }

  25% {
    transform: translate(25px, -40px) rotate(90deg) scale(1.05);
    opacity: 0.6;
  }

  50% {
    transform: translate(-15px, -60px) rotate(180deg) scale(0.95);
    opacity: 0.5;
  }

  75% {
    transform: translate(40px, -20px) rotate(270deg) scale(1.02);
    opacity: 0.55;
  }
}

/* =========================================
   HERO CONTENT - Centered Design
   ========================================= */

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

/* Logo Wrapper */
.hero-logo-wrapper {
  margin-bottom: var(--spacing-3xl);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  height: 120px;
  width: auto;
  display: block;
  position: relative;
  max-width: 100%;
}

/* SVG logo styling - ensure SVG scales properly */
.hero-logo {
  height: 120px;
  width: auto;
  max-width: 100%;
}

/* Logo container animation - subtle scale-in for instant appearance */
@keyframes logoScaleIn {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.hero-logo.animated {
  animation: logoScaleIn 0.3s ease-out forwards;
}

/* Smile path - stroke-draw animation handled via GSAP */
#smile-path {
  stroke: #e61f74;
  stroke-width: 2;
  fill: none; /* Will be filled after stroke completes */
  opacity: 1;
}

/* Fuse path - glow pulse animation */
#fuse-path {
  filter: drop-shadow(0 0 2px rgba(230, 31, 116, 0.3));
  transition: filter 0.225s ease;
}

/* Star element - spark animation */
#star-path {
  transform-origin: center;
  opacity: 1;
}

/* Dot of i - micro-drop animation */
#i-point-path {
  transform-origin: center;
  opacity: 1;
}

/* Hero title line 1 - starts hidden for fade-in */
.hero-title-line-1 {
  opacity: 0;
  transform: translateY(10px);
}

/* Text Wrapper */
.hero-text-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-2xl);
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}

.panel.hero .hero-title-line-1 {
  display: block;
  color: var(--color-text);
  /* Black for first line */
}

.hero-title-line-2 {
  display: block;
}

/* Typewriter Wrapper */
.hero-typewriter-wrapper {
  display: inline-block;
  position: relative;
  min-width: 200px;
  text-align: center;
}

.hero-typewriter-text {
  color: var(--color-accent);
  /* Magenta for typewritten text */
  display: inline-block;
}

.hero-typewriter-cursor {
  display: inline-block;
  color: var(--color-accent);
  /* Magenta cursor to match typewritten text */
  animation: blinkCursor 1s step-end infinite;
  margin-left: 2px;
}

.hero-typewriter-cursor.hidden {
  visibility: hidden;
}

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

.hero-actions {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-xl);
}

/* Responsive Typography */
@media (max-width: 767px) {
  .hero-logo {
    height: 80px;
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-title-line-1,
  .hero-title-line-2 {
    display: block;
  }

  .hero-typewriter-wrapper {
    min-width: 150px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: var(--font-size-5xl);
  }
}

/* Scroll Invitation */
.hero-scroll-invitation {
  position: absolute;
  bottom: var(--spacing-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 2;
}

.hero-scroll-invitation.visible {
  opacity: 1;
  visibility: visible;
}

.hero-scroll-invitation.faded {
  opacity: 0;
  visibility: hidden;
}

.scroll-invitation-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scroll-invitation-arrow {
  color: var(--color-text-secondary);
  animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* =========================================
   SOFT FLOATING MAGENTA CLOUDS
   ========================================= */

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  transform-origin: center;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  animation: floatCloud 30s ease-in-out infinite;
  /* Soft magenta gradient */
  background: radial-gradient(circle, rgba(233, 30, 99, 0.5) 0%, rgba(255, 110, 199, 0.3) 50%, rgba(244, 143, 177, 0.2) 80%, transparent 100%);
}

/* Additional cloud layer for depth */
.hero-shape::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 110, 199, 0.3) 0%, rgba(244, 143, 177, 0.2) 60%, transparent 100%);
  filter: blur(30px);
  opacity: 0.6;
  animation: floatCloudLayer 35s ease-in-out infinite;
}

/* Individual cloud positions and sizes */
.hero-shape-1 {
  top: 10%;
  right: 5%;
  width: 400px;
  height: 300px;
  animation-delay: 0s;
  animation-duration: 35s;
}

.hero-shape-1::before {
  animation-delay: 0s;
  animation-duration: 40s;
}

.hero-shape-2 {
  top: 50%;
  right: 15%;
  width: 350px;
  height: 280px;
  animation-delay: -8s;
  animation-duration: 32s;
  opacity: 0.35;
}

.hero-shape-2::before {
  animation-delay: -8s;
  animation-duration: 38s;
}

.hero-shape-3 {
  top: 30%;
  right: 25%;
  width: 300px;
  height: 250px;
  animation-delay: -15s;
  animation-duration: 28s;
  opacity: 0.3;
}

.hero-shape-3::before {
  animation-delay: -15s;
  animation-duration: 33s;
}

.hero-shape-4 {
  bottom: 20%;
  right: 10%;
  width: 380px;
  height: 320px;
  animation-delay: -22s;
  animation-duration: 36s;
  opacity: 0.38;
}

.hero-shape-4::before {
  animation-delay: -22s;
  animation-duration: 42s;
}

.hero-shape-5 {
  top: 65%;
  right: 35%;
  width: 320px;
  height: 270px;
  animation-delay: -12s;
  animation-duration: 30s;
  opacity: 0.32;
}

.hero-shape-5::before {
  animation-delay: -12s;
  animation-duration: 36s;
}

.hero-shape-6 {
  bottom: 10%;
  right: 30%;
  width: 360px;
  height: 290px;
  animation-delay: -18s;
  animation-duration: 34s;
  opacity: 0.36;
}

.hero-shape-6::before {
  animation-delay: -18s;
  animation-duration: 39s;
}

/* Gentle floating cloud animation */
@keyframes floatCloud {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  
  25% {
    transform: translate(30px, -20px) scale(1.05);
    opacity: 0.45;
  }
  
  50% {
    transform: translate(-25px, -40px) scale(0.95);
    opacity: 0.35;
  }
  
  75% {
    transform: translate(20px, -15px) scale(1.02);
    opacity: 0.42;
  }
  
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
}

/* Secondary layer animation for depth */
@keyframes floatCloudLayer {
  0% {
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
    opacity: 0.6;
  }
  
  33% {
    transform: translate(-50%, -50%) translate(-20px, 15px) scale(1.08);
    opacity: 0.65;
  }
  
  66% {
    transform: translate(-50%, -50%) translate(15px, -25px) scale(0.92);
    opacity: 0.55;
  }
  
  100% {
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
    opacity: 0.6;
  }
}

/* =========================================
   SOFT FLOATING WHITE CLOUDS - Contact Section
   ========================================= */

.contact-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.contact-shape {
  position: absolute;
  transform-origin: center;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.28;
  animation: floatContactCloud 40s ease-in-out infinite;
  /* Soft white gradient - subtle on magenta background */
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.15) 80%, transparent 100%);
}

/* Additional cloud layer for depth - even more subtle */
.contact-shape::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 130%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.2) 60%, transparent 100%);
  filter: blur(35px);
  opacity: 0.65;
  animation: floatContactCloudLayer 45s ease-in-out infinite;
}

/* Individual cloud positions and sizes - fewer and more spread out */
.contact-shape-1 {
  top: 15%;
  left: 10%;
  width: 350px;
  height: 280px;
  animation-delay: 0s;
  animation-duration: 42s;
}

.contact-shape-1::before {
  animation-delay: 0s;
  animation-duration: 48s;
}

.contact-shape-2 {
  top: 60%;
  right: 15%;
  width: 300px;
  height: 240px;
  animation-delay: -12s;
  animation-duration: 38s;
  opacity: 0.24;
}

.contact-shape-2::before {
  animation-delay: -12s;
  animation-duration: 44s;
}

.contact-shape-3 {
  bottom: 20%;
  left: 20%;
  width: 320px;
  height: 260px;
  animation-delay: -24s;
  animation-duration: 40s;
  opacity: 0.26;
}

.contact-shape-3::before {
  animation-delay: -24s;
  animation-duration: 46s;
}

.contact-shape-4 {
  top: 40%;
  right: 25%;
  width: 280px;
  height: 220px;
  animation-delay: -18s;
  animation-duration: 36s;
  opacity: 0.22;
}

.contact-shape-4::before {
  animation-delay: -18s;
  animation-duration: 42s;
}

/* Gentle floating cloud animation - slower and more subtle than hero */
@keyframes floatContactCloud {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.28;
  }
  
  25% {
    transform: translate(25px, -15px) scale(1.03);
    opacity: 0.32;
  }
  
  50% {
    transform: translate(-20px, -30px) scale(0.97);
    opacity: 0.24;
  }
  
  75% {
    transform: translate(15px, -10px) scale(1.01);
    opacity: 0.30;
  }
  
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.28;
  }
}

/* Secondary layer animation for depth - even gentler */
@keyframes floatContactCloudLayer {
  0% {
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
    opacity: 0.65;
  }
  
  33% {
    transform: translate(-50%, -50%) translate(-15px, 10px) scale(1.05);
    opacity: 0.70;
  }
  
  66% {
    transform: translate(-50%, -50%) translate(12px, -20px) scale(0.95);
    opacity: 0.60;
  }
  
  100% {
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
    opacity: 0.65;
  }
}

/* =========================================
   PHONE MOCKUPS
   ========================================= */

.hero-phones {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-phone {
  position: absolute;
  transform-origin: center;
}

.phone-frame {
  position: relative;
  background: #1a1a1a;
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  width: 200px;
  height: 360px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.phone-screen-content {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Placeholder screens with gradient backgrounds */
.phone-screen-1 {
  background: linear-gradient(135deg, #87CEEB 0%, #E0F6FF 50%, #B0E0E6 100%);
  position: relative;
}

.phone-screen-1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
}

.phone-screen-2 {
  background: linear-gradient(135deg, #FFB6C1 0%, #FFE4E1 50%, #FFC0CB 100%);
  position: relative;
}

.phone-screen-2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
}

.phone-screen-3 {
  background: linear-gradient(135deg, #DDA0DD 0%, #E6E6FA 50%, #D8BFD8 100%);
  position: relative;
}

.phone-screen-3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
}

.phone-screen-4 {
  background: linear-gradient(135deg, #98D8C8 0%, #F0FFF0 50%, #E0FFE0 100%);
  position: relative;
}

.phone-screen-4::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 60%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
}

/* Phone positioning - overlapping cluster */
.hero-phone-1 {
  top: 0;
  left: 0;
  z-index: 4;
  transform: rotate(-8deg) translate(0, 0);
}

.hero-phone-2 {
  top: 20px;
  right: 0;
  z-index: 3;
  transform: rotate(5deg) translate(0, 0);
}

.hero-phone-3 {
  bottom: 40px;
  right: 20px;
  z-index: 2;
  transform: rotate(-3deg) translate(0, 0);
}

.hero-phone-4 {
  bottom: 0;
  left: 20px;
  z-index: 1;
  transform: rotate(7deg) translate(0, 0);
}

/* Responsive phone sizing */
@media (max-width: 1023px) {
  .hero-phones {
    min-height: 400px;
  }

  .phone-screen {
    width: 160px;
    height: 288px;
  }

  .hero-phone-1 {
    top: -20px;
    left: -10px;
  }

  .hero-phone-2 {
    top: 10px;
    right: -10px;
  }

  .hero-phone-3 {
    bottom: 20px;
    right: 10px;
  }

  .hero-phone-4 {
    bottom: -10px;
    left: 10px;
  }
}

@media (max-width: 767px) {
  .hero-phones {
    min-height: 350px;
  }

  .phone-screen {
    width: 120px;
    height: 216px;
  }

  .phone-frame {
    padding: 6px;
    border-radius: 18px;
  }

  .phone-screen {
    border-radius: 12px;
  }

  .phone-notch {
    width: 90px;
    height: 18px;
    border-radius: 0 0 12px 12px;
  }
}

/* Hero Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================================
   Content Sections Styles
   =========================================== */

/* Base Section Styles */
section {
  padding: var(--spacing-4xl) 0;
  position: relative;
  overflow: hidden;
  contain: layout style paint;
  /* Performance optimization */
}

/* Removed section:nth-child(even) background - using .panel:nth-child() instead for alternating colors */

section:nth-child(even) .section-header {
  color: var(--color-text);
}

/* Removed animated gradient backgrounds to allow panel alternating colors to show */
/* Panel colors are now handled by .panel:nth-child(odd) and .panel:nth-child(even) rules */

.careers {
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 50%, var(--color-bg) 100%);
  background-size: 200% 200%;
  animation: gradientShift 14s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

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

/* About Section */
.about {
  position: relative;
  overflow: hidden;
  --parallax-y: 0px;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 110, 199, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translateY(var(--parallax-y)) translateZ(0);
  transition: transform 0.1s linear;
}

.about-content {
  display: grid;
  gap: var(--spacing-3xl);
  align-items: center;
}

.about-text h3 {
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-lg);
  /* Color handled by .panel.about h3 rule for white on magenta */
}

.about-visual {
  display: flex;
  justify-content: center;
}

/* Team image styling */
.team-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  display: block;
}

/* Make the placeholder image in About section appropriately sized */
.about-visual .placeholder-image {
  min-height: 250px;
  width: 100%;
  max-width: 500px;
}

@media (min-width: 768px) {
  .team-image {
    max-width: 600px;
  }
  
  .about-visual .placeholder-image {
    min-height: 300px;
    max-width: 100%;
  }
}

@media (min-width: 1024px) {
  .team-image {
    max-width: 700px;
  }
  
  .about-visual .placeholder-image {
    min-height: 350px;
  }
}

/* Technology Section */
.technology {
  position: relative;
  overflow: hidden;
  --parallax-y: 0px;
}

.technology::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 90% 10%, rgba(216, 27, 96, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translateY(var(--parallax-y)) translateZ(0);
  transition: transform 0.1s linear;
}

.tech-grid {
  display: grid;
  gap: var(--spacing-xl);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  position: relative;
  z-index: 1;
}

.tech-card {
  background-color: var(--color-bg);
  padding: var(--spacing-2xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  will-change: transform, opacity;
  transform: translateZ(0);
  /* GPU acceleration */
}

/* Animated Border Glow - Subtle on Hover */
.tech-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--border-radius-lg);
  padding: 2px;
  background: linear-gradient(45deg, var(--color-accent), var(--color-accent-secondary), var(--color-accent));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-normal);
  animation: borderGlow 4s linear infinite;
  z-index: -1;
  pointer-events: none;
}

.tech-card:hover::after {
  opacity: 0.6;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(216, 27, 96, 0.1), transparent);
  transition: left 0.5s ease;
}

.tech-card:hover::before {
  left: 100%;
}

.tech-card:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: 0 20px 40px rgba(216, 27, 96, 0.2);
  border-color: var(--color-accent);
}

.tech-icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-lg);
  display: inline-block;
  transition: transform var(--transition-normal);
}

.tech-card:hover .tech-icon {
  transform: scale(1.2) rotate(10deg);
  animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: scale(1.2) rotate(10deg) translateY(0);
  }

  50% {
    transform: scale(1.3) rotate(15deg) translateY(-10px);
  }
}

/* Games Portfolio Section */
.games {
  position: relative;
  overflow: hidden;
  --parallax-y: 0px;
}

.games::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 110, 199, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translateY(var(--parallax-y)) translateZ(0);
  transition: transform 0.1s linear;
}

.games-grid {
  display: grid;
  gap: var(--spacing-xl);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  position: relative;
  z-index: 1;
}

.game-card {
  background-color: transparent;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: none;
  transition: all var(--transition-normal);
  border: none;
  position: relative;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
  transform: translateZ(0);
  cursor: pointer;
  /* GPU acceleration */
}

.game-card:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.game-image {
  position: relative;
  width: 100%;
  height: 400px;
  min-height: 400px;
  flex: 1;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
  /* GPU acceleration */
}

.game-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .game-image {
    height: 300px;
  }
  
  .game-description-overlay {
    padding: var(--spacing-lg);
  }
  
  .game-description-overlay p {
    font-size: var(--font-size-base);
  }
  
  .availability-links {
    flex-direction: column;
  }
  
  .store-link {
    width: 100%;
    text-align: center;
  }
  
  /* Disable hover effects on touch devices - use click instead */
  .game-card:hover .game-description-overlay {
    opacity: 0;
    visibility: hidden;
  }
  
  .game-card.show-description .game-description-overlay {
    opacity: 1;
    visibility: visible;
  }
}

/* For devices that support hover (desktop) */
@media (hover: hover) and (pointer: fine) {
  .game-card:hover .game-description-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Animated Border Glow for Game Cards */
.game-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--border-radius-lg);
  padding: 2px;
  background: linear-gradient(45deg, var(--color-accent), var(--color-accent-secondary), var(--color-accent));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-normal);
  animation: borderGlow 4s linear infinite;
  z-index: -1;
  pointer-events: none;
}

.game-card:hover::after {
  opacity: 0.6;
}

@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

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

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(216, 27, 96, 0.1), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.game-card:hover::before,
.game-card.show-description::before {
  left: 100%;
}

.game-card:hover,
.game-card.show-description {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 20px 40px rgba(216, 27, 96, 0.2);
  border-color: var(--color-accent);
}

.game-image .placeholder-image {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, rgba(244, 143, 177, 0.1) 100%);
}

.placeholder-tbd {
  opacity: 0.6;
}

/* Title Overlay */
.game-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-lg);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  transition: all var(--transition-normal);
}

.game-title-overlay h3 {
  margin: 0;
  color: #FFFFFF !important;
  font-size: var(--font-size-xl);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-normal);
}

.game-card:hover .game-title-overlay h3,
.game-card.show-description .game-title-overlay h3 {
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Description Overlay */
.game-description-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(29, 29, 31, 0.95) 0%, rgba(29, 29, 31, 0.98) 100%);
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 3;
  overflow-y: auto;
}

.game-card:hover .game-description-overlay,
.game-card.show-description .game-description-overlay,
.game-card:focus .game-description-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.game-description-overlay p {
  color: #FFFFFF;
  font-size: var(--font-size-lg);
  line-height: 1.6;
  margin: 0 0 var(--spacing-lg) 0;
}

/* Availability Section */
.game-availability {
  margin-top: auto;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.availability-label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-md);
}

.availability-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.store-link {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--color-accent);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  transition: all var(--transition-normal);
  font-size: var(--font-size-base);
}

.store-link:hover,
.store-link:focus {
  background: var(--color-accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(216, 27, 96, 0.3);
}

.coming-soon {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: var(--font-size-base);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* TBD Card Styling */
.game-card-tbd {
  opacity: 0.85;
}

.game-card-tbd .game-title-overlay h3 {
  color: rgba(255, 255, 255, 0.7);
}

/* Corporate Values Section */
.values {
  position: relative;
  overflow: hidden;
  --parallax-y: 0px;
}

.values::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(216, 27, 96, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translateY(var(--parallax-y)) translateZ(0);
  transition: transform 0.1s linear;
}

.values-grid {
  display: grid;
  gap: var(--spacing-xl);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  position: relative;
  z-index: 1;
}

.value-card {
  text-align: center;
  padding: var(--spacing-xl);
  transition: transform var(--transition-normal);
  will-change: transform, opacity;
  transform: translateZ(0);
  /* GPU acceleration */
}

.value-card:hover {
  transform: translateY(-4px);
}

.value-icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-lg);
  display: inline-block;
  transition: transform var(--transition-normal);
}

.value-card:hover .value-icon {
  transform: scale(1.2) rotate(10deg);
  animation: iconWiggle 0.5s ease;
}

@keyframes iconWiggle {

  0%,
  100% {
    transform: scale(1.2) rotate(10deg);
  }

  25% {
    transform: scale(1.25) rotate(-10deg);
  }

  75% {
    transform: scale(1.25) rotate(15deg);
  }
}

/* Career Opportunities Section */
.careers-content {
  display: grid;
  gap: var(--spacing-3xl);
}

.careers-section h3 {
  color: var(--color-accent);
  margin-bottom: var(--spacing-lg);
}

.position-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.position-list li {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.position-list li:last-child {
  border-bottom: none;
}

.careers-cta {
  text-align: center;
  margin-top: var(--spacing-2xl);
}

/* Investor Relations Section */
.investors-content {
  display: grid;
  gap: var(--spacing-3xl);
}

.investor-info h3 {
  color: var(--color-accent);
  margin-bottom: var(--spacing-lg);
}

.investor-cta {
  text-align: center;
  padding: var(--spacing-2xl);
  background-color: var(--color-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Global Contact Section */
.contact-content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1; /* Ensure content is above clouds */
}

.contact-info {
  text-align: center;
  width: 100%;
}

.contact-info h3 {
  /* Color handled by .panel.contact h3 rule for white on magenta */
  margin-bottom: var(--spacing-lg);
}

.contact-info address {
  font-style: normal;
  line-height: var(--line-height-relaxed);
}

.contact-info p {
  margin-bottom: var(--spacing-md);
}

/* Contact form removed - styles commented out */
/* .contact-form {
  background-color: var(--color-bg);
  padding: var(--spacing-2xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.contact-form h3 {
  margin-bottom: var(--spacing-xl);
  text-align: center;
} */

/* ===========================================
   Footer Styles
   =========================================== */

.footer {
  background-color: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.footer-content {
  display: grid;
  gap: var(--spacing-2xl);
  padding: var(--spacing-3xl) 0;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section h4 {
  color: #FFFFFF;
  margin-bottom: var(--spacing-md);
}

.footer-logo {
  margin-bottom: var(--spacing-lg);
}

.footer-logo .logo-image-footer {
  height: 40px;
  animation: none;
}

.footer-logo .logo-image-footer:hover {
  animation: logoExplode 0.6s ease-out;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  font-style: italic;
  text-align: left;
  margin: 0;
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--spacing-md);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all var(--transition-normal);
  font-size: var(--font-size-base);
  font-weight: 600;
  position: relative;
}

.social-link::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-full);
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition-normal);
}

.social-link:hover::before,
.social-link:focus::before {
  opacity: 0.3;
  transform: scale(2);
}

.social-link:hover,
.social-link:focus {
  background-color: var(--color-accent);
  color: #FFFFFF;
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 4px 12px rgba(216, 27, 96, 0.3);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-normal);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-xl) 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
}

.legal-links {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-normal);
}

.legal-links a:hover,
.legal-links a:focus {
  color: var(--color-accent);
}

.copyright {
  text-align: center;
}

.copyright p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
}

/* ===========================================
   Enhanced Interactions & Animations
   =========================================== */

/* Scroll-based Reveal Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll Reveal Animations - GSAP handles these now */
/* Removed initial opacity: 0 to prevent content from disappearing */
/* GSAP sets initial states and animates them properly */
.fade-in-up {
  will-change: transform, opacity;
}

.slide-in-left {
  will-change: transform, opacity;
}

.slide-in-right {
  will-change: transform, opacity;
}

.scale-in {
  will-change: transform, opacity;
}

/* Cards - GSAP handles animation, no initial hidden state */
.tech-card,
.game-card,
.value-card {
  will-change: transform, opacity;
}

/* Enhanced Card Hover Effects */
.tech-card,
.game-card {
  position: relative;
  overflow: hidden;
}

.tech-card::before,
.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(216, 27, 96, 0.1), transparent);
  transition: left 0.5s ease;
}

.tech-card:hover::before,
.game-card:hover::before {
  left: 100%;
}

.tech-card:hover .tech-icon,
.game-card:hover h3 {
  color: var(--color-accent);
}

/* Button Micro-interactions */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* Form Input Focus Effects */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(216, 27, 96, 0.15);
}

/* Navigation Active State Management */
.nav-link.active {
  color: var(--color-accent);
}

/* Smooth section transitions */
section {
  scroll-margin-top: 70px;
  /* Account for fixed header */
}

/* Enhanced placeholder image hover */
.placeholder-image:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
  transform: scale(1.02);
  transition: all var(--transition-normal);
}

/* ===========================================
   Header & Navigation Styles
   =========================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: var(--z-sticky);
  transition: all var(--transition-normal);
  will-change: background-color, backdrop-filter;
  transform: translateZ(0);
  /* GPU acceleration */
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  min-height: 70px;
}

/* Logo - Fun Animated Version */
.logo {
  flex-shrink: 0;
}

.logo-image {
  height: 35px;
  width: auto;
  transition: transform var(--transition-normal);
  animation: logoPulse 2s ease-in-out infinite;
  display: block;
}

.logo-image:hover {
  transform: scale(1.15) rotate(5deg);
  animation: logoExplode 0.6s ease-out;
}

.logo-image-footer {
  height: 40px;
  animation: none;
}

.logo-image-footer:hover {
  animation: logoExplode 0.6s ease-out;
}

@keyframes logoPulse {

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

  50% {
    transform: scale(1.05);
  }
}

@keyframes logoExplode {
  0% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.25) rotate(10deg);
  }

  100% {
    transform: scale(1.15) rotate(5deg);
  }
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-xl);
}

.nav-item {
  margin: 0;
}

.nav-link {
  position: relative;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;
  padding: var(--spacing-sm) 0;
  transition: all var(--transition-normal);
  display: inline-block;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-accent);
  transform: translateY(-2px);
  text-shadow: 0 2px 8px rgba(216, 27, 96, 0.2);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: var(--z-dropdown);
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: all var(--transition-fast);
  transform-origin: center;
}

/* Mobile Navigation State */
.nav-list {
  transition: all var(--transition-normal);
}

/* ===========================================
   Responsive Navigation
   =========================================== */

/* Tablet and below */
@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    background-color: #000000;
    padding: var(--spacing-4xl);
    gap: var(--spacing-xl);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    z-index: var(--z-modal-backdrop);
  }

  .nav-list.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: var(--font-size-xl);
    padding: var(--spacing-md) 0;
  }

  .nav-link::after {
    display: none;
  }

  /* Hamburger Animation */
  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* ===========================================
   Enhanced Accessibility Features
   =========================================== */

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background-color: var(--color-accent);
  color: var(--color-bg);
  padding: var(--spacing-sm) var(--spacing-md);
  text-decoration: none;
  border-radius: var(--border-radius-md);
  z-index: var(--z-tooltip);
  font-weight: 600;
  transition: top var(--transition-normal);
}

.skip-link:focus {
  top: 6px;
  outline: 2px solid var(--color-bg);
  outline-offset: 2px;
}

/* Enhanced Focus States */
.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px var(--color-bg), 0 0 0 4px var(--color-accent);
}

/* Form Accessibility */
.required {
  color: var(--color-accent);
  font-weight: 700;
}

.error-message {
  color: #dc3545;
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-xs);
  min-height: 1.2em;
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #dc3545;
  box-shadow: 0 0 0 1px #dc3545;
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --color-border: #000000;
    --color-bg-alt: #ffffff;
  }

  .btn {
    border: 2px solid currentColor;
  }

  .card {
    border: 2px solid var(--color-border);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .skip-link {
    transition: none;
  }

  /* Disable parallax and scroll animations */
  [data-parallax],
  .hero-parallax-layer,
  .hero-parallax-bg,
  .hero-parallax-mid {
    transform: none !important;
    will-change: auto !important;
  }

  /* Disable GSAP animations */
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }

  /* Disable section background parallax */
  .about::before,
  .technology::after,
  .games::before,
  .values::after {
    transform: none !important;
    will-change: auto !important;
  }

  /* Remove hover parallax effects */
  .game-image {
    transform: none !important;
  }
}

/* Color Scheme Preference */
@media (prefers-color-scheme: dark) {
  /* Note: Keeping light theme as primary brand aesthetic */
  /* Add dark mode styles here if needed in future */
}

/* ===========================================
   Additional Accessibility Helpers
   =========================================== */

/* Focus within for form groups */
.form-group:focus-within {
  position: relative;
}

.form-group:focus-within label {
  color: var(--color-accent);
  font-weight: 600;
}

/* Navigation keyboard support */
.nav-link[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 600;
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ARIA live regions for dynamic content */
[aria-live] {
  position: relative;
}

/* Ensure sufficient color contrast */
.text-secondary {
  color: var(--color-text-secondary);
}

/* Focus trap for mobile menu (when implemented with JS) */
/* .nav-list.active:focus-within stays within menu */

/* Semantic color indicators */
[aria-required="true"]::before {
  content: "*";
  color: var(--color-accent);
  font-weight: 700;
  margin-right: var(--spacing-xs);
}

/* ===========================================
   Mobile-Only Fixes (Option 2: Desktop unchanged)
   =========================================== */

/* Mobile: Prevent content clipping inside panels */
@media (max-width: 767px) {
  .panel {
    min-height: auto;
    overflow: visible;
    display: block;
    justify-content: flex-start;
  }

  /* Ensure container padding works correctly on mobile */
  .panel .container {
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
  }
}

/* Mobile: Contain horizontal overflow safely */
@media (max-width: 767px) {
  html, body {
    overflow-x: clip;
  }
}

/* Fallback for browsers that don't support overflow: clip */
@supports not (overflow-x: clip) {
  @media (max-width: 767px) {
    html, body {
      overflow-x: hidden;
    }
  }
}

/* Mobile: Scale down decorative shapes to prevent layout issues */
@media (max-width: 767px) {
  .hero-shape {
    transform: scale(0.6);
  }

  .hero-shape-1 {
    width: clamp(200px, 50vw, 400px);
    height: clamp(150px, 40vw, 300px);
  }

  .hero-shape-2 {
    width: clamp(175px, 45vw, 350px);
    height: clamp(140px, 35vw, 280px);
  }

  .hero-shape-3 {
    width: clamp(150px, 40vw, 300px);
    height: clamp(125px, 30vw, 250px);
  }

  .hero-shape-4 {
    width: clamp(190px, 48vw, 380px);
    height: clamp(160px, 38vw, 320px);
  }

  .hero-shape-5 {
    width: clamp(160px, 42vw, 320px);
    height: clamp(135px, 32vw, 270px);
  }

  .hero-shape-6 {
    width: clamp(180px, 45vw, 360px);
    height: clamp(145px, 35vw, 290px);
  }

  .contact-shape {
    transform: scale(0.6);
  }

  .contact-shape-1 {
    width: clamp(175px, 45vw, 350px);
    height: clamp(140px, 35vw, 280px);
  }

  .contact-shape-2 {
    width: clamp(150px, 40vw, 300px);
    height: clamp(120px, 30vw, 240px);
  }

  .contact-shape-3 {
    width: clamp(160px, 42vw, 320px);
    height: clamp(130px, 32vw, 260px);
  }

  .contact-shape-4 {
    width: clamp(140px, 38vw, 280px);
    height: clamp(110px, 28vw, 220px);
  }

  /* =========================================
     Mobile Typography & Image Adaptation
     ========================================= */

  /* Base Typography - Properly scaled for mobile */
  h1 {
    font-size: clamp(1.75rem, 5vw, 2.25rem); /* 28px - 36px */
  }

  h2 {
    font-size: clamp(1.5rem, 4.5vw, 1.875rem); /* 24px - 30px */
  }

  h3 {
    font-size: clamp(1.25rem, 4vw, 1.5rem); /* 20px - 24px */
  }

  h4 {
    font-size: clamp(1.125rem, 3.5vw, 1.25rem); /* 18px - 20px */
  }

  /* Section Headers */
  .section-header h2 {
    font-size: clamp(1.5rem, 5vw, 1.875rem);
  }

  .section-description {
    font-size: clamp(0.875rem, 3vw, 1rem); /* 14px - 16px */
  }

  /* Body Text - Ensure readable size */
  body {
    font-size: clamp(0.875rem, 2.5vw, 1rem); /* 14px - 16px */
  }

  p {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    line-height: 1.6;
  }

  /* Hero Title - Smaller on mobile */
  .hero-title {
    font-size: clamp(1.5rem, 6vw, 1.875rem) !important; /* 24px - 30px */
  }

  /* About Text */
  .about-text h3 {
    font-size: clamp(1.125rem, 4vw, 1.25rem);
  }

  .about-text p {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
  }

  /* Card Text */
  .tech-card h3,
  .value-card h3 {
    font-size: clamp(1.125rem, 4vw, 1.25rem);
  }

  .tech-card p,
  .value-card p {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
  }

  /* Game Card Text */
  .game-title-overlay h3 {
    font-size: clamp(1.125rem, 4vw, 1.25rem);
  }

  .game-description-overlay p {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
  }

  /* Contact Text */
  .contact-info p {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
  }

  /* Buttons - Touch-friendly but not huge */
  .btn {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    padding: var(--spacing-md) var(--spacing-lg);
  }

  /* Navigation */
  .nav-link {
    font-size: clamp(1rem, 3vw, 1.125rem);
  }

  /* Footer */
  .footer-section h4 {
    font-size: clamp(1rem, 3vw, 1.125rem);
  }

  .footer-links a {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
  }

  /* =========================================
     Image Sizing - Responsive & Viewport-Based
     ========================================= */

  /* Hero Logo - Smaller on mobile */
  .hero-logo {
    height: clamp(60px, 15vw, 80px) !important;
    max-width: 90vw;
  }

  /* Game Images - Viewport-relative height */
  .game-image {
    height: clamp(200px, 50vh, 300px) !important;
    min-height: clamp(200px, 50vh, 300px) !important;
  }

  .game-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Container padding - Tighter on mobile */
  .container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  .panel .container {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
  }

  /* Section spacing - Reduced on mobile */
  .section-header {
    margin-bottom: var(--spacing-lg);
  }

  /* Card spacing */
  .tech-card,
  .value-card,
  .game-card {
    padding: var(--spacing-lg);
  }

  /* Hero content - Better mobile spacing */
  .hero-content {
    min-height: auto;
    padding: var(--spacing-lg) 0;
  }

  .hero-logo-wrapper {
    margin-bottom: var(--spacing-xl);
  }

  .hero-text-wrapper {
    gap: var(--spacing-lg);
  }

  /* About visual placeholder */
  .placeholder-image {
    min-height: clamp(200px, 40vh, 300px);
    font-size: clamp(1rem, 4vw, 1.25rem);
  }

  /* =========================================
     Additional Mobile UX Fixes
     ========================================= */

  /* Fix 1: Hero padding - ensure content doesn't hide behind nav bar */
  .hero {
    padding-top: calc(20px + var(--spacing-2xl)) !important;
  }

  /* Fix 2: Navigation menu fixes */
  /* Ensure hamburger button stays above menu when menu is open */
  .mobile-menu-toggle {
    z-index: var(--z-modal) !important; /* 1050 - above menu backdrop */
    position: relative;
  }

  /* Ensure menu has full viewport coverage and minimal padding to prevent clipping */
  .nav-list {
    width: 100vw !important;
    height: 40vh !important;
    padding: var(--spacing-1xl) var(--spacing-lg) !important;
    box-sizing: border-box;
    overflow: visible;
  }

  /* Active menu - ensure full coverage and proper spacing */
  .nav-list.active {
    padding: var(--spacing-1xl) var(--spacing-lg) !important;
  }

  /* Prevent text cropping in nav links - ensure they have space */
  .nav-link {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    width: auto;
    min-width: fit-content;
    padding: var(--spacing-lg) var(--spacing-md) !important;
    display: block;
    text-align: center;
  }

  /* Fix 3: Hide scroll invitation on mobile */
  .hero-scroll-invitation {
    display: none !important;
  }

  /* Fix 4: About section image - scale down and constrain width */
  .about-visual .placeholder-image {
    max-width: clamp(280px, 85vw, 400px) !important;
    width: 100%;
    min-height: clamp(200px, 35vh, 280px) !important;
  }
}