/* Page Header */
.page-header {
    margin-top: 138px;
    background: var(--secondary-color);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(236, 167, 1, 0.05) 10px,
        rgba(236, 167, 1, 0.05) 20px
    );
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    color: white;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--stripe-thickness);
    background: var(--stripe-pattern);
}

/* Main Content */
.main-content {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Brand Sections - Column Layout */
.brands-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: white;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: calc(100vh - 220px);
    overflow: hidden;
}

.brand-column {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.brand-column:last-child {
    border-right: none;
}

.brand-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.brand-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.brand-logo {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    position: relative;
}

.models-container {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

.model-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: visible;
    position: relative;
}

.model-item:has(.model-preview:hover) {
    z-index: 10;
}

.model-preview {
    width: 200px;
    height: 200px;
    overflow: visible;
    cursor: pointer;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Image inside the circle */
.model-preview img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain; /* ensures full image is shown */
    transition: transform 0.4s ease;
    transform-origin: center center;
    overflow: visible;
    z-index: 1;
}

/* Hover pop-out effect */
.model-preview:hover {
    transform: scale(1.1);
    z-index: 10;
}

/* Image comes out of frame */
.model-preview:hover img {
    transform: scale(1.35) translateY(-10px);
    z-index: 10;
}

.model-preview:hover + .model-name {
    transform: scale(1.1);
    z-index: 11;
    bottom: -20px;
}

.model-name {
    font-size: 1.2rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-style: italic;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 10px;
    position: absolute;
    bottom: 0;
    z-index: 10;
    transition: all 0.4s ease;
}

@media (max-width: 1024px) {
    .brands-container {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }

    .brand-column {
        border-right: none;
        border-bottom: 3px solid var(--primary-color);
        overflow: visible;
    }

    .brand-column:last-child {
        border-bottom: none;
    }

    .models-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
    }

    .model-item {
        border-bottom: none;
    }

    .model-item:nth-child(3n) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .brands-container {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }

    .brand-column {
        border-right: none;
        border-bottom: 3px solid var(--primary-color);
        overflow: visible;
    }

    .brand-column:last-child {
        border-bottom: none;
    }

    .models-container {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        overflow: visible;
    }

    .model-item {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .model-item:last-child {
        border-bottom: none;
    }

    .brand-header h2 {
        font-size: 2rem;
    }

    .model-preview {
        width: 120px;
        height: 120px;
    }

    .model-preview::before {
        font-size: 3rem;
    }
}