/* Custom styles for Dutchess School of Driving */

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

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

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

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

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

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is visible without JS */
@supports not (animation-name: test) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    50% {
        transform: translateY(-20px) rotate(45deg);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0) rotate(12deg);
    }
    50% {
        transform: translateY(20px) rotate(12deg);
    }
}

.floating-shape-1 {
    animation: float 6s ease-in-out infinite;
}

.floating-shape-2 {
    animation: float-reverse 8s ease-in-out infinite;
}

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

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8787 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism effect */
.glass {
    background: rgba(45, 45, 68, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Pulse animation for CTA buttons */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 107, 0.6);
    }
}

.cta-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #FF6B6B;
    outline-offset: 2px;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

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

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

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

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #2d2d44 25%, #3d3d5c 50%, #2d2d44 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-shape-1,
    .floating-shape-2 {
        display: none;
    }
}
