/* --- Elite Design System v2.0 --- */
:root {
  --primary: #0a0f1d;
  --secondary: #1e293b;
  --accent: #2563eb;
  --accent-light: #60a5fa;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --bg-dark: #020617;
  --glass: rgba(15, 23, 42, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Offset anchors for sticky header */
[id] {
  scroll-margin-top: 96px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #334155;
  background-color: #ffffff;
  line-height: 1.6;
}

/* Dark Mode Utilities */
.dark-theme {
  background-color: var(--bg-dark);
  color: var(--text-main);
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--primary);
  transition: color 0.3s ease;
}

/* Specific fix for headings in dark sections */
.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme h4,
.glass-card h1,
.glass-card h2,
.glass-card h3,
.glass-card h4 {
  color: var(--text-main);
}

.heading-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Global Navigation Styles */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.6);
}

.premium-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 1.25rem;
  padding: 2.5rem;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.premium-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-light);
}

/* Clients marquee */
#clients-track {
  animation: marquee 18s linear infinite;
  padding: 8px 0;
}

#clients-track:hover {
  animation-play-state: paused;
}

#clients-list img,
#clients-list-dup img {
  height: 150px;
  /* Increased from 110px */
  object-fit: contain;
  filter: none;
  /* Removed grayscale by default */
  opacity: 1;
  transition: all 0.3s ease;
  padding: 0 10px;
}

#clients-list img:hover,
#clients-list-dup img:hover {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  #clients-track {
    animation: none;
  }

  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Testimonials fade */
.testimonial-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.15);
  opacity: 1;
}

/* Testimonials horizontal scroller */
#testimonials-list {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Hide scrollbar for Firefox */
  -ms-overflow-style: none;
  /* Hide scrollbar for IE and Edge */
}

.testimonials-track {
  display: flex;
  gap: 32px;
  animation: testimonial-marquee 40s linear infinite;
}

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

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

  100% {
    transform: translateX(-50%);
  }
}

#testimonials-list::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar for Chrome/Safari */
}

#testimonials-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.testimonial-card {
  min-width: 320px;
  scroll-snap-align: start;
}

/* Buttons */
.btn-elite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.5rem;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-elite-primary {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: white;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
  border: none;
}

.btn-elite-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.6);
  color: white;
}

.btn-elite-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: 0.5s;
}

.btn-elite-primary:hover::after {
  left: 100%;
}

/* Micro-animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1);
  will-change: transform, opacity;
}

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

/* Staggered reveals via CSS variables if added in HTML (optional enhancement) */
.reveal:nth-child(2) {
  transition-delay: 100ms;
}

.reveal:nth-child(3) {
  transition-delay: 200ms;
}

/* Section Dividers */
.divider-soft {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  margin: 5rem 0;
}