/* Custom Styles for Agencia Olhae */

/* Navbar Scrolled State */
/* Default Transparent State (Hero) */
#main-nav {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: none; /* Ensure no glass effect */
  transition: all 0.3s ease;
}

#main-nav .nav-link,
#main-nav .nav-icon {
  color: #ffffff; /* Force white text on transparent header */
}

/* Scrolled State (Past Hero) */
#main-nav.scrolled {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#main-nav.scrolled .nav-link {
  color: #1f2937; /* gray-800 */
}
#main-nav.scrolled .nav-icon {
  color: #1f2937;
}

/* Force Light Logo (White) on Transparent Navbar (Hero) */
#main-nav:not(.scrolled) .logo-dark {
  display: none !important;
}
#main-nav:not(.scrolled) .logo-light {
  display: block !important;
}

/* Hover exception */
#main-nav .nav-link:hover,
#main-nav.scrolled .nav-link:hover {
  color: #f47b20; /* brand-500 */
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #f47b20; /* New brand orange */
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d9650f;
}

/* WhatsApp Pulse Animation */
@keyframes pulse-custom {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    transform: scale(1.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    transform: scale(1);
  }
}

.whatsapp-pulse {
  animation: pulse-custom 2s infinite;
}

/* Gradient Text Utility */
.text-gradient {
  background: linear-gradient(to right, #f47b20, #ffb07c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism utilities */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Hover Effects */
.service-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #f47b20;
}

/* Form Styles */
input,
textarea {
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #f47b20;
  box-shadow: 0 0 0 3px rgba(244, 123, 32, 0.2);
}

/* Marquee Styles */
.marquee-container {
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.portfolio-track,
.testimonials-track,
.clients-track {
  display: flex;
  gap: 1.5rem; /* 24px */
  width: max-content;
  animation: marquee 40s linear infinite;
  will-change: transform;
}

/* Force items to take up exactly one third of the viewport width (minus gaps) on larger screens */
.portfolio-track > div,
.testimonials-track > div {
  width: 80vw; /* Mobile default: big card */
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .portfolio-track > div,
  .testimonials-track > div {
    /* (100vw - 2 * gap) / 3 */
    /* gap is 1.5rem (24px). 2 * 1.5 = 3rem */
    width: calc((100vw - 3rem) / 3);
  }
}

/* Reset width for clients logo track, as they are small items */
.clients-track > div {
  /* width: auto !important; - Removed to allow Tailwind width classes */
  flex: 0 0 auto !important;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(
      -50%
    ); /* Move half the width since we duplicated items */
  }
}

/* Pause animation on hover */
.hover\:pause-animation:hover {
  animation-play-state: paused;
}

/* Hide scrollbar just in case */
.marquee-container::-webkit-scrollbar {
  display: none;
}
.marquee-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hero Background Animation */
.hero-slide {
  opacity: 0;
  animation: hero-fade 18s infinite;
}

@keyframes hero-fade {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  3% {
    opacity: 1;
  }
  33% {
    opacity: 1;
    transform: scale(1.05); /* Subtle zoom effect */
  }
  100% {
    opacity: 0;
  }
}

/* Custom Light Mode Navbar Background */
#main-nav,
#main-nav.glass,
#main-nav.scrolled {
  background: #ffffff;
}
