/* Main Variables */
:root {
    --primary-dark: #000000;
    --primary-default: #121212;
    --primary-light: #222222;
    --accent-default: #ff2020;
    --accent-light: #ff4040;
    --accent-dark: #cc1818;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --border-color: #333333;
    --modal-bg: rgba(0, 0, 0, 0.8);
    --modal-content-bg: #1a1a1a;
    --form-bg: #2a2a2a;
    --container-width: 1200px;
    --radius: 8px;
    --transition: 0.3s ease;
}

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

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    background-color: var(--accent-default);
    color: var(--text-light);
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-light);
}

/* Hidden Class */
.hidden {
    display: none;
}

/* Navigation Styles */
.navbar {
    background-color: var(--primary-dark);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background-color var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--accent-light);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('images/car_detailing.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    display: flex;
    align-items: center;
}

.accent-line {
    width: 50px;
    height: 3px;
    background-color: var(--accent-light);
    margin-right: 15px;
}

.hero-subtitle p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--primary-dark);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    align-items: start;
}

.service-card {
    background-color: var(--primary-default);
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--accent-light);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 64, 64, 0.2);
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
}

.service-header h3 {
    font-size: 1.2rem;
}

.service-card i {
    color: var(--accent-light);
    transition: transform var(--transition);
}

.service-details {
    padding: 0 15px 15px;
    border-top: 1px solid var(--border-color);
    display: none;
}

.service-card.active .service-details {
    display: block;
}

.service-card.active i {
    transform: rotate(180deg);
}

.pricing {
    margin-top: 15px;
}

.pricing h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.price {
    color: var(--accent-light);
    font-weight: 700;
}

/* Before & After Section */
.before-after {
    padding: 100px 0;
    background-color: var(--primary-light);
}

.comparison-slider-container {
    max-width: 800px;
    margin: 0 auto;
}

.comparison-slider {
    position: relative;
    height: 500px;
    border-radius: var(--radius);
    overflow: hidden;
}

.before-image, .after-image {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

.before-image {
    left: 0;
    z-index: 2;
    width: 100%;
    overflow: hidden;
}

.after-image {
    left: 0;
    z-index: 1;
    width: 100%;
}

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

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

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--accent-light);
    z-index: 10;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    border-radius: 50%;
    transition: background var(--transition);
}

.slider-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--text-light);
    border-radius: 50%;
}

.label {
    position: absolute;
    bottom: 20px;
    padding: 8px 16px;
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-weight: 600;
    border-radius: var(--radius);
    z-index: 5;
}

.before-image .label {
    left: 20px;
}

.after-image .label {
    right: 20px;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background-color: var(--primary-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 280px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--primary-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about-text p {
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.features-list i {
    color: var(--accent-light);
    margin-right: 10px;
    font-size: 1.2rem;
}

.mission {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.mission h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.75)), url('images/car_detailing.png');
    background-size: cover;
    background-position: center;
    text-align: center;
}

/* Footer Styles */
.footer {
    background-color: var(--primary-dark);
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.address {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-default);
    color: var(--text-light);
}

.footer-description h3 {
    margin-bottom: 20px;
}

.footer-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.footer-gallery-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.copyright {
    color: var(--text-muted);
    text-align: center;
    width: 100%;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-content {
    position: relative;
    background-color: var(--modal-content-bg);
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-modal-content {
    max-width: 90%;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition);
    z-index: 10;
}

.close-modal:hover {
    color: var(--accent-light);
}

.modal h2 {
    margin-bottom: 20px;
}

#modal-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    cursor: pointer;
}

.modal-caption {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--form-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-default);
}

#form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--radius);
}

#form-message.success {
    background-color: rgba(39, 174, 96, 0.3);
    color: #2ecc71;
}

#form-message.error {
    background-color: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: var(--primary-dark);
        width: 100%;
        padding: 20px 0;
        transition: left var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .comparison-slider {
        height: 300px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.7rem;
    }
    
    .gallery-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }
}