/* Stuf Media — custom styles (Tailwind via CDN handles utilities) */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
}

/* Backdrop blur + rounded-full can clip children; keep logo fully visible */
#site-nav {
  overflow: visible !important;
}

/* Hero SM mark: subtle orange glow (gradient animation is in the SVG) */
.hero-sm-glow {
  filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.35));
}

/* Navbar links — minimal, no pill background */
.nav-link {
  position: relative;
  border: 0;
  background-color: transparent;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #f97316;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: #f97316;
  transition: width 0.3s ease;
}

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

@media (min-width: 768px) {
  .nav-link {
    display: inline-block;
    padding: 0.5rem 0;
  }
}

/* Navbar scroll state */
#site-nav.nav-scrolled {
  background: rgba(10, 10, 10, 0.75);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.65);
}

/* Orange → yellow gradient buttons */
.btn-gradient {
  background: linear-gradient(135deg, #ff7a00 0%, #ffb020 50%, #ffdd00 100%);
  background-size: 200% 200%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.4s ease;
}

.btn-gradient:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(255, 122, 0, 0.55);
}

/* Hero load animation */
.hero-animate {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-animate-delay {
  animation-delay: 0.15s;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hero: text reveals from orange line → right (cinematic) */
#home .reveal-text {
  overflow: hidden;
  display: block;
  max-width: 100%;
}

#home .reveal-text--headline h1 {
  position: relative;
  display: inline-block;
  margin: 0;
  transform: translateX(-3rem);
  opacity: 0;
  filter: blur(10px);
  background: linear-gradient(105deg, #f97316 0%, #fb923c 38%, #ffffff 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

#home .reveal-text--headline.animate h1 {
  animation: heroRevealHeading 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0s);
}

#home .reveal-text--headline h1::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.35) 45%,
      transparent 100%);
  transform: translateX(-130%);
  opacity: 0;
  pointer-events: none;
}

#home .reveal-text--headline.animate h1::after {
  animation: heroTextSweep 1.15s ease-out forwards;
  animation-delay: calc(var(--reveal-delay, 0s) + 0.08s);
  opacity: 1;
}

@keyframes heroRevealHeading {
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes heroTextSweep {
  0% {
    transform: translateX(-100%);
    opacity: 0.55;
  }

  100% {
    transform: translateX(260%);
    opacity: 0;
  }
}

#home .reveal-text--tagline p {
  margin: 0;
  transform: translateX(-2.25rem);
  opacity: 0;
  filter: blur(6px);
}

#home .reveal-text--tagline.animate p {
  animation: heroRevealTagline 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0s);
}

@keyframes heroRevealTagline {
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@media (max-width: 767px) {

  #home .reveal-text--headline.animate h1,
  #home .reveal-text--tagline.animate p {
    animation-duration: 0.85s;
  }
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Service cards animated reveal */
.card-reveal {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

@media (min-width: 640px) {
  .card-reveal {
    transform: translateY(30px);
  }
}

.card-reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Hide scrollbar for mobile scroll containers */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Mobile nav */
@media (max-width: 767px) {
  #nav-menu.is-open {
    display: flex;
  }
}

@media (min-width: 768px) {
  #nav-menu {
    display: flex !important;
  }
}

/* WhatsApp subtle pulse */
.whatsapp-btn {
  animation: waPulse 2.5s ease-in-out infinite;
}

@keyframes waPulse {

  0%,
  100% {
    box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.5);
  }

  50% {
    box-shadow: 0 14px 40px -8px rgba(37, 211, 102, 0.65);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-animate,
  .hero-animate-delay,
  .reveal-on-scroll,
  .card-reveal,
  .whatsapp-btn {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  #home .reveal-text--headline h1,
  #home .reveal-text--tagline p {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  #home .reveal-text--headline h1::after {
    display: none !important;
  }

  .reveal-on-scroll {
    transition: none;
  }

  .hero-sm-glow {
    filter: none;
  }
}

/* Typing cursor animation */
.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  50%,
  100% {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0;
  }
}

/* Premium Client Showcase */
.clients-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  height: 100%;
}

@media (min-width: 768px) {
  .clients-grid-container {
    gap: 1.5rem;
  }
}

.client-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.client-col-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {

  .client-col,
  .client-col-inner {
    gap: 1.5rem;
  }
}

.client-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .client-card {
    border-radius: 20px;
    padding: 16px;
    height: 130px;
  }
}

.client-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.client-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

@keyframes marqueeUpMobile {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(calc(-50% - 0.375rem));
  }
}

@keyframes marqueeDownMobile {
  0% {
    transform: translateY(calc(-50% - 0.375rem));
  }

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

@keyframes marqueeUpDesktop {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(calc(-50% - 0.75rem));
  }
}

@keyframes marqueeDownDesktop {
  0% {
    transform: translateY(calc(-50% - 0.75rem));
  }

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

.animate-marquee-up {
  animation: marqueeUpMobile 30s linear infinite;
}

.animate-marquee-down {
  animation: marqueeDownMobile 30s linear infinite;
}

@media (min-width: 768px) {
  .animate-marquee-up {
    animation: marqueeUpDesktop 30s linear infinite;
  }

  .animate-marquee-down {
    animation: marqueeDownDesktop 30s linear infinite;
  }
}