/* Custom Styles for Street-Wise Driving School */

html {
    scroll-behavior: smooth;
}

body {
    /* Prevents layout shift when loading fonts */
    font-feature-settings: "cv11", "ss01";
}

/* Smooth reveal animation for scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

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

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

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

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

/* Subtle pattern for background */
.bg-pattern {
    background-image: radial-gradient(#FF6B6B 1px, transparent 1px);
    background-size: 30px 30px;
}

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

/* Animation for hero elements */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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