/* Lamborghini Theme CSS */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800;900&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #0a0a0c;
    --bg-card: #121318;
    --bg-glass: rgba(18, 19, 24, 0.85);
    --gold: #d4af37;
    --gold-bright: #ffd700;
    --gold-dark: #8a7018;
    --text-primary: #ffffff;
    --text-secondary: #a0a5b5;
    --border-color: rgba(212, 175, 55, 0.25);
    --border-hover: rgba(212, 175, 55, 0.6);
    --danger: #ff4757;
    --success: #2ed573;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 40%);
}

/* Typography & Links */
h1, h2, h3, h4, .brand-logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--gold-bright);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
}

.brand-logo span {
    color: var(--gold);
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.user-badge {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 20px;
    color: var(--gold-bright);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid var(--gold);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-bright);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-bright);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn-danger {
    border-color: var(--danger);
    color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}

.btn-block {
    width: 100%;
}

/* Authentication Container */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 85px);
    padding: 2rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    padding: 3rem 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.05);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.auth-title {
    font-size: 1.8rem;
    text-align: center;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: #08090c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-danger {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid var(--danger);
    color: #ff6b81;
}

.alert-success {
    background: rgba(46, 213, 115, 0.15);
    border: 1px solid var(--success);
    color: #7bed9f;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #0a0a0c;
    padding: 0 1rem;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.55;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(10,10,12,0.3) 0%, rgba(10,10,12,0.9) 90%);
    z-index: 2;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--gold);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    font-weight: 500;
}

/* Video Showcase Section */
.video-section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.15);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

/* Showcase Section */
.showcase-container {
    max-width: 1300px;
    margin: 4rem auto;
    padding: 0 2rem;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--gold);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 10px auto 0 auto;
}

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

.car-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.car-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.car-type-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--gold);
    color: var(--gold-bright);
    padding: 4px 12px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
}

.car-details {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.car-title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.car-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.2rem;
    text-align: center;
}

.spec-item .value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
}

.spec-item .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Footer */
footer {
    background: #050507;
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 5rem;
}

footer span {
    color: var(--gold);
}

/* Photo Lightbox Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 850px;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 30px rgba(212, 175, 55, 0.2);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 2.2rem;
    color: var(--gold);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

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

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

.modal-img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
}

.modal-details {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 3%;
        text-align: center;
    }
    .nav-links {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
    .brand-logo {
        font-size: 1.25rem;
    }
    .hero-content h1 {
        font-size: 2.1rem !important;
    }
    .hero-content p {
        font-size: 0.95rem !important;
    }
    .car-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .showcase-container {
        padding: 0 1rem;
    }
    .modal-body {
        grid-template-columns: 1fr;
    }
    .modal-details {
        padding: 1.2rem;
    }
}
