/* ====== GLOBAL RESET ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* ====== PROJECTS SECTION ====== */
.projects-section {
    padding: 0;
    text-align: center;
}

/* Top Image Section */
.top-image {
    width: 100%;
    height: 55vh;
    overflow: hidden;
    position: relative;
}

.top-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px; /* Height of fade effect */
    background: linear-gradient(to bottom, 
        transparent,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 40%,
        rgba(255, 255, 255, 0.8) 70%,
        #fff
    );
    pointer-events: none;
}

.top-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Centered Header */
.projects-header {
    font-size: 2.5rem;
    margin: 4rem 0;
    color: #0066B3;
}

/* ====== PROJECT CONTAINER ====== */
.project-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6rem;
    margin-top: 2rem;
    padding-top: 2rem;
    width: 100%;
}

/* ====== PROJECT CONTENT ====== */
.project-content {
    display: flex;
    width: 100%;
    padding-left: 3rem;
    padding-right: 3rem;
    gap: 5rem;
}

/* ====== SLIDESHOW CONTAINER ====== */
.slideshow-container {
    flex: 1;
    position: relative;
}

/* ====== SLIDESHOW ====== */
.slideshow {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====== SLIDESHOW CONTROLS (ARROWS) ====== */
.slideshow-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.slideshow-controls .prev,
.slideshow-controls .next {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.slideshow-controls .prev:hover,
.slideshow-controls .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ====== PROJECT INFO ====== */
.project-info {
    flex: 1;
    padding-left: 2.5rem;
    padding-right: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.project-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0066B3;
}

.project-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 768px) {
    .project-content {
        flex-direction: column;
        padding-left: 3rem;
        padding-right: 3rem;
        gap: 5rem;
    }

    .slideshow-container,
    .project-info {
        flex: none;
        width: 100%;
        padding: 0;
    }

    .slideshow {
        height: 250px;
    }

    .project-info {
        text-align: center;
        margin-top: 0;
    }

    .slideshow-controls {
        display: none;
    }
}
