/* ============================================================
   DKCOSM — Global Design System
   Premium Agency Website
   ============================================================ */

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

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* — Brand Colors (shared base) — */
  --dk-night: #0F172A;
  --dk-night-light: #1E293B;
  --dk-white: #F8FAFC;
  --dk-gray-100: #F1F5F9;
  --dk-gray-200: #E2E8F0;
  --dk-gray-300: #CBD5E1;
  --dk-gray-400: #94A3B8;
  --dk-gray-500: #64748B;
  --dk-gray-600: #475569;
  --dk-gray-700: #334155;
  --dk-cyan: #06B6D4;
  --dk-blue: #2563EB;
  --dk-violet: #7C3AED;
  --dk-orange: #F59E0B;

  /* — Page Accent (overridden per page) — */
  --accent: #2563EB;
  --accent-light: #3B82F6;
  --accent-glow: rgba(37, 99, 235, 0.15);

  /* — Typography — */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --fs-hero: clamp(2.5rem, 5.5vw, 4.8rem);
  --fs-h1: clamp(2.2rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.8rem, 3.5vw, 2.8rem);
  --fs-h3: clamp(1.3rem, 2.5vw, 1.8rem);
  --fs-h4: clamp(1.1rem, 2vw, 1.4rem);
  --fs-body: clamp(0.95rem, 1.2vw, 1.1rem);
  --fs-small: clamp(0.8rem, 1vw, 0.9rem);
  --fs-caption: 0.75rem;

  /* — Spacing (Dynamic) — */
  --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --space-sm: clamp(0.5rem, 1vw, 1rem);
  --space-md: clamp(1rem, 1.5vw, 1.5rem);
  --space-lg: clamp(1.5rem, 2.5vw, 2.5rem);
  --space-xl: clamp(2.5rem, 4vw, 4rem);
  --space-2xl: clamp(4rem, 6vw, 6rem);
  --space-3xl: clamp(6rem, 8vw, 8rem);

  /* — Layout — */
  --container-max: 1280px;
  --container-wide: 1440px;
  --container-narrow: 800px;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 28px;
  --border-radius-full: 9999px;

  /* — Shadows — */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 40px var(--accent-glow);

  /* — Transitions — */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --duration-fast: 0.2s;
  --duration: 0.4s;
  --duration-slow: 0.8s;
  --duration-slower: 1.2s;

  /* — Z-Index Scale — */
  --z-base: 1;
  --z-sticky: 100;
  --z-fixed: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-cursor: 500;
}


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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--dk-gray-600);
  background-color: var(--dk-white);
  overflow-x: hidden;
  position: relative;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

::selection {
  background-color: var(--accent);
  color: #fff;
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dk-night);
  letter-spacing: -0.01em;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }

p {
  margin-bottom: 1.2em;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--dk-blue), var(--dk-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.label {
  font-size: var(--fs-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.subtitle {
  font-size: var(--fs-body);
  color: var(--dk-gray-500);
  max-width: 600px;
  line-height: 1.8;
}

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

.section-header .label {
  margin-bottom: var(--space-sm);
  display: block;
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header .subtitle {
  margin-left: auto;
  margin-right: auto;
}


/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

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

section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section--dark {
  background-color: var(--dk-night);
  color: var(--dk-gray-300);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section--alt {
  background-color: var(--dk-gray-100);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-col {
  flex-direction: column;
}


/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 2em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius-full);
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--duration) ease;
}

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

/* Primary CTA */
.btn--primary {
  background: var(--dk-orange);
  color: #fff;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.45);
}

.btn--primary::before {
  background: linear-gradient(135deg, #F59E0B, #F97316);
}

/* Secondary */
.btn--secondary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* Outline */
.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Dark outline */
.btn--outline-dark {
  background: transparent;
  color: var(--dk-night);
  border: 2px solid var(--dk-gray-200);
}

.btn--outline-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Icon within buttons */
.btn .btn-icon {
  width: 1.2em;
  height: 1.2em;
  transition: transform var(--duration) var(--ease-out);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Magnetic button wrapper */
.magnetic-wrap {
  display: inline-block;
  position: relative;
}


/* ============================================================
   6. CARDS
   ============================================================ */
.card {
  background: #fff;
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--dk-gray-200);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity var(--duration) ease;
  pointer-events: none;
}

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

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: all var(--duration) var(--ease-out);
}

.card:hover .card-icon {
  transform: scale(1.08);
  background: var(--accent);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  transition: stroke var(--duration) ease;
}

.card:hover .card-icon svg {
  stroke: #fff;
}

.card h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-xs);
}

.card p {
  font-size: var(--fs-small);
  color: var(--dk-gray-500);
  line-height: 1.7;
}

/* Glass card variant */
.card--glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--dk-gray-300);
}

.card--glass h3 {
  color: #fff;
}

.card--glass:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

/* Dark card variant */
.card--dark {
  background: var(--dk-night-light);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--dk-gray-400);
}

.card--dark h3 { color: #fff; }

.card--dark:hover {
  border-color: rgba(255, 255, 255, 0.15);
}


/* ============================================================
   7. SCROLL REVEAL ANIMATION SYSTEM (data-attributes)
   ============================================================ */

/* -- Base hidden state -- */
[data-reveal] {
  opacity: 0;
  transition: 
    opacity var(--duration-slower) var(--ease-out),
    transform var(--duration-slower) var(--ease-out),
    filter var(--duration-slow) var(--ease-out);
  will-change: transform, opacity;
}

/* -- Reveal directions -- */
[data-reveal="up"] { transform: translateY(60px); }
[data-reveal="down"] { transform: translateY(-60px); }
[data-reveal="left"] { transform: translateX(80px); }
[data-reveal="right"] { transform: translateX(-80px); }
[data-reveal="scale"] { transform: scale(0.85); }
[data-reveal="fade"] { transform: none; }
[data-reveal="rotate"] { transform: rotate(-5deg) translateY(40px); }
[data-reveal="blur"] { transform: translateY(30px); filter: blur(10px); }

/* -- Visible state (when .is-visible is added by JS) -- */
[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0) scale(1) rotate(0);
  filter: blur(0);
}

/* -- Stagger delays (for children within [data-stagger]) -- */
[data-stagger] > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger] > *:nth-child(2) { transition-delay: 0.12s; }
[data-stagger] > *:nth-child(3) { transition-delay: 0.19s; }
[data-stagger] > *:nth-child(4) { transition-delay: 0.26s; }
[data-stagger] > *:nth-child(5) { transition-delay: 0.33s; }
[data-stagger] > *:nth-child(6) { transition-delay: 0.40s; }
[data-stagger] > *:nth-child(7) { transition-delay: 0.47s; }
[data-stagger] > *:nth-child(8) { transition-delay: 0.54s; }
[data-stagger] > *:nth-child(9) { transition-delay: 0.61s; }
[data-stagger] > *:nth-child(10) { transition-delay: 0.68s; }
[data-stagger] > *:nth-child(11) { transition-delay: 0.75s; }
[data-stagger] > *:nth-child(12) { transition-delay: 0.82s; }

/* -- Text split animation (words/chars) -- */
.split-text .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.split-text .char {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.4s var(--ease-out);
}

.split-text.is-visible .char {
  transform: translateY(0);
}

/* Stagger chars */
.split-text .char:nth-child(1) { transition-delay: 0.02s; }
.split-text .char:nth-child(2) { transition-delay: 0.04s; }
.split-text .char:nth-child(3) { transition-delay: 0.06s; }
.split-text .char:nth-child(4) { transition-delay: 0.08s; }
.split-text .char:nth-child(5) { transition-delay: 0.10s; }
.split-text .char:nth-child(6) { transition-delay: 0.12s; }
.split-text .char:nth-child(7) { transition-delay: 0.14s; }
.split-text .char:nth-child(8) { transition-delay: 0.16s; }
.split-text .char:nth-child(9) { transition-delay: 0.18s; }
.split-text .char:nth-child(10) { transition-delay: 0.20s; }
.split-text .char:nth-child(11) { transition-delay: 0.22s; }
.split-text .char:nth-child(12) { transition-delay: 0.24s; }
.split-text .char:nth-child(13) { transition-delay: 0.26s; }
.split-text .char:nth-child(14) { transition-delay: 0.28s; }
.split-text .char:nth-child(15) { transition-delay: 0.30s; }
.split-text .char:nth-child(16) { transition-delay: 0.32s; }
.split-text .char:nth-child(17) { transition-delay: 0.34s; }
.split-text .char:nth-child(18) { transition-delay: 0.36s; }
.split-text .char:nth-child(19) { transition-delay: 0.38s; }
.split-text .char:nth-child(20) { transition-delay: 0.40s; }


/* ============================================================
   8. PARALLAX
   ============================================================ */
[data-parallax] {
  will-change: transform;
  transition: transform 0.05s linear;
}


/* ============================================================
   9. COUNTER ANIMATION
   ============================================================ */
.counter-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-h1);
  color: var(--accent);
  display: inline-block;
}

.counter-label {
  font-size: var(--fs-small);
  color: var(--dk-gray-500);
  margin-top: 0.3em;
}


/* ============================================================
   10. CUSTOM CURSOR
   ============================================================ */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), border-color 0.3s ease, opacity 0.3s ease;
  opacity: 0.5;
}

/* Cursor states */
.cursor-hover .cursor-dot {
  width: 60px;
  height: 60px;
  background: rgba(37, 99, 235, 0.12);
  mix-blend-mode: normal;
}

.cursor-hover .cursor-ring {
  width: 60px;
  height: 60px;
  opacity: 0;
}


/* ============================================================
   11. PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--dk-night);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.preloader-logo {
  width: 120px;
  animation: pulse-scale 1.5s ease-in-out infinite;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-top: 2rem;
  overflow: hidden;
}

.preloader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, var(--dk-blue), var(--dk-violet));
  border-radius: 10px;
  animation: preloader-slide 1.2s ease-in-out infinite;
}

@keyframes preloader-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

@keyframes pulse-scale {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}


/* ============================================================
   12. BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dk-night);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-fixed);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--duration) var(--ease-out);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}


/* ============================================================
   13. FORM STYLES (Premium Floating Labels)
   ============================================================ */
.form-group {
  margin-bottom: var(--space-lg);
  position: relative;
}

.floating-group {
  display: flex;
  flex-direction: column-reverse;
}

.form-label {
  display: block;
  font-weight: 500;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5em;
  transition: all 0.3s var(--ease-out);
  pointer-events: none;
}

.floating-group .form-label {
  position: absolute;
  top: 1.1rem;
  left: 1.2rem;
  margin-bottom: 0;
  font-size: var(--fs-body);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1.2rem 1.2rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  font-size: var(--fs-body);
  color: #fff;
  transition: all 0.3s var(--ease-out);
  outline: none;
}

.form-textarea {
  padding-top: 1.5rem;
  min-height: 120px;
  resize: vertical;
}

/* Floating label logic */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-input:-webkit-autofill ~ .form-label,
.form-textarea:focus ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label,
.floating-group.is-focused .form-label,
.floating-group.is-filled .form-label {
  top: 0.4rem;
  left: 1.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

/* Specific for Select */
select.form-input {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1.2rem center !important;
  background-size: 1rem !important;
  padding-right: 3rem !important;
}

select.form-input:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F59E0B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.form-group select option {
  background: #080C18;
  color: #fff;
}

.form-input,
.form-textarea {
  color: #ffffff !important;
}

.floating-group.is-focused .form-label,
.floating-group.is-filled .form-label {
  color: #F59E0B !important; /* Orange labels instead of blue */
}

.form-input:focus,
.form-textarea:focus {
  border-color: #F59E0B !important;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
}

/* Icons */
.form-icon {
  position: absolute;
  right: 1.2rem;
  top: 1.1rem;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease;
  pointer-events: none;
}

.form-input:focus ~ .form-icon {
  color: #F59E0B !important;
}

/* Glow Button */
.btn--glow {
  position: relative;
  z-index: 1;
}

.btn--glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, #F59E0B, #3B82F6, #F59E0B);
  background-size: 200% 100%;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(8px);
  animation: glow-slide 3s linear infinite;
}

.btn--glow:hover::after {
  opacity: 0.6;
}

@keyframes glow-slide {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}


/* ============================================================
   14. FAQ ACCORDION
   ============================================================ */
.faq-item {
  border: 1px solid var(--dk-gray-200);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: border-color var(--duration) ease, box-shadow var(--duration) ease;
}

.faq-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.faq-question {
  width: 100%;
  padding: 1.2em 1.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--dk-night);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color var(--duration) ease;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-left: 1em;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--dk-night);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease-out);
}

.faq-icon::before {
  width: 16px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration) var(--ease-out);
}

.faq-answer-inner {
  padding: 0 1.5em 1.5em;
  color: var(--dk-gray-600);
  line-height: 1.8;
}


/* ============================================================
   15. TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: #fff;
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--dk-gray-200);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  color: var(--accent-glow);
  position: absolute;
  top: 0.3em;
  left: 1em;
  pointer-events: none;
}

.testimonial-text {
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--dk-gray-600);
  font-style: italic;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.testimonial-name {
  font-weight: 700;
  color: var(--dk-night);
  font-family: var(--font-heading);
}

.testimonial-role {
  font-size: var(--fs-caption);
  color: var(--dk-gray-400);
}


/* ============================================================
   16. KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes line-draw {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

@keyframes scale-in {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ============================================================
   17. UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* ============================================================
   18. SHARED FOOTER CTA
   ============================================================ */
.cta-final {
  background: linear-gradient(135deg, #0F172A 0%, #1a1f4e 50%, #2563EB 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.2), transparent 70%),
    radial-gradient(ellipse at 70% 50%, rgba(6, 182, 212, 0.15), transparent 70%);
}

.cta-final .container {
  position: relative;
  z-index: 1;
}

.cta-final h2 {
  color: #fff !important;
  margin-bottom: var(--space-md);
}

.cta-final .label {
  color: rgba(255, 255, 255, 0.5) !important;
}

.cta-final p {
  color: rgba(255, 255, 255, 0.8) !important;
  max-width: 550px;
  margin: 0 auto var(--space-xl);
}

.cta-final .hero-actions {
  justify-content: center;
}


/* ============================================================
   19. RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  
  section {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 var(--space-md);
  }

  section {
    padding: var(--space-xl) 0;
  }

  /* Hide custom cursor on mobile */
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .btn {
    padding: 0.8em 1.6em;
    font-size: 0.9rem;
  }
}


/* ============================================================
   19. ACCESSIBILITY: Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .split-text .char {
    transform: none !important;
  }

  .preloader {
    display: none !important;
  }
}
/* ============================================================
   NEW COMPONENTS (Enhancements)
   ============================================================ */

/* Target Audience Section */
.target-audience {
  background: linear-gradient(135deg, var(--dk-night) 0%, #1e293b 100%);
  color: #fff;
  padding: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.target-audience::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.target-audience h2 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.target-audience .subtitle {
  color: var(--dk-gray-300);
  margin-bottom: var(--space-xl);
}

.audience-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: var(--space-lg) !important;
  width: 100%;
}

.audience-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s var(--ease-out);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.audience-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}

.audience-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.audience-item span {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Floating WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: all 0.3s var(--ease-out);
  animation: wa-pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* ============================================================
   20. COMMON HERO & GRID COMPONENTS
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 180px; /* Higher padding for even larger logo */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  max-width: 100%;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-label,
  .hero-title,
  .hero-subtitle,
  .hero-subtitle-local,
  .hero-actions {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 160px 0 80px; /* High padding to clear header on mobile */
  }
}

/* ============================================================
   21. RÉALISATIONS / PORTFOLIO
   ============================================================ */
.portfolio-spotlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.portfolio-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--dk-night-light);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.5s var(--ease-out);
}

.portfolio-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
}

.portfolio-info h3 {
  color: #fff;
  margin-bottom: 0.3rem;
  transform: translateY(20px);
  transition: all 0.4s var(--ease-out);
}

.portfolio-info p {
  color: var(--dk-gray-300);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  transform: translateY(20px);
  transition: all 0.4s var(--ease-out) 0.1s;
}

.portfolio-info .btn {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s var(--ease-out) 0.2s;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: var(--shadow-xl), 0 0 30px var(--accent-glow);
}

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

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-card:hover .portfolio-info h3,
.portfolio-card:hover .portfolio-info p,
.portfolio-card:hover .portfolio-info .btn {
  transform: translateY(0);
  opacity: 1;
}

/* --- Bento Grid --- */
.portfolio-vault-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.vault-label {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--dk-gray-400);
  white-space: nowrap;
}

.vault-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
}

.portfolio-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: var(--space-md);
}

.bento-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--dk-night-light);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s var(--ease-out);
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  filter: grayscale(0.2) contrast(1.1);
  cursor: pointer;
}

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

.bento-item--tall {
  grid-row: span 2;
}

.bento-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(5px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-out);
  pointer-events: none;
}

.bento-item:hover {
  border-color: var(--accent-light);
  z-index: 2;
}

.bento-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.2);
}

.bento-item:hover .bento-caption {
  transform: translateY(0);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.98);
  backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
  padding: 20px;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 95vh;
  transform: scale(0.95);
  transition: transform 0.5s var(--ease-out-back);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s var(--ease-out-back);
}

.lightbox-content img.loaded {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  z-index: 1001;
}

.lightbox-close:hover {
  background: var(--accent);
  transform: rotate(90deg);
}

/* Responsive Realisations */
@media (max-width: 992px) {
  .portfolio-spotlight {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
}

@media (max-width: 640px) {
  .portfolio-spotlight {
    grid-template-columns: 1fr;
  }
  .portfolio-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }
  .bento-item--wide {
    grid-column: span 1;
  }
  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
}
