/* Optimize for 1200x900 images (4:3 ratio) - COMPLETE IMAGES NO CROP */
.slide-background {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #0a0a0a;
}

/* Carousel height optimized for 4:3 ratio (1200x900) - LARGER */
.carousel-container {
    height: 95vh;
    min-height: 700px;
    max-height: 1100px;
    background: #0a0a0a;
    margin-top: 100px;
    /* Space for navbar */
}

/* ELIMINATE GAPS EXCEPT TOP */
.projects-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.projects-hero {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.section-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.featured-carousel {
    margin-top: 0 !important;
    margin-bottom: 60px;
}

/* Lighter overlay for better image visibility */
.slide-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25)) !important;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .carousel-container {
        height: 80vh;
        max-height: 750px;
        margin-top: 75px;
    }
}

@media (max-width: 980px) {
    .carousel-container {
        height: 70vh;
        max-height: 650px;
        margin-top: 70px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 60vh;
        min-height: 450px;
        max-height: 550px;
        margin-top: 60px;
    }

    /* Even lighter overlay on tablet */
    .slide-overlay {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.15)) !important;
    }
}

/* MOBILE - Show full image without dark overlay */
@media (max-width: 520px) {
    .carousel-container {
        height: 55vh;
        min-height: 400px;
        max-height: 550px;
        margin-top: 0;
    }

    /* Very light overlay on mobile - almost transparent */
    .slide-overlay {
        background: rgba(0, 0, 0, 0.08) !important;
    }

    /* Adjust slide content position for mobile */
    .slide-content {
        bottom: 50px !important;
        left: 15px !important;
        right: 15px !important;
    }

    .slide-title {
        font-size: 22px !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    }

    .slide-subtitle {
        font-size: 11px !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    }

    .slide-tags {
        gap: 5px !important;
    }

    .slide-tag {
        font-size: 8px !important;
        padding: 4px 8px !important;
        background: rgba(0, 0, 0, 0.7);
        border-color: rgba(255, 255, 255, 0.5);
    }

    /* Better button positioning for mobile */
    .carousel-btn {
        width: 42px !important;
        height: 42px !important;
        font-size: 15px !important;
        background: rgba(0, 0, 0, 0.6) !important;
    }

    .carousel-btn.prev {
        left: 10px !important;
    }

    .carousel-btn.next {
        right: 10px !important;
    }

    /* Indicators positioning */
    .carousel-indicators {
        bottom: 15px !important;
        gap: 7px !important;
    }

    .carousel-indicator {
        width: 28px !important;
        height: 3px !important;
        background: rgba(255, 255, 255, 0.4) !important;
    }

    .carousel-indicator.active {
        background: rgba(255, 255, 255, 0.9) !important;
    }
}

/* Extra small phones */
@media (max-width: 380px) {
    .carousel-container {
        height: 50vh;
        min-height: 350px;
    }

    .slide-title {
        font-size: 18px !important;
    }
}

/* ============================================================
   CLEANUP - HIDE NAV ELEMENTS
============================================================ */
.carousel-indicators {
    display: none !important;
}

/* Section header styling below carousel */
.section-header {
    padding: 60px 0 40px;
    text-align: center;
}