@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #050b14;
    --card-bg: rgba(16, 24, 39, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent: #eab308; /* Vivid Gold */
    --accent-hover: #facc15;
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
* { box-sizing: border-box; scroll-behavior: smooth; }

/* Navbar */
header {
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 11, 20, 0.85);
    backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
}
.logo span {
    color: var(--accent);
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.main-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: #cbd5e1;
    position: relative;
}
.main-menu a:hover, .main-menu a.active {
    color: var(--accent);
}
.main-menu a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}
.main-menu a:hover::after, .main-menu a.active::after {
    width: 100%;
}

.btn-login {
    background: linear-gradient(45deg, var(--accent), #d97706);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: #000 !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-login::after { display: none !important; }
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(234, 179, 8, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1503376710356-74070a1a5b51?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(5, 11, 20, 0.7), rgba(5, 11, 20, 0.95));
}
.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 20px;
    animation: fadeIn 1.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero h1 { 
    font-size: 4.5rem; 
    margin-bottom: 1rem; 
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p { 
    color: #cbd5e1; 
    font-size: 1.3rem; 
    max-width: 700px; 
    margin: 0 auto 2.5rem auto; 
    line-height: 1.6; 
}

.btn-primary {
    background: var(--accent);
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 25px rgba(234, 179, 8, 0.4);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

/* Sections */
.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 6rem 5% 4rem 5%;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 2.5rem;
    margin: 0;
}
.section-header .line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Car Grid */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.car-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.2rem;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
}
.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: var(--accent);
}

.car-image-container {
    position: relative;
    overflow: hidden;
}
.car-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.car-card:hover .car-image {
    transform: scale(1.08);
}

.car-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid rgba(255,255,255,0.1);
}

.car-info {
    padding: 1.8rem;
}
.car-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #fff;
}
.car-title span { font-weight: 400; color: #cbd5e1; }
.car-price {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 0.8rem;
    margin-bottom: 1.5rem;
}
.car-specs div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}
.car-specs i { color: var(--accent); width: 16px; }

.btn-view {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
}
.btn-view:hover {
    background: var(--accent);
    color: #000;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    font-size: 35px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.15) rotate(-5deg);
}

/* Footer */
footer {
    background: #020617;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.footer-content h3 { color: var(--accent); margin-bottom: 1.5rem; font-size: 1.5rem; }
.footer-content p { color: #94a3b8; line-height: 1.8; display: flex; align-items: center; gap: 0.5rem; }

/* Details Page (kept for compatibility, slightly updated colors) */
.details-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 2rem; }
@media (max-width: 900px) { .details-container { grid-template-columns: 1fr; } .hero h1 { font-size: 3rem; } .main-menu { display: none; } }
.main-image-container img { width: 100%; border-radius: 1rem; border: 1px solid var(--glass-border); cursor: pointer; }
.gallery-thumbs { display: flex; gap: 1rem; margin-top: 1.5rem; overflow-x: auto; padding-bottom: 1rem; }
.gallery-thumbs img { width: 120px; height: 80px; object-fit: cover; border-radius: 0.5rem; cursor: pointer; border: 2px solid transparent; opacity: 0.6; transition: all 0.3s; }
.gallery-thumbs img:hover, .gallery-thumbs img.active { border-color: var(--accent); opacity: 1; }
.car-detail-info h1 { font-size: 3rem; margin-top: 0; line-height: 1.2; }
.car-detail-price { font-size: 2.5rem; color: var(--accent); font-weight: 800; margin-bottom: 2rem; }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.spec-item { background: var(--card-bg); padding: 1.5rem; border-radius: 0.8rem; border: 1px solid var(--glass-border); }
.spec-label { color: var(--text-secondary); font-size: 1rem; margin-bottom: 0.5rem; }
.spec-value { font-weight: 600; font-size: 1.3rem; color: #fff; }
.description { margin-top: 3rem; line-height: 1.8; color: #cbd5e1; font-size: 1.1rem; }

/* Lightbox */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); backdrop-filter: blur(10px); }
.modal-content { margin: auto; display: block; max-width: 90%; max-height: 85vh; margin-top: 3vh; border-radius: 0.5rem; }
.close { position: absolute; top: 20px; right: 40px; color: #fff; font-size: 40px; cursor: pointer; transition: color 0.3s; }
.close:hover { color: var(--accent); }
.modal-nav { position: absolute; top: 50%; transform: translateY(-50%); color: white; font-size: 3rem; cursor: pointer; padding: 1rem; transition: color 0.3s; }
.modal-nav:hover { color: var(--accent); }
.modal-prev { left: 5%; }
.modal-next { right: 5%; }
