/* Custom styles for Right-Way Driving School */

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

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

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

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

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Apply animations */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

/* Geometric shape decorations */
.geometric-shape {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

/* Gradient overlays */
.gradient-overlay {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(45, 45, 68, 0.7) 100%);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 79, 0.2);
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #FF6B4F 0%, #FF8566 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive typography */
@media (max-width: 640px) {
    .font-heading {
        font-size: 2rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .font-heading {
        font-size: 3rem;
    }
}

@media (min-width: 1025px) {
    .font-heading {
        font-size: 4rem;
    }
}

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

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

/* Print styles */
@media print {
    nav,
    #mobile-menu-btn,
    .btn-ripple {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .text-coral-500,
    .text-coral-400 {
        color: #FF6B4F;
    }
}
