/* Luxury Brands Carousel Styles */

.brands-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff, #f8f3e8);
}

/* Gold accent decor */
.brands-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.brands-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.brands-section .section-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.brands-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding: 0 15px;
}

/* Gold underline for section title */
.brands-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #d4af37;
}

.brands-section .section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Luxury Marquee Container */
.luxury-marquee-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 20px 0;
    background: transparent;
    box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.05);
}

/* Luxury Marquee */
.luxury-marquee {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

/* Marquee Track */
.marquee-track {
    position: absolute;
    display: flex;
    width: fit-content;
    height: 100%;
    will-change: transform;
    animation: marqueeScroll 30s linear infinite;
}

/* Animation for continuous scrolling */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover */
.luxury-marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* Marquee Content */
.marquee-content {
    display: flex;
    align-items: center;
}

.luxury-brand-item {
    min-width: 280px;
    height: 280px;
    margin: 0 35px;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
}

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

.luxury-brand-logo {
    max-height: 250px;
    max-width: 95%;
    transition: all 0.4s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.08));
}

.luxury-brand-item:hover .luxury-brand-logo {
    filter: drop-shadow(0 10px 20px rgba(212, 175, 55, 0.25));
    filter: brightness(1) contrast(1.1);
}

.brand-image {
    width: auto;
    height: auto;
    max-width: 95%;
    max-height: 95%;
    object-fit: contain; /* Dit zorgt ervoor dat de hele afbeelding zichtbaar is */
    object-position: center center; /* Centreer de afbeelding */
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 2;
    will-change: opacity; /* Optimize for animations */
    transform: translateZ(0); /* Prevent jank during scrolling */
    background-color: transparent; /* Transparante achtergrond */
    padding: 0; /* Geen padding */
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.08)); /* Subtiele schaduw voor zwevend effect */
}

.brand-item:hover .brand-image {
    transform: scale(1.05);
}

/* Overlay with brand name and button */
.brand-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: none;
    padding: 20px 10px 10px;
    color: black;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    opacity: 0.9;
    height: 40%;
}

.brand-item:hover .brand-overlay {
    opacity: 1;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    transition: transform 0.4s ease;
    display: none; /* Verberg de naam voor een zwevend effect */
}

.brand-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #d4af37;
    transition: width 0.4s ease;
}

.brand-item:hover .brand-name::after {
    width: 50px;
}

.discover-btn {
    background-color: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    margin-top: 10px;
    display: none; /* Verberg de knop voor een zwevend effect */
}

.brand-item:hover .discover-btn {
    opacity: 1;
    transform: translateY(0);
}

.discover-btn:hover {
    background-color: #d4af37;
    color: #000;
}

/* Carousel controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background-color: #f8f3e2;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    color: #d4af37;
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

/* Gold shimmer effect for carousel controls on hover */
.carousel-control::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(315deg, #d4af37, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.carousel-control:hover::before {
    opacity: 0.4;
}

/* Responsive styles */
@media (max-width: 992px) {
    .brands-section {
        padding: 50px 0;
    }
    
    .brands-section .section-title {
        font-size: 2rem;
    }
    
    .luxury-marquee {
        height: 260px;
    }
    
    .marquee-track {
        animation-duration: 30s;
    }
    
    .luxury-brand-item {
        min-width: 240px;
        height: 240px;
        margin: 0 25px;
    }
    
    .luxury-brand-logo {
        max-height: 220px;
    }
}

@media (max-width: 768px) {
    .brands-section {
        padding: 40px 0;
    }
    
    .brands-section .section-title {
        font-size: 1.8rem;
        padding: 0 20px;
    }
    
    .brands-section .section-subtitle {
        font-size: 1rem;
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    .luxury-marquee {
        height: 230px;
    }
    
    .marquee-track {
        animation-duration: 25s;
    }
    
    .luxury-brand-item {
        min-width: 200px;
        height: 200px;
        margin: 0 20px;
        padding: 0;
    }
    
    .luxury-brand-logo {
        max-height: 180px;
    }
}

@media (max-width: 576px) {
    .brands-section {
        padding: 30px 0;
    }
    
    .luxury-marquee-container {
        padding: 15px 0;
    }
    
    .luxury-marquee {
        height: 180px;
    }
    
    .marquee-track {
        animation-duration: 20s;
    }
    
    .luxury-brand-item {
        min-width: 160px;
        height: 160px;
        margin: 0 15px;
        padding: 0;
        box-shadow: none;
    }
    
    .luxury-brand-logo {
        max-height: 140px;
    }
    
    /* Improve touch feedback */
    .luxury-brand-item:active {
        transform: translateY(-5px);
    }
    
    .brands-section .section-title {
        font-size: 1.5rem;
    }
    
    .brands-section .section-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
        max-width: 300px;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .brands-section {
        padding: 25px 0;
    }
    
    .luxury-marquee {
        height: 150px;
    }
    
    .luxury-brand-item {
        min-width: 130px;
        height: 130px;
        margin: 0 12px;
        padding: 0;
    }
    
    .luxury-brand-logo {
        max-height: 110px;
    }
    
    .marquee-track {
        animation-duration: 15s;
    }
    
    .brands-section .section-title {
        font-size: 1.3rem;
    }
    
    .brands-section .section-subtitle {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}
