/* Custom styles for Splatte */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Navbar scroll effect */
.navbar-scrolled {
  box-shadow: 0 4px 20px rgba(26, 29, 35, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #E07A5F;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C9664A;
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Hero animations */
.hero-content {
  animation: fadeInLeft 0.9s ease forwards;
}

.hero-image {
  animation: fadeInRight 0.9s ease forwards;
}

.hero-float-card {
  animation: fadeInUp 1s ease 0.5s both;
}

/* Service card hover */
.group:hover .group-hover\:rotate-1 {
  transform: rotate(1deg);
}

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

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

/* Smooth focus for inputs */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15);
}

/* Counter animation */
.counter {
  display: inline-block;
}

/* Mobile nav active state */
#mobile-menu a.active {
  color: #E07A5F;
}
