/* Custom styles for Williams Shoe and Boot Repair */

/* Base font styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

.font-space {
    font-family: 'Space Grotesk', sans-serif;
}

/* Floating animation for geometric shapes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(var(--rotation, 12deg));
    }
    50% {
        transform: translateY(-20px) rotate(var(--rotation, 12deg));
    }
}

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

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

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

#mobileMenu.open {
    max-height: 300px;
}

/* Hamburger animation */
#menuBtn.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active #bar2 {
    opacity: 0;
}

#menuBtn.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* Service card hover effects */
.group:hover .absolute {
    opacity: 1;
    transform: translateX(1rem) translateY(-1rem);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* Selection color */
::selection {
    background: #0d9488;
    color: white;
}

/* Fade-in animation for scroll reveal */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.fade-in.stagger-1 { transition-delay: 0.1s; }
.fade-in.stagger-2 { transition-delay: 0.2s; }
.fade-in.stagger-3 { transition-delay: 0.3s; }
.fade-in.stagger-4 { transition-delay: 0.4s; }
.fade-in.stagger-5 { transition-delay: 0.5s; }
.fade-in.stagger-6 { transition-delay: 0.6s; }

/* Mobile responsive tweaks */
@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem !important;
    }
    
    .font-space.font-bold.text-3xl {
        font-size: 1.875rem !important;
    }
}
