/* Custom styles for RedOx Automotive */

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

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

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

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

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* Stagger children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Hero entrance animation */
.hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content-delay {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-content-delay-2 {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* Service card hover effect */
.group:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

.service-icon {
    transition: transform 0.3s ease;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Map container */
iframe {
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: grayscale(0%);
}

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

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

/* Print styles */
@media print {
    #navbar, #mobile-menu-btn, .animate-on-scroll {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}
