/* ============================================================
   DUAL-MODE PORTFOLIO — Bellalux × Kerim
   Design System & Styles — v3
   ============================================================ */

/* --- CSS Custom Properties --------------------------------- */
:root {
  /* Background */
  --bg-primary: #050508;
  --bg-secondary: #0a0a14;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.05);

  /* Accent — Gold */
  --accent: #c9a84c;
  --accent-light: #d4b860;
  --accent-dark: #b8922e;
  --accent-glow: rgba(201, 168, 76, 0.25);
  --accent-glow-strong: rgba(201, 168, 76, 0.5);

  /* Kerim secondary accent */
  --kerim-blue: #6c8cff;
  --kerim-blue-glow: rgba(108, 140, 255, 0.25);

  /* Text */
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0b0;
  --text-muted: #686878;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(201, 168, 76, 0.3);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 8px 40px var(--accent-glow);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.6);

  /* Spacing */
  --section-padding: 120px;
  --section-padding-mobile: 64px;
  --container-max: 1200px;
  --container-narrow: 900px;
  --grid-gap: 24px;
  --grid-gap-sm: 16px;
  --card-padding: 32px;
  --card-radius: 16px;
  --btn-radius: 8px;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --fs-hero: clamp(3rem, 6vw, 5.5rem);
  --fs-h1: clamp(2.2rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 2.5vw, 2.2rem);
  --fs-h3: clamp(1.2rem, 1.8vw, 1.5rem);
  --fs-body: 1.05rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;
  --lh-body: 1.7;
  --lh-heading: 1.15;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;

  /* Nav */
  --nav-height: 72px;
  --nav-height-scrolled: 60px;
}

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

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

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-secondary);
  background: var(--bg-primary);
  overflow-x: hidden;
  transition: opacity var(--duration-normal) var(--ease-out);
}

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

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

ul {
  list-style: none;
}

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

/* --- Container --------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  color: var(--text-primary);
  line-height: var(--lh-heading);
  font-weight: 700;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: 40px;
}

.section-title {
  font-size: var(--fs-h1);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Scroll Progress Bar ----------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  z-index: 10000;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  width: 0%;
  transition: width 50ms linear;
  pointer-events: none;
}

.mode-kerim .scroll-progress {
  background: linear-gradient(90deg, var(--kerim-blue), #8aa4ff);
}

/* --- Preloader --------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s var(--ease-out);
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo-inner {
  width: 80px;
  height: 80px;
  background: var(--accent);
  color: #0a0a0a;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 2.5rem;
  animation: preloaderPulse 1.2s var(--ease-in-out) infinite;
}

.mode-kerim .preloader-logo-inner {
  background: var(--kerim-blue);
}

.preloader-ring {
  position: absolute;
  inset: -12px;
  border-radius: 28px;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  animation: preloaderSpin 1s linear infinite;
}

.mode-kerim .preloader-ring {
  border-top-color: var(--kerim-blue);
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px var(--accent-glow); }
  50% { transform: scale(1.08); box-shadow: 0 0 60px var(--accent-glow-strong); }
}

@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}

/* --- Language Switcher ------------------------------------- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2px;
  backdrop-filter: blur(12px);
}

.lang-btn {
  padding: 4px 10px;
  border-radius: 18px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.lang-btn.active {
  color: #0a0a0a;
  background: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.lang-btn:hover:not(.active) {
  color: var(--text-primary);
}

.mode-kerim .lang-btn.active {
  background: var(--kerim-blue);
  box-shadow: 0 2px 8px var(--kerim-blue-glow);
}

/* --- Mode Toggle Pill -------------------------------------- */
.mode-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 40px;
  padding: 3px;
  gap: 2px;
  backdrop-filter: blur(12px);
}

.mode-toggle-btn {
  padding: 8px 20px;
  border-radius: 40px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  position: relative;
}

.mode-toggle-btn.active {
  color: #0a0a0a;
  background: var(--accent);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.mode-toggle-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* --- Navigation -------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav.scrolled {
  height: var(--nav-height-scrolled);
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  z-index: 1001;
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #0a0a0a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.nav-sub {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color var(--duration-fast) var(--ease-out);
}

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

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

.nav-cta {
  padding: 10px 22px;
  font-size: var(--fs-sm);
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0a0a0a;
  border-radius: var(--btn-radius);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav .nav-link {
  font-size: 1.5rem;
  font-weight: 600;
}

.mobile-nav .nav-cta {
  font-size: 1rem;
  padding: 14px 32px;
}

/* --- Mode Visibility System -------------------------------- */
.mode-bellalux [data-mode="kerim"],
.mode-kerim [data-mode="bellalux"] {
  display: none;
}

[data-mode="both"] {
  display: block;
}

/* Kerim mode accent overrides */
.mode-kerim .nav-brand-icon {
  background: var(--kerim-blue);
}

.mode-kerim .nav-cta {
  background: linear-gradient(135deg, var(--kerim-blue), #4a6cf7);
}

.mode-kerim .mode-toggle-btn.active {
  background: var(--kerim-blue);
  box-shadow: 0 4px 12px var(--kerim-blue-glow);
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--btn-radius);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0a0a0a;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 20px;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  transform: translateY(-3px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* --- Sections ---------------------------------------------- */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .eyebrow {
  margin-bottom: 12px;
}

.section-header .section-subtitle {
  margin: 12px auto 0;
}

/* --- Hero Section ------------------------------------------ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  animation: orbFloat 20s ease-in-out infinite;
}

.hero-bg-orb--1 {
  width: 700px;
  height: 700px;
  background: var(--accent);
  top: -25%;
  right: -15%;
}

.hero-bg-orb--2 {
  width: 500px;
  height: 500px;
  background: #7c3aed;
  bottom: -20%;
  left: -10%;
  animation-delay: -7s;
}

.hero-bg-orb--3 {
  width: 350px;
  height: 350px;
  background: var(--kerim-blue);
  top: 40%;
  left: 40%;
  animation-delay: -14s;
  opacity: 0.06;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -40px) scale(1.08); }
  50% { transform: translate(-30px, 30px) scale(0.93); }
  75% { transform: translate(-50px, -15px) scale(1.04); }
}

/* Hero particles canvas */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Hero text stagger reveal */
[data-hero-reveal] .hero-tagline {
  animation: fadeSlideUp 0.7s var(--ease-out) 0.1s forwards;
  opacity: 0;
}

[data-hero-reveal] .hero-title {
  animation: fadeSlideUp 0.7s var(--ease-out) 0.25s forwards;
  opacity: 0;
}

[data-hero-reveal] .hero-desc {
  animation: fadeSlideUp 0.7s var(--ease-out) 0.4s forwards;
  opacity: 0;
}

[data-hero-reveal] .cta-row {
  animation: fadeSlideUp 0.7s var(--ease-out) 0.55s forwards;
  opacity: 0;
}

[data-hero-reveal] .hero-metric-strip {
  animation: fadeSlideUp 0.7s var(--ease-out) 0.7s forwards;
  opacity: 0;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Cursor glow */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  will-change: left, top;
}

.cursor-glow.visible {
  opacity: 0.6;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-tagline {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 6px 14px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: 40px;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title .highlight {
  display: block;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 540px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image-wrap {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual-glow {
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-glow), transparent, rgba(108, 140, 255, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-metric-strip {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.hero-metric-strip-item {
  text-align: left;
}

.hero-metric-strip-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hero-metric-strip-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Logo Trust Bar ---------------------------------------- */
.logo-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.logo-bar-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.logo-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  filter: grayscale(1);
  opacity: 0.45;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: default;
}

.logo-bar-item:hover {
  filter: grayscale(0);
  opacity: 1;
  color: var(--text-primary);
}

.logo-bar-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: opacity var(--duration-normal) var(--ease-out);
}

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 28px 20px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all var(--duration-normal) var(--ease-out);
  overflow: hidden;
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.stat-card.mega {
  grid-column: span 2;
  background: rgba(201, 168, 76, 0.04);
  border-color: var(--border-accent);
}

.stat-number {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-number--xl {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.stat-label {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* --- Process Section --------------------------------------- */
.process-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--grid-gap);
  position: relative;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  backdrop-filter: blur(12px);
  transition: all var(--duration-normal) var(--ease-out);
}

.process-step:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.process-step-num {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #0a0a0a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px;
  position: relative;
}

.process-step-num::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  width: calc(((100vw - 48px) / 5) - 80px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.2;
}

.process-step:last-child .process-step-num::after {
  display: none;
}

.process-step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.process-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

/* --- Results & Work Cards ---------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.02) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 1s var(--ease-out);
}

.card:hover .card-image::after {
  transform: translateX(100%);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

/* Animated border on card hover */
.card {
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--card-radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--accent), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.card:hover::before {
  opacity: 1;
}

.card:hover .card-image img {
  transform: scale(1.03);
}

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Services Grid ----------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  backdrop-filter: blur(12px);
  transition: all var(--duration-normal) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-list {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}

.service-list li::before {
  content: '· ';
  color: var(--accent);
  font-weight: 700;
}

/* --- Metrics Row (Kerim) ----------------------------------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all var(--duration-normal) var(--ease-out);
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 140, 255, 0.3);
  box-shadow: 0 8px 40px var(--kerim-blue-glow);
}

.metric-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--kerim-blue);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.metric-emphasis {
  color: #4ade80 !important;
}

/* --- About Section (Kerim) --------------------------------- */
.about-content {
  max-width: 700px;
  margin: 0 auto;
}

.about-text {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  padding: 16px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.about-feature-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- Certifications Grid (Kerim) --------------------------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all var(--duration-normal) var(--ease-out);
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 140, 255, 0.3);
  box-shadow: 0 8px 40px var(--kerim-blue-glow);
}

.cert-image {
  width: 120px;
  height: 80px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cert-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.cert-issuer {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cert-badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #4ade80;
  padding: 3px 10px;
  background: rgba(74, 222, 128, 0.1);
  border-radius: 40px;
}

/* --- Timeline (Kerim) -------------------------------------- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--kerim-blue), var(--border-subtle), var(--kerim-blue));
  opacity: 0.4;
}

.timeline-entry {
  position: relative;
  padding-bottom: 40px;
}

.timeline-entry:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--kerim-blue);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--kerim-blue-glow);
}

.timeline-entry:first-child .timeline-dot {
  width: 14px;
  height: 14px;
  left: -38px;
  top: 4px;
}

.timeline-date {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--kerim-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.timeline-company {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Skills Grid (Kerim) ----------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  backdrop-filter: blur(12px);
  transition: all var(--duration-normal) var(--ease-out);
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 140, 255, 0.3);
  box-shadow: 0 8px 40px var(--kerim-blue-glow);
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.skill-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.skill-list {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}

.skill-list li::before {
  content: '· ';
  color: var(--kerim-blue);
  font-weight: 700;
}

/* --- Footer ------------------------------------------------ */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #0a0a0a;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
}

.mode-kerim .footer-logo-icon {
  background: var(--kerim-blue);
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-contact-item:hover {
  color: var(--accent);
}

.mode-kerim .footer-contact-item:hover {
  color: var(--kerim-blue);
}

.footer-contact-icon {
  font-size: 1rem;
  opacity: 0.6;
}

.footer-bottom {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

/* --- Gallery — Shared Item Styles -------------------------- */
.gallery-item {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  transition: all var(--duration-normal) var(--ease-out);
}

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5, 5, 8, 0.85));
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  pointer-events: none;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

/* Play icon for video items */
.gallery-item-video::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0.8;
  transition: opacity var(--duration-fast) var(--ease-out);
  pointer-events: none;
}

.gallery-item-video:hover::after {
  opacity: 0;
}

/* --- Gallery — Masonry Grid (Images) ----------------------- */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 180px;
  gap: var(--grid-gap);
}

.gallery-item--square {
  grid-row: span 2;  /* 360px height for 1:1 */
}

.gallery-item--tall {
  grid-row: span 3;  /* 540px height for 9:16 portrait */
}

.gallery-item--wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item--hero {
  grid-column: span 2;
  grid-row: span 3;
}

/* --- Gallery — Videos Row ---------------------------------- */
.gallery-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}

.gallery-item-video {
  /* no forced aspect ratio — videos play at their natural size */
}

.gallery-item-video video {
  object-fit: contain;
  pointer-events: none; /* clicks pass through to item */
}

/* --- Gallery — Landing Pages Row --------------------------- */
.gallery-landing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

/* --- Lightbox ---------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 5, 8, 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img,
.lightbox-img-wrap video {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.lightbox-img-wrap video {
  min-width: 400px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2001;
  transition: all var(--duration-fast) var(--ease-out);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2001;
  transition: all var(--duration-fast) var(--ease-out);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 16px;
  border-radius: 40px;
  border: 1px solid var(--border-subtle);
}

/* --- Rotating Hero Words ----------------------------------- */
.hero-rotating-word {
  position: relative;
  display: inline-block;
}

.hero-rotating-word .word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.hero-rotating-word .word.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

/* --- ROI Calculator ---------------------------------------- */
.calculator {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 40px;
  backdrop-filter: blur(12px);
  max-width: 700px;
  margin: 0 auto;
}

.calculator-row {
  margin-bottom: 28px;
}

.calculator-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.calculator-label span {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.calculator-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border-light);
  outline: none;
}

.calculator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 16px var(--accent-glow);
  transition: transform 0.15s var(--ease-out);
}

.calculator-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calculator-input {
  width: 120px;
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  text-align: center;
  transition: border-color var(--duration-fast);
}

.calculator-input:focus {
  outline: none;
  border-color: var(--accent);
}

.calculator-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.calculator-result {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s var(--ease-out);
}

.calculator-result:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.calculator-result-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 4px;
  transition: color 0.3s;
}

.calculator-result-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* --- Testimonials Carousel --------------------------------- */
.testimonials-track-wrap {
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: var(--grid-gap);
  transition: transform 0.5s var(--ease-out);
}

.testimonial-card {
  min-width: 380px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: all var(--duration-normal) var(--ease-out);
}

.testimonial-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text-primary);
  font-size: var(--fs-sm);
}

.testimonial-role {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.testimonial-metric {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: 40px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.testimonials-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* --- Live Activity Notifications --------------------------- */
.live-toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
}

.live-toast {
  background: rgba(10, 10, 18, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 20px;
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  min-width: 300px;
  max-width: 380px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: toastSlideIn 0.4s var(--ease-out), toastSlideOut 0.35s var(--ease-out) 3.5s forwards;
  pointer-events: auto;
}

.live-toast-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

.live-toast strong {
  color: var(--text-primary);
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- War Room Dashboard ------------------------------------ */
.war-room {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.war-room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.3);
}

.war-room-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.war-room-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

.war-room-status {
  font-size: var(--fs-xs);
  color: #4ade80;
  font-weight: 600;
}

.war-room-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
}

.war-room-card {
  background: var(--bg-primary);
  padding: 24px;
  text-align: center;
  transition: all var(--duration-fast);
}

.war-room-card:hover {
  background: rgba(201, 168, 76, 0.03);
}

.war-room-value {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.war-room-change {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.war-room-change.up {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.war-room-change.down {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}

.war-room-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.war-room-chart {
  grid-column: span 4;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 140px;
}

.war-room-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.war-room-bar {
  width: 100%;
  max-width: 60px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), rgba(201, 168, 76, 0.3));
  transition: height 0.6s var(--ease-out);
  min-height: 4px;
}

.war-room-bar-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* --- Growth OS Interactive Process ------------------------- */
.growth-os {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: var(--border-subtle);
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.growth-os-step {
  background: var(--bg-primary);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.growth-os-step:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  z-index: 2;
  border-color: var(--border-accent);
}

.growth-os-step:hover .growth-os-step-num {
  background: var(--accent);
  color: #0a0a0a;
  transform: scale(1.2);
}

.growth-os-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 16px;
  transition: all 0.35s var(--ease-out);
}

.growth-os-step-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.growth-os-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.growth-os-step-desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s var(--ease-out), margin 0.3s var(--ease-out);
  opacity: 0;
}

.growth-os-step:hover .growth-os-step-desc {
  max-height: 80px;
  opacity: 1;
  margin-top: 8px;
}

.growth-os-step-sub {
  font-size: var(--fs-xs);
  color: var(--accent);
  margin-top: 4px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.3s var(--ease-out);
}

.growth-os-step:hover .growth-os-step-sub {
  opacity: 1;
  transform: translateY(0);
}

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

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* --- Audit Tool Widget ------------------------------------- */
.audit-widget {
  max-width: 800px;
  margin: 0 auto;
}

.audit-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.audit-input {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--btn-radius);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font);
  backdrop-filter: blur(12px);
  transition: all var(--duration-fast) var(--ease-out);
}

.audit-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.audit-input::placeholder {
  color: var(--text-muted);
}

.audit-btn {
  flex-shrink: 0;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  min-width: 180px;
  justify-content: center;
}

.audit-hint {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 12px;
}

.audit-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: preloaderSpin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}

.audit-results {
  margin-top: 40px;
  animation: fadeSlideUp 0.5s var(--ease-out);
}

/* Grade Row */
.audit-grade-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
}

.audit-grade-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--border-subtle);
  flex-shrink: 0;
  transition: all 0.5s var(--ease-out);
}

.audit-grade-letter {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.audit-grade-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.audit-grade-detail {
  flex: 1;
  min-width: 0;
}

.audit-scanned-url {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
  margin-bottom: 4px;
}

.audit-scanned-time {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Score Bars */
.audit-scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.audit-score-item {
  text-align: center;
  padding: 16px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  backdrop-filter: blur(12px);
}

.audit-score-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.audit-score-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sections */
.audit-section {
  margin-bottom: 24px;
}

.audit-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.audit-section-sub {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 12px;
  margin-top: -8px;
}

/* Issues */
.audit-issue {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.audit-issue-severity {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  margin-top: 2px;
}

.audit-issue-severity.critical { background: rgba(248,113,113,0.15); color: #f87171; }
.audit-issue-severity.high { background: rgba(251,146,60,0.15); color: #fb923c; }
.audit-issue-severity.medium { background: rgba(250,204,21,0.15); color: #facc15; }

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

.audit-issue-category {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Quick Wins */
.audit-quick-win {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(74,222,128,0.04);
  border: 1px solid rgba(74,222,128,0.1);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.audit-quick-win-effort {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(74,222,128,0.15);
  color: #4ade80;
  flex-shrink: 0;
  margin-top: 2px;
  white-space: nowrap;
}

.audit-quick-win-text {
  color: var(--text-secondary);
  flex: 1;
}

.audit-quick-win-cat {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Pixel List */
.audit-pixel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: var(--fs-sm);
}

.audit-pixel-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.audit-pixel-icon.found { background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,0.4); }
.audit-pixel-icon.missing { background: var(--text-muted); }

.audit-pixel-name {
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.audit-pixel-id {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-family: monospace;
}

.audit-pixel-purpose {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* Tech Stack */
.audit-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audit-tech-tag {
  padding: 6px 14px;
  border-radius: 40px;
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.audit-tech-tag.found { border-color: rgba(74,222,128,0.3); color: #4ade80; background: rgba(74,222,128,0.05); }
.audit-tech-tag.legacy { border-color: rgba(250,204,21,0.3); color: #facc15; background: rgba(250,204,21,0.05); }
.audit-no-tech { color: var(--text-muted); font-size: var(--fs-sm); }

/* Ad Library Links */
.audit-ad-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.audit-ad-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.audit-ad-link:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.audit-ad-link-name {
  font-weight: 700;
  color: var(--accent);
  font-size: var(--fs-sm);
}

.audit-ad-link-desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.4;
}

.audit-ad-link-arrow {
  font-size: var(--fs-xs);
  color: var(--accent);
  margin-top: 4px;
}

/* No pixels notice */
.audit-no-data {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-align: center;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

/* Error */
.audit-error {
  padding: 20px 24px;
  background: rgba(248,113,113,0.06);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: 10px;
  color: #f87171;
  font-size: var(--fs-sm);
  text-align: center;
  margin-top: 20px;
}

/* --- Utility ----------------------------------------------- */
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================ */

/* ≤1280px */
@media (max-width: 1280px) {
  .hero-grid {
    gap: 40px;
  }

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

  .process-flow {
    gap: 12px;
  }

  .process-step-num::after {
    display: none;
  }

  .logo-bar-track {
    gap: 40px;
  }
}

/* ≤1024px */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    order: 1;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-visual {
    order: 0;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-metric-strip {
    justify-content: center;
  }

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

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .process-flow {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .process-step {
    padding: 16px 8px;
  }

  .process-step-desc {
    font-size: var(--fs-xs);
  }

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

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

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

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

  .gallery-videos {
    grid-template-columns: 1fr;
  }

  .war-room-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .war-room-chart { grid-column: span 2; }
  .calculator-results { grid-template-columns: repeat(3, 1fr); }
  .testimonial-card { min-width: 300px; }
  .growth-os { grid-template-columns: repeat(3, 1fr); }
  .growth-os-step-desc { max-height: 80px !important; opacity: 1; }

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

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

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

  .nav-right .mode-toggle {
    order: -1;
  }

  .nav-cta {
    display: none;
  }

  /* Mobile: gallery wide/hero items drop to single column */
  .gallery-item--wide,
  .gallery-item--hero {
    grid-column: span 1;
    grid-row: span 2;
  }

  /* Language switcher in mobile nav */
  .nav-right .lang-switcher {
    display: none;
  }
}

/* ≤768px */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --card-padding: 24px;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero-visual {
    max-width: 260px;
  }

  .hero-metric-strip {
    flex-wrap: wrap;
    gap: 16px;
  }

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

  .stat-card.mega {
    grid-column: span 1;
  }

  .process-flow {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
  }

  .card-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .services-grid,
  .skills-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

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

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

  .gallery-item--wide,
  .gallery-item--hero {
    grid-column: span 1;
    grid-row: span 2;
  }

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

  .gallery-videos {
    grid-template-columns: 1fr;
  }

  .war-room-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .war-room-chart { grid-column: span 2; }
  .war-room-header {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .calculator-results { grid-template-columns: repeat(3, 1fr); }
  .testimonial-card { min-width: 300px; }
  .growth-os { grid-template-columns: repeat(3, 1fr); }
  .growth-os-step-desc { max-height: 80px !important; opacity: 1; }

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

  .about-features {
    grid-template-columns: 1fr;
  }

  .logo-bar-track {
    gap: 24px;
  }

  .logo-bar-item {
    font-size: var(--fs-xs);
  }

  .footer-contact {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  /* Mode toggle pill smaller on tablet */
  .mode-toggle-btn {
    padding: 6px 14px;
    font-size: var(--fs-xs);
  }
}

/* ≤640px */
@media (max-width: 640px) {
  .cert-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .gallery-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  /* All gallery items become single column, uniform height */
  .gallery-item--square,
  .gallery-item--tall,
  .gallery-item--wide,
  .gallery-item--hero {
    grid-column: span 1 !important;
    grid-row: span 2 !important;
  }

  .gallery-landing {
    grid-template-columns: 1fr;
  }

  .gallery-videos {
    grid-template-columns: 1fr;
  }

  .war-room-grid { grid-template-columns: 1fr; }
  .war-room-chart { grid-column: span 1; height: 100px; }
  .war-room-header { flex-direction: column; gap: 6px; text-align: center; }
  .calculator { padding: 24px 16px; }
  .calculator-results { grid-template-columns: repeat(2, 1fr); }
  .calculator-input { width: 90px; font-size: 0.9rem; }
  .testimonial-card { min-width: 260px; padding: 24px; }
  .growth-os { grid-template-columns: 1fr; }
  .growth-os-step { padding: 20px 16px; }
  .growth-os-step-desc { max-height: 80px !important; opacity: 1; }
  .live-toast { min-width: auto; max-width: calc(100vw - 48px); }

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

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

  .stat-card {
    padding: 20px 16px;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 40px) 0 40px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* Mode toggle even more compact */
  .mode-toggle {
    border-radius: 30px;
  }

  .mode-toggle-btn {
    padding: 5px 12px;
    font-size: 11px;
  }

  /* Nav brand smaller */
  .nav-brand {
    font-size: 1rem;
  }

  .nav-brand-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
    border-radius: 6px;
  }

  .nav-sub {
    display: none;
  }

  /* Calculator slider and input stack */
  .calculator-row > div:last-child {
    flex-direction: column;
    gap: 8px;
  }

  .calculator-input {
    width: 100%;
  }

  /* Hero metric strip */
  .hero-metric-strip {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .hero-image-wrap {
    max-width: 280px;
  }

  /* Lightbox controls smaller */
  .lightbox-prev,
  .lightbox-next {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-close { top: 16px; right: 16px; width: 36px; height: 36px; font-size: 1.1rem; }

  /* Growth OS touch-friendly */
  .growth-os-step {
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Stat number smaller */
  .stat-number {
    font-size: 1.4rem;
  }
  .stat-number--xl {
    font-size: 1.8rem;
  }

  /* Testimonials dots bigger for touch */
  .testimonials-dot {
    width: 12px;
    height: 12px;
  }
  .testimonials-dot.active {
    width: 32px;
  }
}
