/**
 * Codfis Technologies V2 - Design System & Modern CSS
 * Visual Direction:
 * --bg: #090909
 * --surface: #111111
 * --surface-card: #161616
 * --surface-hover: #1c1c1c
 * --text: #F5F5F5
 * --text-muted: #A1A1A1
 * --text-dim: #71717A
 * --border: #242424
 * --border-focus: #3b3b3b
 * --accent: #F5C400 (Codfis Logo Primary Gold/Yellow)
 * --accent-hover: #E5B800
 * --accent-glow: rgba(245, 196, 0, 0.15)
 * --danger: #EF4444
 * --success: #10B981
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Default: Dark Theme */
  --bg: #090909;
  --surface: #111111;
  --surface-card: #151515;
  --surface-hover: #1b1b1b;
  --text: #F5F5F5;
  --text-muted: #A1A1A1;
  --text-dim: #71717A;
  --border: #222222;
  --border-focus: #383838;
  --accent: #F5C400;
  --accent-hover: #E5B800;
  --accent-dark: #B89200;
  --accent-glow: rgba(245, 196, 0, 0.14);
  --header-bg: rgba(9, 9, 9, 0.94);
  --footer-bg: #050505;
  --client-card-bg: #F5F1E8;
  --danger: #EF4444;
  --success: #10B981;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1240px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --surface-card: #F3F4F6;
  --surface-hover: #E5E7EB;
  --text: #111827;
  --text-muted: #4B5563;
  --text-dim: #6B7280;
  --border: #E5E7EB;
  --border-focus: #D1D5DB;
  --accent: #D9A300;
  --accent-hover: #B88A00;
  --accent-dark: #8C6900;
  --accent-glow: rgba(217, 163, 0, 0.16);
  --header-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: #EFEFEF;
  --client-card-bg: #FFFFFF;
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #111827 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-home {
  background-color: #F8F9FA;
}

[data-theme="light"] .hero-overlay-horizontal {
  background: radial-gradient(
    ellipse at 24% 54%,
    rgba(248, 249, 250, 0.35) 0%,
    rgba(248, 249, 250, 0.16) 42%,
    rgba(248, 249, 250, 0.04) 68%,
    transparent 82%
  );
}

[data-theme="light"] .hero-overlay-bottom {
  background: linear-gradient(
    to bottom,
    transparent 90%,
    rgba(248, 249, 250, 0.12) 97%,
    #F8F9FA 100%
  );
}

[data-theme="light"] .hero-home h1 {
  color: #090909;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95), 0 2px 12px rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .hero-home .text-highlight {
  color: #996F00;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9), 0 0 16px rgba(217, 163, 0, 0.2);
}

@media (max-width: 768px) {
  [data-theme="light"] .hero-home {
    background-color: #F8F9FA;
  }
  [data-theme="light"] .hero-overlay-horizontal {
    background: radial-gradient(
      ellipse at 35% 50%,
      rgba(248, 249, 250, 0.38) 0%,
      rgba(248, 249, 250, 0.18) 48%,
      rgba(248, 249, 250, 0.04) 75%,
      transparent 88%
    );
  }
  [data-theme="light"] .hero-headline-wrap {
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
  }
}

[data-theme="light"] .clients-section {
  background: #F1F3F5;
}

[data-theme="light"] .brand-logo {
  color: #111827;
}

/* Header & Footer Theme-Specific Logo Visibility */
.logo-dark-theme {
  display: block !important;
}
.logo-light-theme {
  display: none !important;
}

[data-theme="light"] .logo-dark-theme {
  display: none !important;
}
[data-theme="light"] .logo-light-theme {
  display: block !important;
}

[data-theme="light"] .footer {
  background-color: #EFEFEF;
  border-top-color: #E0E0E0;
}

[data-theme="light"] .footer-col h4 {
  color: #111827;
}

[data-theme="light"] .footer-bottom {
  border-top-color: #E0E0E0;
  color: #6B7280;
}

[data-theme="light"] .founder-hero {
  background: radial-gradient(circle at 50% 30%, rgba(217, 163, 0, 0.08) 0%, rgba(248, 249, 250, 0) 65%), #F8F9FA;
}

[data-theme="light"] .hero-founder-img-wrapper::after {
  background: linear-gradient(to top, rgba(248, 249, 250, 0.95) 0%, rgba(248, 249, 250, 0) 100%);
}

[data-theme="light"] .founder-badge-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(217, 163, 0, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  color: #111827;
}

[data-theme="light"] .client-logo-card {
  background: #FFFFFF;
  border-color: #E5E7EB;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

[data-theme="light"] .hero-stat-pills {
  background: rgba(0, 0, 0, 0.04);
  border-color: #E5E7EB;
  color: #4B5563;
}

[data-theme="light"] .hero-stat-pills strong {
  color: #111827;
}

[data-theme="light"] .btn-secondary {
  background-color: #FFFFFF;
  color: #111827;
  border-color: #D1D5DB;
}

[data-theme="light"] .btn-secondary:hover {
  background-color: #F3F4F6;
  border-color: #9CA3AF;
  color: #000;
}

[data-theme="light"] .mobile-drawer {
  background: rgba(255, 255, 255, 0.98);
  border-top-color: #E5E7EB;
}

[data-theme="light"] .mobile-drawer a {
  color: #111827;
  border-bottom-color: #E5E7EB;
}

[data-theme="light"] .mobile-drawer a:hover,
[data-theme="light"] .mobile-drawer a.active {
  background: #F3F4F6;
  color: var(--accent-dark);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text);
}

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

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  text-align: left;
}

/* Selective justified alignment for narrative blocks on wide viewports without awkward mobile spacing */
.prose-text,
.story-paragraph,
.text-justified {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

@media (max-width: 640px) {
  .prose-text,
  .story-paragraph,
  .text-justified {
    text-align: left !important;
  }
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(245, 196, 0, 0.28);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.section-head p {
  margin-top: 0.85rem;
  font-size: 1.1rem;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(9, 9, 9, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: #FFFFFF;
}

.brand-logo img {
  height: 46px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo:hover img {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.35rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFFFFF;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  touch-action: manipulation;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  touch-action: manipulation;
}

.mobile-toggle:hover,
.mobile-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========================================================
   VERTICAL SLIDING PANELS SYSTEM (SLIDER COMPONENT)
   ======================================================== */
.vertical-slider-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 580px;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.v-slides-wrapper {
  position: relative;
  flex: 1;
  min-height: 540px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.v-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  padding: 3rem;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
  pointer-events: none;
}

.v-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.v-slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.v-slide-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #141414;
  border: 1px solid var(--border);
  height: 340px;
}

[data-theme="light"] .v-slide-visual {
  background: #F3F4F6;
}

.v-slide-visual img,
.v-slide-visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v-slider-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.v-slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
}

.v-slider-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-hover);
}

.v-slider-indicators {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.v-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.v-indicator-dot.active {
  background: var(--accent);
  height: 24px;
  border-radius: 12px;
}

/* Learning Journey Progression Roadmap */
.learning-roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.roadmap-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.roadmap-step:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.roadmap-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.roadmap-step h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.roadmap-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .vertical-slider-container {
    flex-direction: column;
    min-height: auto;
  }
  .v-slides-wrapper {
    min-height: auto;
    width: 100%;
  }
  .v-slide {
    grid-template-columns: 1fr;
    padding: 1.75rem;
    gap: 1.5rem;
    position: relative;
    display: none;
  }
  .v-slide.active {
    display: flex;
    flex-direction: column;
  }
  .v-slide-visual {
    height: 220px;
    width: 100%;
  }
  .v-slider-nav {
    flex-direction: row;
    justify-content: center;
    gap: 1.25rem;
    width: 100%;
  }
  .v-slider-indicators {
    flex-direction: row;
  }
  .v-indicator-dot.active {
    width: 24px;
    height: 10px;
  }
  .learning-roadmap {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .roadmap-step {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
    padding: 1.25rem;
  }
  .roadmap-num {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  font-family: var(--font-body);
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: #090909;
  font-weight: 700;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 196, 0, 0.35);
}

.btn-secondary {
  background-color: var(--surface-card);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-focus);
  color: #FFF;
}

.btn-outline {
  background-color: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1rem;
}

/* Cards & Surfaces */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
}

.card:hover {
  border-color: rgba(245, 196, 0, 0.35);
  background-color: var(--surface-card);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-label span.required {
  color: var(--accent);
}

.form-control,
.form-select,
textarea.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
  color: var(--text-dim);
}

.form-help {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Alert Boxes */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: none;
}

.alert-success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
}

.alert-error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-yellow {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(245, 196, 0, 0.3);
}

.badge-gray {
  background: var(--surface-hover);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge-green {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ========================================================
   REUSABLE HORIZONTAL CAROUSEL COMPONENT
   ======================================================== */
.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.carousel-btn:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: var(--border);
  color: var(--text-dim);
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-bottom: 1rem;
  scrollbar-width: none; /* Firefox */
  user-select: none;
  -webkit-user-select: none;
}

.carousel-track.dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-card {
  flex: 0 0 340px;
  max-width: 85vw;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.carousel-card:hover {
  border-color: rgba(245, 196, 0, 0.4);
  background: var(--surface-card);
  transform: translateY(-2px);
}

/* ========================================================
   CLIENT LOGO MARQUEE RAIL
   ======================================================== */
.clients-section {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #060606;
}

.clients-title {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  line-height: 1.35;
}

.marquee-container {
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  width: 100%;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.marquee-container::-webkit-scrollbar {
  display: none;
}

.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee 32s linear infinite;
  align-items: center;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@media (max-width: 600px) {
  .clients-section {
    padding: 1.5rem 0;
  }
  .clients-title {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    padding: 0 1rem;
  }
  .marquee-container {
    padding: 0.5rem 1rem;
  }
  .client-logo-card {
    width: 150px !important;
    height: 68px !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
  }
  .client-logo-card img {
    max-width: 120px !important;
    max-height: 44px !important;
  }
  .marquee-track {
    gap: 0.85rem;
    animation-duration: 25s;
    padding-right: 1rem;
  }
}

.client-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 92px;
  padding: 14px 22px;
  background: #F5F1E8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.client-logo-card:hover {
  background: #FAF7F0;
  border-color: rgba(245, 196, 0, 0.6);
  box-shadow: 0 8px 24px rgba(245, 196, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.client-logo-card img {
  max-width: 168px;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.96;
  filter: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.client-logo-card:hover img {
  opacity: 1;
}

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

/* ========================================================
   INTERACTIVE DELIVERY PROCESS (01 -> 07)
   ======================================================== */
.process-stepper-container {
  position: relative;
  margin-top: 2rem;
}

.process-line {
  position: absolute;
  top: 32px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.process-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 15%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.process-track {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: none;
  padding-bottom: 1rem;
  user-select: none;
  -webkit-user-select: none;
}

.process-track.dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
}

.process-track::-webkit-scrollbar {
  display: none;
}

.process-node-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.process-node-card.active, .process-node-card:hover {
  border-color: var(--accent);
  background: var(--surface-card);
  box-shadow: 0 4px 20px rgba(245, 196, 0, 0.12);
}

.process-node-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #141414;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.process-node-card.active .process-node-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #090909;
}

.process-node-card h4 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.process-node-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================================
   ANIMATION & REVEAL SYSTEM
   ======================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.float-subtle {
  animation: floatSubtle 6s ease-in-out infinite;
}

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

@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;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Footer */
/* Compact Modern Footer (Reduced by ~50% visual height) */
.footer {
  margin-top: auto;
  background-color: #050505;
  border-top: 1px solid var(--border);
  padding: 2.25rem 0 1.25rem;
}

.footer-grid,
.footer-compact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

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

.footer-brand-side .brand-logo img,
.footer-col .brand-logo img {
  height: 32px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.footer-tagline {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 320px;
}

.footer-links-side {
  display: contents;
}

.footer-link-group h5,
.footer-col h4 {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.footer-link-group ul,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  list-style: none;
}

.footer-link-group a,
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 860px) {
  .footer-grid,
  .footer-compact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }
  .footer-brand-side,
  .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 1.75rem 0 1rem;
  }
  .footer-grid,
  .footer-compact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 0.75rem;
    margin-bottom: 1.25rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
    padding-top: 0.85rem;
  }
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: calc(100dvh - 72px);
  background: rgba(9, 9, 9, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  z-index: 99;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 48px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-drawer a:hover,
.mobile-drawer a.active {
  color: var(--accent);
  background: var(--surface-card);
  padding-left: 0.85rem;
}

.mobile-drawer a.btn {
  justify-content: center;
  border-bottom: none;
  margin-top: 0.5rem;
  min-height: 48px;
}

/* Responsive Breakpoints & Mobile-First Rules */
@media (max-width: 1024px) {
  .carousel-card {
    flex: 0 0 320px;
  }
}

@media (max-width: 992px) {
  .nav-links, .nav-cta-group .btn-secondary, .nav-cta-group .btn-primary {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Mobile Carousel & Layout Rules (< 768px) */
@media (max-width: 768px) {
  /* HIDE ALL CAROUSEL ARROW BUTTONS ON MOBILE — SWIPE ONLY */
  .carousel-controls {
    display: none !important;
  }

  .carousel-track,
  .process-track {
    gap: 1rem;
    padding-left: 0.25rem;
    padding-right: 1.25rem;
    scroll-padding-left: 0.25rem;
  }

  .carousel-card {
    flex: 0 0 280px;
    max-width: 82vw;
    padding: 1.5rem 1.25rem;
  }

  /* Compact Client Logos on Mobile */
  .clients-section {
    padding: 1.75rem 0;
  }
  .clients-title {
    margin-bottom: 1.25rem;
    font-size: 0.78rem;
  }
  .client-logo-card {
    width: 160px;
    height: 74px;
    padding: 10px 16px;
    border-radius: 10px;
  }
  .client-logo-card img {
    max-width: 126px;
    max-height: 44px;
  }

  /* Compact Process Stepper */
  .process-stepper-container {
    margin-top: 1.25rem;
  }
  .process-line {
    display: none;
  }
  .process-node-card {
    flex: 0 0 170px;
    padding: 1.25rem 1rem;
  }
  .process-node-circle {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  /* Global section & spacing rules */
  .section {
    padding: 3.25rem 0;
  }
  .section-head {
    margin-bottom: 2rem;
  }
  .section-head p {
    font-size: 0.98rem;
    margin-top: 0.5rem;
  }

  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }
}

@media (max-width: 640px) {
  .nav-container {
    height: 64px;
  }
  .mobile-drawer {
    top: 64px;
    height: calc(100dvh - 64px);
  }
  .brand-logo img {
    height: 38px;
    max-width: 160px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding-top: 1.5rem;
  }
  .btn-lg {
    padding: 0.85rem 1.4rem;
    font-size: 0.95rem;
    width: 100%;
  }
}

/* ==========================================================================
   INTERACTIVE LAMP PULL-CORD THEME TOGGLE
   ========================================================================== */

.lamp-toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.2rem 0.4rem;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
  position: relative;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.lamp-toggle-btn:hover {
  border-color: var(--accent);
  background: rgba(245, 196, 0, 0.08);
}

.lamp-toggle-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lamp-svg-icon {
  width: 28px;
  height: 38px;
  display: block;
  overflow: visible;
}

/* Lampshade styling */
.lamp-shade {
  fill: #222222;
  stroke: #444444;
  stroke-width: 1.5;
  transition: fill 0.35s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.35s ease, filter 0.35s ease;
}

/* Stand & Base */
.lamp-stand {
  stroke: #777777;
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke 0.3s ease;
}

.lamp-base {
  fill: #444444;
  transition: fill 0.3s ease;
}

/* Cord line & bead handle */
.lamp-cord-line {
  stroke: #9E9E9E;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 2 1.5;
  transition: stroke 0.3s ease;
}

.lamp-cord-handle {
  fill: var(--accent);
  stroke: #1a1a1a;
  stroke-width: 1;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.3s ease;
}

/* Pull Cord Assembly - Animatable */
.lamp-cord-group {
  transform-origin: 22px 14px;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Active Pull Animation Class */
.lamp-cord-group.cord-pulling {
  animation: cordPullAnimation 0.42s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes cordPullAnimation {
  0% {
    transform: translateY(0);
  }
  38% {
    transform: translateY(8px);
  }
  65% {
    transform: translateY(-2px);
  }
  85% {
    transform: translateY(1.5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Light beam / glow element */
.lamp-glow {
  opacity: 0;
  fill: url(#lampGlowGradient);
  filter: blur(2px);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Warm ambient bulb element */
.lamp-bulb {
  fill: #333333;
  transition: fill 0.3s ease, filter 0.3s ease;
}

/* ==========================================================================
   STATE: LIGHT MODE ACTIVE (LAMP IS ON)
   ========================================================================== */
[data-theme="light"] .lamp-shade {
  fill: #FFF8E1;
  stroke: #F5C400;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px rgba(245, 196, 0, 0.65));
}

[data-theme="light"] .lamp-stand {
  stroke: #4A4A4A;
}

[data-theme="light"] .lamp-base {
  fill: #333333;
}

[data-theme="light"] .lamp-bulb {
  fill: #FFF3B0;
  filter: drop-shadow(0 0 4px #F5C400);
}

[data-theme="light"] .lamp-glow {
  opacity: 0.85;
}

[data-theme="light"] .lamp-cord-line {
  stroke: #666666;
}

[data-theme="light"] .lamp-toggle-btn {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(245, 196, 0, 0.08);
}

[data-theme="light"] .lamp-toggle-btn:hover {
  border-color: #D9A300;
  background: rgba(245, 196, 0, 0.18);
}

/* Flash burst effect on light-switch */
.lamp-flash {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle, rgba(245, 196, 0, 0.45) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lamp-flash.flashing {
  opacity: 1;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .lamp-cord-group.cord-pulling {
    animation: none !important;
  }
  .lamp-shade, .lamp-glow, .lamp-bulb, .lamp-toggle-btn {
    transition: none !important;
  }
}

