/* Custom Styles for Advanced Truck & Auto Repair */

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

/* Custom Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px) rotate(12deg);
    }
    50% {
        transform: translateY(-15px) rotate(12deg);
    }
}

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

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

/* Service Card Hover Effect */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background-color: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 6px;
}

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

/* Button Focus States */
button:focus,
a:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Image Loading Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
}

/* Print Styles */
@media print {
    nav, .animate-float, .animate-float-delayed, .animate-bounce {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
