/* ==========================================================================
   GAMA TECH & DEV - Official Modern Design System
   Color Palette: #111927 | #DFE0E0 | #101725 | #0E111D | #969898 | #0D131F
   Fonts: Plus Jakarta Sans, Outfit, JetBrains Mono
   ========================================================================== */

:root,
html[data-theme="dark"] {
  /* Brand Palette Variables - Dark (Default) */
  --c-base: #0E111D;          /* Deepest canvas */
  --c-deep: #0D131F;          /* Contrast section canvas */
  --c-surface: #111927;       /* Card & nav surface */
  --c-surface-hover: #162033; /* Slightly lifted surface */
  --c-surface-alt: #101725;   /* Secondary container */
  --c-primary-text: #DFE0E0;  /* High contrast platinum text */
  --c-muted-text: #969898;    /* Balanced readable secondary text */
  --c-dim-text: #64748B;      /* Meta & caption text */

  /* Modern Tech Highlights */
  --c-cyan: #38BDF8;          /* Electric Azure / Cyan */
  --c-cyan-rgb: 56, 189, 248;
  --c-cyan-glow: rgba(56, 189, 248, 0.18);
  --c-emerald: #10B981;       /* Operational status indicator */
  --c-silver-gradient: linear-gradient(135deg, #FFFFFF 0%, #DFE0E0 50%, #969898 100%);
  --c-metallic-border: rgba(223, 224, 224, 0.12);
  --c-metallic-border-hover: rgba(223, 224, 224, 0.28);

  /* Shadows & Glass */
  --glass-bg: rgba(17, 25, 39, 0.78);
  --glass-blur: blur(14px);
  --header-scrolled-bg: rgba(14, 17, 29, 0.88);
  --nav-mobile-bg: rgba(14, 17, 29, 0.98);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 16px 36px -8px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.15);

  /* 3D Spatial Background Variables */
  --spatial-grid-color: rgba(56, 189, 248, 0.08);
  --spatial-grid-horizon: rgba(56, 189, 248, 0.45);
  --spatial-orb-1: rgba(56, 189, 248, 0.12);
  --spatial-orb-2: rgba(99, 102, 241, 0.12);
  --spatial-orb-3: rgba(16, 185, 129, 0.08);
  --cube-face-top: rgba(56, 189, 248, 0.22);
  --cube-face-left: rgba(17, 25, 39, 0.78);
  --cube-face-right: rgba(30, 41, 59, 0.82);
  --cube-border: rgba(56, 189, 248, 0.45);

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --container-max: 1240px;
  --header-h: 76px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] {
  /* Brand Palette Variables - Light Theme */
  --c-base: #F8FAFC;          /* Clean slate base */
  --c-deep: #F1F5F9;          /* Subtle contrasting section */
  --c-surface: #FFFFFF;       /* Crisp white cards & nav */
  --c-surface-hover: #F8FAFC; /* Hover lifted card */
  --c-surface-alt: #E2E8F0;   /* Secondary light container */
  --c-primary-text: #0F172A;  /* Razor sharp slate-900 text */
  --c-muted-text: #475569;    /* Slate-600 readable secondary text */
  --c-dim-text: #64748B;      /* Slate-500 caption text */

  /* Modern Tech Highlights (Light optimized) */
  --c-cyan: #0284C7;          /* High contrast Azure Blue */
  --c-cyan-rgb: 2, 132, 199;
  --c-cyan-glow: rgba(2, 132, 199, 0.16);
  --c-emerald: #059669;       /* Crisp emerald green */
  --c-silver-gradient: linear-gradient(135deg, #0F172A 0%, #1E293B 55%, #334155 100%);
  --c-metallic-border: rgba(15, 23, 42, 0.1);
  --c-metallic-border-hover: rgba(2, 132, 199, 0.35);

  /* Shadows & Glass */
  --glass-bg: rgba(255, 255, 255, 0.88);
  --header-scrolled-bg: rgba(255, 255, 255, 0.92);
  --nav-mobile-bg: rgba(255, 255, 255, 0.98);
  --shadow-subtle: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 16px 36px -8px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 30px rgba(2, 132, 199, 0.12);

  /* 3D Spatial Background Variables (Light) */
  --spatial-grid-color: rgba(2, 132, 199, 0.08);
  --spatial-grid-horizon: rgba(2, 132, 199, 0.35);
  --spatial-orb-1: rgba(56, 189, 248, 0.12);
  --spatial-orb-2: rgba(99, 102, 241, 0.08);
  --spatial-orb-3: rgba(16, 185, 129, 0.06);
  --cube-face-top: rgba(2, 132, 199, 0.18);
  --cube-face-left: rgba(241, 245, 249, 0.92);
  --cube-face-right: rgba(226, 232, 240, 0.95);
  --cube-border: rgba(2, 132, 199, 0.35);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: var(--font-main);
  background-color: var(--c-base);
  color: var(--c-primary-text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

/* Ensure foreground content stacks gracefully above the 3D canvas */
header, main, footer, .floating-wa-btn {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography Utilities */
.heading-silver {
  background: var(--c-silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.heading-cyan {
  color: var(--c-cyan);
}

.text-muted {
  color: var(--c-muted-text);
}

.text-mono {
  font-family: var(--font-mono);
}

/* Badges & Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(17, 25, 39, 0.9);
  border: 1px solid var(--c-metallic-border);
  color: var(--c-primary-text);
  backdrop-filter: blur(8px);
  width: fit-content;
}

.badge-pill.cyan {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
  color: #7dd3fc;
}

.badge-pill.pulse .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--c-emerald);
  box-shadow: 0 0 10px var(--c-emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #FFFFFF 0%, #DFE0E0 60%, #CBD5E1 100%);
  color: #0E111D;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 18px rgba(223, 224, 224, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(223, 224, 224, 0.4);
  background: #FFFFFF;
}

.btn-secondary {
  background: rgba(17, 25, 39, 0.8);
  color: var(--c-primary-text);
  border: 1px solid var(--c-metallic-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--c-surface-hover);
  border-color: var(--c-metallic-border-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #FFFFFF;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.25);
}

.btn-cyan:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 8px 26px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-wa {
  background: #25D366;
  color: #0E111D;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
  background: #22c35e;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background: var(--header-scrolled-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--c-metallic-border);
  box-shadow: var(--shadow-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--c-metallic-border);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-logo:hover img {
  transform: rotate(6deg) scale(1.05);
  border-color: var(--c-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-primary-text);
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.68rem;
  color: var(--c-muted-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-muted-text);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--c-primary-text);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-cyan);
  border-radius: var(--radius-full);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Switcher Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 1px solid var(--c-metallic-border);
  color: var(--c-primary-text);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-subtle);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: var(--c-cyan);
  box-shadow: 0 0 16px var(--c-cyan-glow);
  color: var(--c-cyan);
}

.theme-icon-sun,
.theme-icon-moon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Dark mode: show Sun icon to switch to light */
:root .theme-icon-sun,
html[data-theme="dark"] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
:root .theme-icon-moon,
html[data-theme="dark"] .theme-icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
  pointer-events: none;
}

/* Light mode: show Moon icon to switch to dark */
html[data-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  pointer-events: none;
}
html[data-theme="light"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
  color: #0F172A;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--c-primary-text);
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 90px;
  overflow: hidden;
}

.hero-glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 480px;
  height: 480px;
  background: rgba(56, 189, 248, 0.08);
  top: 5%;
  right: -5%;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: rgba(17, 25, 39, 0.9);
  bottom: 10%;
  left: -5%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--c-primary-text);
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--c-muted-text);
  line-height: 1.7;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--c-metallic-border);
  font-size: 0.88rem;
  color: var(--c-muted-text);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item svg {
  color: var(--c-cyan);
  flex-shrink: 0;
}

/* Hero Visual Showcase */
.hero-visual-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lift);
  backdrop-filter: var(--glass-blur);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 14px;
  border-bottom: 1px solid var(--c-metallic-border);
}

.card-dots {
  display: flex;
  gap: 6px;
}

.card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.card-tab-nav {
  display: flex;
  background: rgba(14, 17, 29, 0.6);
  border-radius: var(--radius-full);
  padding: 4px;
  border: 1px solid var(--c-metallic-border);
}

.card-tab-btn {
  background: none;
  border: none;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-muted-text);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.card-tab-btn.active {
  background: var(--c-surface);
  color: var(--c-primary-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-media-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 14px;
  height: 380px;
  background: var(--c-deep);
}

.hero-media-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hero-media-panel.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-media-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay-card {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(17, 25, 39, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.overlay-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-primary-text);
}

.overlay-info p {
  font-size: 0.8rem;
  color: var(--c-muted-text);
}

.overlay-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--c-cyan);
}

/* ==========================================================================
   METRICS & STATS SECTION
   ========================================================================== */
.stats-section {
  padding: 40px 0;
  background: var(--c-deep);
  border-top: 1px solid var(--c-metallic-border);
  border-bottom: 1px solid var(--c-metallic-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  padding: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-metallic-border-hover);
  box-shadow: var(--shadow-subtle);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
  background: var(--c-silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-primary-text);
  margin-bottom: 4px;
}

.stat-subtext {
  font-size: 0.8rem;
  color: var(--c-muted-text);
  line-height: 1.4;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section.alt-bg {
  background: var(--c-deep);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-cyan);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--c-muted-text);
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-metallic-border);
  box-shadow: var(--shadow-lift);
  background: var(--c-surface);
}

.about-image-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.about-floating-stat {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--c-surface);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-lift);
  backdrop-filter: var(--glass-blur);
  display: flex;
  align-items: center;
  gap: 16px;
}

.floating-stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--c-cyan);
  line-height: 1;
}

.floating-stat-desc {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-primary-text);
  line-height: 1.3;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.about-feature-item:hover {
  border-color: var(--c-metallic-border-hover);
  background: var(--c-surface-hover);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--c-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-primary-text);
  margin-bottom: 4px;
}

.feature-info p {
  font-size: 0.88rem;
  color: var(--c-muted-text);
  line-height: 1.5;
}

/* ==========================================================================
   SERVICES SECTION (DUAL DIVISION TABS)
   ========================================================================== */
.services-division-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.division-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--c-surface);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-full);
  color: var(--c-muted-text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.division-tab-btn:hover {
  color: var(--c-primary-text);
  border-color: var(--c-metallic-border-hover);
}

.division-tab-btn.active {
  background: linear-gradient(135deg, #162033 0%, #111927 100%);
  color: #FFFFFF;
  border-color: var(--c-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.tab-icon {
  display: flex;
  align-items: center;
  color: var(--c-cyan);
}

.services-grid-pane {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.services-grid-pane.active {
  display: grid;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-metallic-border-hover);
  box-shadow: var(--shadow-lift);
}

.service-card:hover::before {
  opacity: 1;
}

.card-top {
  margin-bottom: 24px;
}

.card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--c-primary-text);
  line-height: 1.3;
  margin-bottom: 8px;
}

.service-subtitle {
  font-size: 0.92rem;
  color: var(--c-cyan);
  font-weight: 500;
  margin-bottom: 14px;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--c-muted-text);
  line-height: 1.65;
  margin-bottom: 22px;
}

.service-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--c-metallic-border);
}

.service-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--c-primary-text);
}

.service-checklist li svg {
  color: var(--c-cyan);
  flex-shrink: 0;
  margin-top: 3px;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--c-metallic-border);
}

.target-audience {
  font-size: 0.8rem;
  color: var(--c-muted-text);
}

.target-audience strong {
  color: var(--c-primary-text);
  display: block;
}

/* ==========================================================================
   INTERACTIVE COST ESTIMATOR WIDGET
   ========================================================================== */
.estimator-wrapper {
  background: var(--c-surface);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.estimator-options {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.estimator-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-primary-text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.estimator-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.radio-card {
  position: relative;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  background: var(--c-deep);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  height: 100%;
}

.radio-card-label svg {
  color: var(--c-muted-text);
  margin-bottom: 8px;
  transition: var(--transition-fast);
}

.radio-card-label .title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-primary-text);
  margin-bottom: 4px;
}

.radio-card-label .sub {
  font-size: 0.72rem;
  color: var(--c-muted-text);
}

.radio-card input:checked + .radio-card-label {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--c-cyan);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.radio-card input:checked + .radio-card-label svg {
  color: var(--c-cyan);
}

.estimator-summary-box {
  background: var(--c-deep);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.summary-heading {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-metallic-border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.summary-label {
  color: var(--c-muted-text);
}

.summary-val {
  font-weight: 600;
  color: var(--c-primary-text);
}

.summary-price-box {
  margin-top: 24px;
  padding: 20px;
  background: rgba(17, 25, 39, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  text-align: center;
}

.price-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted-text);
  margin-bottom: 4px;
}

.price-est {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--c-cyan);
}

.price-note {
  font-size: 0.75rem;
  color: var(--c-muted-text);
  margin-top: 4px;
}

/* ==========================================================================
   WORKFLOW SECTION
   ========================================================================== */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.workflow-card {
  background: var(--c-surface);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.workflow-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-metallic-border-hover);
  box-shadow: var(--shadow-subtle);
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(56, 189, 248, 0.35);
  margin-bottom: 14px;
  line-height: 1;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-primary-text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--c-muted-text);
  line-height: 1.6;
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio-filter-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--c-surface);
  border: 1px solid var(--c-metallic-border);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-muted-text);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: var(--c-primary-text);
  border-color: var(--c-metallic-border-hover);
}

.filter-btn.active {
  background: var(--c-primary-text);
  color: var(--c-base);
  border-color: #FFFFFF;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--c-surface);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-metallic-border-hover);
  box-shadow: var(--shadow-lift);
}

.project-thumb {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--c-deep);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.05);
}

.project-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(14, 17, 29, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-primary-text);
  z-index: 2;
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.project-client {
  font-size: 0.78rem;
  color: var(--c-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.project-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-primary-text);
  line-height: 1.35;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.86rem;
  color: var(--c-muted-text);
  line-height: 1.55;
  margin-bottom: 18px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: rgba(14, 17, 29, 0.7);
  border: 1px solid var(--c-metallic-border);
  color: var(--c-muted-text);
}

.project-impact-box {
  padding: 10px 12px;
  background: rgba(56, 189, 248, 0.06);
  border-left: 2px solid var(--c-cyan);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 0.78rem;
  color: var(--c-primary-text);
  line-height: 1.4;
}

/* Client Row & Domain Badge */
.project-client-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.project-domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  padding: 2px 9px;
}

/* ==========================================================================
   COMPARISON SECTION (WHY CHOOSE US)
   ========================================================================== */
.comparison-table-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comp-table th {
  padding: 20px 24px;
  background: rgba(16, 23, 37, 0.95);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-bottom: 1px solid var(--c-metallic-border);
}

.comp-table th.col-gamatech {
  color: var(--c-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.comp-table td {
  padding: 20px 24px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--c-metallic-border);
  vertical-align: middle;
}

.comp-table tr:last-child td {
  border-bottom: none;
}

.comp-table td.col-aspect {
  font-weight: 700;
  color: var(--c-primary-text);
  width: 25%;
}

.comp-table td.col-gamatech {
  color: #FFFFFF;
  background: rgba(56, 189, 248, 0.04);
  font-weight: 500;
  width: 45%;
}

.comp-table td.col-others {
  color: var(--c-muted-text);
  width: 30%;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.testi-card {
  background: var(--c-surface);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.testi-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-metallic-border-hover);
  box-shadow: var(--shadow-subtle);
}

.testi-stars {
  display: flex;
  gap: 3px;
  color: #F59E0B;
  margin-bottom: 16px;
}

.testi-content {
  font-size: 0.9rem;
  color: var(--c-primary-text);
  line-height: 1.6;
  margin-bottom: 24px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--c-metallic-border);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 1px solid var(--c-metallic-border);
  color: var(--c-cyan);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-primary-text);
}

.author-info p {
  font-size: 0.75rem;
  color: var(--c-muted-text);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-accordion-wrap {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--c-metallic-border-hover);
}

.faq-question {
  width: 100%;
  padding: 22px 26px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-primary-text);
  cursor: pointer;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(14, 17, 29, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-cyan);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 26px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 26px 22px;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--c-muted-text);
  line-height: 1.7;
}

/* ==========================================================================
   CONTACT SECTION & FORM
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--c-surface);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-method-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--c-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-text h5 {
  font-size: 0.85rem;
  color: var(--c-muted-text);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-method-text p,
.contact-method-text a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-primary-text);
  line-height: 1.4;
}

.contact-method-text a:hover {
  color: var(--c-cyan);
}

.contact-form-card {
  background: var(--c-surface);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lift);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-primary-text);
  margin-bottom: 8px;
}

.form-label span.req {
  color: #ef4444;
}

.form-control {
  width: 100%;
  background: var(--c-deep);
  border: 1px solid var(--c-metallic-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.92rem;
  color: var(--c-primary-text);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--c-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
  background: var(--c-surface);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.form-feedback {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #ef4444;
}

/* Alert Notification */
.alert-box {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--c-deep);
  border-top: 1px solid var(--c-metallic-border);
  padding: 70px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--c-muted-text);
  line-height: 1.65;
  margin-top: 14px;
  max-width: 320px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-primary-text);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--c-muted-text);
}

.footer-links a:hover {
  color: var(--c-cyan);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--c-metallic-border);
  font-size: 0.82rem;
  color: var(--c-dim-text);
}

/* Floating WhatsApp Widget */
.floating-wa-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #25D366;
  color: #0E111D;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.4);
  transition: var(--transition-fast);
}

.floating-wa-btn:hover {
  transform: translateY(-4px) scale(1.02);
  background: #22c35e;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
  color: #000;
}

.floating-wa-ping {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  border-radius: 50%;
  animation: ping-wave 1.8s infinite;
}

@keyframes ping-wave {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (DESKTOP, TABLET, MOBILE)
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-menu {
    gap: 20px;
  }

  .nav-link {
    font-size: 0.88rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual-card {
    max-width: 600px;
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    max-width: 540px;
    margin: 0 auto;
  }

  .services-grid-pane {
    grid-template-columns: 1fr;
  }

  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .estimator-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 68px;
  }

  .site-header {
    background: var(--header-scrolled-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--c-metallic-border);
  }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-metallic-border);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 12px;
    display: none;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu .nav-link {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    background: rgba(56, 189, 248, 0.1);
    color: var(--c-cyan);
  }

  .nav-menu .nav-link.active::after {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-section {
    padding-top: calc(var(--header-h) + 30px);
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-media-wrapper {
    height: 280px;
  }

  .services-division-tabs {
    flex-direction: column;
  }

  .estimator-cards {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .comp-table {
    display: block;
    overflow-x: auto;
  }

  .floating-wa-btn span {
    display: none;
  }

  .floating-wa-btn {
    padding: 14px;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.02rem;
  }

  .brand-tagline {
    font-size: 0.62rem;
  }

  .brand-logo img {
    width: 38px;
    height: 38px;
  }

  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }

  .mobile-toggle {
    padding: 4px;
  }
}

/* ==========================================================================
   3D SPATIAL CANVAS BACKGROUND (HARDWARE-ACCELERATED & ULTRA-LIGHTWEIGHT)
   ========================================================================== */
.spatial-bg-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* 3D Perspective Cyber Grid Plane */
.spatial-grid-plane {
  position: absolute;
  top: -10%;
  left: -20%;
  width: 140%;
  height: 120%;
  background-image: 
    linear-gradient(to right, var(--spatial-grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--spatial-grid-color) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: rotateX(70deg) translateZ(0) scale(1.15);
  transform-origin: 50% 12%;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 25%, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 25%, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 78%);
  animation: grid-drift 26s linear infinite;
  will-change: transform;
  opacity: 0.9;
}

@keyframes grid-drift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 520px;
  }
}

/* 3D Atmospheric Horizon Glow Line */
.spatial-grid-horizon {
  position: absolute;
  top: 14%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--c-cyan-glow) 20%, 
    var(--spatial-grid-horizon) 50%, 
    var(--c-cyan-glow) 80%, 
    transparent 100%
  );
  filter: blur(1.5px);
  opacity: 0.65;
  box-shadow: 0 0 20px var(--c-cyan);
}

/* Dynamic Ambient Luminous 3D Spheres */
.spatial-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.7;
  will-change: transform;
}

.orb-primary {
  width: 620px;
  height: 620px;
  background: var(--spatial-orb-1);
  top: -120px;
  right: -80px;
  animation: float-orb-1 18s ease-in-out infinite alternate;
}

.orb-secondary {
  width: 520px;
  height: 520px;
  background: var(--spatial-orb-2);
  bottom: 8%;
  left: -80px;
  animation: float-orb-2 22s ease-in-out infinite alternate;
}

.orb-tertiary {
  width: 440px;
  height: 440px;
  background: var(--spatial-orb-3);
  top: 48%;
  right: 12%;
  animation: float-orb-3 16s ease-in-out infinite alternate;
}

@keyframes float-orb-1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-50px, 70px, 0) scale(1.12); }
}

@keyframes float-orb-2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(70px, -50px, 0) scale(1.14); }
}

@keyframes float-orb-3 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-40px, -40px, 0) scale(0.9); }
}

/* 3D Floating Geometry Layer (Mouse / Parallax Reactive) */
.spatial-floating-layer {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.22s cubic-bezier(0.12, 0.85, 0.25, 1);
}

/* Isometric 3D Microchip & Hardware Cubes */
.tech-cube {
  position: absolute;
  width: 64px;
  height: 64px;
  transform-style: preserve-3d;
  will-change: transform;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.35));
}

.cube-1 {
  top: 19%;
  left: 6%;
  animation: cube-float-1 12s ease-in-out infinite alternate;
  transform: rotateX(25deg) rotateY(-35deg) scale3d(0.85, 0.85, 0.85);
}

.cube-2 {
  top: 58%;
  right: 6%;
  animation: cube-float-2 15s ease-in-out infinite alternate;
  transform: rotateX(30deg) rotateY(45deg) scale3d(1.05, 1.05, 1.05);
}

.cube-3 {
  top: 84%;
  left: 12%;
  animation: cube-float-3 14s ease-in-out infinite alternate;
  transform: rotateX(-20deg) rotateY(30deg) scale3d(0.72, 0.72, 0.72);
  opacity: 0.78;
}

/* Faces of the 3D Cube (Pure CSS Vector Shading) */
.cube-face {
  position: absolute;
  inset: 0;
  border: 1px solid var(--cube-border);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 4px;
}

.cube-face.top {
  background: var(--cube-face-top);
  transform: rotateX(90deg) translateZ(32px);
  box-shadow: inset 0 0 12px var(--c-cyan-glow);
}

.cube-face.left {
  background: var(--cube-face-left);
  transform: rotateY(-90deg) translateZ(32px);
}

.cube-face.right {
  background: var(--cube-face-right);
  transform: translateZ(32px);
}

@keyframes cube-float-1 {
  0% { transform: translateY(0) rotateX(25deg) rotateY(-35deg); }
  100% { transform: translateY(-24px) rotateX(32deg) rotateY(-25deg); }
}

@keyframes cube-float-2 {
  0% { transform: translateY(0) rotateX(30deg) rotateY(45deg); }
  100% { transform: translateY(-28px) rotateX(20deg) rotateY(60deg); }
}

@keyframes cube-float-3 {
  0% { transform: translateY(0) rotateX(-20deg) rotateY(30deg); }
  100% { transform: translateY(-18px) rotateX(-12deg) rotateY(45deg); }
}

/* Floating Circuit Nodes & Energy Points */
.tech-node {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 10px var(--c-cyan), 0 0 20px var(--c-cyan);
  animation: node-pulse 3.2s infinite ease-in-out;
}

.node-1 { top: 26%; right: 19%; animation-delay: 0.2s; }
.node-2 { top: 48%; left: 8%; animation-delay: 1.1s; }
.node-3 { top: 73%; right: 14%; animation-delay: 0.7s; }
.node-4 { top: 89%; left: 30%; animation-delay: 1.9s; }

@keyframes node-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.4); }
}

@media (max-width: 768px) {
  .spatial-grid-plane {
    background-size: 38px 38px;
    transform: rotateX(72deg) translateZ(0) scale(1.2);
  }
  .tech-cube.cube-1 { display: none; }
  .tech-cube.cube-3 { display: none; }
  .tech-cube.cube-2 {
    width: 48px;
    height: 48px;
    top: 42%;
    right: 4%;
  }
  .cube-face.top, .cube-face.left, .cube-face.right {
    transform: translateZ(24px);
  }
  .cube-face.top { transform: rotateX(90deg) translateZ(24px); }
  .cube-face.left { transform: rotateY(-90deg) translateZ(24px); }
}

@media (prefers-reduced-motion: reduce) {
  .spatial-grid-plane,
  .spatial-orb,
  .tech-cube,
  .tech-node {
    animation: none !important;
  }
}

/* ==========================================================================
   LIGHT THEME ADAPTATIONS (CRISP & BALANCED CONTRAST)
   ========================================================================== */
html[data-theme="light"] body {
  background-color: var(--c-base);
  color: var(--c-primary-text);
}

html[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #334155 100%);
  color: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.25);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.2);
}

html[data-theme="light"] .btn-primary:hover {
  background: #0284C7;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
}

html[data-theme="light"] .btn-secondary {
  background: #FFFFFF;
  color: var(--c-primary-text);
  border-color: var(--c-metallic-border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .btn-secondary:hover {
  background: #F1F5F9;
  color: var(--c-cyan);
  border-color: var(--c-cyan);
}

html[data-theme="light"] .badge-pill {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--c-metallic-border);
  color: var(--c-primary-text);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .badge-pill.cyan {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.3);
  color: #0284C7;
}

html[data-theme="light"] .card-tab-nav {
  background: #F1F5F9;
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .card-tab-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .hero-overlay-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .division-tab-btn {
  background: #FFFFFF;
  border-color: var(--c-metallic-border);
}

html[data-theme="light"] .division-tab-btn.active {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.3);
}

html[data-theme="light"] .division-tab-btn.active .tab-icon {
  color: #FFFFFF;
}

html[data-theme="light"] .filter-btn {
  background: #FFFFFF;
  border-color: var(--c-metallic-border);
}

html[data-theme="light"] .filter-btn.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

html[data-theme="light"] .project-category-tag {
  background: rgba(255, 255, 255, 0.94);
  color: #0F172A;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .tech-tag {
  background: #F1F5F9;
  color: #475569;
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .project-impact-box {
  background: rgba(2, 132, 199, 0.07);
  color: #0F172A;
}

html[data-theme="light"] .comp-table th {
  background: #F1F5F9;
  color: #0F172A;
}

html[data-theme="light"] .comp-table th.col-gamatech {
  background: rgba(2, 132, 199, 0.12);
  color: var(--c-cyan);
}

html[data-theme="light"] .comp-table td.col-gamatech {
  background: rgba(2, 132, 199, 0.04);
  color: #0F172A;
}

html[data-theme="light"] .comp-table td.col-aspect {
  color: #0F172A;
}

html[data-theme="light"] .comp-table td.col-others {
  color: #475569;
}

html[data-theme="light"] .author-avatar {
  background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
  border-color: var(--c-metallic-border);
}

html[data-theme="light"] .faq-icon {
  background: #F1F5F9;
}

html[data-theme="light"] .form-control {
  background: #FFFFFF;
  color: #0F172A;
  border-color: rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] .form-control:focus {
  background: #FFFFFF;
  border-color: var(--c-cyan);
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.22);
}

html[data-theme="light"] .radio-card input:checked + .radio-card-label {
  background: rgba(2, 132, 199, 0.08);
  border-color: var(--c-cyan);
}

html[data-theme="light"] .summary-price-box {
  background: #FFFFFF;
  border-color: rgba(2, 132, 199, 0.28);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
}

html[data-theme="light"] .card-dots .dot-red { background: #ef4444; }
html[data-theme="light"] .card-dots .dot-yellow { background: #eab308; }
html[data-theme="light"] .card-dots .dot-green { background: #22c55e; }

/* Light Mode Overrides for Domain Badge */
html[data-theme="light"] .project-domain-badge {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #0284C7;
}

@media (max-width: 768px) {
  html[data-theme="light"] .nav-menu .nav-link:hover,
  html[data-theme="light"] .nav-menu .nav-link.active {
    background: rgba(2, 132, 199, 0.08);
    color: #0284C7;
  }
}
