/* Custom styles for El Carbon Express */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FFF5F0;
}
::-webkit-scrollbar-thumb {
  background: #FFAD8A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF7A4E;
}

/* Selection color */
::selection {
  background: #FFD0BB;
  color: #1E1E1E;
}

/* Animation keyframes */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Floating animation for decorative elements */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Pulse animation for badges */
.pulse-soft {
  animation: pulse-soft 2s ease-in-out infinite;
}

/* Fade-in animation for scroll reveals */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for children */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-in-up {
    opacity: 1;
    transform: none;
  }
  .float-animation,
  .pulse-soft {
    animation: none;
  }
}

/* Navbar scroll effect */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Image hover zoom */
img {
  transition: transform 0.3s ease;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #FF5A2E;
  outline-offset: 2px;
}

/* Form input focus */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 90, 46, 0.1);
}
