/* Custom styles for Kennesaw Auto Tech */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #faf9f6;
}
::-webkit-scrollbar-thumb {
    background: #5a7a47;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #456136;
}

/* Navbar scroll effect */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(250, 249, 246, 0.0);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav-fixed.scrolled {
    background: rgba(250, 249, 246, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

/* Hero floating stat cards */
.stat-card-1 {
    animation: float1 6s ease-in-out infinite;
}
.stat-card-2 {
    animation: float2 7s ease-in-out infinite;
}
.stat-card-3 {
    animation: float3 5.5s ease-in-out infinite;
}
.stat-card-4 {
    animation: float4 6.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Service card hover */
.service-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background-color 0.5s ease,
                border-color 0.5s ease;
}

/* Scroll reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.visible-reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu animation */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Button focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #5a7a47;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #5a7a47;
    color: #faf9f6;
}
