/* Custom styles for Top Notch Driving School */

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

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

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

::-webkit-scrollbar-thumb {
    background: #383838;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: rgba(255, 107, 74, 0.3);
    color: #f7f7f7;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(67, 67, 67, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gold shimmer effect for accents */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse animation for the green dot */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23818181' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Image hover zoom */
.group:hover img {
    transform: scale(1.02);
}

/* Smooth image transitions */
img {
    transition: transform 0.3s ease;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobileMenu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobileMenu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

/* Button ripple effect */
button::after,
a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

/* Ensure all text is readable */
.text-charcoal-300 {
    color: #a4a4a4;
}

.text-charcoal-400 {
    color: #818181;
}

.text-charcoal-500 {
    color: #666666;
}

/* Ensure proper contrast on all backgrounds */
.bg-charcoal-900\/80 {
    background-color: rgba(56, 56, 56, 0.8);
}

.bg-charcoal-950 {
    background-color: #1a1a1a;
}

/* Print styles */
@media print {
    nav, #contact, .scroll-reveal {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
