/* Custom styles for All Star Driver Education */

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

/* Scroll reveal base - content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal hidden state - applied via JS only */
.scroll-reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 250, 245, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 1px 20px rgba(160, 34, 60, 0.08) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFFAF5;
}
::-webkit-scrollbar-thumb {
    background: #dc4d6b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a0223c;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #701d32;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

.hero-shape-1 { animation: float 6s ease-in-out infinite; }
.hero-shape-2 { animation: floatSlow 8s ease-in-out infinite; }
.hero-shape-3 { animation: pulse-glow 4s ease-in-out infinite; }

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

/* Input focus styles */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(220, 77, 107, 0.1);
}
