/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --card-bg: #2a2a2a;
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
header {
    background-color: var(--secondary-bg);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 0.8rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gold);
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--gold);
    background-color: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(20, 20, 20, 0.9) 50%, rgba(0, 0, 0, 0.85) 100%),
        url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1920&q=80') center center / cover no-repeat;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    border-radius: 30px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    line-height: 1.2;
}

.gold-text {
    color: var(--gold);
    font-weight: 600;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.feature-icon {
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.hero-cta {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--primary-bg);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

/* Sections */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--gold);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--gold);
    margin: 1rem auto;
}

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

.car-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

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

.car-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(110deg, var(--secondary-bg) 8%, #333 18%, var(--secondary-bg) 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

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

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0;
}

.car-image img.loaded {
    opacity: 1;
}

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

.car-info {
    padding: 1.5rem;
}

.car-name {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--gold-light);
}

.car-year {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.car-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--gold);
    margin: 1rem 0;
}

.car-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.car-order {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.order-btn {
    display: inline-block;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--primary-bg);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.car-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

.car-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.car-contact a:hover {
    color: var(--gold);
}

/* About Section */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1rem;
}

.about-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border-radius: 20px;
}

.about-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 300;
    line-height: 1.2;
    text-align: left;
}

.about-content h2::after {
    display: none;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(42, 42, 42, 0.5) 100%);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--gold);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.15);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.about-feature-card {
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(26, 26, 26, 0.8) 100%);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.4s ease;
}

.about-feature-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
}

.feature-icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid var(--gold);
    border-radius: 50%;
}

.about-feature-card h3 {
    color: var(--gold-light);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-info {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-info h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.contact-info strong {
    color: var(--text-primary);
}

.phone-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--primary-bg);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.phone-link:hover,
.email-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.email-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--gold);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 2px solid var(--gold);
}

.email-link:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--primary-bg);
}

.contact-info p a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info p a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Admin Page Styles */
.admin-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
}

.admin-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-form {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.admin-form h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.btn-delete {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    margin-top: 1rem;
    background: transparent;
    color: #ff4444;
    border: 2px solid #ff4444;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-delete:hover {
    background: #ff4444;
    color: white;
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: var(--secondary-bg);
    border: 2px dashed rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--gold);
    background-color: rgba(212, 175, 55, 0.05);
}

.file-upload-label .upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.file-upload-label .upload-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.file-upload-label .upload-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.file-upload-input {
    display: none;
}

.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.image-preview .remove-image {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 1rem;
    background: transparent;
    color: #ff4444;
    border: 1px solid #ff4444;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.image-preview .remove-image:hover {
    background: #ff4444;
    color: white;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gold);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--secondary-bg);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
}

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

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--primary-bg);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Footer */
footer {
    background-color: var(--secondary-bg);
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-contact {
    margin-top: 0.5rem;
}

.footer-contact a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--gold-light);
}

.footer-developer {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-developer a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-developer a:hover {
    color: var(--gold-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-features {
        gap: 1.5rem;
    }

    .hero-feature {
        font-size: 0.9rem;
    }

    .hero-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .car-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links a {
        padding: 0.4rem 0.9rem;
        font-size: 0.9rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-content h2 {
        font-size: 2.2rem;
        text-align: center;
    }

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

    .about-stats {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 1;
        min-width: 140px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }

    .hero {
        min-height: 85vh;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
        letter-spacing: 2px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .contact-info {
        padding: 1.5rem;
    }
}

/* Admin Mobile Styles */
@media (max-width: 768px) {
    .admin-container {
        margin: 1rem auto;
        padding: 0.5rem;
    }

    .admin-container h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .admin-form {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .admin-form h3 {
        font-size: 1.2rem;
    }

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

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .admin-container {
        padding: 0.3rem;
    }

    .admin-container h2 {
        font-size: 1.4rem;
    }

    .admin-form {
        padding: 0.8rem;
        border-radius: 8px;
    }

    .admin-form h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .btn-primary {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    .btn-delete {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
}
