/* ===========================
   Image Carousel Styles
   =========================== */

.hero-carousel-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

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

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    transform: scale(1.05);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.carousel-slide.prev {
    transform: scale(1) translateX(-100%);
}

.carousel-slide.next {
    transform: scale(1) translateX(100%);
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 122, 0, 0.15) 0%,
        rgba(255, 153, 51, 0.1) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 2;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    width: 90%;
}

.carousel-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    margin: 0 auto 30px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.carousel-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
    animation: slideInDown 1s ease-out;
}

.carousel-content .subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 15px;
    font-weight: 500;
    opacity: 0.95;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    animation: slideInUp 1s ease-out 0.3s both;
}

.carousel-content .tagline {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 40px;
    opacity: 0.9;
    font-style: italic;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    animation: fadeIn 1s ease-out 0.6s both;
}

.carousel-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.9s both;
}

.carousel-buttons .btn {
    padding: 18px 45px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.carousel-buttons .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.carousel-buttons .btn:hover::before {
    width: 400px;
    height: 400px;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 4;
}

.carousel-indicator {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.carousel-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: white;
    transition: width 0.3s ease;
}

.carousel-indicator.active::before {
    width: 100%;
    animation: progress 5s linear;
}

@keyframes progress {
    from { width: 0; }
    to { width: 100%; }
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 122, 0, 0.8);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 4;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(255, 122, 0, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 122, 0, 0.6);
}

.carousel-arrow.prev {
    left: 30px;
}

.carousel-arrow.next {
    right: 30px;
}

/* Carousel Caption */
.carousel-caption {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 30px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    z-index: 4;
    animation: slideInUp 1s ease-out 1.2s both;
}

.carousel-caption p {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Auto-play indicator */
.carousel-autoplay {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 4;
}

.autoplay-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.autoplay-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.autoplay-toggle i {
    margin-right: 8px;
}

/* Thumbnail Preview */
.carousel-thumbnails {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.carousel-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.carousel-thumbnail:hover {
    opacity: 1;
    transform: scale(1.1);
}

.carousel-thumbnail.active {
    border-color: var(--primary-orange);
    opacity: 1;
}

/* Progress Bar */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 4;
}

.carousel-progress-bar {
    height: 100%;
    background: var(--primary-orange);
    width: 0;
    transition: width 0.1s linear;
}

/* Social Links on Carousel */
.carousel-social {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 4;
}

.carousel-social a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.carousel-social a:hover {
    background: var(--primary-orange);
    transform: scale(1.2);
    box-shadow: 0 5px 20px rgba(255, 122, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-carousel-section {
        height: 100vh;
    }

    .carousel-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .carousel-arrow.prev {
        left: 15px;
    }

    .carousel-arrow.next {
        right: 15px;
    }

    .carousel-thumbnails {
        display: none;
    }

    .carousel-social {
        display: none;
    }

    .carousel-nav {
        bottom: 30px;
    }

    .carousel-indicator {
        width: 40px;
    }

    .carousel-logo {
        width: 90px;
        height: 90px;
    }

    .carousel-buttons {
        flex-direction: column;
        align-items: center;
    }

    .carousel-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .carousel-content h1 {
        font-size: 2rem;
    }

    .carousel-content .subtitle {
        font-size: 1.2rem;
    }

    .carousel-content .tagline {
        font-size: 1rem;
    }

    .carousel-caption {
        bottom: 80px;
        padding: 10px 20px;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }
}

/* Ken Burns Effect */
.carousel-slide.ken-burns .carousel-image {
    animation: kenBurns 20s ease-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(-3%, 2%);
    }
}

/* Slide transition effects */
.carousel-slide.slide-left {
    animation: slideFromLeft 1s ease-out;
}

.carousel-slide.slide-right {
    animation: slideFromRight 1s ease-out;
}

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

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