/* Custom CSS for Waipa Car Grooming */

/* Google Fonts Imports */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block');

/* Base Styles */
html {
    scroll-behavior: smooth;
}
body {
    background-color: #131313;
    color: #e4e2e1;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
html {
    scrollbar-width: thin;              /* Firefox */
    scrollbar-color: #2a2a2a #131313;   /* Firefox */
}
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #131313;
}
::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #393939;
}

/* Overlays */
.service-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
}
.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

/* Carbon & Noise Textures */
.custom-noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
}
.carbon-pattern {
    background-image: linear-gradient(45deg, #1c1c1c 25%, transparent 25%), 
                      linear-gradient(-45deg, #1c1c1c 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #1c1c1c 75%), 
                      linear-gradient(-45deg, transparent 75%, #1c1c1c 75%);
    background-size: 4px 4px;
    background-position: 0 0, 0 2px, 2px 2px, 2px 0;
}
.carbon-texture {
    background-color: #1c1c1c;
    background-image: radial-gradient(#2a2a2a 0.5px, transparent 0.5px);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
}

/* Glassmorphism Panels */
.glass-card {
    background: rgba(28, 28, 28, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.glass-panel {
    background: rgba(28, 28, 28, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #2a2a2a;
}
.glass-header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Custom Interactive Controls */
.input-glow:focus {
    outline: none;
    border-bottom-color: #b3c5ff;
    box-shadow: 0 4px 12px -4px rgba(179, 197, 255, 0.3);
}

/* Keyboard focus visibility (accessibility) */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #b3c5ff;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Animations */
.aerodynamic-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.aerodynamic-hover:hover {
    transform: scaleX(1.02);
    letter-spacing: 0.05em;
}

.metallic-glow {
    box-shadow: 0 0 20px rgba(179, 197, 255, 0.1);
}

.review-card:hover {
    border-color: #b3c5ff;
    transform: translateY(-4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-active {
    border-bottom: 2px solid #b3c5ff;
    padding-bottom: 4px;
    color: #b3c5ff;
}

/* Custom Scan Animation */
@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Icon customizations */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Before / After Slider Styling */
.slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(68, 71, 72, 0.3);
}
@media (max-width: 640px) {
    .slider-container {
        height: 300px;
    }
}
.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.img-before {
    z-index: 10;
    width: 100%;
}
.img-after {
    z-index: 5;
}
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #b3c5ff;
    left: 50%;
    z-index: 20;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(179, 197, 255, 0.5);
}
.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #1f2020;
    border: 2px solid #b3c5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b3c5ff;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    z-index: 25;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
