@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700&display=swap');

:root {
    /* Colors - Light Mode */
    --background: #FFFFFF;
    --card-bg: #F8F9FA;
    --primary-accent: #E53935;
    --secondary-accent: #ea1c25; /* Updated Red replacing Orange */
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --border: #EEEEEE;
    --overlay: rgba(0, 0, 0, 0.2);

    /* Gradients */
    --cta-gradient: linear-gradient(135deg, #E53935 0%, #ea1c25 100%);
    --hero-overlay: rgba(0, 0, 0, 0.55); /* Balanced dark overlay */

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-max-width: 1300px;
    --section-padding-desktop: 80px;
    --section-padding-tablet: 56px;
    --section-padding-mobile: 40px;
    --grid-gap-desktop: 24px;
    --grid-gap-mobile: 16px;

    /* Borders */
    --radius-card: 12px;
    --radius-button: 16px;

    /* Transitions */
    --transition-base: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

h1 { font-size: 48px; line-height: 56px; font-weight: 700; }
h2 { font-size: 36px; line-height: 44px; font-weight: 600; }
h3 { font-size: 24px; line-height: 32px; font-weight: 600; }

p { font-size: 16px; line-height: 24px; color: var(--text-secondary); }
.text-small { font-size: 14px; line-height: 20px; }

a { text-decoration: none; color: inherit; transition: var(--transition-base); }

ul { list-style: none; }

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

/* Layout Components */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
}

.section {
    padding: var(--section-padding-desktop) 0;
}

@media (max-width: 1024px) {
    .section { padding: var(--section-padding-tablet) 0; }
}

@media (max-width: 768px) {
    .section { padding: var(--section-padding-mobile) 0; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-button);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background-color: var(--primary-accent);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(229, 57, 53, 0.39);
}

.btn-primary:hover {
    background-color: #f44336; /* Slightly brighter red */
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.5);
}

.btn-secondary {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0px;
}

.header .logo {
    padding-top: 60px;

    padding-bottom: 20px;
    margin-left: -10px;
    margin-bottom: 20px;
}

.logo img {
    max-width: 180px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--background);
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        display: flex;
    }
    .nav-links.active {
        transform: translateY(0);
    }
    .nav-cta {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the container block */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-content {
    z-index: 1;
    text-align: left;
    width: 100%; /* Ensure it takes full container width to allow left alignment within */
    padding-top: 80px;
}

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

.hero-text h1 {
    margin-bottom: 10px;
    color: white; /* Keep white on dark hero overlay */
}

.hero-text p {
    margin-bottom: 20px;
    font-size: 18px;
    color: rgba(255, 255, 255); /* Adjusted for hero overlay */
}

.accent-text {
    background: #ff0600;;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Hero Overlay */
@media (max-width: 768px) {
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 0;
    }
    
    .hero-content {
        position: relative;
        z-index: 2;
    }
}


/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 1px solid white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(15px);
    }
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.hero-btns .btn-secondary {
    border-color: white;
    color: white;
}

.hero-btns .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Why Choose Us */
.why-choose {
    background: #0F0F0F;
    color: white;
}

.why-choose h3 {
    color: white;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap-desktop);
}
.why-grid p{
color:white;
}


@media (max-width: 1024px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .why-grid { grid-template-columns: 1fr; }
}

.why-item {
    text-align: center;
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--card-bg);
    border: 1px solid var(--primary-accent);
    color: var(--primary-accent);
}

.why-item h3 {
    margin-bottom: 12px;
}

/* Services */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap-desktop);
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
}

.service-card {
    position: relative;
    height: 350px;
    padding: 32px;
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: white;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i, 
.service-card h3, 
.service-card p {
    position: relative;
    z-index: 2;
}

.service-card i {
    font-size: 40px;
    color: white; /* Changed to white for visibility on image */
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 12px;
    color: white;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* Individual Service Backgrounds */
.service-engine { background-image: url('images/for services/Engine Diagnostic.webp'); }
.service-oil { background-image: url('images/for services/Oil Change.webp'); }
.service-brakes { background-image: url('images/for services/Brake Repair.webp'); }
.service-ac { background-image: url('images/for services/Air Conditioning.webp'); }
.service-electrical { background-image: url('images/for services/Electrical Repair.webp'); }
.service-battery { background-image: url('images/for services/Battery Service.webp'); }
.service-steering { background-image: url('images/for services/Steering & Suspension.webp'); }
.service-transmission { background-image: url('images/for services/Transmission.webp'); }
.service-inspection { background-image: url('images/for services/mechanic-service-car-garage-is-check-list-cars.webp'); }


/* About Section */
.about {
    background-color: #fafafa;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}

@media (max-width: 1024px) {
    .about-flex {
        flex-direction: column;
        gap: 40px;
    }
}

.about-image {
    flex: 1;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 750px;
    object-fit: cover;
}

.about-content {
    flex: 1;
    max-width: 520px;
}

.about-content h2 {
    margin-bottom: 24px;
}

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

/* CTA Section */
.cta {
    background: var(--cta-gradient);
    padding: 60px 0;
    text-align: center;
}

.cta-card h2 {
    font-size: 40px;
    margin-bottom: 16px;
    color: white;
}

.cta-card p {
    color: white;
    margin-bottom: 32px;
    font-size: 18px;
}

.cta-card .btn-primary {
    background: white;
    color: var(--primary-accent);
}

.cta-card .btn-primary:hover {
    background: #f0f0f0;
}

/* Location Section */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.location-info h2 {
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start; /* Align with top of text */
    gap: 20px;
    margin-bottom: 32px;
}

.info-item i {
    color: var(--primary-accent);
    flex-shrink: 0;
    font-size: 24px;
    width: 24px;
    text-align: center;
    margin-top: 4px; /* Slight nudge for better alignment with h3 */
}

.info-item h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.location-map {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap-desktop);
}

@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition-base);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-image {
    aspect-ratio: 1/1;
    background: #EEEEEE;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.product-price {
    color: var(--primary-accent);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 16px;
    display: block;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-accent); /* Make them more visible with accent color */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-base);
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.2);
}

.social-links a:hover {
    background: var(--secondary-accent);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(255, 111, 0, 0.3);
}

/* Animations */
.hero-text h1 {
    animation: slideUpFade 1s ease-out forwards;
}

.hero-text p {
    animation: slideUpFade 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-btns {
    animation: slideUpFade 1s ease-out 0.6s forwards;
    opacity: 0;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-accent);
}

/* Footer */
.footer {
    background: #0F0F0F;
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    color: white;
}

.footer h3, .footer p, .footer a {
    color: white;
}

.footer .text-small {
    color: rgba(255, 255, 255, 0.7);
}

.footer .logo {
    /* Margin removed as requested */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col p {
    margin-bottom: 8px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}
