/* Dr. Jay Auto Detailing - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Oswald:wght@500;600;700&display=swap');

:root {
    --bg-dark: #090c14;
    --bg-card: #111726;
    --bg-card-hover: #162035;
    --primary: #0284c7;
    --primary-light: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.25);
    --accent: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(56, 189, 248, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

h1, h2, h3, .font-heading {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #090c14;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #38bdf8;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(17, 23, 38, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

.glass-nav {
    background: rgba(9, 12, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Gradients & Glows */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-gold {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-blue {
    box-shadow: 0 0 25px var(--primary-glow);
}

.glow-card:hover {
    box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.2);
    border-color: var(--border-glow);
    transform: translateY(-3px);
}

/* Pulsing Badge */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Before / After Slider Styles */
.ba-container {
    position: relative;
    width: 100%;
    height: 440px;
    border-radius: 16px;
    overflow: hidden;
    user-select: none;
    touch-action: pan-y;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.ba-before, .ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.ba-before {
    width: 50%;
    z-index: 2;
    overflow: hidden;
    border-right: 2px solid #38bdf8;
}

.ba-before .ba-img-inner {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #38bdf8;
    z-index: 3;
    transform: translateX(-50%);
    cursor: ew-resize;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.8);
}

.ba-handle-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    background: #0284c7;
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.8);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.ba-tag-before, .ba-tag-after {
    position: absolute;
    bottom: 16px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 4;
}

.ba-tag-before {
    left: 16px;
    background: rgba(239, 68, 68, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
}

.ba-tag-after {
    right: 16px;
    background: rgba(16, 185, 129, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
}

/* Slider Canvas Art Simulations */
.art-paint-before {
    background: radial-gradient(circle at 45% 45%, rgba(200, 200, 200, 0.3) 0%, rgba(20, 20, 25, 0.95) 70%),
                repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 15px, rgba(255,255,255,0.15) 16px, transparent 17px),
                linear-gradient(135deg, #181b22, #0d0e12);
}

.art-paint-after {
    background: radial-gradient(circle at 60% 40%, rgba(56, 189, 248, 0.5) 0%, rgba(10, 25, 45, 0.95) 70%),
                linear-gradient(135deg, #0b192c 0%, #030712 100%);
    box-shadow: inset 0 0 100px rgba(56, 189, 248, 0.2);
}

.art-carpet-before {
    background: radial-gradient(circle at 35% 40%, #543d2b 0%, #291e15 45%, #18181b 90%),
                repeating-linear-gradient(45deg, rgba(0,0,0,0.4) 0px, rgba(0,0,0,0.4) 2px, transparent 2px, transparent 4px);
}

.art-carpet-after {
    background: radial-gradient(circle at 50% 50%, #27272a 0%, #18181b 60%, #09090b 100%),
                repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 4px);
}

.art-engine-before {
    background: radial-gradient(circle at 50% 50%, #3f3f46 0%, #27272a 50%, #18181b 100%),
                repeating-linear-gradient(120deg, rgba(120,53,15,0.2) 0px, rgba(120,53,15,0.2) 10px, transparent 10px, transparent 20px);
}

.art-engine-after {
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 60%, #020617 100%),
                linear-gradient(45deg, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
}

/* Custom Checkbox */
.custom-checkbox input:checked ~ .checkmark {
    background-color: #0284c7;
    border-color: #38bdf8;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Floating Mobile Action Bar */
@media (max-width: 768px) {
    .ba-container {
        height: 320px;
    }
}
