/* ==========================================================================
   R AND L DETAILING LLC - Custom Luxury Automotive Stylesheet
   ========================================================================== */

/* Color Variables */
:root {
    --bg-darker: #0b0d10;
    --bg-dark: #12161c;
    --bg-card: rgba(22, 28, 36, 0.75);
    --accent-blue: #0088ff;
    --accent-blue-hover: #0066cc;
    --text-white: #ffffff;
    
    --metallic-silver: #cbd5e1;
    --gold: #f59e0b;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Global Reset & Typography */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: var(--bg-darker);
    color: var(--metallic-silver);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

/* Utility Helpers */
.bg-darker { background-color: var(--bg-darker) !important; }
.bg-dark { background-color: var(--bg-dark) !important; }
.text-accent { color: var(--accent-blue) !important; }
.text-gold { color: var(--gold) !important; }
.text-light-muted { color: #cbd5e1; }
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.max-w-700 { max-width: 700px; }
.max-w-600 { max-width: 600px; }
.tracking-wider { letter-spacing: 0.1em; }

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Buttons */
.btn-accent {
    background-color: var(--accent-blue);
    color: #ffffff;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--accent-blue-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.4);
}

.btn-link-accent {
    color: var(--accent-blue);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-link-accent:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* 1. Navbar */
.custom-navbar {
    padding: 1.2rem 0;
    transition: all 0.4s ease;
    background: rgba(11, 13, 16, 0.6);
    backdrop-filter: blur(10px);
}

.custom-navbar.navbar-scrolled {
    padding: 0.7rem 0;
    background: rgba(11, 13, 16, 0.95) !important;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.brand-icon {
    font-size: 1.8rem;
    color: var(--accent-blue);
}

.brand-text {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
}

.brand-accent {
    color: var(--accent-blue);
}

.custom-navbar .nav-link {
    color: #e2e8f0;
    font-weight: 500;
    margin: 0 0.3rem;
    transition: color 0.3s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    color: var(--accent-blue);
}

.custom-toggler {
    border: none;
    filter: invert(1);
}

/* 2. Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    background: url('https://images.unsplash.com/photo-1617814076367-b759c7d7e738?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 13, 16, 0.95) 0%, rgba(11, 13, 16, 0.65) 60%, rgba(11, 13, 16, 0.8) 100%);
}

.badge-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 136, 255, 0.15);
    border: 1px solid rgba(0, 136, 255, 0.3);
    color: var(--accent-blue);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(0, 136, 255, 0.2);
    top: 20%;
    right: 10%;
    animation: float 8s ease-in-out infinite alternate;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    bottom: 10%;
    left: 5%;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-30px) rotate(10deg); }
}

.scroll-down-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* 3. Stats Section */
.stat-card {
    transition: transform 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
}

/* 4. Services Section */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 136, 255, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.service-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.service-img-wrapper img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.08);
}

.service-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: var(--accent-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* 5. Before & After Slider */
.image-comparison-slider {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 12px;
    user-select: none;
}

.image-comparison-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.image-before-wrapper img {
    width: 100%;
    max-width: none;
}

.slider-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    cursor: ew-resize;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--accent-blue);
    z-index: 3;
    pointer-events: none;
}

.slider-handle::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: var(--accent-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.ba-label {
    position: absolute;
    top: 15px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 3;
}

.label-before { left: 15px; }
.label-after { right: 15px; }

/* 6. CEO Speech Box */
.border-start-accent {
    border-start: 4px solid var(--accent-blue) !important;
}

.italic { font-style: italic; }

/* 7. Feature Cards */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 136, 255, 0.3);
}

/* 8. Vehicle Types Cards */
.vehicle-card {
    height: 220px;
}

.vehicle-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vehicle-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.9) 100%);
    transition: background 0.3s ease;
}

.vehicle-card:hover img {
    transform: scale(1.1);
}

/* 9. Pricing */
.pricing-card {
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.featured-pricing {
    border: 2px solid var(--accent-blue);
    background: rgba(0, 136, 255, 0.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 12px;
    border-radius: 20px;
    text-uppercase: uppercase;
}

/* 10. Gallery */
.btn-filter {
    background: transparent;
    color: var(--metallic-silver);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 6px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-filter:hover, .btn-filter.active {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
}

.gallery-card {
    height: 250px;
}

.gallery-card img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 136, 255, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

/* 12. Call To Action */
.cta-section {
    background: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 13, 16, 0.85);
}

/* 13. Contact & Booking */
.custom-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.custom-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.3);
}

.custom-input option {
    background-color: var(--bg-darker);
    color: #fff;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 136, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 14. Footer */
.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--metallic-silver);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--accent-blue);
    color: #fff;
    transform: translateY(-3px);
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--accent-blue);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
    *, ::after, ::before {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}