/* ===================================
   RECENT PROJECTS - ENHANCED DISPLAY
   =================================== */

/* Make carousel taller for better photo visibility */
.projects-carousel {
    position: relative;
    width: 100%;
    height: 650px !important;
    /* Increased from 500px */
    overflow: hidden;
    border-radius: 16px !important;
    box-shadow: 0 16px 48px rgba(2, 132, 199, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border: 2px solid rgba(2, 132, 199, 0.3) !important;
}

/* Improve photo display quality */
.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    /* Improve image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.project-slide.active {
    opacity: 1 !important;
}

/* Make overlay smaller and more transparent to show photos better */
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(to top,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.85) 40%,
            rgba(255, 255, 255, 0.3) 70%,
            transparent 100%) !important;
    padding: 25px 30px !important;
    color: var(--text-light);
    border-top: 3px solid #0284c7 !important;
    backdrop-filter: blur(4px);
}

.project-overlay h3 {
    color: #0284c7 !important;
    margin-bottom: 6px !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

.project-overlay p {
    color: #475569 !important;
    font-size: 1.05rem !important;
    margin: 0 !important;
}

/* Add navigation arrows for better control */
.projects-carousel::before,
.projects-carousel::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #0284c7;
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-carousel::before {
    left: 20px;
}

.projects-carousel::after {
    right: 20px;
}

.projects-carousel:hover::before,
.projects-carousel:hover::after {
    background: #0284c7;
    transform: translateY(-50%) scale(1.1);
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .projects-carousel {
        height: 500px !important;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .projects-carousel {
        height: 400px !important;
    }

    .project-overlay {
        padding: 20px !important;
    }

    .project-overlay h3 {
        font-size: 1.2rem !important;
    }

    .project-overlay p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .projects-carousel {
        height: 350px !important;
    }
}