/* Cars Page Styles */

/* Main cars page */
.cars-main {
    background: linear-gradient(135deg, #141414 0%, #1a1a1a 50%, #0d1117 100%);
    min-height: 100vh;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.cars-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/cars.webp') center/cover;
    opacity: 0.05;
    z-index: 0;
}

.cars-main > * {
    position: relative;
    z-index: 1;
}

.cars-header {
    text-align: center;
    margin-bottom: 4rem;
    color: white;
}

.cars-header h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f0c040, #ffcc55, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(240, 192, 64, 0.3);
}

.cars-header p {
    font-size: 1.3rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}

/* Brand grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.brand-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 3rem 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.1) 0%, rgba(255, 204, 85, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.brand-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.05), rgba(255, 204, 85, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.brand-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(240, 192, 64, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(240, 192, 64, 0.3);
    text-decoration: none;
    color: inherit;
}

.brand-card:hover::before {
    opacity: 1;
}

.brand-card:hover::after {
    opacity: 1;
}


.brand-card > * {
    position: relative;
    z-index: 2;
}

.brand-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
}

.brand-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    filter: brightness(1.1) saturate(1.2);
}

.brand-card:hover .brand-logo {
    transform: scale(1.1);
    background: rgba(240, 192, 64, 0.1);
    border-color: rgba(240, 192, 64, 0.3);
    box-shadow: 0 10px 30px rgba(240, 192, 64, 0.2);
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.brand-card:hover .stat-item {
    background: rgba(240, 192, 64, 0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #f0c040;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(240, 192, 64, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.brand-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.category-tag {
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.2), rgba(255, 204, 85, 0.15));
    border: 1px solid rgba(240, 192, 64, 0.3);
    color: #f0c040;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.brand-card:hover .category-tag {
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.3), rgba(255, 204, 85, 0.2));
    border-color: rgba(240, 192, 64, 0.5);
    color: #f0c040;
    transform: scale(1.05);
}

/* Brand cars page */
.brand-main {
    background: linear-gradient(135deg, #141414 0%, #1a1a1a 50%, #0d1117 100%);
    min-height: 100vh;
    padding: 2rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.brand-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/cars.webp') center/cover;
    opacity: 0.03;
    z-index: 0;
}

.brand-main > * {
    position: relative;
    z-index: 1;
}

.brand-header {
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.1) 0%, rgba(255, 204, 85, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(240, 192, 64, 0.2);
    color: white;
    padding: 4rem 0;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.brand-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(240, 192, 64, 0.05), rgba(255, 204, 85, 0.03));
    z-index: -1;
}

.brand-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.brand-logo-large {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(240, 192, 64, 0.1);
    transition: all 0.3s ease;
}

.brand-logo-large:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(240, 192, 64, 0.2);
}

.brand-info h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f0c040, #ffcc55, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(240, 192, 64, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brand-info p {
    font-size: 1.3rem;
    color: #ccc;
    line-height: 1.6;
    font-weight: 300;
    max-width: 500px;
}

/* Categories grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Limit width when there are few categories */
.categories-grid[data-category-count="1"] {
    max-width: 800px;
    grid-template-columns: 1fr;
    justify-content: center;
}

.categories-grid[data-category-count="2"] {
    max-width: 1200px;
}

.category-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 2.5rem;
    border-left: 4px solid #f0c040;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.02), rgba(255, 204, 85, 0.01));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.category-section:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(240, 192, 64, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(240, 192, 64, 0.3);
}

.category-section:hover::before {
    opacity: 1;
}

.category-section > * {
    position: relative;
    z-index: 1;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Category Cards Styling */
.categories-section {
    padding: 2rem 0 4rem;
    background: transparent;
}

.category-section .category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f0c040, #ffcc55);
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(240, 192, 64, 0.2);
}

.category-section .category-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(240, 192, 64, 0.3);
    background: linear-gradient(135deg, #ffcc55, #f0c040);
}

.category-section .category-link .link-text {
    font-weight: 600;
    font-size: 1rem;
}

.category-section .category-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.category-section .category-link:hover i {
    transform: translateX(5px);
}

/* Car Cards Styling */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1400px;
    padding: 0 2rem;
}

/* When there's only 1 car, center it and limit width */
.cars-grid[data-car-count="1"] {
    max-width: 600px;
    justify-content: center;
    grid-template-columns: 1fr;
}

/* When there are 2 cars, limit the grid width */
.cars-grid[data-car-count="2"] {
    max-width: 1000px;
}

.car-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.car-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 192, 64, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.car-card:hover::before {
    opacity: 1;
}

.car-card:hover {
    transform: translateY(-8px);
    border-color: rgba(240, 192, 64, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(240, 192, 64, 0.1);
}

.car-card-inner {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.car-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.car-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(240, 192, 64, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

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

.car-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.car-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.car-brand {
    color: #f0c040;
    font-weight: 600;
    font-size: 0.9rem;
}

.car-year {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.car-specs {
    margin-bottom: 1.5rem;
    flex: 1;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.spec-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.spec-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

.car-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.1), rgba(240, 192, 64, 0.2));
    border: 1px solid rgba(240, 192, 64, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.car-link:hover {
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.2), rgba(240, 192, 64, 0.3));
    border-color: rgba(240, 192, 64, 0.5);
    transform: translateX(4px);
}

.car-link .link-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.car-link .link-arrow {
    color: #f0c040;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.car-link:hover .link-arrow {
    transform: translateX(4px);
}

.no-cars {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.no-cars-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
    color: #f0c040;
}

.no-cars h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-cars p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.1), rgba(240, 192, 64, 0.2));
    border: 1px solid rgba(240, 192, 64, 0.3);
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.2), rgba(240, 192, 64, 0.3));
    border-color: rgba(240, 192, 64, 0.5);
    transform: translateY(-2px);
}

/* Animation for categories */
.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 192, 64, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(240, 192, 64, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(240, 192, 64, 0.1);
}

.category-card-inner {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.category-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, #f0c040);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    flex: 1;
}

.category-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(240, 192, 64, 0.2);
    border: 1px solid rgba(240, 192, 64, 0.5);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    min-width: 60px;
}

.count-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.count-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.category-preview {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    height: 80px;
    overflow: hidden;
}

.preview-car {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-car img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-more {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(240, 192, 64, 0.1);
    border: 1px solid rgba(240, 192, 64, 0.3);
    border-radius: 8px;
    color: #f0c040;
    font-weight: 600;
    font-size: 0.9rem;
}

.category-info {
    margin-bottom: 2rem;
    flex: 1;
}

.category-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.1), rgba(240, 192, 64, 0.2));
    border: 1px solid rgba(240, 192, 64, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.category-link:hover {
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.2), rgba(240, 192, 64, 0.3));
    border-color: rgba(240, 192, 64, 0.5);
    transform: translateX(4px);
}

.link-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.link-arrow {
    color: #f0c040;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.category-link:hover .link-arrow {
    transform: translateX(4px);
}

.no-categories {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.no-categories-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.no-categories h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-categories p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 2rem;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.car-count {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.section-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design for Categories */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .categories-grid[data-category-count="1"],
    .categories-grid[data-category-count="2"] {
        max-width: 100%;
    }
    
    .category-card-inner {
        padding: 1.5rem;
    }
    
    .category-name {
        font-size: 1.3rem;
    }
    
    .category-preview {
        height: 60px;
    }
    
    .section-header h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .cars-grid[data-car-count="1"],
    .cars-grid[data-car-count="2"] {
        max-width: 100%;
    }
}

.category-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: capitalize;
    letter-spacing: 1px;
}

.category-count {
    background: linear-gradient(135deg, #f0c040, #ffcc55);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(240, 192, 64, 0.3);
}

.models-list {
    display: grid;
    gap: 1.5rem;
}

.model-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.05), rgba(255, 204, 85, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.model-card:hover {
    transform: translateX(10px) scale(1.02);
    text-decoration: none;
    color: inherit;
    border-color: rgba(240, 192, 64, 0.3);
    box-shadow: 0 10px 25px rgba(240, 192, 64, 0.1);
}

.model-card:hover::before {
    opacity: 1;
}

.model-card > * {
    position: relative;
    z-index: 1;
}

.model-image-container {
    position: relative;
    flex-shrink: 0;
}

.model-image {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.model-card:hover .model-image {
    transform: scale(1.05);
    border-color: rgba(240, 192, 64, 0.3);
    box-shadow: 0 5px 15px rgba(240, 192, 64, 0.2);
}

.model-info {
    flex: 1;
}

.model-name {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.model-year {
    font-size: 0.95rem;
    color: #aaa;
    font-weight: 500;
}

.model-card:hover .model-name {
    color: #f0c040;
}

.model-card:hover .model-year {
    color: #ccc;
}

.hidden-models {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.hidden-models.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.show-more-models {
    background: linear-gradient(135deg, #f0c040, #ffcc55);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 1rem 2rem;
    margin-top: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(240, 192, 64, 0.3);
}

.show-more-models:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(240, 192, 64, 0.4);
    background: linear-gradient(135deg, #f0c040, #ffcc55);
}

.show-more-models i {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.show-more-models.expanded i {
    transform: rotate(180deg);
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(240, 192, 64, 0.2);
    padding: 1.5rem 0;
    margin-top: 80px;
    position: relative;
}

.breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 192, 64, 0.5), transparent);
}

.breadcrumb .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb a, .breadcrumb span {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #f0c040;
    transform: translateX(3px);
}

.breadcrumb i.fa-chevron-right {
    margin: 0 1rem;
    font-size: 0.9rem;
    opacity: 0.6;
    color: #f0c040;
}

.breadcrumb span {
    color: #f0c040;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 2.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .cars-header h1, .brand-info h1 {
        font-size: 3rem;
    }
    
    .cars-header p {
        font-size: 1.1rem;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 2rem;
    }
    
    .brand-header {
        padding: 3rem 0;
    }
    
    .brand-header-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .brand-logo-large {
        width: 120px;
        height: 120px;
    }
    
    .brand-card {
        padding: 2rem 1.5rem;
    }
    
    .category-section {
        padding: 2rem 1.5rem;
    }
    
    .brand-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .model-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .model-image {
        width: 100%;
        height: 150px;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .breadcrumb a, .breadcrumb span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cars-header h1, .brand-info h1 {
        font-size: 2.5rem;
    }
    
    .cars-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .brand-card {
        padding: 1.5rem 1rem;
        margin: 0 1rem;
    }
    
    .category-section {
        padding: 1.5rem 1rem;
        margin: 0 1rem;
    }
    
    .brand-logo {
        width: 100px;
        height: 100px;
    }
    
    .brand-logo-large {
        width: 100px;
        height: 100px;
        padding: 1.5rem;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .category-name {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .brand-categories {
        gap: 0.5rem;
    }
    
    .category-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .model-image {
        height: 120px;
    }
    
    .show-more-models {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .breadcrumb {
        padding: 1rem 0;
    }
    
    .breadcrumb .container {
        padding: 0 1rem;
    }
    
    .breadcrumb a, .breadcrumb span {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .breadcrumb i.fa-chevron-right {
        margin: 0 0.5rem;
        font-size: 0.8rem;
    }
}

/* Loading animation for images */
.model-image, .brand-logo, .brand-logo-large {
    position: relative;
    overflow: hidden;
}

.model-image::before, .brand-logo::before, .brand-logo-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.model-image:hover::before, .brand-logo:hover::before, .brand-logo-large:hover::before {
    left: 100%;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f0c040, #ffcc55);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f0c040, #ffcc55);
}

/* Empty states */
.no-brands, .no-categories {
    text-align: center;
    padding: 4rem 2rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    margin: 2rem auto;
    max-width: 500px;
}

.no-brands i, .no-categories i {
    font-size: 4rem;
    color: #f0c040;
    margin-bottom: 1.5rem;
    display: block;
}

.no-brands h3, .no-categories h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.no-brands p, .no-categories p {
    font-size: 1.1rem;
    color: #aaa;
    line-height: 1.6;
    margin: 0;
}

/* Search Section Styles */
.search-container {
    margin-bottom: 3rem;
    position: relative;
    padding: 0 2rem;
}

/* Match search width to categories grid */
.search-container[data-category-count="1"] {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-container[data-category-count="2"] {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.search-container:not([data-category-count="1"]):not([data-category-count="2"]) {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    color: #f0c040;
    font-size: 1.1rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    border-color: #f0c040;
    box-shadow: 0 0 20px rgba(240, 192, 64, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.clear-search {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.clear-search:hover {
    color: #f0c040;
    background: rgba(240, 192, 64, 0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-results-list {
    padding: 1rem 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(240, 192, 64, 0.1);
    transform: translateX(5px);
}

.result-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(240, 192, 64, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.result-icon i {
    color: #f0c040;
    font-size: 1.1rem;
}

.result-info {
    flex: 1;
}

.result-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.2rem;
}

.result-details {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.result-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-result-item:hover .result-arrow {
    color: #f0c040;
    transform: translateX(3px);
}

.category-result .result-icon {
    background: rgba(52, 152, 219, 0.1);
}

.category-result .result-icon i {
    color: #3498db;
}

.car-result .result-icon {
    background: rgba(46, 204, 113, 0.1);
}

.car-result .result-icon i {
    color: #2ecc71;
}

.no-search-results {
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

/* Custom scrollbar for search results */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(240, 192, 64, 0.3);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(240, 192, 64, 0.5);
}
