/* Carousel Image Enhancement - Make images more visible */

.header-carousel-item {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background-color: #000;
}

.header-carousel-item img,
.header-carousel-item .carousel-image {
    width: 100% !important;
    min-height: 600px !important;
    height: 100vh !important;
    max-height: 800px;
    object-fit: cover !important;
    display: block !important;
    opacity: 1 !important;
    filter: brightness(1.0) contrast(1.25) saturate(1.2) !important;
    position: relative;
    z-index: 0;
    transition: all 0.5s ease;
}

/* Minimal overlay for maximum image visibility while maintaining text readability */
.header-carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.0), 
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.35)
    );
    z-index: 1;
    pointer-events: none;
}

/* Ensure carousel caption is visible and prominent */
.carousel-caption {
    z-index: 10 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.carousel-caption .container {
    position: relative;
    z-index: 11;
    width: 100%;
}

.carousel-caption h1,
.carousel-caption h4,
.carousel-caption p,
.carousel-caption h2 {
    text-shadow: 4px 4px 20px rgba(0, 0, 0, 1), 
                 2px 2px 10px rgba(0, 0, 0, 1),
                 0 0 40px rgba(0, 0, 0, 0.9),
                 0 0 60px rgba(0, 0, 0, 0.7) !important;
    position: relative;
    z-index: 12;
}

.carousel-caption h1 {
    font-weight: 700 !important;
    letter-spacing: 2px;
    color: #ffffff !important;
    font-size: 3.5rem !important;
    line-height: 1.2 !important;
}

.carousel-caption h4 {
    color: var(--dark-accent, #00d4ff) !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

.carousel-caption p {
    color: #ffffff !important;
    font-weight: 400;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
}

.carousel-caption h2 {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1.5rem !important;
}

/* Hover effect to make images brighter on hover */
.header-carousel-item:hover img,
.header-carousel-item:hover .carousel-image {
    opacity: 1 !important;
    filter: brightness(0.95) contrast(1.25) saturate(1.2) !important;
    transform: scale(1.01);
}

/* Ensure buttons and social icons are visible */
.carousel-caption .btn {
    position: relative;
    z-index: 12;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

.carousel-caption .btn-light {
    background-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

.carousel-caption .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.carousel-caption .btn-md-square {
    background-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-carousel-item img,
    .header-carousel-item .carousel-image {
        min-height: 500px !important;
        max-height: 600px;
        filter: brightness(0.95) contrast(1.2) saturate(1.15) !important;
    }
    
    .header-carousel-item::before {
        background: linear-gradient(
            to bottom, 
            rgba(0, 0, 0, 0.1), 
            rgba(0, 0, 0, 0.3)
        );
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem !important;
    }
    
    .carousel-caption h4 {
        font-size: 1rem !important;
    }
    
    .carousel-caption p {
        font-size: 1rem !important;
    }
}

/* Ensure text is always readable */
.carousel-caption .text-white {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 1),
                 0 0 30px rgba(0, 0, 0, 0.8) !important;
}

.carousel-caption .text-primary {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9) !important;
}

