:root {
    --bg-dark: #07090b;
    --bg-card: #12151b;
    --bg-glass: rgba(18, 21, 27, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6; /* Modern Blue */
    --accent-hover: #2563eb;
    --border: rgba(255, 255, 255, 0.08);
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.w-100 {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.navbar .logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background-image: linear-gradient(180deg, rgba(7, 9, 11, 0.3) 0%, rgba(7, 9, 11, 1) 100%), url('assets/hero_dark_car_1777048105350.png');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 0;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
    animation: slideUp 1s ease-out;
}

.hero-content h1 {
    font-size: 5.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 80%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Sections */
section {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

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

/* Inventory filters */
.filter-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

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

.car-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}

.car-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card:hover img {
    transform: scale(1.05);
}

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

.car-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.car-price {
    font-size: 1.4rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1rem;
}

.car-specs-mini {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.car-card .btn {
    margin-top: auto;
}

/* Reviews */
.reviews {
    background: var(--bg-card);
}

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

.review-card {
    background: rgba(255,255,255,0.03);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-card p {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.review-card h4 {
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Footer */
footer {
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-content .brand {
    font-size: 1.5rem;
    font-weight: 900;
}

.footer-content p {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-dark);
    width: 90%;
    max-width: 1000px;
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

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

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: var(--transition);
}

.close-btn:hover {
    color: white;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-info {
    padding: 3rem;
}

.modal-info h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.modal-info .price {
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 2rem;
}

.specs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-item .label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.spec-item .value {
    font-size: 1.2rem;
    font-weight: 700;
}

.booking-form-container h3 {
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    gap: 1rem;
}

form input {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: white;
    margin-bottom: 1rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

form input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.08);
}

.hidden {
    display: none;
}

#formSuccess {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    text-align: center;
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .modal-grid { grid-template-columns: 1fr; }
    .modal-image-container img { height: 300px; }
    .hero-content h1 { font-size: 4rem; }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { max-width: 100%; }
    .input-group { flex-direction: column; gap: 0; }
}
