/* Dark Luxury Automotive Design System (Flex More) */
:root {
    /* Brand Palette (Strict) */
    --bg-primary: #0B0B0B;
    --bg-secondary: #111111;
    --bg-card: #151515;
    --bg-input: #222222;

    --c-accent: #FF7033;
    /* Vivid Tangerine */
    --c-accent-glow: #FFB899;
    /* Peach Glow */
    --c-text-main: #FFFFFF;
    /* Pure Porcelain */
    --c-text-sec: #CFCFCF;
    /* Light Gray */
    --c-text-muted: #888888;

    /* Typography */
    --font-main: 'Outfit', 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1280px;
    --radius-lg: 24px;
    /* Large rounded corners */
    --radius-md: 16px;
    --radius-sm: 8px;
    --radius-btn: 12px;

    /* Effects */
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.4);
    --glow-accent: 0 0 20px rgba(255, 112, 51, 0.15);
    --glow-hover: 0 0 30px rgba(255, 112, 51, 0.4);
    --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
    --border-accent: 1px solid rgba(255, 112, 51, 0.5);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--c-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--c-text-main);
}

.text-accent {
    color: var(--c-accent);
}

.text-glow {
    text-shadow: var(--glow-accent);
}

p {
    margin-bottom: 1.5rem;
    color: var(--c-text-sec);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

@media (max-width: 900px) {

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Components */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
}

.btn-primary {
    background: var(--c-accent);
    color: white;
    /* Contrast check: White on Orange usually OK, or darker if needed */
    box-shadow: var(--glow-accent);
}

.btn-primary:hover {
    background: #FF8550;
    box-shadow: var(--glow-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--c-text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-full {
    width: 100%;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: var(--border-subtle);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--c-accent);
    box-shadow: var(--glow-accent);
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

/* Header */
/* refined-nav-start */
.navbar {
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 112, 51, 0.15);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--c-text-main);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    border-color: var(--c-primary);
}

.service-card h2,
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
    font-family: var(--font-heading);
}

.service-card p {
    color: var(--tx-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* Hero */
.hero-section {
    background-image: url('../assets/images/Hero bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    /* Ensure text is readable if image is dark/light, maybe add overlay later if needed */
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Offset for fixed navbar */
}

/* ANIMATIONS JS CLASSES */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* GALLERY MASONRY (Simple Grid fallback) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 300px;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

/* FOOTER */
.footer {
    background: var(--bg-dark);
    color: var(--tx-light);
    padding: 6rem 0 3rem;
    border-top: none;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    background: #25D366;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}