/* Custom styles for CRT Auto Repair & Towing */

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

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

::-webkit-scrollbar-track {
    background: #112D40;
}

::-webkit-scrollbar-thumb {
    background: #2DD4BF;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #14B8A6;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

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

/* Apply animations to decorative elements */
.absolute.top-32.right-1\/4 {
    animation: float 6s ease-in-out infinite;
}

.absolute.bottom-32.left-1\/4 {
    animation: float-delayed 5s ease-in-out infinite;
}

/* Hover effects for service cards */
.group:hover .group-hover\:-translate-y-2 {
    transform: translateY(-0.5rem);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #2DD4BF;
    outline-offset: 2px;
}

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

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    nav,
    .fixed {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}
