/* ── GLOBAL & BRAND COLORS ───────────────────────────────────── */
:root {
  --velocity-red: #E60023;
  --ambitious-black: #212121;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --card-dark: #2a2a2a;
}

html {
  scroll-behavior: smooth;
  transition: background-color 0.3s ease;
}

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

/* Light Mode Defaults */
body {
  cursor: none; /* hide default cursor for custom cursor */
  background-color: var(--white);
  color: var(--ambitious-black);
  overflow-x: hidden;
  font-family: 'DM Sans', sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Overrides */
html.dark body {
  background-color: var(--ambitious-black);
  color: var(--white);
}

/* Text selection */
::selection {
  background: var(--velocity-red);
  color: var(--white);
}

/* ── CUSTOM SCROLLBAR ────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
  transition: background-color 0.3s;
}
html.dark ::webkit-scrollbar-track {
  background: #111111;
}
::-webkit-scrollbar-thumb {
  background: var(--velocity-red);
}
::-webkit-scrollbar-thumb:hover {
  background: #ff1a3d;
}

/* ── CUSTOM CURSOR ───────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--velocity-red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, background-color 0.3s;
  will-change: transform;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--velocity-red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99996;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
  will-change: transform;
}

@media (max-width: 1024px) {
  .cursor, .cursor-follower {
    display: none !important;
  }
  body {
    cursor: auto !important;
  }
}

/* ── PRELOADER ───────────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--ambitious-black);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--velocity-red);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ── EXIT OVERLAY ────────────────────────────────────────────── */
.exit-overlay {
  position: fixed;
  inset: 0;
  background: var(--velocity-red);
  z-index: 99998;
  transform: translateY(100%);
  will-change: transform;
}

/* ── MARQUEE ─────────────────────────────────────────────────── */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  width: max-content;
}

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

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

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-sharp {
  border-radius: 0;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 36px;
  cursor: none;
  transition: color 0.3s ease;
  z-index: 10;
}

.btn-sharp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--velocity-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.btn-sharp:hover::before {
  transform: scaleX(1);
}

.btn-sharp > * {
  position: relative;
  z-index: 1;
}

/* Ripple span inside button */
.btn-ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 2;
}

/* ── NAVBAR ──────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  transition: border-bottom 0.3s, backdrop-filter 0.3s, background-color 0.3s;
  will-change: transform;
}

html.dark .navbar {
  background: var(--ambitious-black);
}

.navbar.scrolled {
  border-bottom: 2px solid var(--velocity-red);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
}

html.dark .navbar.scrolled {
  background: rgba(33, 33, 33, 0.92);
}

/* Hamburger lines */
.ham-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ambitious-black);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}

html.dark .ham-line {
  background: #ffffff;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  transition: background-color 0.3s;
}

html.dark .mobile-menu {
  background: var(--ambitious-black);
}

.mobile-nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--ambitious-black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.3s;
}

html.dark .mobile-nav-link {
  color: #ffffff;
}

.mobile-nav-link:hover {
  color: var(--velocity-red);
}

/* ── HERO WORD SPLIT ─────────────────────────────────────────── */
.hero-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero-word-inner {
  display: inline-block;
  will-change: transform, opacity;
}

/* ── HEADLINE WIPE ───────────────────────────────────────────── */
.headline-wipe {
  clip-path: inset(0 100% 0 0);
  will-change: clip-path, opacity;
}

/* ── SERVICE CARDS ───────────────────────────────────────────── */
.service-card {
  border: 1px solid #e5e7eb;
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background-color 0.3s;
}

html.dark .service-card {
  border: 1px solid #333333;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--velocity-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.card-arrow {
  display: inline-block;
  will-change: transform;
}

/* ── CASE STUDY CARDS ────────────────────────────────────────── */
.case-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.case-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--velocity-red);
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}

/* ── STAT COUNTER ────────────────────────────────────────────── */
.stat-counter {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 4.5rem;
  color: var(--velocity-red);
  line-height: 1;
}

/* ── FORM FIELDS ─────────────────────────────────────────────── */
.form-field {
  position: relative;
  padding-top: 24px;
  margin-bottom: 32px;
}

.form-label {
  position: absolute;
  top: 28px;
  left: 0;
  color: #9ca3af;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  pointer-events: none;
  transform-origin: left center;
  transition: transform 0.3s, color 0.3s;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #cccccc;
  color: var(--ambitious-black);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  padding: 8px 0;
  outline: none;
  transition: border-bottom-color 0.3s;
}

html.dark .form-input {
  border-bottom: 1px solid #444444;
  color: #ffffff;
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #cccccc;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

html.dark .form-line {
  background: #444444;
}

/* ── VALUE SECTION ───────────────────────────────────────────── */
.value-number-bg {
  position: absolute;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 8rem;
  color: var(--velocity-red);
  opacity: 0.06;
  top: -10px;
  left: -10px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.value-line {
  display: block;
  height: 1px;
  background: var(--velocity-red);
  margin: 24px 0;
  transform-origin: left;
  will-change: transform;
}

/* ── LOGO CHIPS (placeholder for real logos) ─────────────────── */
.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid #e5e7eb;
  color: #666666;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: default;
  background: var(--white);
}

html.dark .logo-chip {
  border-color: #333333;
  color: #888888;
  background: transparent;
}

.logo-chip:hover {
  border-color: var(--velocity-red);
  color: var(--ambitious-black);
  background: rgba(230, 0, 35, 0.03);
}

html.dark .logo-chip:hover {
  color: #ffffff;
  background: rgba(230, 0, 35, 0.05);
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-item {
  border: 1px solid #e5e7eb;
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}

html.dark .faq-item {
  border: 1px solid #333333;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ambitious-black);
  background: transparent;
  border: none;
  width: 100%;
}

html.dark .faq-question {
  color: #ffffff;
}

.faq-arrow {
  color: var(--velocity-red);
  font-size: 1.5rem;
  flex-shrink: 0;
  will-change: transform;
}

.faq-answer {
  color: #4b5563;
  font-family: 'DM Sans', sans-serif;
  padding-top: 0;
  height: 0;
  overflow: hidden;
  line-height: 1.7;
  will-change: height, padding-top;
}

html.dark .faq-answer {
  color: #9ca3af;
}

/* ── PREMIUM MOCKUPS FOR GRID / SERVICES / IMAGES ─────────────── */
.premium-bg-gradient {
  background: linear-gradient(135deg, #f9f9f9 0%, #ececec 100%);
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s;
}

html.dark .premium-bg-gradient {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
}

.premium-bg-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(230, 0, 37, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

html.dark .premium-bg-gradient::before {
  background: radial-gradient(circle, rgba(230, 0, 37, 0.08) 0%, transparent 60%);
}

.service-graphic-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 10rem;
  line-height: 1;
  color: rgba(230, 0, 35, 0.03);
  user-select: none;
  pointer-events: none;
  transition: color 0.3s;
}

html.dark .service-graphic-text {
  color: rgba(230, 0, 35, 0.05);
}

/* ── VERTICAL MARQUEE HERO COLUMN ────────────────────────────── */
.vertical-marquee-col {
  display: flex;
  flex-direction: column;
  height: max-content;
}

.vertical-marquee-up {
  animation: verticalMarqueeUp 24s linear infinite;
}

.vertical-marquee-down {
  animation: verticalMarqueeDown 24s linear infinite;
}

@keyframes verticalMarqueeUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes verticalMarqueeDown {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}

/* Ambient Background Particle Canvas */
.ambient-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  display: block;
}

/* Make all direct body content wrappers transparent to expose the background animation */
body > header,
body > section,
body > footer {
  background-color: transparent !important;
}
