/* ========================= HERO CAROUSEL STYLES ========================= */

/* Section wrapper */
.hero-carousel-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Carousel container */
#landingCarousel {
    height: 100vh;
}

/* Carousel images - full screen */
.carousel-image {
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

/* Dark overlay for text readability */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Content wrapper - centers content vertically */
.carousel-caption-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel-caption-wrapper * {
    pointer-events: auto;
}

/* Content box */
.carousel-content {
    max-width: 800px;
    padding: 2rem;
}

.content-center {
    margin: 0 auto;
}

.content-left {
    margin-right: auto;
}

.content-right {
    margin-left: auto;
}

/* Typography */
.carousel-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.carousel-description {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.carousel-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.carousel-btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-btn-secondary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}

.carousel-btn-secondary:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

/* Carousel indicators */
.carousel-indicators {
    z-index: 3;
    margin-bottom: 2rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.2);
}

/* Navigation controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-size: 100%;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-item.active .animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.carousel-item.active .animate-slide-up-delay {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.carousel-item.active .animate-fade-in {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

/* ========================= RESPONSIVE DESIGN ========================= */

/* Tablets and smaller */
@media (max-width: 991px) {
    .carousel-title {
        font-size: 2.5rem;
    }
    
    .carousel-description {
        font-size: 1.2rem;
    }
    
    .carousel-content {
        max-width: 600px;
        padding: 1.5rem;
    }
    
    .carousel-btn-primary,
    .carousel-btn-secondary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* Mobile phones */
@media (max-width: 767px) {
    .hero-carousel-section,
    #landingCarousel,
    .carousel-image {
        height: 100vh;
        min-height: 600px;
    }
    
    .carousel-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .carousel-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .carousel-content {
        max-width: 100%;
        padding: 1rem;
    }
    
    .carousel-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .carousel-btn-primary,
    .carousel-btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
    
    /* Force center alignment on mobile for better readability */
    .content-left,
    .content-right {
        margin: 0 auto;
        text-align: center !important;
    }
    
    .carousel-indicators {
        margin-bottom: 1rem;
    }
    
    .carousel-indicators button {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 575px) {
    .carousel-title {
        font-size: 1.75rem;
    }
    
    .carousel-description {
        font-size: 0.95rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .carousel-item.active .animate-slide-up,
    .carousel-item.active .animate-slide-up-delay,
    .carousel-item.active .animate-fade-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .carousel-btn-primary:hover,
    .carousel-btn-secondary:hover {
        transform: none;
    }
}