/* Triangular Carousel Component Styles */

/* Banner Section Base Styles (maintain existing structure) */
.banner.style-1 {
    background: url('./assets/media/banner/banner-s1-bg.jpg');
    padding: 115px 0 50px 0;
    background-size: cover;
    width: 100%;
    min-height: 600px;
}

.banner.style-1 .banner-content {
    padding: 0px 0;
}

.banner.style-1 .banner-content .title {
    font-weight: 600;
    font-size: 50px;
    margin-bottom: 0;
    line-height: 143%;
    color: #1D1D1D;
}

.banner.style-1 .banner-content .collection-text {
    font-size: 25px;
    letter-spacing: 0.1em;
    margin-top: 100px;
    text-decoration: none;
    color: #1D1D1D;
    display: inline-block;
    transition: all 0.3s ease;
}

.banner.style-1 .banner-content .collection-text:hover {
    color: #007bff;
    transform: translateY(-2px);
}

/* Triangular Carousel Main Container */
.triangular-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 600px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Image Wrapper Base Styles */
.image-wrapper {
    position: relative;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: scale(0.8);
    overflow: hidden;
    flex-shrink: 0;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    display: block;
}

.image-set {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.image-set.active {
    opacity: 1;
}

.image-set.active .image-wrapper {
    opacity: 1;
    transform: scale(1);
}

/* Left Image - Smaller size */
.image-wrapper.left-image {
    width: 160px;
    height: 250px;
    z-index: 1;
    border: 3px solid #fff;
}

/* Center Image - Larger size, most prominent */
.image-wrapper.center-image {
    width: 200px;
    height: 300px;
    z-index: 3;
    border: 4px solid #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Right Image - Smaller size */
.image-wrapper.right-image {
    width: 160px;
    height: 250px;
    z-index: 2;
    border: 3px solid #fff;
}

/* Hover Effects for Enhanced Interactivity */
.image-wrapper:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
    z-index: 10;
}

/* Navigation Dots */
.carousel-nav {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 5;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid #1D1D1D;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot:hover {
    background: rgba(0, 123, 255, 0.7);
    border-color: #007bff;
    transform: scale(1.1);
}

.nav-dot.active {
    background: #007bff;
    border-color: #007bff;
    transform: scale(1.2);
}

/* Animation Classes */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-wrapper.slide-in {
    animation: slideIn 0.8s ease-out;
}

.image-wrapper.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}


.image-set:not(.active) .image-wrapper {
    pointer-events: none;
}

/* Loading State */
.image-wrapper.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .triangular-carousel {
        height: 450px;
    }
    
    .carousel-container {
        width: 350px;
        height: 350px;
    }
    
    .image-wrapper.center-image {
        width: 240px;
        height: 300px;
    }
    
    .image-wrapper.left-image,
    .image-wrapper.right-image {
        width: 170px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .banner.style-1 {
        padding: 80px 0 30px 0;
    }

    .banner.style-1 .banner-content .title {
        font-size: 35px;
    }

    .banner.style-1 .banner-content .collection-text {
        font-size: 20px;
        margin-top: 50px;
    }

    .triangular-carousel {
        height: 380px;
    }

    .carousel-container {
        width: 520px;
        height: 320px;
        gap: 15px;
    }

    .image-wrapper.center-image {
        width: 180px;
        height: 260px;
    }

    .image-wrapper.left-image,
    .image-wrapper.right-image {
        width: 150px;
        height: 220px;
    }
    
    .carousel-nav {
        bottom: -40px;
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .banner.style-1 .banner-content .title {
        font-size: 28px;
    }
    
    .banner.style-1 .banner-content .collection-text {
        font-size: 18px;
        margin-top: 40px;
    }
    
    .triangular-carousel {
        height: 320px;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .carousel-container {
        width: 100%;
        max-width: 400px;
        height: 280px;
        gap: 10px;
        min-width: 350px;
    }

    .image-wrapper.center-image {
        width: 130px;
        height: 190px;
    }

    .image-wrapper.left-image,
    .image-wrapper.right-image {
        width: 110px;
        height: 160px;
    }
    
    .carousel-nav {
        bottom: -35px;
    }
    
    .nav-dot {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .triangular-carousel {
        height: 280px;
    }
    
    .carousel-container {
        width: 100%;
        max-width: 310px;
        height: 240px;
        gap: 8px;
        padding: 0 5px;
    }

    .image-wrapper.center-image {
        width: 110px;
        height: 160px;
    }

    .image-wrapper.left-image,
    .image-wrapper.right-image {
        width: 90px;
        height: 130px;
    }
}

/* High DPI / Retina Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .image-wrapper img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .image-wrapper,
    .dot {
        transition: none;
    }
    
    .image-wrapper.slide-in {
        animation: none;
    }
}

/* Focus States for Accessibility */
.dot:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}