/* Variables */
:root {
    --primary-color: #da251d; /* Червено */
    --primary-dark: #a31a14;
    --secondary-color: #ffffff; /* Бяло за акценти и заглавия на черен фон */
    --text-color: #cccccc; /* Светло сиво за основен текст */
    --text-light: #f8f9fa;
    --bg-color: #111111; /* Черно за основен фон */
    --bg-light: #1a1a1a; /* Тъмно сиво за секции */
    --bg-dark: #000000; /* Чисто черно за футър */
    --surface-color: #222222; /* Тъмно сиво за карти */
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.section-title p {
    color: #aaaaaa;
    font-size: 1.1rem;
}

.bg-light {
    background-color: var(--bg-light);
}

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

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #111111;
}

.btn-secondary:hover {
    background-color: #cccccc;
    color: #111111;
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

/* Header */
.header {
    background-color: #ffffff;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: #000000;
}

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

.logo img {
    height: 90px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.header.scrolled .logo img {
    filter: invert(1) hue-rotate(180deg) saturate(3) brightness(0.9);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: #111111;
    transition: color 0.3s ease;
}

.header.scrolled .nav-links a {
    color: #ffffff;
}

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

.nav-links .btn-primary {
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #111111;
    transition: color 0.3s ease;
}

.header.scrolled .mobile-menu-btn {
    color: #ffffff;
}

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

.hero-bg-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('assets/main.jpg?v=2');
    background-size: cover;
    background-position: center;
    z-index: 0;
}



/* Dark overlay for hero text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    max-width: 600px;
    color: var(--text-light);
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}



/* About Us */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
    object-fit: cover;
    display: block;
}

.about-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    margin-top: 30px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.about-features li i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--surface-color);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    color: #aaaaaa;
}

/* Controls & Filters */
.controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    background: var(--surface-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.filters-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex: 1;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-group label {
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}

.filter-input {
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #333;
    background-color: var(--bg-color);
    color: var(--text-light);
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.filter-input::placeholder {
    color: #888;
}

.filter-input:hover, .filter-input:focus {
    border-color: var(--primary-color);
}

/* Inventory */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.car-card {
    display: block;
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.car-image-placeholder {
    height: 220px;
    background: #333333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #adb5bd;
}

.car-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.car-image-placeholder span {
    font-weight: 500;
}

.car-info {
    padding: 25px;
}

.car-info h3 {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.car-details {
    color: #aaaaaa;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.car-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.car-card .btn-outline {
    display: block;
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-about p {
    color: #aaa;
    line-height: 1.8;
}

.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-contact ul li {
    margin-bottom: 15px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-contact ul li i {
    color: var(--primary-color);
}

.footer-contact ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .inventory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        transition: var(--transition);
        gap: 20px;
    }

    .nav-links.active {
        left: 0;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-category {
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent;
    color: var(--text-color);
    font-weight: 600;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.btn-category:hover, .btn-category.active {
    background-color: var(--primary-color);
    color: #fff;
}
