/* FESA - Custom Styles */

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

/* Custom animations */
@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* WhatsApp button pulse effect */
.whatsapp-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  z-index: -1;
}

/* Fade in animation */
.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out forwards;
}

/* Hero gradient overlay - animated fire effect */
/* RAL 3003 Ruby Red: #9B111E */
.hero-overlay {
  background:
    radial-gradient(ellipse at 80% 100%, rgba(155, 17, 30, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 100%, rgba(155, 17, 30, 0.35) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 120%, rgba(155, 17, 30, 0.6) 0%, transparent 60%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.9) 50%, rgba(50, 35, 35, 0.85) 100%);
  animation: fire-glow 4s ease-in-out infinite alternate;
}

@keyframes fire-glow {
  0% {
    background:
      radial-gradient(ellipse at 80% 100%, rgba(155, 17, 30, 0.5) 0%, transparent 50%),
      radial-gradient(ellipse at 20% 100%, rgba(155, 17, 30, 0.35) 0%, transparent 40%),
      radial-gradient(ellipse at 50% 120%, rgba(155, 17, 30, 0.6) 0%, transparent 60%),
      linear-gradient(180deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.9) 50%, rgba(50, 35, 35, 0.85) 100%);
  }
  100% {
    background:
      radial-gradient(ellipse at 75% 100%, rgba(155, 17, 30, 0.6) 0%, transparent 55%),
      radial-gradient(ellipse at 25% 100%, rgba(155, 17, 30, 0.4) 0%, transparent 45%),
      radial-gradient(ellipse at 50% 110%, rgba(155, 17, 30, 0.5) 0%, transparent 55%),
      linear-gradient(180deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.9) 50%, rgba(55, 38, 38, 0.85) 100%);
  }
}

/* Navigation shadow on scroll */
.nav-scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Product card hover effect */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button hover effect */
.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
}

/* Mobile menu transition */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
  max-height: 300px;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #DC2626;
  outline-offset: 2px;
}

/* Image lazy loading placeholder */
img[loading="lazy"] {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
}
