/* Variables */
:root {
    --bg-dark: #050505;
    --bg-darker: #000000;
    --bg-card: rgba(20, 20, 20, 0.6);
    --primary-color: #D90429; /* Deep racing red */
    --primary-hover: #EF233C;
    --text-main: #FFFFFF;
    --text-muted: #8D99AE;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.accent {
    color: var(--primary-color);
}

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

/* Glassmorphism */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(217, 4, 41, 0.15);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(217, 4, 41, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #A0001A);
    color: #fff;
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(217, 4, 41, 0.6);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

.btn-large {
    padding: 18px 40px;
    font-size: 0.95rem;
}

.btn-block {
    width: 100%;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-darker);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}
.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}
.preloader-logo {
    height: 80px;
    margin-bottom: 20px;
    animation: pulse 2s infinite ease-in-out;
}
.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
}
.loader-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; height: 100%; width: 50%;
    background: var(--primary-color);
    animation: loading 1.5s infinite ease-in-out;
}
@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

/* Header */
.header {
    position: fixed;
    top: 0; width: 100%;
    padding: 15px 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}
.header.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

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

.logo-img {
    height: 65px;
    width: auto;
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav a:hover:not(.btn) {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}
.mobile-menu-btn span {
    width: 30px; height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(217, 4, 41, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: 50%; right: -10%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    position: relative;
    z-index: 2;
}

/* Brands Marquee */
.brands-section {
    padding: 2rem 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}
.brands-marquee {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}
.brands-track {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-muted);
    letter-spacing: 4px;
}
.brands-track span {
    margin: 0 2rem;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Features */
.features {
    padding: 8rem 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    padding: 3rem 2.5rem;
    border-radius: 12px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(217, 4, 41, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Process Timeline */
.process {
    padding: 6rem 0;
    background: var(--bg-darker);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color) 0%, var(--bg-darker) 100%);
    top: 0; bottom: 0; left: 24px;
}

.timeline-item {
    padding: 30px 0 30px 80px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    width: 50px; height: 50px;
    background: var(--bg-darker);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    left: 0; top: 30px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-main);
    box-shadow: 0 0 15px rgba(217, 4, 41, 0.3);
}

.timeline-content {
    padding: 2.5rem;
    border-radius: 12px;
}

.timeline-content:hover {
    border-color: rgba(217, 4, 41, 0.3);
}

.hito {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 8px 16px;
    background: rgba(217, 4, 41, 0.1);
    border-left: 3px solid var(--primary-color);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Vehicles Gallery */
.vehicles {
    padding: 8rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 50%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* FAQ */
.faq {
    padding: 6rem 0;
    background: var(--bg-darker);
}

.faq-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.faq-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.faq-question {
    padding: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Contact */
.contact {
    padding: 8rem 0;
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-details {
    margin-top: 3rem;
    padding: 2.5rem;
    border-radius: 12px;
}

.contact-details p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.contact-details a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary-color);
}

/* Floating Form */
.form {
    padding: 3rem;
    border-radius: 12px;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.form input, .form textarea, .form select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

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

.form select option {
    background: var(--bg-dark);
    color: var(--text-main);
}

.form label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
    font-size: 1rem;
}

.form input:focus, .form textarea:focus, .form select:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.form input:focus ~ label, 
.form input:not(:placeholder-shown) ~ label,
.form textarea:focus ~ label,
.form textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.select-group label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-status {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 500;
    min-height: 24px;
}
.status-success { color: #4CAF50; }
.status-error { color: var(--primary-color); }

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float svg {
    width: 35px; height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(-10deg);
    background-color: #20b858;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.footer-logo {
    margin-bottom: 1.5rem;
}
.footer-logo img {
    height: 40px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container, .contact-container, .faq-container {
        grid-template-columns: 1fr;
    }
    .hero-title { font-size: 3.5rem; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav { 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem 0;
        border-bottom: 1px solid var(--border-color);
        display: none; 
    }
    .nav.active { display: flex; }
    .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 { padding-top: 120px; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 1rem; }
    .hero-buttons .btn { width: 100%; }
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; }
    .timeline::after { left: 20px; }
    .timeline-dot { width: 40px; height: 40px; top: 20px; left: 0; font-size: 1rem; }
    .timeline-item { padding: 20px 0 20px 60px; }
    .form { padding: 2rem 1.5rem; }
}
