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

:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --accent-blue: #00d4ff;
    --accent-red: #ff3366;
    --accent-green: #00ff88;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --text-dark: #666666;
    --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    --gradient-secondary: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-red), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

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

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    background: linear-gradient(135deg, var(--accent-red), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--accent-red), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lang-btn:hover {
    background: linear-gradient(135deg, var(--accent-red), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-2px);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--accent-red), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.lang-separator {
    color: var(--text-light);
    font-weight: 500;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.32)),
                url('carstereoparts/carpic3.png');
    background-size: 56%;
    background-position: center 100px;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-bottom: 2rem;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    margin-bottom: -180px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-red), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-red), #ffd700);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.4);
}

.hero-address {
    margin-top: 1.5rem;
    color: var(--text-gray);
}

.hero-address p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.hero-address p:last-child {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Scrolling Images Section */
.scrolling-images {
    background: #ffd700;
    padding: 0.6rem 0;
    overflow: hidden;
    position: relative;
}

.scrolling-container {
    width: 100%;
    overflow: hidden;
}

.scrolling-track {
    display: flex;
    animation: scroll 15s linear infinite;
    gap: 1rem;
}

.scrolling-item {
    flex-shrink: 0;
    width: 180px;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: #ffd700;
    padding: 0.5rem;
}

.scrolling-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-150%);
    }
}

/* Pause animation on hover */
.scrolling-track:hover {
    animation-play-state: paused;
}

/* Map Widget Section */
.map-widget-section {
    padding: 3rem 0;
    background: var(--primary-dark);
}

.map-widget-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* Desktop-specific map styling */
@media (min-width: 769px) {
    .map-widget-section {
        padding-top: 70px;
    }
    
    .map-widget-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--secondary-dark);
    position: relative;
}

.services-background {
    margin-top: 3rem;
    text-align: center;
}

.services-bg-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-card);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--accent-red), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--primary-dark);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: var(--shadow-card);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #ffd700;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
}

.service-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--accent-red), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.learn-more {
    background: linear-gradient(135deg, var(--accent-red), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.learn-more:hover {
    background: linear-gradient(135deg, #ffd700, var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Why Choose Us Section */
.why-choose {
    padding: 5rem 0;
    background: var(--primary-dark);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--secondary-dark);
    border-radius: 10px;
    border-left: 4px solid var(--accent-red);
}

.highlight-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-red), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.highlight-text p {
    color: var(--text-gray);
    font-size: 0.9rem;
}



/* Footer */
.footer {
    background: var(--secondary-dark);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 51, 102, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    background: linear-gradient(135deg, var(--accent-red), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    background: linear-gradient(135deg, var(--accent-red), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-red), #ffd700);
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 51, 102, 0.1);
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-card);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }
    
    .language-toggle {
        display: none;
    }

    .hero {
        background-size: 78.4%;
        background-position: center 160px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .booking-form {
        padding: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Ensure scrolling animation distance matches desktop on mobile */
    .scrolling-track {
        animation: scroll 15s linear infinite;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .service-card,
    .review-card {
        padding: 1.5rem;
    }

    .booking-form {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-blue);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
