/* Custom styles for Fairway Auto Repair */

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

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

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

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

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

/* Geometric decorative elements */
.geo-shape-1 {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #53a88e 0%, #2d8a6e 100%);
    border-radius: 24px;
    transform: rotate(15deg);
    opacity: 0.1;
}

.geo-shape-2 {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #b9dccd;
    border-radius: 50%;
    opacity: 0.3;
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #53a88e;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 138, 110, 0.2);
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98);
}

/* Navbar scroll effect */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Hero image overlay gradient */
.hero-overlay {
    background: linear-gradient(135deg, rgba(14, 55, 43, 0.3) 0%, rgba(14, 55, 43, 0.1) 100%);
}

/* Geometric pattern background */
.geo-pattern {
    background-image: 
        linear-gradient(45deg, rgba(14, 55, 43, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(14, 55, 43, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(14, 55, 43, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(14, 55, 43, 0.03) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

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

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
