/* ===== Marquee Animation ===== */
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 25s linear infinite;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.menu-open {
  opacity: 1;
}

/* ===== Scroll Animations ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-left"] {
  transform: translateX(-30px);
}

[data-animate="fade-right"] {
  transform: translateX(30px);
}

[data-animate="scale"] {
  transform: scale(0.9);
  opacity: 0;
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* ===== CTA Hover Effects ===== */
.cta-hero {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-hero:hover {
  transform: scale(1.05);
}

.cta-hero:active {
  transform: scale(0.98);
}

/* ===== Toast Notifications ===== */
.toast-notification {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  background: hsl(210 20% 95%);
  border: 1px solid hsl(210 20% 85%);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-family: 'Outfit', sans-serif;
  max-width: 360px;
}

.toast-notification.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-notification strong {
  display: block;
  color: hsl(210 40% 12%);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.toast-notification p {
  color: hsl(210 15% 45%);
  font-size: 0.8125rem;
  margin: 0;
}

/* ===== Spinner ===== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid hsl(210 20% 95% / 0.3);
  border-top-color: hsl(210 20% 95%);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

/* ===== Header States ===== */
.site-header {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-scrolled {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-scrolled nav {
  height: 4.5rem !important;
}

.header-scrolled .header-logo {
  height: 3rem !important;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-logo {
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Smooth scroll ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Form focus styles ===== */
.form-input:focus {
  outline: none;
  ring: 2px;
  border-color: hsl(210 45% 25%);
  box-shadow: 0 0 0 2px hsl(210 45% 25% / 0.2);
}

select.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
}

/* ===== Button Glow on Hover ===== */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-glow:active {
  transform: translateY(0);
}

/* ===== Card Hover Lift ===== */
.card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* ===== Gallery Image Overlay ===== */
.gallery-item .gallery-overlay {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ===== Section Divider ===== */
.section-divider {
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: hsl(45 75% 55%);
  border-radius: 2px;
}

/* ===== Back to Top Button ===== */
.back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ===== WhatsApp Floating Button Pulse ===== */
@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
  animation: whatsapp-pulse 2.5s infinite;
}

.whatsapp-float:hover {
  animation: none;
}

/* ===== Nav Link Underline Effect ===== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: hsl(210 45% 25%);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== Textured Background for Primary Sections ===== */
.bg-texture {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 24px 24px;
}
