/* ===================================
   MODERN BRANDS SECTION STYLES
   =================================== */

/* Brands Area Section */
.brands-area {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    overflow: hidden;
}

.brands-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.brands-area .container {
    position: relative;
    z-index: 2;
}

/* Section Title with Accent */
.brands-area .section-title .title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--heading-color);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.title-accent {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--main-color) 0%, transparent 100%);
    margin: 0 auto 2rem;
    border-radius: 2px;
    box-shadow: none;
}

/* Modern Brand Grid Carousel */
.brands-grid {
    display: flex;
    gap: 0.5rem;
    max-width: 100%;
    margin: 0;
    padding: 1rem 0.3rem;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Smoky blur effect on left edge */
.brands-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(90deg, #0a0a0a 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

/* Smoky blur effect on right edge */
.brands-grid::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(-90deg, #0f0f0f 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

.brands-grid-wrapper {
    display: flex;
    align-items: stretch;
    width: max-content;
    min-width: 100%;
    will-change: transform;
    animation: carouselScroll 18s linear infinite;
    transform: translate3d(0, 0, 0);
}

@keyframes carouselScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-33.3333%, 0, 0);
    }
}

/* Individual Brand Item */
.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    min-width: 120px;
}

.brand-item:hover {
    transform: translateY(-8px);
}

/* Circular Brand Container */
.brand-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.brand-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: transparent;
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.brand-item:hover .brand-circle {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.06);
}

.brand-item:hover .brand-circle::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.brand-circle img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.brand-item:hover .brand-circle img {
    transform: scale(1.06);
}

/* Brand Name */
.brand-name {
    font-family: var(--body-font);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--paragraph-color);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.brand-item:hover .brand-name {
    color: var(--main-color);
    opacity: 1;
    letter-spacing: 0.15em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brands-area .section-title .title {
        font-size: 2rem;
    }
    
    .brands-grid {
        gap: 0.8rem;
        padding: 1rem 0;
    }

    .brands-grid-wrapper {
        animation-duration: 18s;
    }
    
    .brand-item {
        min-width: 100px;
    }
    
    .brand-circle {
        width: 85px;
        height: 85px;
        padding: 8px;
    }
    
    .brand-circle img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
    }
    
    .brand-name {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .brands-area .section-title .title {
        font-size: 1.8rem;
    }
    
    .brands-grid {
        gap: 0.6rem;
    }

    .brands-grid-wrapper {
        animation-duration: 15s;
    }
    
    .brand-item {
        min-width: 80px;
    }
    
    .brand-circle {
        width: 70px;
        height: 70px;
        padding: 6px;
    }
    
    .brand-circle img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
    }
    
    .brand-name {
        font-size: 0.65rem;
    }
}

/* Dark theme enhancements */
@media (prefers-color-scheme: dark) {
    .brands-area {
        background: linear-gradient(135deg, #050505 0%, #0f0f0f 50%, #080808 100%);
    }
}
