:root {
    --primary-color: #FFCC00;
    --bg-dark: #0B0D0E;
    --bg-card: #16191B;
    --text-white: #FFFFFF;
    --text-gray: #A0A0A0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(11, 13, 14, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--text-white);
}

.logo span {
    color: var(--primary-color);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    margin-left: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.btn-primary {
    color: #000;
    /* Force black text for primary button in nav */
    margin-left: 30px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #000;
}

/* Hero */
.hero {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    /* Allow wrapping on mobile */
}

.hero-actions .btn {
    margin: 0;
    /* Use gap instead */
}

/* Services */
.services {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-gray);
}

/* Gallery (Before/After) */
.gallery {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.02);
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 800px;
    margin: 0 auto;
}

.before-after-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.before-after-slider .img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.before-after-slider .img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background-img {
    z-index: 1;
}

.foreground-img {
    width: 50%;
    z-index: 2;
    overflow: hidden;
    /* Critical for clipping */
}

/* Ensure the image inside foreground doesn't shrink */
.foreground-img img {
    width: 800px;
    /* This will be handled by JS as well to be responsive */
    max-width: none;
}

/* Before/After Labels */
.before-after-slider .label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 4px;
    z-index: 5;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.label.before {
    left: 20px;
    border-left: 3px solid var(--primary-color);
}

.label.after {
    right: 20px;
    border-right: 3px solid var(--primary-color);
}

/* Slider Controls */
.slider {
    position: absolute;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    outline: none;
    margin: 0;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 6px;
    height: 100vh;
    background: var(--primary-color);
    cursor: ew-resize;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.slider-button {
    pointer-events: none;
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    left: calc(50% - 20px);
    top: calc(50% - 20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
}

.slider-button:after {
    content: "↔";
    color: #000;
    font-weight: bold;
}

/* Calculator */
.calculator-section {
    padding: 100px 0;
    background-color: var(--bg-card);
}

.calculator-card {
    background-color: var(--bg-dark);
    padding: 40px;
    border-radius: 16px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--bg-card);
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-text {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.service-options {
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

/* Checkbox styling */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.calculator-result {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-display {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 15px 0;
}

.min-price-notice {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* About & Contact */
.about,
.contact {
    padding: 100px 0;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-card {
    background-color: var(--primary-color);
    color: #000;
    padding: 60px;
    border-radius: 20px;
    text-align: center;
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-item .icon {
    font-size: 1.5rem;
}

.contact-item a {
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-item a:hover {
    opacity: 0.7;
}

.footer {
    padding: 60px 0 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-company p {
    margin-bottom: 5px;
}

.footer-company strong {
    color: var(--text-white);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-card h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .nav-links {
        position: fixed;
        left: 100%;
        /* Start completely off-screen to the right */
        top: 0;
        height: 100vh;
        width: 100%;
        background: var(--bg-dark);
        display: flex !important;
        /* Force display for mobile logic */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: transform 0.4s ease;
        z-index: 999;
        margin: 0;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateX(-100%);
        /* Slide in from the right */
        visibility: visible;
    }

    .nav-links a {
        margin: 15px 0;
        font-size: 1.5rem;
    }

    .nav-links a.btn-primary {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: block !important;
        position: relative;
        width: 30px;
        height: 20px;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background: var(--text-white);
        transition: var(--transition);
    }

    .mobile-menu-toggle span:nth-child(1) {
        top: 0;
    }

    .mobile-menu-toggle span:nth-child(2) {
        top: 8px;
    }

    .mobile-menu-toggle span:nth-child(3) {
        top: 16px;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 8px;
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 8px;
    }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-white);
    margin: 5px 0;
    transition: var(--transition);
}