/* ========================================
   HERO CAROUSEL STYLES
   Responsive, modern hero slider component
   with smooth transitions and animations
   ======================================== */

/* Hero Carousel Wrapper - Container for the entire carousel */
.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Main Carousel Container */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

/* Individual Carousel Slide */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Initial state - hidden and transparent */
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

/* Active Slide - Visible and Fully Opaque */
.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Dark Overlay - Creates gradient overlay for text readability */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(11, 61, 145, 0.6) 0%,
        rgba(47, 47, 47, 0.5) 100%
    );
    z-index: 1;
}

/* Carousel Content - Positioned on top of overlay */
.carousel-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Carousel Text Container - Centers text content */
.carousel-text {
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 2rem;
    animation: slideUp 0.8s ease-out;
}

/* Animation: Slide Up Effect for text entrance */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Heading - Large, bold primary text */
.carousel-heading {
    font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* Carousel Subtext - Secondary descriptive text */
.carousel-subtext {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 0.3px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

/* Carousel Button - CTA button styling */
.btn-carousel {
    background-color: #FFC107;
    color: #2F2F2F;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: 2px solid #FFC107;
    border-radius: 0.35rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Button Hover State */
.btn-carousel:hover {
    background-color: transparent;
    color: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

/* ========================================
   NAVIGATION CONTROLS
   Previous/Next arrow buttons
   ======================================== */

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 20;
    pointer-events: auto !important;
}

/* Base Carousel Button Styling */
.carousel-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto !important;
    backdrop-filter: blur(4px);
    outline: none;
    padding: 0;
    flex-shrink: 0;
    z-index: 20;
}

/* Carousel Button Hover State */
.carousel-button:hover {
    background-color: rgba(255, 193, 7, 0.8);
    border-color: #FFC107;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.4);
}

/* Carousel Button Active/Pressed State */
.carousel-button:active {
    transform: scale(0.95);
}

/* Previous Button */
.carousel-button-prev {
    margin-right: auto;
}

/* Next Button */
.carousel-button-next {
    margin-left: auto;
}

/* ========================================
   DOT INDICATORS
   Navigation dots at bottom of carousel
   ======================================== */

.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 20;
    justify-content: center;
    flex-wrap: wrap;
    pointer-events: auto !important;
}

/* Individual Dot */
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto !important;
    padding: 0;
    z-index: 20;
}

/* Active Dot - Current Slide Indicator */
.carousel-dot.active {
    width: 32px;
    border-radius: 6px;
    background-color: #FFC107;
    border-color: #FFC107;
}

/* Dot Hover State */
.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

/* ========================================
   RESPONSIVE DESIGN
   Breakpoint adjustments for mobile & tablet
   ======================================== */

/* Tablets (768px and up) */
@media (max-width: 768px) {
    .carousel-heading {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
    
    .carousel-subtext {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
    }
    
    .carousel-text {
        padding: 1.5rem;
    }
    
    .carousel-controls {
        padding: 0 1rem;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-dots {
        bottom: 1.5rem;
        gap: 0.5rem;
    }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
    .hero-carousel {
        height: 60vh;
    }
    
    .carousel-heading {
        font-size: clamp(1.2rem, 4vw, 2rem);
    }
    
    .carousel-subtext {
        font-size: clamp(0.85rem, 1.8vw, 1rem);
        margin-bottom: 1rem;
    }
    
    .carousel-text {
        padding: 1rem;
        max-width: 90%;
    }
    
    .btn-carousel {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .carousel-controls {
        padding: 0 0.5rem;
    }
    
    .carousel-button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-dot.active {
        width: 28px;
    }
    
    .carousel-dots {
        bottom: 1rem;
        gap: 0.4rem;
    }
}

/* Small Mobile Devices (360px and below) */
@media (max-width: 360px) {
    .hero-carousel {
        height: 50vh;
    }
    
    .carousel-heading {
        font-size: 1.2rem;
    }
    
    .carousel-subtext {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .btn-carousel {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* ========================================
   ACCESSIBILITY
   High contrast & keyboard navigation support
   ======================================== */

/* Focus State for Keyboard Navigation */
.carousel-button:focus,
.carousel-dot:focus {
    outline: 3px solid #FFC107;
    outline-offset: 2px;
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .carousel-slide {
        transition: opacity 0.3s ease-in-out;
    }
    
    .carousel-text {
        animation: none;
    }
    
    .carousel-button,
    .carousel-dot {
        transition: none;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .carousel-overlay {
        background: linear-gradient(
            135deg,
            rgba(11, 61, 145, 0.7) 0%,
            rgba(30, 30, 30, 0.6) 100%
        );
    }
}
