/* === Custom Styles for Cholula Mexican Products === */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf9ee;
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* === Navbar === */
#navbar {
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
  background: rgba(254, 253, 248, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #34d399;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
.mobile-link {
  position: relative;
  padding: 8px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.mobile-link:hover {
  color: #10b981;
  padding-left: 8px;
}

/* === Buttons === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #0f172a;
  color: #fff;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #0f172a;
}
.btn-primary:hover {
  background: #1e4ae0;
  border-color: #1e4ae0;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 74, 224, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  color: #0f172a;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid rgba(15, 23, 42, 0.15);
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: #fff;
  border-color: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 211, 153, 0.15);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #0f172a;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #fff;
}
.btn-white:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #fff;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* === Floating Cards === */
.floating-card {
  animation: float 6s ease-in-out infinite;
}
.floating-card:nth-child(2) {
  animation-delay: -2s;
}
.floating-card:nth-child(3) {
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* === Product Cards === */
.product-card {
  background: #fff;
  border-radius: 20px;
  padding: 8px;
  transition: all 0.4s ease;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
}

/* === Input Fields === */
.input-field {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #0f172a;
  background: #fefdf8;
  transition: all 0.3s ease;
  outline: none;
}
.input-field::placeholder {
  color: #9ca3af;
}
.input-field:focus {
  border-color: #34d399;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1);
}

/* === Marquee === */
.marquee-track {
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Reveal Animations === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* === Section dividers === */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(52, 211, 153, 0.3), transparent);
}

/* === Responsive adjustments === */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }
  #hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 80px;
  }
  #hero > div > div {
    flex-direction: column;
  }
}

/* === Print styles === */
@media print {
  #navbar, .marquee-track, #contact {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
