/* Additional custom styles for Mirza Academy Driving School */

/* Base resets */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Selection color */
::selection {
    background: rgba(4, 120, 87, 0.4);
    color: #fefdf8;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Custom select styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310b981' 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 12px center;
    padding-right: 40px;
}

/* Gold gradient border utility */
.gold-border-bottom {
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, #d4a853, #f0d68a, #d4a853, transparent) 1;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 9999;
}

/* 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;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .float-anim {
        animation: none;
    }
    .hero-gradient {
        animation: none;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, button, iframe {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    .gold-text {
        -webkit-text-fill-color: #8B6914 !important;
    }
}
