/* ============================================================
   AARKA CLEANING SERVICES — Full Vanilla CSS
   Converted from Tailwind CSS v4 + Custom Styles
   ============================================================ */

/* ---- CSS Variables (from @theme in index.css) ---- */
:root {
  --color-primary: #0066ff;
  --color-primary-dark: #0047b3;
  --color-primary-light: #4da6ff;
  --color-accent: #00c853;
  --color-accent-dark: #00b34a;
  --color-accent-light: #e6f9ed;
  --color-surface: #f8fafc;
  --color-surface-dark: #1f2937;
  --color-muted: #6b7280;
  --color-muted-light: #9ca3af;
  --color-border: #e5e7eb;
  --font-sans: "Inter", system-ui, sans-serif;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-surface-dark);
  background: #ffffff;
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

#root {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

ul {
  list-style: none;
}

/* ---- Utility Classes ---- */
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.top-0 {
  top: 0;
}
.top-1\/2 {
  top: 50%;
}
.top-7 {
  top: 1.75rem;
}
.left-0 {
  left: 0;
}
.left-1\/2 {
  left: 50%;
}
.left-\[12\.5\%\] {
  left: 12.5%;
}
.right-0 {
  right: 0;
}
.right-\[12\.5\%\] {
  right: 12.5%;
}
.bottom-0 {
  bottom: 0;
}
.bottom-6 {
  bottom: 1.5rem;
}
.right-6 {
  right: 1.5rem;
}
.bottom-28 {
  bottom: 7rem;
}
.z-10 {
  z-index: 10;
}
.z-40 {
  z-index: 40;
}
.z-50 {
  z-index: 50;
}

.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
.hidden {
  display: none;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}

.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-5 {
  gap: 1.25rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-10 {
  gap: 2.5rem;
}
.gap-12 {
  gap: 3rem;
}
/* Utility helpers for spacing children */
.space-y-3 > * + * {
  margin-top: 0.75rem;
}
.space-y-4 > * + * {
  margin-top: 1rem;
}
.space-y-5 > * + * {
  margin-top: 1.25rem;
}

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.leading-tight {
  line-height: 1.25;
}
.leading-relaxed {
  line-height: 1.625;
}
.leading-none {
  line-height: 1;
}
.tracking-tight {
  letter-spacing: -0.025em;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.tracking-\[0\.15em\] {
  letter-spacing: 0.15em;
}
.tracking-\[0\.2em\] {
  letter-spacing: 0.2em;
}
.uppercase {
  text-transform: uppercase;
}
.italic {
  font-style: italic;
}
.font-normal {
  font-weight: 400;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.font-extrabold {
  font-weight: 800;
}
.text-xs {
  font-size: 0.75rem;
}
.text-sm {
  font-size: 0.875rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.text-3xl {
  font-size: 1.875rem;
}
.text-4xl {
  font-size: 2.25rem;
}
.text-\[9px\] {
  font-size: 9px;
}
.text-base {
  font-size: 1rem;
}

.text-white {
  color: #ffffff;
}
.text-white\/50 {
  color: rgba(255, 255, 255, 0.5);
}
.text-white\/60 {
  color: rgba(255, 255, 255, 0.6);
}
.text-white\/70 {
  color: rgba(255, 255, 255, 0.7);
}
.text-white\/80 {
  color: rgba(255, 255, 255, 0.8);
}
.text-white\/90 {
  color: rgba(255, 255, 255, 0.9);
}
.text-primary {
  color: var(--color-primary);
}
.text-accent {
  color: var(--color-accent);
}
.text-surface-dark {
  color: var(--color-surface-dark);
}
.text-muted {
  color: var(--color-muted);
}
.text-border {
  color: var(--color-border);
}
.text-\[\#FBBF24\] {
  color: #fbbf24;
}
.fill-\[\#FBBF24\] {
  fill: #fbbf24;
}

.bg-transparent {
  background: transparent;
}
.bg-white {
  background: #ffffff;
}
.bg-surface {
  background: var(--color-surface);
}
.bg-primary {
  background: var(--color-primary);
}
.bg-primary-dark {
  background: var(--color-primary-dark);
}
.bg-primary-dark\/60 {
  background: rgba(0, 71, 179, 0.6);
}
.bg-accent {
  background: var(--color-accent);
}
.bg-accent-light {
  background: var(--color-accent-light);
}
.bg-accent\/20 {
  background: rgba(0, 200, 83, 0.2);
}
.bg-white\/10 {
  background: rgba(255, 255, 255, 0.1);
}
.bg-white\/20 {
  background: rgba(255, 255, 255, 0.2);
}
.bg-white\/95 {
  background: rgba(255, 255, 255, 0.95);
}
.bg-primary\/10 {
  background: rgba(0, 102, 255, 0.1);
}
.bg-\[\#F0F7FF\] {
  background: #f0f7ff;
}
.bg-gradient-to-br {
  background: linear-gradient(
    to bottom right,
    var(--tw-gradient-from),
    var(--tw-gradient-to)
  );
}
.bg-gradient-to-b {
  background: linear-gradient(
    to bottom,
    var(--tw-gradient-from),
    var(--tw-gradient-to)
  );
}
.bg-cover {
  background-size: cover;
}
.bg-center {
  background-position: center;
}
.bg-no-repeat {
  background-repeat: no-repeat;
}
.bg-fixed {
  background-attachment: fixed;
}

.from-\[\#0066FF\]\/90 {
  --tw-gradient-from: rgba(0, 102, 255, 0.9);
}
.via-\[\#0066FF\]\/85 {
  --tw-gradient-to: rgba(0, 102, 255, 0.85);
}
.to-\[\#0066FF\]\/75 {
  --tw-gradient-to: rgba(0, 102, 255, 0.75);
}
.from-\[\#0066FF\]\/92 {
  --tw-gradient-from: rgba(0, 102, 255, 0.92);
}
.to-\[\#0066FF\]\/88 {
  --tw-gradient-to: rgba(0, 102, 255, 0.88);
}
.to-\[\#0066FF\]\/87 {
  --tw-gradient-to: rgba(0, 102, 255, 0.87);
}
.from-accent\/85 {
  --tw-gradient-from: rgba(0, 200, 83, 0.85);
}
.to-accent\/70 {
  --tw-gradient-to: rgba(0, 200, 83, 0.7);
}
.from-primary {
  --tw-gradient-from: var(--color-primary);
}
.from-primary-dark {
  --tw-gradient-from: var(--color-primary-dark);
}
.to-primary-dark {
  --tw-gradient-to: var(--color-primary-dark);
}
.to-surface-dark {
  --tw-gradient-to: var(--color-surface-dark);
}

.border {
  border: 1px solid var(--color-border);
}
.border-2 {
  border-width: 2px;
}
.border-white {
  border-color: #ffffff;
}
.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1);
}
.border-white\/20 {
  border-color: rgba(255, 255, 255, 0.2);
}
.border-border {
  border-color: var(--color-border);
}
.border-accent\/30 {
  border-color: rgba(0, 200, 83, 0.3);
}
.border-t {
  border-top: 1px solid;
}
.border-t-white\/10 {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-full {
  border-radius: 9999px;
}
.overflow-hidden {
  overflow: hidden;
}

.w-0 {
  width: 0;
}
.w-4 {
  width: 1rem;
}
.w-5 {
  width: 1.25rem;
}
.w-6 {
  width: 1.5rem;
}
.w-8 {
  width: 2rem;
}
.w-10 {
  width: 2.5rem;
}
.w-12 {
  width: 3rem;
}
.w-14 {
  width: 3.5rem;
}
.w-16 {
  width: 4rem;
}
.w-20 {
  width: 5rem;
}
.w-full {
  width: 100%;
}
.w-px {
  width: 1px;
}
.h-0\.5 {
  height: 0.125rem;
}
.h-4 {
  height: 1rem;
}
.h-5 {
  height: 1.25rem;
}
.h-6 {
  height: 1.5rem;
}
.h-8 {
  height: 2rem;
}
.h-10 {
  height: 2.5rem;
}
.h-12 {
  height: 3rem;
}
.h-14 {
  height: 3.5rem;
}
.h-16 {
  height: 4rem;
}
.h-20 {
  height: 5rem;
}
.h-44 {
  height: 11rem;
}
.h-auto {
  height: auto;
}
.h-full {
  height: 100%;
}
.h-\[72px\] {
  height: 72px;
}
.min-h-screen {
  min-height: 100vh;
}
.min-h-\[600px\] {
  min-height: 600px;
}
.max-h-0 {
  max-height: 0;
}
.max-h-60 {
  max-height: 15rem;
}
.max-w-xs {
  max-width: 20rem;
}
.max-w-lg {
  max-width: 32rem;
}
.max-w-xl {
  max-width: 36rem;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-7xl {
  max-width: 80rem;
}
.max-w-\[220px\] {
  max-width: 220px;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-10 {
  margin-bottom: 2.5rem;
}
.mb-14 {
  margin-bottom: 3.5rem;
}
.mt-0\.5 {
  margin-top: 0.125rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-10 {
  margin-top: 2.5rem;
}
.pr-4 {
  padding-right: 1rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-3\.5 {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.pt-20 {
  padding-top: 5rem;
}
.pt-16 {
  padding-top: 4rem;
}
.pb-8 {
  padding-bottom: 2rem;
}
.pt-6 {
  padding-top: 1.5rem;
}
.pb-4 {
  padding-bottom: 1rem;
}

.object-cover {
  object-fit: cover;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.shadow-gray-100\/50 {
  box-shadow: 0 10px 15px -3px rgba(243, 244, 246, 0.5);
}
.shadow-accent\/30 {
  box-shadow: 0 10px 15px -3px rgba(0, 200, 83, 0.3);
}
.shadow-accent\/40 {
  box-shadow: 0 10px 15px -3px rgba(0, 200, 83, 0.4);
}
.shadow-primary\/20 {
  box-shadow: 0 10px 15px -3px rgba(0, 102, 255, 0.2);
}
.shadow-primary\/30 {
  box-shadow: 0 10px 15px -3px rgba(0, 102, 255, 0.3);
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cursor-pointer {
  cursor: pointer;
}
.cursor-default {
  cursor: default;
}
.pointer-events-none {
  pointer-events: none;
}

.resize-none {
  resize: none;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.-translate-x-1\/2 {
  transform: translateX(-50%);
}
.-translate-y-1\/2 {
  transform: translateY(-50%);
}
.-translate-x-10 {
  transform: translateX(-2.5rem);
}
.-translate-x-8 {
  transform: translateX(-2rem);
}
.translate-x-0 {
  transform: translateX(0);
}
.translate-x-full {
  transform: translateX(100%);
}
.translate-x-10 {
  transform: translateX(2.5rem);
}
.translate-y-0 {
  transform: translateY(0);
}
.translate-y-4 {
  transform: translateY(1rem);
}
.translate-y-5 {
  transform: translateY(1.25rem);
}
.translate-y-8 {
  transform: translateY(2rem);
}
.translate-y-10 {
  transform: translateY(2.5rem);
}
.scale-90 {
  transform: scale(0.9);
}
.scale-100 {
  transform: scale(1);
}

.transition-all {
  transition-property: all;
}
.transition-colors {
  transition-property: color, background-color, border-color;
}
.transition-transform {
  transition-property: transform;
}
.transition-\[max-height\] {
  transition-property: max-height;
}
.duration-200 {
  transition-duration: 200ms;
}
.duration-300 {
  transition-duration: 300ms;
}
.duration-400 {
  transition-duration: 400ms;
}
.duration-500 {
  transition-duration: 500ms;
}
.duration-600 {
  transition-duration: 600ms;
}
.duration-700 {
  transition-duration: 700ms;
}
.duration-1000 {
  transition-duration: 1000ms;
}
.ease-out {
  transition-timing-function: ease-out;
}

.delay-100 {
  transition-delay: 100ms;
}
.delay-200 {
  transition-delay: 200ms;
}
.delay-300 {
  transition-delay: 300ms;
}
.delay-400 {
  transition-delay: 400ms;
}
.delay-700 {
  transition-delay: 700ms;
}

.opacity-0 {
  opacity: 0;
}
.opacity-100 {
  opacity: 1;
}

/* ---- Placeholder style ---- */
::placeholder {
  color: var(--color-muted-light);
  opacity: 1;
}

.placeholder-muted-light::placeholder {
  color: var(--color-muted-light);
}

/* ---- Focus Styles ---- */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.1);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* ---- Keyframe Animations ---- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  25% {
    transform: translateY(-15px) translateX(10px);
  }
  50% {
    transform: translateY(-25px) translateX(-5px);
  }
  75% {
    transform: translateY(-10px) translateX(15px);
  }
}

@keyframes bounce-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(0, 200, 83, 0);
  }
}

@keyframes testimonial-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - var(--testimonial-offset)));
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}
.animate-bounce-slow {
  animation: bounce-slow 2s ease-in-out infinite;
}
.animate-sparkle {
  animation: sparkle 3s ease-in-out infinite;
}

.pulse-glow-btn {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ---- Testimonials marquee ---- */
.testimonial-marquee-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
}

.testimonial-marquee-track {
  --testimonial-gap: 2rem;
  --testimonial-offset: 1rem;
  display: flex;
  gap: var(--testimonial-gap);
  width: max-content;
  animation: testimonial-marquee 32s linear infinite;
  will-change: transform;
}

.testimonial-marquee-track:hover {
  animation-play-state: paused;
}

/* ---- Hero stats marquee ---- */
.hero-stats-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
}

.hero-stats-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: stats-marquee 20s linear infinite;
  will-change: transform;
}

.hero-stats-track:hover {
  animation-play-state: paused;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@keyframes stats-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stats-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

.testimonial-card {
  flex: 0 0 min(380px, 82vw);
  min-height: 100%;
}

/* ---- Group hover effects ---- */
.group:hover .group-hover\:bg-primary {
  background: var(--color-primary);
}
.group:hover .group-hover\:text-white {
  color: #ffffff;
}
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}
.group:hover .group-hover\:translate-y-1 {
  transform: translateY(-0.25rem);
}
.group:hover .group-hover\:gap-3 {
  gap: 0.75rem;
}
.group:hover .group-hover\:bg-accent-light {
  background: var(--color-accent-light);
}
.group:hover .group-hover\:-translate-y-1 {
  transform: translateY(-0.25rem);
}

/* ---- Hover effects on elements ---- */
.hover\:bg-primary-dark:hover {
  background: var(--color-primary-dark);
}
.hover\:bg-accent-dark:hover {
  background: var(--color-accent-dark);
}
.hover\:bg-white:hover {
  background: #ffffff;
}
.hover\:bg-accent-light\/50:hover {
  background: rgba(230, 249, 237, 0.5);
}
.hover\:text-white:hover {
  color: #ffffff;
}
.hover\:text-primary:hover {
  color: var(--color-primary);
}
.hover\:text-white\/80:hover {
  color: rgba(255, 255, 255, 0.8);
}
.hover\:border-primary:hover {
  border-color: var(--color-primary);
}
.hover\:border-accent:hover {
  border-color: var(--color-accent);
}
.hover\:-translate-y-0\.5:hover {
  transform: translateY(-0.125rem);
}
.hover\:-translate-y-2:hover {
  transform: translateY(-0.5rem);
}
.hover\:translate-x-1:hover {
  transform: translateX(0.25rem);
}
.hover\:scale-110:hover {
  transform: scale(1.1);
}
.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.hover\:shadow-primary\/10:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 102, 255, 0.1);
}
.hover\:shadow-accent\/40:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 200, 83, 0.4);
}
.hover\:shadow-md:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Interactive states */

/* ---- Desktop nav link active state ---- */
.desktop-link {
  position: relative;
}
.desktop-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.2s;
  width: 0;
}
.desktop-link.active::after {
  width: 100%;
}

/* ---- Hero Section Overrides & Enhancements ---- */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  /* Natural padding that grows with viewport but ensures space for header */
  padding-top: clamp(8rem, 15vh, 12rem);
  padding-bottom: 0; /* Stats bar will act as bottom padding */
  background: var(--color-primary-dark);
}

#hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.5rem, 4vh, 2.5rem);
  flex-grow: 1; /* Pushes stats to bottom */
  display: flex;
  justify-content: center;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 4.25rem) !important;
  line-height: 1.1 !important;
  font-weight: 800;
  color: #ffffff;
  max-width: 18ch;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem) !important;
  color: rgba(255, 255, 255, 0.95);
  max-width: 55ch;
  margin: 0 auto;
  line-height: 1.6;
}

#hero-buttons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(130px, 240px)) !important;
  gap: clamp(0.5rem, 2vw, 1.25rem) !important;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

#hero-buttons .btn,
#hero-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(0.75rem, 2.5vh, 1.125rem) clamp(0.5rem, 2vw, 1.5rem) !important;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem) !important;
  font-weight: 600;
  border-radius: 0.75rem;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s ease;
}

#hero-stats {
  position: relative !important;
  bottom: 0 !important;
  width: 100%;
  margin-top: clamp(3rem, 8vh, 6rem);
  background: rgba(0, 30, 80, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 20;
}

.hero-stats-viewport {
  padding: 1.25rem 0;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
}

.hero-stat-item span {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Fix for scroll down button overlap */
#scroll-down-btn {
  display: none; /* Hide to prevent overlap issues on zoom, as stats-bar is now at bottom */
}

@media (max-width: 480px) {
  #hero-buttons {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    padding: 0 0.5rem;
  }
}

/* Responsive Grids & Base Column Helpers */
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Specific Section Force-2-Columns on Mobile */
@media (max-width: 639px) {
  #stats-grid,
  #industries-grid,
  #about-values-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* Stats typography adjustments for 2-col mobile */
  .stat-item .stat-number {
    font-size: clamp(1.75rem, 8vw, 2.25rem) !important;
    letter-spacing: -0.02em;
  }

  .stat-item .text-sm {
    font-size: 0.65rem !important;
    line-height: 1.2;
    padding: 0 0.25rem;
  }

  /* Industry items scaling */
  .industry-item .w-16.h-16 {
    width: 3.5rem !important;
    height: 3.5rem !important;
  }

  .industry-item svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
  }

  .industry-item span {
    font-size: 0.75rem !important;
  }

  /* Values card adjustments */
  .why-feature {
    padding: 1.25rem !important;
  }

  .why-feature h3 {
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
  }

  .why-feature p {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
  }
}

/* ---- Media Queries ---- */
@media (min-width: 640px) {
  .sm\:text-sm {
    font-size: 0.875rem;
  }
  .sm\:text-base {
    font-size: 1rem;
  }
  .sm\:text-xl {
    font-size: 1.25rem;
  }
  .sm\:text-5xl {
    font-size: 3rem;
  }
  .sm\:flex-row {
    flex-direction: row;
  }
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sm\:col-span-2 {
    grid-column: span 2 / span 2;
  }
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .sm\:px-12 {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:block {
    display: block;
  }
  .lg\:hidden {
    display: none;
  }
  .lg\:flex {
    display: flex;
  }
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .lg\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .lg\:text-3xl {
    font-size: 1.875rem;
  }
  .lg\:col-span-1 {
    grid-column: span 1 / span 1;
  }
  .lg\:text-sm {
    font-size: 0.875rem;
  }
  .lg\:text-4xl {
    font-size: 2.25rem;
  }
  .lg\:text-5xl {
    font-size: 3rem;
  }
  .lg\:text-6xl {
    font-size: 3.75rem;
  }
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .lg\:px-16 {
    padding-left: 4rem;
    padding-right: 4rem;
  }
  .lg\:py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .lg\:py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .lg\:py-28 {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
  .lg\:gap-4 {
    gap: 1rem;
  }
  .lg\:gap-6 {
    gap: 1.5rem;
  }
  .lg\:gap-8 {
    gap: 2rem;
  }
  .lg\:gap-12 {
    gap: 3rem;
  }
  .lg\:gap-16 {
    gap: 4rem;
  }
  .lg\:mx-0 {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  .testimonial-marquee-track {
    --testimonial-gap: 1rem;
    --testimonial-offset: 0.5rem;
    animation-duration: 26s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .testimonial-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }

  .trust-crawl-line.is-visible {
    animation: none;
    width: 8rem;
  }
}

/* ---- Trust crawl accent line ---- */
.trust-crawl-line {
  height: 3px;
  width: 0;
  max-width: 10rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0.9;
  transition: width 0.01ms;
}

.trust-crawl-line.is-visible {
  animation: trust-crawl-grow 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes trust-crawl-grow {
  from {
    width: 0;
  }
  to {
    width: 8rem;
  }
}

/* ---- Before / after gallery compare ---- */
.ba-compare {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
}

.ba-compare .ba-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-compare .ba-after-wrap {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  width: 50%;
  z-index: 2;
}

.ba-compare .ba-after {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  max-width: none;
  object-fit: cover;
}


.ba-compare .ba-label {
  position: absolute;
  bottom: 0.75rem;
  z-index: 3;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-surface-dark);
  pointer-events: none;
}

.ba-label-before {
  left: 0.75rem;
}
.ba-label-after {
  right: 0.75rem;
}

.ba-compare::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pct, 50%);
  width: 3px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
  z-index: 3;
  pointer-events: none;
  transform: translateX(-50%);
}

.ba-compare img.ba-placeholder {
  object-fit: cover;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%);
}

.hero-bg-fallback,
.about-img-fallback {
  display: block;
}

.hero-video-active .hero-bg-fallback,
.about-video-active .about-img-fallback {
  display: none;
}

.about-video-container {
  position: relative;
  aspect-ratio: 4 / 3;
}

.about-video-container video,
.about-video-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Premium Card Animations — Why Feature / Values Cards ---- */

/* Entrance animation: fade-up when scrolling into view */
.why-feature {
  will-change: transform, opacity, box-shadow;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Premium hover: lift, scale, shadow, border accent */
.why-feature:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    0 20px 40px -8px rgba(0, 102, 255, 0.35),
    0 8px 16px -4px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.18);
}

/* Icon container hover animation */
.why-feature-icon {
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.why-feature:hover .why-feature-icon {
  transform: scale(1.15) rotate(-5deg);
  background-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

/* Icon SVG hover animation */
.why-feature:hover .why-feature-icon svg {
  filter: drop-shadow(0 0 6px rgba(0, 200, 83, 0.5));
}

/* Title subtle color shift on hover */
.why-feature h3 {
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.why-feature:hover h3 {
  transform: translateX(4px);
}

/* Paragraph subtle shift on hover */
.why-feature p {
  transition: opacity 0.3s ease;
}

.why-feature:hover p {
  opacity: 1;
}

/* Reduced motion: disable premium hover animations */
@media (prefers-reduced-motion: reduce) {
  .why-feature:hover {
    transform: none;
    box-shadow: none;
  }
  .why-feature:hover .why-feature-icon {
    transform: none;
  }
  .why-feature:hover h3 {
    transform: none;
  }
}

/* ---- Footer Trust Badges ---- */
.trust-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  cursor: default;
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.trust-badge-icon {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.trust-badge-label {
  font-size: 0.5625rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.trust-badge:hover .trust-badge-icon {
  color: var(--color-accent-dark);
}

.trust-badge:hover .trust-badge-label {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767px) {
  .trust-badges {
    gap: 0.375rem;
  }
  .trust-badge {
    padding: 0.1875rem 0.5rem;
  }
  .trust-badge-icon {
    width: 0.625rem;
    height: 0.625rem;
  }
  .trust-badge-label {
    font-size: 0.5rem;
  }
}

/* ============================================================
   MOBILE OVERFLOW & RESPONSIVE SAFETY (320px–768px)
   ============================================================ */

/* Fluid containers — never exceed viewport */
.max-w-7xl,
.max-w-6xl,
.max-w-4xl,
.max-w-3xl,
.max-w-2xl,
.max-w-xl,
.max-w-lg {
  width: 100%;
}

/* Grid/flex children can shrink below content intrinsic width */
.grid > *,
.flex > *,
[class*="grid-cols"] > * {
  min-width: 0;
}

/* Long URLs, emails, and headings wrap instead of overflowing */
a,
p,
h1,
h2,
h3,
h4,
span,
li,
label,
input,
select,
textarea,
button {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

/* Marquee tracks stay clipped inside their sections */
#hero-stats,
#testimonials {
  max-width: 100%;
  overflow-x: hidden;
}

.hero-stats-viewport,
.testimonial-marquee-viewport {
  max-width: 100%;
  overflow-x: hidden;
}

.hero-stats-track,
.testimonial-marquee-track {
  max-width: none;
}

/* Particles stay inside hero */
#particles-container {
  overflow: hidden;
  inset: 0;
  position: absolute;
  pointer-events: none;
}

/* Decorative elements clipped */
#about-right {
  overflow: hidden;
}

/* Fixed UI stays inside viewport */
#mobile-menu {
  width: 100%;
  max-width: 100vw;
}

#back-to-top {
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

/* Gallery compare images bounded to container */
.ba-compare {
  max-width: 100%;
  overflow: hidden;
}

.ba-compare .ba-after {
  max-width: none;
  width: 100%;
}

/* Contact section — reduce rigid min-height on small screens */
#contact {
  min-height: auto;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

#contact-form-container,
#contact-form {
  max-width: 100%;
}

#contact-form input,
#contact-form select,
#contact-form textarea,
#contact-form button {
  max-width: 100%;
  min-height: 44px;
}

@media (max-width: 767px) {
  /* iOS: fixed backgrounds can cause layout/overflow glitches */
  .bg-fixed {
    background-attachment: scroll !important;
  }

  /* Horizontal scroll-reveal offsets → vertical on mobile */
  .-translate-x-10,
  .translate-x-10,
  .-translate-x-8 {
    transform: translateY(2rem);
  }

  .opacity-100.-translate-x-10,
  .opacity-100.translate-x-10,
  .opacity-100.-translate-x-8,
  .opacity-100.translate-x-0 {
    transform: translateY(0);
  }

  /* Trust bar: allow labels to wrap in 2-col grid */
  #trust-grid .trust-item {
    min-width: 0;
  }

  #trust-grid .trust-item span {
    white-space: normal;
    line-height: 1.3;
  }

  .hero-stat-item span.whitespace-nowrap {
    white-space: normal;
  }

  /* Process steps: single column below 480px */
  #process-timeline .grid.grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Stats / industries: tighter gaps, no overflow from padding */
  #stats-grid,
  #industries-grid {
    gap: 0.75rem !important;
  }

  #stats-grid .stat-item,
  #industries-grid .industry-item {
    min-width: 0;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  /* Hero CTA: stack on very narrow screens */
  #hero-buttons {
    grid-template-columns: 1fr !important;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  #hero-buttons a {
    white-space: normal !important;
    min-height: 44px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2.25rem) !important;
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: clamp(0.9375rem, 3.5vw, 1.125rem) !important;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  #hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Testimonial cards fit narrow viewports */
  .testimonial-card {
    flex: 0 0 min(340px, calc(100vw - 2rem));
  }

  /* Footer email / long links */
  #footer a[href^="mailto:"],
  .footer-email {
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
  }
}

@media (max-width: 479px) {
  /* Single column for cramped 2-col utility grids */
  #trust-grid.grid-cols-2 {
    grid-template-columns: 1fr;
  }

  #stats-grid.grid-cols-2,
  #about-values-grid.grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  #industries-grid.grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  .px-8 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  #hero-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
