/* ===== GLOBAL VARIABLES ===== */
:root {
    /* Color Palette - Premium Automotive Light Theme */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-hover: rgba(255, 255, 255, 1);

    --text-primary: #0F172A;
    --text-secondary: #475569;

    --accent-primary: #1E3A8A;
    /* Trust Blue */
    --accent-primary-hover: #1e40af;
    --accent-secondary: #E63946;
    /* Energetic Red */

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Spacing & Layout */
    --nav-height: 100px;
    --section-padding: 100px 0;
    --border-radius: 12px;
    --transition: 0.3s ease;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.text-accent {
    color: var(--accent-primary);
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: var(--section-padding);
}

.section-header {
    margin-bottom: 60px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    margin: 0 auto 24px;
    border-radius: 2px;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
    background-color: white;
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== GLASSMORPHISM (LIGHT) ===== */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--bg-glass-hover);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0.1);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    max-height: 80px;
    width: auto;
    border-radius: 4px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-accent {
    font-weight: 300;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-primary);
}

.nav-cta {
    padding: 10px 20px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Bright gradient overlay over the background image to keep text readable */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.8) 100%);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(30, 58, 138, 0.1);
    color: var(--accent-primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* ===== ABOUT SECTION ===== */
.bg-secondary {
    background-color: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-benefits {
    margin-top: 32px;
}

.about-benefits li {
    margin-bottom: 16px;
    padding-left: 0;
    position: relative;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.about-benefits strong {
    color: var(--text-primary);
}

.image-card {
    padding: 16px;
    background: white;
}

.placeholder-img-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.real-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.image-card:hover .real-img {
    transform: scale(1.03);
}

.img-caption {
    text-align: center;
    margin-top: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ===== SERVICES SECTION ===== */
.services-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    padding: 0;
    overflow: hidden;
    background: white;
}

.card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 4px solid var(--accent-primary);
}

.card-content {
    padding: 40px;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.service-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.service-list li::before {
    content: '✓';
    color: var(--accent-primary);
    font-weight: bold;
}

.service-list li:last-child {
    border-bottom: none;
}

/* ===== GALLERY SECTION ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    gap: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(30, 58, 138, 0.05);
    color: var(--accent-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-details h4 {
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-details p {
    margin-bottom: 0;
    font-size: 1rem;
}

.contact-form {
    background: white;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    background: white;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* ===== FOOTER ===== */
.footer {
    background: #0F172A;
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer .logo-text,
.footer h4 {
    color: white;
}

.footer .logo-accent {
    color: #94A3B8;
}

.footer p {
    color: #94A3B8;
}

.link-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.link-grid a {
    color: #94A3B8;
}

.link-grid a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748B;
    font-size: 0.875rem;
}

/* ===== ANIMATIONS & UTILITIES ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-text {
        order: 2;
    }

    .about-image-wrapper {
        order: 1;
    }

    .desktop-inline-img {
        display: none;
    }

    .mobile-inline-img {
        display: block;
    }
}

.landscape-img {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.mobile-inline-img {
    display: none;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: white;
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease-in-out;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}