/* Custom styles for A Alamo Driving & Traffic School */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d2d8a;
}
::-webkit-scrollbar-thumb {
    background: #ffbe00;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ffd02e;
}

/* Selection color */
::selection {
    background: #ffbe00;
    color: #0d2d8a;
}

/* Reveal animations - progressive enhancement, only when JS runs */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobileMenu.open {
    max-height: 400px;
}

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

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

/* Button hover effects */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f0f3ff 0%, #d9e0ff 100%);
}

/* Hero section subtle animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Gold gradient text effect */
.gold-gradient {
    background: linear-gradient(135deg, #ffbe00 0%, #ffd02e 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(13, 45, 138, 0.15);
}

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