/* Custom styles for Aroostook Driving School */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    }
    
    ::-webkit-scrollbar-track {
        background: #1a1a1f;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #FF6B4A;
        border-radius: 5px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #FF8A6E;
    }

/* Geometric pattern background */
.geo-pattern {
    background-image: 
        linear-gradient(45deg, rgba(255,107,74,0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,107,74,0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,107,74,0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,107,74,0.05) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
}

/* Button hover effect */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Card hover effect */
.service-card {
    transition: all 0.3s ease;
    position: relative;
}

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

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: #FF6B4A;
    transition: width 0.3s ease;
}

.service-card:hover::after {
    width: 100%;
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #FF6B4A;
    box-shadow: 0 0 0 3px rgba(255,107,74,0.2);
}

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

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

/* Reduced motion */
@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;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card:hover {
        transform: none;
    }
}
