/* ==========================================
   DETAILING LANDING STYLES (styles.css)
   ========================================== */

:root {
    --bg-body: #0a0b10;        /* Deep Carbon Black */
    --bg-card: #131520;        /* Dark Slate */
    --primary: #00f2fe;       /* Neon Cyan */
    --primary-hover: #4facfe;
    --text-main: #ffffff;
    --text-muted: #8a8f9f;
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow: 0 20px 45px -10px rgba(0, 242, 254, 0.08);
    --border: rgba(255, 255, 255, 0.05);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.logo strong {
    color: var(--primary);
    font-weight: 800;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary);
}

.cta-btn-header {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.cta-btn-header:hover {
    background: var(--primary);
    color: var(--bg-body);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

/* Hero Section */
.hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.05) 0%, transparent 40%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
}

.hero-info {
    padding-top: 3rem;
}

.badge {
    display: inline-block;
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.features-mini {
    display: flex;
    gap: 2.5rem;
}

.feat-mini-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.feat-icon {
    font-size: 1.5rem;
}

/* Form Card */
.calc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.calc-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.01em;
}

.form-group {
    margin-bottom: 1.5rem;
}

.group-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.text-input, .select-input {
    width: 100%;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    font-family: inherit;
    font-size: 0.95rem;
    color: white;
    outline: none;
    transition: var(--transition);
}

.text-input:focus, .select-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.select-input option {
    background: var(--bg-card);
    color: white;
}

.input-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0.75rem;
}

/* Agreement Checkbox */
.form-agreement {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-agreement input {
    margin-top: 0.25rem;
    cursor: pointer;
}

.form-agreement label {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.form-agreement a {
    color: var(--primary);
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: var(--primary);
    color: var(--bg-body);
    border: none;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 242, 254, 0.2);
}

/* Before/After Section */
.compare-section {
    padding: 100px 0;
    background: #0d0f17;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-head h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-head p {
    color: var(--text-muted);
}

.slider-wrapper {
    display: flex;
    justify-content: center;
}

/* Interactive Before/After Container */
.before-after-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    user-select: none;
}

.image-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mock-car-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Styled CSS representations of the car states (Dirty vs Super Shiny) */
.before-bg {
    background: linear-gradient(rgba(10, 11, 16, 0.65), rgba(10, 11, 16, 0.65)), 
                radial-gradient(circle at 30% 20%, #7c8594 10%, #2b303c 90%);
    background-blend-mode: multiply;
}

.before-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15) 10px, transparent 10px, transparent 20px),
                radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    opacity: 0.9;
}

.after-bg {
    background: linear-gradient(rgba(0, 242, 254, 0.15), rgba(0, 0, 0, 0.4)), 
                radial-gradient(circle at 30% 20%, #00f2fe 5%, #050b1a 80%);
}

.after-bg::after {
    content: "✨";
    position: absolute;
    top: 25%;
    left: 40%;
    font-size: 5rem;
    opacity: 0.85;
    filter: drop-shadow(0 0 25px rgba(0, 242, 254, 0.8));
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1.05); opacity: 0.95; }
}

.after-image {
    width: 50%; /* JS will control this */
    overflow: hidden;
    z-index: 2;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Labels */
.car-label {
    position: absolute;
    bottom: 1.5rem;
    background: rgba(10, 11, 16, 0.85);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.before-label {
    left: 1.5rem;
    color: var(--text-muted);
}

.after-label {
    right: 1.5rem;
    color: var(--primary);
    border-color: rgba(0, 242, 254, 0.3);
    white-space: nowrap;
}

/* Slider Handle */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%; /* JS will control this */
    width: 4px;
    height: 100%;
    background: var(--primary);
    z-index: 10;
    cursor: ew-resize;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

.handle-line {
    flex-grow: 1;
    width: 2px;
    background: var(--primary);
    opacity: 0.5;
}

.handle-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
    border: 2px solid white;
}

/* Services Section */
.services-section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.srv-icon {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    display: block;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Footer */
.footer {
    background: #050608;
    color: var(--text-muted);
    padding: 45px 0;
    border-top: 1px solid var(--border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: white;
}

.footer-brand strong {
    color: var(--primary);
}

.footer-copy {
    font-size: 0.85rem;
    max-width: 500px;
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-info {
        text-align: center;
    }
    .features-mini {
        justify-content: center;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.35rem;
    }
    .calc-card {
        padding: 1.5rem;
    }
    .input-row {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .before-after-container {
        height: 320px;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .nav {
        display: none;
    }
}
