/* ===== HERO CAROUSEL STYLES ===== */
.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background-color: var(--primary-color);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

/* Background Images for Slides */
.carousel-slide[data-bg="colosseum"] {
    background-image: linear-gradient(rgba(44, 62, 80, 0.4), rgba(44, 62, 80, 0.6)),
                      url('https://image.pollinations.ai/prompt/Roman%20Colosseum%20sunset%20ancient%20Rome,%20dramatic%20lighting,%20realistic%20photography,%20golden%20hour,%20historical%20architecture,%20no%20watermark?width=1200&height=600&model=realistic&nologo=true');
}

.carousel-slide[data-bg="pyramid"] {
    background-image: linear-gradient(rgba(44, 62, 80, 0.3), rgba(44, 62, 80, 0.5)),
                      url('https://image.pollinations.ai/prompt/Great%20Pyramid%20Giza%20Egypt%20desert,%20dramatic%20sunset,%20realistic%20photography,%20ancient%20monuments,%20golden%20hour%20lighting,%20no%20watermark?width=1200&height=600&model=realistic&nologo=true');
}

.carousel-slide[data-bg="greatwall"] {
    background-image: linear-gradient(rgba(44, 62, 80, 0.3), rgba(44, 62, 80, 0.5)),
                      url('https://image.pollinations.ai/prompt/Great%20Wall%20of%20China%20mountains,%20dramatic%20landscape,%20realistic%20photography,%20misty%20mountains,%20ancient%20fortification,%20no%20watermark?width=1200&height=600&model=realistic&nologo=true');
}

.carousel-slide[data-bg="machu-picchu"] {
    background-image: linear-gradient(rgba(44, 62, 80, 0.3), rgba(44, 62, 80, 0.5)),
                      url('https://image.pollinations.ai/prompt/Machu%20Picchu%20Peru%20Andes%20mountains,%20ancient%20ruins,%20dramatic%20clouds,%20realistic%20photography,%20mystical%20atmosphere,%20no%20watermark?width=1200&height=600&model=realistic&nologo=true');
}

.slide-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
    background: rgba(44, 62, 80, 0.8);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(212, 175, 55, 0.8);
    color: var(--primary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    font-family: cursive;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.indicator.active {
    background: var(--secondary-color);
    border-color: var(--white);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(212, 175, 55, 0.8);
    transform: scale(1.1);
}

/* Carousel Animation Effects */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.carousel-slide.slide-in-right {
    animation: slideInFromRight 0.8s ease-out;
}

.carousel-slide.slide-in-left {
    animation: slideInFromLeft 0.8s ease-out;
}

/* Responsive Design for Carousel */
@media (max-width: 768px) {
    .hero-carousel {
        height: 60vh;
        min-height: 400px;
    }
    
    .slide-content {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .carousel-nav {
        padding: 0 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .carousel-indicators {
        bottom: 1rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 50vh;
        min-height: 350px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Accessibility Improvements */
.carousel-btn:focus,
.indicator:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .carousel-slide {
        transition: opacity 0.3s ease;
    }
    
    .carousel-slide.slide-in-right,
    .carousel-slide.slide-in-left {
        animation: none;
    }
    
    .carousel-btn,
    .indicator {
        transition: background-color 0.2s ease;
    }
}

/* Print Styles */
@media print {
    .hero-carousel {
        height: auto;
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .carousel-nav,
    .carousel-indicators {
        display: none;
    }
    
    .carousel-slide {
        position: static;
        opacity: 1;
        background-image: none !important;
        background-color: var(--background-color);
        height: auto;
        padding: 2rem;
    }
    
    .slide-content {
        background: transparent;
        color: var(--text-color);
        backdrop-filter: none;
        border: 1px solid var(--border-color);
    }
    
    .slide-content h2 {
        color: var(--primary-color);
        text-shadow: none;
    }
}
