/* Custom styles for Buffalo CarWash */

/* Smooth scroll padding for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040d1a;
}
::-webkit-scrollbar-thumb {
    background: rgba(52, 211, 153, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 211, 153, 0.5);
}

/* Selection color */
::selection {
    background: #34d399;
    color: #040d1a;
}

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

/* Mobile menu animations */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Geometric decorations */
.geo-shape {
    will-change: transform;
}

/* Service card hover glow */
.card-hover {
    position: relative;
    overflow: hidden;
}
.card-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}
.card-hover:hover::after {
    opacity: 1;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(4, 13, 26, 0.95) !important;
    border-bottom-color: rgba(52, 211, 153, 0.1) !important;
}

/* Hero text gradient */
.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(52, 211, 153, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Button ripple effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Form select dropdown styling */
select.form-input {
    background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%2334d399%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpolyline points=%226 9 12 15 18 9%22%3E%3C/polyline%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
}
select.form-input option {
    background: #040d1a;
    color: #f8fafc;
}

/* Mobile menu overlay */
.mobile-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}
.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .card-hover,
    .btn-primary,
    .btn-outline,
    .service-icon,
    .geo-shape,
    .mobile-menu {
        transition: none;
        animation: none;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card-hover {
        border-color: rgba(52, 211, 153, 0.5);
    }
    .form-input {
        border-color: rgba(52, 211, 153, 0.5);
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #contact-form button {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    .hero-gradient {
        background: white !important;
    }
}
