/* Custom styles for Abi Driving School */

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

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

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

/* Selection color */
::selection {
    background: #f0a500;
    color: #0a1628;
}

/* Geometric decorative elements */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-square {
    position: absolute;
    pointer-events: none;
}

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

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

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.15);
}

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

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

.btn-primary:active::before {
    width: 300px;
    height: 300px;
}

/* Floating animation variants */
.float-slow {
    animation: float 8s ease-in-out infinite;
}

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(2deg);
    }
    66% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

/* Pulse animation for CTA */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(240, 165, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(240, 165, 0, 0);
    }
}

.pulse-cta {
    animation: pulse-gold 2s infinite;
}

/* Pattern backgrounds */
.pattern-dots {
    background-image: radial-gradient(circle, #f0a500 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.pattern-grid {
    background-image: 
        linear-gradient(rgba(240, 165, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 165, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

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

/* Print styles */
@media print {
    nav, .mobile-menu, #mobile-menu-btn {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

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

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