/* Custom styles for Freeman's Auto & Small Engine Repair */

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

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

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

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

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 1s;
}

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

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

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

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

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

/* Nav active state */
nav a.active {
    color: #FF6B4A;
}

/* Card hover effects */
.group:hover .group-hover\:rotate-6 {
    transform: rotate(6deg);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #FF6B4A;
    box-shadow: 0 0 0 1px #FF6B4A;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

/* Menu lines animation */
.menu-line {
    transition: all 0.3s ease-in-out;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

#back-to-top:not(.visible) {
    opacity: 0;
    pointer-events: none;
}

/* Geometric decorative elements */
.geometric-accent {
    position: absolute;
    pointer-events: none;
}

.geometric-accent.circle {
    border-radius: 50%;
}

.geometric-accent.square {
    transform: rotate(45deg);
}

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

/* Responsive typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
}

/* Print styles */
@media print {
    nav,
    #back-to-top,
    .animate-float,
    .animate-float-delayed {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-charcoal-900,
    .bg-charcoal-800 {
        background: white !important;
    }
    
    .text-white,
    .text-charcoal-300,
    .text-charcoal-400 {
        color: black !important;
    }
    
    .text-coral-400,
    .text-coral-500 {
        color: #FF6B4A !important;
    }
}
