/* Custom styles for Right Way Defensive Driver School */

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

/* Ensure proper box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #dc4d68, #a11f3a);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c42d4c, #821d36);
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Better focus styles for accessibility */
:focus-visible {
    outline: 3px solid #dc4d68;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, .mobile-menu, button {
        display: none !important;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    }
    
    .split-hero {
        min-height: auto;
    }
}

/* Animation keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.7;
    }
}

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

.geo-shape:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.geo-shape:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 7s;
}

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