/*
=================================================================
*   HYPER-METALLIC GOLD & GLOSS AESTHETIC THEME
*   This stylesheet defines a luxurious, dark theme with gold
*   highlights and glossy effects.
=================================================================
*/

/*
=================================================================
*   1. ROOT VARIABLES
*   Defines the color palette, gradients, and typography for
*   the entire site for easy management and consistency.
=================================================================
*/
:root {
    /* Color Palette */
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --border-color: #333;
    --heading-color: #ffffff;
    --text-color: #e0e0e0;
    --text-muted: #888;

    /* Gold Theme Colors */
    --gold-highlight-bright: #FFFBEA;
    --gold-highlight: #D4AF37;
    --gold-mid: #B89B3E;
    --gold-dark: #8C702E;
    --gold-shadow: #4D3B00;
    --gold-satin: #DDC99A;

    /* Gold RGB Value (for use in rgba) */
    --gold-rgb: 212, 175, 55;

    /* Gradients */
    --gold-gradient-sharp: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold-highlight) 50%, var(--gold-dark) 100%);
    --gold-text-gradient: linear-gradient(90deg, #A88F3A 0%, var(--gold-highlight-bright) 50%, #A88F3A 100%);
    --glossy-card-bg: radial-gradient(ellipse at top, #282828, #1a1a1a);
    --button-gradient: linear-gradient(to top, var(--gold-mid), var(--gold-highlight));

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/*
=================================================================
*   2. KEYFRAMES & ANIMATIONS
*   Defines animations used throughout the site.
=================================================================
*/

@keyframes sweep-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Note: The testimonial animation keyframe is now generated dynamically by JavaScript */


/*
=================================================================
*   3. GLOBAL STYLES & RESETS
*   Establishes base styles for the entire document.
=================================================================
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
}

body.no-scroll {
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 200px #000;
    pointer-events: none;
    z-index: 5;
}

/*
=================================================================
*   4. LAYOUT & TYPOGRAPHY
*   Styles for main containers, sections, and headings.
=================================================================
*/

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

section {
    padding: 8rem 0;
    overflow: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 700;
}

h2 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--gold-satin);
    text-shadow:
        2px 2px 10px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(var(--gold-rgb), 0.4);
}

/*
=================================================================
*   5. HEADER & NAVIGATION
*   Styles for the fixed header, logo, and navigation links.
=================================================================
*/

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 1rem 0;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gold-shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo .logo-main {
    font-size: 2.2rem;
    background: var(--gold-text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(var(--gold-rgb), 0.5);
}

.logo .logo-sub {
    font-size: 0.5rem;
    letter-spacing: 3px;
    color: var(--gold-mid);
}

a.logo {
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin: 0 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-highlight);
    transition: width 0.3s ease-out;
}

.nav-links a:hover {
    color: var(--gold-highlight);
}

.nav-links a.active::after {
    width: 100%;
}

/*
=================================================================
*   6. BUTTONS
*   Defines styles for primary, secondary, and navigation buttons.
=================================================================
*/

.btn-nav, .btn-primary, .btn-secondary {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
}

.btn-nav::before, .btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -100%;
    width: 75%;
    height: 140%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-nav:hover::before, .btn-primary:hover::before, .btn-secondary:hover::before {
    left: 125%;
}

.btn-nav, .btn-primary {
    color: #111;
    padding: 0.9rem 2.2rem;
    border: 1px solid var(--gold-shadow);
    background: var(--button-gradient);
    box-shadow: inset 0 0 1px 1px rgba(255,255,255,0.25), 0 5px 15px rgba(0,0,0,0.5);
}

.btn-nav:hover, .btn-primary:hover {
    background: linear-gradient(to top, var(--gold-highlight), #FFE797);
    box-shadow: inset 0 0 1px 1px rgba(255,255,255,0.5), 0 5px 20px rgba(var(--gold-rgb), 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    width: 100%;
    background: transparent;
    color: var(--gold-highlight);
    padding: 0.8rem 1rem;
    border: 1px solid var(--gold-highlight);
    box-shadow: inset 0 0 10px rgba(var(--gold-rgb), 0.2), 0 2px 5px rgba(0,0,0,0.4);
}

.btn-secondary:hover {
    background: var(--gold-highlight);
    color: #1a1a1a;
    box-shadow: 0 0 20px rgba(var(--gold-rgb), 0.5);
}

/*
=================================================================
*   7. HERO SECTION
*   Styles for the main hero/banner area.
=================================================================
*/

/* MODIFIED: The hero section now provides the ambient "stage lighting" */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: radial-gradient(ellipse 80% 50% at 50% 0%, #1c1a14, transparent 70%);
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
}

.hero-text h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    background: linear-gradient(90deg, #A88F3A 0%, #A88F3A 40%, var(--gold-highlight-bright) 50%, #A88F3A 60%, #A88F3A 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sweep-shine 4s linear 2s infinite;
}

.hero-text p {
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.hero-controls {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.showcase-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-btn:hover {
    border-color: var(--gold-highlight);
    color: var(--gold-highlight);
}

.showcase-btn.active {
    background: var(--gold-highlight);
    color: var(--bg-color);
    border-color: var(--gold-highlight);
}

/* MODIFIED: The container is now just an invisible positioning element. */
.hero-showcase-viewer {
    position: relative;
    z-index: 2;
}

/* MODIFIED: The image ITSELF is masked to create the perfect blend. */
#showcase-image {
    max-width: 100%;
    height: auto;
    transition: opacity 0.5s ease-in-out;
    filter: drop-shadow(0 40px 30px rgba(0,0,0,0.8));
    -webkit-box-reflect: below 1px linear-gradient(to bottom, transparent, transparent 30%, rgba(255, 255, 255, 0.15));
    
    /* This is the magic that erases the image edges */
    -webkit-mask-image: radial-gradient(ellipse 65% 50% at 50% 70%, black 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 65% 50% at 50% 70%, black 40%, transparent 100%);
}

#showcase-image.loading {
    opacity: 0;
}

/*
=================================================================
*   8. CONTENT SECTIONS (About, Services, Collection, Reviews)
=================================================================
*/

#about, #services, #reviews, #collection {
    background-color: var(--bg-color);
}

#collection, #reviews {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    text-align: center;
}

.about-card, .service-card {
    text-align: center;
    padding: 2rem;
}

.about-card i, .service-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gold-text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-card h3, .service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-card p, .service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.service-card p {
    text-align: left;
}

.service-feature {
    grid-column: 1 / -1;
}

.collection-category {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-top: 5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    color: var(--gold-mid);
}

.collection-category:first-of-type {
    margin-top: 0;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.car-card {
    background: var(--glossy-card-bg);
    border: 1px solid transparent;
    border-image: var(--gold-gradient-sharp) 1;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
    display: flex; 
    flex-direction: column; 
}

.car-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5), 0 15px 30px rgba(0,0,0,0.5), 0 0 25px rgba(var(--gold-rgb), 0.3);
}

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    filter: saturate(1.1);
}

.car-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column; 
    flex-grow: 1;
}

.car-card-content h4 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--gold-highlight-bright);
}

.car-card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.review-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.review-track {
    display: flex;
    animation-name: scroll-reviews;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.review-slider-wrapper:hover .review-track {
    animation-play-state: paused;
}

.review-card {
    width: 230px;
    flex-shrink: 0;
    margin: 0 10px;
    padding: 1.5rem;
    height: 200px;
    background: var(--glossy-card-bg);
    border: 1px solid transparent;
    border-image: var(--gold-gradient-sharp) 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.review-card:hover {
    transform: scale(1.05);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5), 0 10px 20px rgba(0,0,0,0.5), 0 0 15px rgba(var(--gold-rgb), 0.2);
    z-index: 5;
}

.review-text {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
}

.reviewer-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-highlight);
    text-align: right;
    margin-top: 1rem;
}

/*
=================================================================
*   9. FOOTER
=================================================================
*/
footer {
    text-align: center;
    padding: 2rem;
    background: #000;
}

/*
=================================================================
*   10. MODAL & FORM
*   Styles for the reservation modal and its form.
=================================================================
*/

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.modal-active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.modal-active .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: var(--gold-highlight);
}

.reserve-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.reserve-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-highlight);
    box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.5), inset 0 0 5px rgba(0,0,0,0.5);
}

.form-input::placeholder {
    color: var(--text-muted);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(1) saturate(5) hue-rotate(10deg);
    cursor: pointer;
}

.form-submit-btn {
    grid-column: 1 / -1;
    width: 100%;
}


/*
=================================================================
*   11. UTILITIES & MISCELLANEOUS
*   Helper classes and component styles.
=================================================================
*/

.hamburger {
    display: none;
}

.animate-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}


/*
=================================================================
*   12. MEDIA QUERIES (RESPONSIVE DESIGN)
=================================================================
*/

@media (max-width: 1200px) {
    .collection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-controls {
        justify-content: center;
    }
    .hero-showcase-viewer {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2.5rem;
    }
    .reserve-form {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        padding: 10px;
        background: none;
        border: none;
        z-index: 1100;
    }
    .hamburger .line {
        width: 30px;
        height: 3px;
        background-color: var(--text-color);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 70%;
        background-color: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        z-index: 1050;
    }
    .nav-links.nav-active {
        transform: translateX(0);
    }
    .nav-links li {
        margin: 1rem 0;
    }
    .nav-links li a {
        font-size: 1.2rem;
    }

    .hamburger.toggle .line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger.toggle .line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle .line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .btn-nav {
        display: none;
    }
}

@media (max-width: 576px) {
    .collection-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        padding: 2rem 1rem;
    }
}