/* Custom styles for Wild Rootz */

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
  background: #f6f6f7;
}

::-webkit-scrollbar-thumb {
  background: #c7c8cc;
  border-radius: 4px;
}

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

/* Selection color */
::selection {
  background: #ffe8df;
  color: #1a1c21;
}

/* Image hover zoom effect */
.img-zoom {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom:hover {
  transform: scale(1.05);
}

/* Coral accent underline */
.accent-line {
  position: relative;
}

.accent-line::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #f76e3c, transparent);
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float {
  animation: float 6s ease-in-out infinite;
}

/* Fade-in animation for scroll-triggered elements */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile menu slide animation */
@media (prefers-reduced-motion: no-preference) {
  .menu-slide {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .menu-slide.open {
    transform: translateX(0);
  }
}

/* Navigation hover effects */
nav a {
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f76e3c;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Service card hover effect */
.service-card {
  transition: all 0.5s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(26, 28, 33, 0.1);
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(247, 110, 60, 0.3);
}

.btn-secondary {
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(26, 28, 33, 0.2);
}

/* Testimonial card hover */
.testimonial-card {
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(26, 28, 33, 0.08);
}

/* Gallery image overlay */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 28, 33, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .img-zoom {
    transition: transform 0.5s ease;
  }
  
  .float {
    animation-duration: 8s;
  }
}
