/* Custom styles for Linda Taylor Driving School */

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

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

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

::-webkit-scrollbar-thumb {
    background: #102a43;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #243b53;
}

/* Geometric shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.geo-circle {
    border-radius: 50%;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-style: solid;
}

.geo-diamond {
    transform: rotate(45deg);
}

/* Hero pattern */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 202, 40, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 179, 0, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #102a43 0%, #243b53 50%, #334e68 100%);
}

/* Service card hover */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 42, 67, 0.15);
}

/* 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%;
}

/* Mobile menu animation */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* Gold accent line */
.gold-line {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, #ffca28, #ffb300);
    border-radius: 2px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero-pattern {
        background-image: 
            radial-gradient(circle at 50% 50%, rgba(255, 202, 40, 0.1) 0%, transparent 60%),
            linear-gradient(135deg, #102a43 0%, #243b53 100%);
    }

    .geo-shape {
        display: none;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}
