/* ==========================================================================
   Momentum – Tony Robbins landing page clone (educational recreation)
   Custom styles kept intentionally minimal. Tailwind utility classes handle
   the bulk of layout/spacing/typography. This file only holds things that are
   awkward or impossible with utilities alone (keyframes, scroll behaviour,
   reveal-on-scroll base state, custom scrollbar, marquee, etc.).
   ========================================================================== */

:root {
  --gold: #e0a83e;
  --gold-light: #f2c868;
  --ember: #e4572e;
  --ink: #0b0b0f;
}

/* ---- Base ---------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* offset for the sticky navbar when jumping to #anchors */
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---- Reusable utility classes ------------------------------------------- */

/* Warm brand gradient used on headlines / accents. */
.text-gradient-gold {
  background: linear-gradient(120deg, var(--gold-light) 0%, var(--gold) 45%, var(--ember) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.bg-gradient-gold {
  background-image: linear-gradient(120deg, var(--gold-light) 0%, var(--gold) 50%, var(--ember) 120%);
}

/* Subtle glassmorphism used on the navbar once the user scrolls. */
.glass {
  background-color: rgba(11, 11, 15, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

/* Thin gradient divider. */
.rule-gold {
  height: 2px;
  background-image: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Fixed-ratio media box helper (works without the aspect-ratio plugin). */
.ratio-16-9 {
  position: relative;
  aspect-ratio: 16 / 9;
}
.ratio-4-3 {
  position: relative;
  aspect-ratio: 4 / 3;
}

/* ---- Reveal-on-scroll ---------------------------------------------------- */
/* Elements tagged with [data-reveal] start hidden and are shown by main.js
   through an IntersectionObserver adding the .is-visible class. */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
/* Optional stagger via inline style --delay set in markup. */
[data-reveal][style*="--delay"] {
  transition-delay: var(--delay);
}

/* ---- Keyframe animations ------------------------------------------------- */
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
.animate-float {
  animation: floatY 6s ease-in-out infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.pulse-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px solid var(--gold);
  animation: pulseRing 2.4s ease-out infinite;
}

/* ---- Marquee (trusted-by logo strip) ------------------------------------ */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover .marquee {
  animation-play-state: paused;
}

/* ---- Count-up numbers keep layout stable -------------------------------- */
.stat-num {
  font-variant-numeric: tabular-nums;
}

/* ---- Horizontal snap sliders (testimonials / products) ------------------ */
.snap-x-scroller {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.snap-x-scroller::-webkit-scrollbar {
  display: none;
}
.snap-item {
  scroll-snap-align: start;
}

/* ---- Custom page scrollbar ---------------------------------------------- */
@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #0b0b0f;
  }
  ::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 9999px;
    border: 2px solid #0b0b0f;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
  }
}

/* ---- Line clamp fallback (older browsers) ------------------------------- */
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Back-to-top button visibility -------------------------------------- */
#backToTop {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}



@media (max-width: 768px) {
    .custom_background_position {
        background-position: 80% 50% !important;
        background-size: unset !important;
    }
}