/* CSS Variables & Theme */
:root {
    --primary-color: #E31C25;
    /* Automotive Red */
    --primary-dark: #b0151c;
    --secondary-color: #1a1a1a;
    /* Dark Grey/Black */
    --text-color: #333333;
    --bg-color: #ffffff;
    --light-bg: #f5f5f5;
    --white: #ffffff;

    --header-height: 110px;
    /* Increased header height for larger logo */

    --font-heading: 'Racing Sans One', cursive;
    --font-body: 'Outfit', sans-serif;

    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Reusable Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section__header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section__title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section__subtitle {
    font-size: 1.1rem;
    color: #666;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
}

.btn--secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn--secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

.btn--whatsapp {
    background-color: #25D366;
    color: white;
    font-weight: bold;
}

.btn--whatsapp:hover {
    background-color: #1fae52;
}

.highlight {
    color: var(--primary-color);
}

/* Header & Nav */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
}

.header__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Larger Logo CSS */
.logo img {
    height: 140px;
    /* Forcefully larger */
    width: auto;
    max-height: 100%;
    /* Keep within bounds if needed, but height priority */
}

.logo__text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    /* Increased font size */
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav__list {
    display: flex;
    column-gap: 2rem;
}

.nav__link {
    font-weight: 500;
    color: var(--secondary-color);
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__close,
.nav__toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    /* Removed fixed height to adapt to content/grid */
    min-height: 90vh;
    background-image: url('https://images.unsplash.com/photo-1627453413551-70bf672468d6?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    /* Ensure content isn't hidden behind header */
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero__content {
    color: var(--white);
}

.hero__image-wrapper {
    display: flex;
    justify-content: center;
}

.hero__img {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 5px solid rgba(255, 255, 255, 0.1);
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight-text {
    color: var(--primary-color);
}

.hero__description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero__buttons {
    display: flex;
    gap: 1rem;
}

.hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 2;
}

.hero__wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero__wave .shape-fill {
    fill: var(--bg-color);
}

/* Stats Section */
.stats {
    padding-top: 0;
}

.stats__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat__title {
    font-weight: 500;
    color: #666;
}

/* Video Section */
.video-section {
    background-color: var(--light-bg);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Services */
.services {
    background-color: var(--bg-color);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service__card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service__icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.service__description {
    color: #555;
    font-size: 0.95rem;
}

/* Products */
.products {
    background-color: var(--secondary-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.products__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.products__title {
    color: var(--white);
    text-align: left;
}

.products__description {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.products__image {
    background: radial-gradient(circle, #333 0%, #000 100%);
    border-radius: 20px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.products__visual {
    font-size: 4rem;
    display: flex;
    gap: 2rem;
}

/* Larger Logo CSS */
.logo__img-large {
    height: 140px;
    /* Much larger */
    width: auto;
    transition: var(--transition);
}

/* Contact */
.contact {
    background-color: var(--light-bg);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact__wrapper,
.contact__map-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Contact Form */
.contact__form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact__form-title {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.form__group {
    margin-bottom: 1.2rem;
}

.form__input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form__textarea {
    height: 120px;
    resize: none;
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn--block {
    width: 100%;
}

/* Map */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact__locations {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.location-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    flex: 1;
    min-width: 150px;
}

.location-item h3 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.contact__info-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact__item-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.contact__link,
.contact__text {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.contact__link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Policy */
.policy details {
    background: var(--white);
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.policy summary {
    font-weight: 600;
    list-style: none;
    /* Hides triangle in some browsers */
}

.policy summary::-webkit-details-marker {
    display: none;
}

.policy__content {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: #111;
    color: #888;
    padding: 3rem 0;
    text-align: center;
    /* Styles for footer logo */
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__logo.logo {
    margin-bottom: 1rem;
}

.footer__copyright {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.credits {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #1fae52;
    transform: scale(1.1);
}

/* Mobile Responsive */
@media screen and (max-width: 900px) {

    .products__container,
    .hero__grid,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero__content {
        text-align: center;
    }

    .hero {
        /* Optimize mobile background - use smaller image or let browser handle if not using image-set, 
           but for unsplash we can explicitly request smaller. 
        */
        background-image: url('https://images.unsplash.com/photo-1627453413551-70bf672468d6?q=80&w=800&auto=format&fit=crop');
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__image-wrapper {
        display: none;
        /* Hide image on smaller screens or stack if preferred. display: block to stack */
        /* Let's show it but simple */
    }

    .hero__image-wrapper {
        display: block;
    }

    .contact__grid {
        grid-template-columns: 1fr;
    }

    .contact__info-box {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --header-height: 70px;
        /* Smaller header on mobile */
    }

    .logo__img-large {
        height: 70px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        background-color: var(--white);
        width: 80%;
        height: 100%;
        padding: 6rem 2rem;
        transition: .4s;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        row-gap: 2.5rem;
    }

    .nav__link {
        font-size: 1.2rem;
        color: var(--secondary-color);
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .nav__toggle {
        display: block;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__content {
        padding-top: 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .video-container {
        border-radius: 10px;
    }
}

/* --- Special Effects & Animations --- */

/* Hero Animations */
.hero__title {
    animation: fadeUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}
.hero__description {
    animation: fadeUp 1s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateY(30px);
}
.hero__buttons {
    animation: fadeUp 1s ease-out 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}
.hero__image-wrapper {
    animation: fadeIn 1.5s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Enhancing Hover Effects for Buttons */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.5s ease;
}
.btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Service Card Hover Enhancement */
.service__card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.service__card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(227, 28, 37, 0.15);
}

/* Floating WhatsApp Glow */
.whatsapp-float {
    animation: floatGlow 2s infinite alternate;
}
@keyframes floatGlow {
    from {
        box-shadow: 0 0 10px rgba(37, 211, 102, 0.3);
    }
    to {
        box-shadow: 0 0 20px rgba(37, 211, 102, 0.8);
    }
}