/* carousel.css - Modern Carousel Styles */

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 0 0.4rem 0.2rem var(--accent-hover);
    background: var(--bg-secondary);
    margin: 2rem 0;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide.slide-left {
    transform: translateX(-100%);
}

/* Slide Image Styles */
.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

/* Slide Content Styles */
.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    color: white;
    padding: 2rem;
    border: 0.1rem solid var(--accent-primary);
    box-shadow: 0 0 0.4rem 0.1rem var(--accent-secondary);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 0.5rem;
    backdrop-filter: blur(2px);
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.slide-button {
    display: inline-block;
    padding: 6px 23px;
    background: var(--accent-primary);
    color: #000;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 100;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.slide-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: var(--accent-hover);
}

/* Control Buttons */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-tertiary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity:0.8;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-control:hover {
    /* background: rgba(255, 255, 255, 0.3); */
    border: 0.1rem solid var(--accent-primary);
    box-shadow:0 0 0.4rem 0.1rem var(--accent-hover);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-control-icon {
    color: var(--accent-hover);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Play/Pause Controls */
.carousel-play-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.play-pause-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-pause-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.play-pause-btn .pause-icon {
    display: none;
}

.play-pause-btn.paused .play-icon {
    display: none;
}

.play-pause-btn.paused .pause-icon {
    display: block;
}

/* Dark Theme Support */
body.dark-theme .carousel-container {
    background: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-theme .slide-content {
    background: rgba(0, 0, 0, 0.7);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .carousel-slides {
        height: 400px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .carousel-slides {
        height: 340px;
    }
    
    .slide-title {
        font-size: 1.3rem;
        margin-bottom:0.7rem;
    }
    
    .slide-content {
        padding: 1.5rem;
    }

    .slide-description {
        font-size:0.8rem;
        margin-bottom:1rem;
    }
    .carousel-control {
        width: 40px;
        height: 40px;
        display:none;
    }
}

@media (max-width: 480px) {
    .carousel-slides {
        height: 420px;
    }
    
    .slide-title {
        font-size: 1.4rem;
    }
    
    .slide-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .slide-content {
        padding: 1rem;
        width: 100%;
        max-width: none;
    }
    
    .carousel-control {
        width: 35px;
        height: 35px;
    }
    
    .carousel-control.prev {
        left: 10px;
    }
    
    .carousel-control.next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }

    .carousel-slide {
        align-items: flex-end;
        padding: 1rem;
    }

    .slide-button {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .carousel-play-controls {
        right: 12px;
        bottom: 12px;
    }
}

@media (max-width: 360px) {
    .carousel-slides {
        height: 460px;
    }

    .slide-content {
        padding: 0.9rem;
    }

    .slide-title {
        font-size: 1.2rem;
    }

    .slide-description {
        font-size: 0.85rem;
    }
}

/* Add these styles to your existing carousel.css */

/* Fade Transition */
.carousel-slide.fade {
    animation: fadeIn 0.6s ease forwards;
}

/* Zoom Transition */
.carousel-slide.zoom {
    animation: zoomIn 0.6s ease forwards;
    transform-origin: center center;
}

/* Slide Right Transition */
.carousel-slide.slide-right {
    animation: slideInRight 0.6s ease forwards;
}

/* Slide Left Transition */
.carousel-slide.slide-left {
    animation: slideInLeft 0.6s ease forwards;
}

/* Ensure active slide is visible */
.carousel-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Remove slide animation after it completes */
.carousel-slide {
    animation-fill-mode: forwards;
}

/* Keyframes for animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(0);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
