/* ==========================================================================
   [NAME & LOGO PROTECTED STUDIO] — CORE DESIGN SYSTEM & STYLESHEET
   Concept: Three-Layer Visual Architecture inspired by Google Arts & Culture
   Palette: Pure Black & White Monochromatic Editorial with Refined Grays (NO RED)
   Layer 1: Canvas Base (Pure #000000 Dark / Pure #FFFFFF Light)
   Layer 2: Curated Section Atmosphere
   Layer 3: Interactive Elements (Google Arts & Culture Size-Changing Widget, 
            4 Square Boxes, 4 Staggered Up-and-Down Circular Game Bubbles)
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

/* --- Root Variables & Theme Tokens --- */
:root {
  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  /* Layout */
  --container-max: 1240px;
  --container-pad: 1.5rem;
  --header-height: 4.75rem;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 500ms cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   LAYER-1: Canvas Base Layer (Dark Mode Default - Pure Black & Monochrome)
   ========================================================================== */
[data-theme="dark"] {
  /* Layer 1 Background Canvas (Pure Black) */
  --l1-bg: #000000;
  --l1-bg-alt: #0a0a0a;
  --l1-canvas-pattern: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);

  /* Layer 2 Section Stage Tokens */
  --l2-stage-bg: rgba(14, 14, 14, 0.6);
  --l2-stage-bg-solid: #0d0d0d;
  --l2-stage-border: rgba(255, 255, 255, 0.08);
  --l2-stage-glow: 0 20px 50px -15px rgba(0, 0, 0, 0.8);

  /* Layer 3 Elements Tokens */
  --l3-card-bg: #121212;
  --l3-card-bg-hover: #181818;
  --l3-card-border: rgba(255, 255, 255, 0.1);
  --l3-card-border-hover: rgba(255, 255, 255, 0.35);

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-inverse: #000000;

  /* Monochromatic Accents (NO RED) */
  --accent-primary: #ffffff;
  --accent-hover: #e4e4e7;
  --accent-subtle: rgba(255, 255, 255, 0.08);
  --accent-glow: rgba(255, 255, 255, 0.2);

  /* Button Tokens */
  --btn-primary-bg: #ffffff;
  --btn-primary-text: #000000;
  --btn-secondary-bg: #181818;
  --btn-secondary-text: #ffffff;
  --btn-secondary-border: rgba(255, 255, 255, 0.15);

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.75);

  --badge-bg: #1c1c1c;
  --badge-text: #e4e4e7;
}

/* ==========================================================================
   LAYER-1: Canvas Base Layer (Light Mode - Pure White & Monochrome)
   ========================================================================== */
[data-theme="light"] {
  /* Layer 1 Background Canvas (Pure White) */
  --l1-bg: #ffffff;
  --l1-bg-alt: #fafafa;
  --l1-canvas-pattern: radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px);

  /* Layer 2 Section Stage Tokens */
  --l2-stage-bg: rgba(250, 250, 250, 0.85);
  --l2-stage-bg-solid: #f4f4f5;
  --l2-stage-border: rgba(0, 0, 0, 0.08);
  --l2-stage-glow: 0 20px 45px -15px rgba(0, 0, 0, 0.06);

  /* Layer 3 Elements Tokens */
  --l3-card-bg: #ffffff;
  --l3-card-bg-hover: #fafafa;
  --l3-card-border: rgba(0, 0, 0, 0.08);
  --l3-card-border-hover: rgba(0, 0, 0, 0.35);

  /* Typography Colors */
  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --text-inverse: #ffffff;

  /* Monochromatic Accents (NO RED) */
  --accent-primary: #09090b;
  --accent-hover: #27272a;
  --accent-subtle: rgba(0, 0, 0, 0.06);
  --accent-glow: rgba(0, 0, 0, 0.15);

  /* Button Tokens */
  --btn-primary-bg: #09090b;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: #f4f4f5;
  --btn-secondary-text: #09090b;
  --btn-secondary-border: rgba(0, 0, 0, 0.12);

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.09);

  --badge-bg: #f4f4f5;
  --badge-text: #27272a;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--l1-bg);
  background-image: var(--l1-canvas-pattern);
  background-size: 28px 28px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* Global Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Section Wrapper */
.section-wrapper {
  padding-block: var(--space-3xl);
}

/* Typography & Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 760px;
  margin-inline: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  background: var(--badge-bg);
  border: 1px solid var(--l2-stage-border);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 4px 18px var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-md);
}

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

.btn-pill {
  border: 1.5px solid var(--text-primary);
  color: var(--text-primary);
  background: transparent;
  padding: 0.65rem 1.8rem;
  border-radius: var(--radius-full);
}
.btn-pill:hover {
  background: var(--text-primary);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

.btn-steam {
  background: linear-gradient(135deg, #101822 0%, #172432 50%, #1b2838 100%);
  color: #ffffff;
  border: 1px solid #2a475e;
  box-shadow: 0 4px 14px rgba(27, 40, 56, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}
.btn-steam:hover {
  background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
  border-color: #66c0f4;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(102, 192, 244, 0.35);
}
.btn-steam svg {
  color: #66c0f4;
  transition: transform 0.2s ease;
}
.btn-steam:hover svg {
  transform: scale(1.1);
}

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

.btn-lg {
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
}

/* ==========================================================================
   2. NAVBAR: Logo & Name on Left | All Options on Right (Image 1 & Feedback 2)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: var(--l1-bg);
  border-bottom: 1px solid var(--l2-stage-border);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Logo on left, nav & controls on right */
  height: 100%;
}

/* Left: Logo & Name */
.header-left {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  object-fit: contain;
  transition: filter var(--transition-normal);
}

/* NDA Badge shown in place of logo */
.brand-nda-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border: 1px dashed var(--accent-primary);
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.brand-link:hover .brand-nda-badge {
  transform: scale(1.05);
  border-color: var(--accent-hover);
}

/* Reverse logo color for light mode so it's fully visible and sharp on white canvas */
[data-theme="light"] .brand-logo-img {
  filter: invert(1) brightness(0.15);
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Right: Navigation Links & Controls */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--l2-stage-border);
  background: var(--l3-card-bg);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--text-primary);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Mobile Menu Toggle */
.menu-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--l2-stage-border);
  color: var(--text-primary);
}

/* Mobile Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.mobile-drawer-overlay.open { opacity: 1; visibility: visible; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--l1-bg);
  border-left: 1px solid var(--l2-stage-border);
  z-index: 1001;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  transition: right var(--transition-spring);
}
.mobile-drawer.open { right: 0; }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--l2-stage-border);
  margin-bottom: var(--space-md);
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--l2-stage-border);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.75rem var(--space-md);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--accent-subtle);
}

/* ==========================================================================
   3. HERO AREA (Image 2 & Feedback 3)
   Clean pure white/black background (NO artificial border!)
   Left: Intro Text | Right: Google Arts & Culture Interactive Size-Changing Widget
   ========================================================================== */
.hero-section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  position: relative;
  background: var(--l1-bg); /* Pure white or black canvas */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Exactly 50% - 50% split */
  align-items: center;
  gap: var(--space-2xl);
  width: 100%;
}

/* Left: Intro Text */
.hero-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--l2-stage-border);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* Tagline Highlight Words: Unified Electric Cyan / Sky Blue for Worlds, Stories & Play */
.tag-word {
  display: inline-block;
  font-weight: 900;
  color: #38bdf8;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.38);
  transition: transform 0.2s ease, text-shadow 0.2s ease, color 0.2s ease;
}
.tag-word:hover {
  transform: translateY(-2px);
  text-shadow: 0 0 32px rgba(56, 189, 248, 0.65);
}
.word-worlds,
.word-stories,
.word-play {
  color: #38bdf8;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.38);
}
[data-theme="light"] .tag-word,
[data-theme="light"] .word-worlds,
[data-theme="light"] .word-stories,
[data-theme="light"] .word-play {
  color: #0284c7;
  text-shadow: none;
}
[data-theme="light"] .tag-word:hover,
[data-theme="light"] .word-worlds:hover,
[data-theme="light"] .word-stories:hover,
[data-theme="light"] .word-play:hover {
  color: #0369a1;
  text-shadow: none;
}

.hero-description {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: var(--space-xs);
}

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: var(--space-lg);
  margin-top: var(--space-sm);
  border-top: 1px solid var(--l2-stage-border);
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ==========================================================================
   Google Arts & Culture 3D Interactive Card Stack (Featured Work)
   Inspired by Google Arts & Culture Hero Carousel (Image 1) & Sketch 2:
   - 3 Overlapping cards representing Studio [Name & Logo Protected]
   - Center card: LARGER, in front (z-index 10)
   - Left & Right cards: slightly smaller, tucked behind (z-index 4)
   - Click any card to bring it smoothly into the center
   ========================================================================== */
.hero-gac-stage {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.gac-card {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  background: var(--l3-card-bg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              width 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              height 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.4s ease,
              filter 0.4s ease,
              box-shadow 0.5s ease;
}

.gac-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gac-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gac-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.42) 50%, rgba(0, 0, 0, 0.92) 100%);
  pointer-events: none;
}

.gac-card-content {
  position: relative;
  z-index: 3;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: #ffffff;
}

.gac-card-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.45);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.gac-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
}

.gac-card-sub {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin: 0;
}

.gac-card-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.6rem;
}

/* Position: CENTER (Active, Largest, In Front) */
.gac-card.pos-center {
  width: 290px;
  height: 440px;
  transform: translateX(0) scale(1);
  z-index: 10;
  opacity: 1;
  filter: brightness(1);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.75), 0 0 0 1.5px rgba(255, 255, 255, 0.25);
  cursor: default;
}
.gac-card.pos-center .gac-card-img {
  transform: scale(1.02);
}

/* Position: LEFT (Behind Center Card) */
.gac-card.pos-left {
  width: 250px;
  height: 380px;
  transform: translateX(-110px) scale(0.92);
  z-index: 4;
  opacity: 0.88;
  filter: brightness(0.65);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.gac-card.pos-left:hover {
  filter: brightness(0.85);
  transform: translateX(-120px) scale(0.94);
}
.gac-card.pos-left .gac-card-actions {
  display: none;
}

/* Position: RIGHT (Behind Center Card) */
.gac-card.pos-right {
  width: 250px;
  height: 380px;
  transform: translateX(110px) scale(0.92);
  z-index: 4;
  opacity: 0.88;
  filter: brightness(0.65);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.gac-card.pos-right:hover {
  filter: brightness(0.85);
  transform: translateX(120px) scale(0.94);
}
.gac-card.pos-right .gac-card-actions {
  display: none;
}

/* ==========================================================================
   4. SERVICE SECTION (Inspired by Google Arts & Culture Image 2)
   4 High-Impact Image Cards (NO EMOJIS) + Doodle Line + Centered Pill Button
   ========================================================================== */
.services-section {
  position: relative;
  overflow: hidden;
}

/* Google Arts & Culture Style Doodle Line */
.services-doodle-bg {
  position: absolute;
  top: 10px;
  right: 4%;
  width: 260px;
  height: 180px;
  pointer-events: none;
  color: #f472b6;
  opacity: 0.22;
  z-index: 1;
}
[data-theme="light"] .services-doodle-bg {
  color: #f472b6;
  opacity: 0.35;
}

.services-gac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--space-2xl);
  position: relative;
  z-index: 2;
}

.service-gac-card {
  position: relative;
  aspect-ratio: 1 / 1.15;
  border-radius: 20px;
  overflow: hidden;
  background: var(--l3-card-bg);
  border: 1px solid var(--l3-card-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-gac-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  border-color: var(--l3-card-border-hover);
}

.service-gac-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.service-gac-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-gac-card:hover .service-gac-img {
  transform: scale(1.08);
}

.service-gac-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.92) 100%);
  pointer-events: none;
}

.service-gac-content {
  position: relative;
  z-index: 3;
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-gac-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
}

.service-gac-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
  margin: 0;
}

.services-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

/* ==========================================================================
   5. GAME SECTION (Image 3 & Feedback 5)
   "GAMES"
   "design background with minimal good artwork"
   ONLY 4 Games in Google Arts & Culture style, staggered UP and DOWN
   "More games ->" button to games.html
   ========================================================================== */
.games-section {
  position: relative;
  overflow: hidden;
}

.games-stage {
  position: relative;
  padding: var(--space-3xl) var(--space-2xl);
  border-radius: var(--radius-xl);
  background: var(--l2-stage-bg);
  border: 1px solid var(--l2-stage-border);
  overflow: hidden;
}

/* Minimal Artwork Background Element */
.games-artwork-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: contrast(1.1) grayscale(0.8);
  pointer-events: none;
  z-index: 1;
}

[data-theme="light"] .games-artwork-bg {
  opacity: 0.08;
  filter: grayscale(1) contrast(1.2);
}

/* 4 Games Staggered Up-and-Down Wave */
.games-updown-cluster {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: var(--space-2xl) 0 var(--space-3xl);
  position: relative;
  z-index: 3;
  gap: 1.5rem;
}

/* Individual Up-and-Down Game Circle Item */
.game-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition-normal);
}

/* Staggered Alternating Up and Down Offsets */
.game-circle-item.pos-up {
  transform: translateY(-28px);
}
.game-circle-item.pos-down {
  transform: translateY(32px);
}

.game-circle-bubble {
  position: relative;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--l3-card-border);
  transition: all var(--transition-spring);
  animation: floatBubble 6s ease-in-out infinite;
}

/* Diameters for the 4 games */
.game-circle-item.game-1 .game-circle-bubble { width: 210px; }
.game-circle-item.game-2 .game-circle-bubble { width: 175px; animation-delay: -2s; }
.game-circle-item.game-3 .game-circle-bubble { width: 190px; animation-delay: -4s; }
.game-circle-item.game-4 .game-circle-bubble { width: 165px; animation-delay: -1.5s; }

@keyframes floatBubble {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

.game-circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.game-circle-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.game-circle-play-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transform: scale(0.85);
  transition: transform var(--transition-spring);
}

.game-circle-item:hover .game-circle-bubble {
  transform: scale(1.08) translateY(-4px);
  border-color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}
.game-circle-item:hover .game-circle-img {
  transform: scale(1.12);
}
.game-circle-item:hover .game-circle-overlay {
  opacity: 1;
}
.game-circle-item:hover .game-circle-play-icon {
  transform: scale(1);
}

.game-circle-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: 170px;
}

.game-circle-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.game-circle-genre {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.games-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

/* ==========================================================================
   6. PORTFOLIO GATEWAY SECTION (Image 4)
   "Gateway to companies portfolio page"
   ========================================================================== */
.portfolio-gateway-card {
  background: var(--l3-card-bg);
  border: 1px solid var(--l3-card-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  box-shadow: var(--shadow-md);
}

.portfolio-gateway-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.portfolio-pillars-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-block: var(--space-xs);
}

.portfolio-pillar-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.portfolio-gateway-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--l3-card-border);
  box-shadow: var(--shadow-md);
}

.portfolio-gateway-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.portfolio-gateway-media:hover img {
  transform: scale(1.04);
}

/* ==========================================================================
   7. FOOTER (Image 5)
   1 Logo & name | 2 All links | 3 Privacy & Policy | 4 Refund Policy | 
   5 Terms & Condition | 6 Copyright | 7 Social media
   ========================================================================== */
.site-footer {
  margin-top: var(--space-4xl);
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--l1-bg);
  border-top: 1px solid var(--l2-stage-border);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--l2-stage-border);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--l2-stage-border);
  background: var(--l3-card-bg);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal-dialog {
  background: var(--l1-bg);
  border: 1px solid var(--l2-stage-border);
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.94);
  transition: transform var(--transition-spring);
}
.modal-backdrop.open .modal-dialog { transform: scale(1); }

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

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--l2-stage-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 1.5rem;
}

/* ==========================================================================
   PAGE HERO & HEADERS (For Dedicated Standalone Pages)
   ========================================================================== */
.page-hero {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  text-align: center;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.page-hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.6;
}

/* Filter Pill Bar */
.filter-pill-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-2xl);
}

.filter-pill-btn {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--l2-stage-border);
  background: var(--l3-card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.filter-pill-btn.active {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: var(--text-primary);
}

/* Games Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.75rem;
  margin-bottom: var(--space-3xl);
}

.catalog-card {
  background: var(--l3-card-bg);
  border: 1px solid var(--l3-card-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.catalog-card:hover {
  transform: translateY(-6px);
  border-color: var(--l3-card-border-hover);
  box-shadow: var(--shadow-lg);
}

.catalog-card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #000;
}

.catalog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.catalog-card:hover .catalog-card-img {
  transform: scale(1.08);
}

.catalog-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.catalog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalog-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.catalog-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.catalog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--l2-stage-border);
  padding-top: 0.85rem;
  margin-top: auto;
}

.catalog-card-platform {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Service Detail Grid */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: var(--space-3xl);
}

.service-detail-card {
  background: var(--l3-card-bg);
  border: 1px solid var(--l3-card-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.service-detail-card:hover {
  transform: translateY(-6px);
  border-color: var(--l3-card-border-hover);
  box-shadow: var(--shadow-lg);
}

.service-detail-media {
  height: 240px;
  position: relative;
  overflow: hidden;
}

.service-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-detail-card:hover .service-detail-img {
  transform: scale(1.06);
}

.service-detail-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-detail-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-detail-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.service-detail-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-detail-deliverables {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-detail-deliverables li {
  font-size: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-detail-deliverables li::before {
  content: "•";
  color: var(--text-muted);
}

/* Process Timeline Row */
.process-step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: var(--space-3xl);
}

.process-step-card {
  background: var(--l3-card-bg);
  border: 1px solid var(--l3-card-border);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
}

.process-step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.process-step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Consultation CTA Banner */
.consultation-cta-card {
  background: var(--l3-card-bg);
  border: 1px solid var(--l3-card-border);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: var(--space-3xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  .process-step-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-intro {
    align-items: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats-strip {
    width: 100%;
    max-width: 500px;
  }
  .hero-gac-stage {
    height: 420px;
    margin-top: var(--space-md);
  }
  .gac-card.pos-center {
    width: 260px;
    height: 400px;
  }
  .gac-card.pos-left {
    width: 220px;
    height: 350px;
    transform: translateX(-95px) scale(0.92);
  }
  .gac-card.pos-right {
    width: 220px;
    height: 350px;
    transform: translateX(95px) scale(0.92);
  }
  .services-gac-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-gateway-card {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle-btn {
    display: flex;
  }
  .hero-gac-stage {
    height: 380px;
  }
  .gac-card.pos-center {
    width: 230px;
    height: 350px;
  }
  .gac-card.pos-left {
    width: 190px;
    height: 300px;
    transform: translateX(-70px) scale(0.9);
  }
  .gac-card.pos-right {
    width: 190px;
    height: 300px;
    transform: translateX(70px) scale(0.9);
  }
  .services-gac-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }
  .games-updown-cluster {
    flex-wrap: wrap;
    gap: 2rem;
  }
  .game-circle-item.pos-up,
  .game-circle-item.pos-down {
    transform: none; /* Mobile flat layout for cleaner readability */
  }
  .game-circle-item.game-1 .game-circle-bubble { width: 155px; }
  .game-circle-item.game-2 .game-circle-bubble { width: 140px; }
  .game-circle-item.game-3 .game-circle-bubble { width: 150px; }
  .game-circle-item.game-4 .game-circle-bubble { width: 135px; }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
