/* ========================================================
   PROJECTS SECTION STYLES
   ======================================================== */

.projects-section {
    padding: 25px 40px;
    background-color: #fff;
}

.container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #333;
}

/* ========================================================
   NAVIGATION ARROWS
   ======================================================== */

.navigation-arrows {
    display: flex;
    gap: 10px;
    margin-bottom: 0px;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #F8BA0099;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-arrow:hover:not(:disabled) {
    background-color: #F8BA0099;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-arrow:active:not(:disabled) {
    transform: scale(0.95);
}

.nav-arrow:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.nav-arrow svg {
    width: 24px;
    height: 24px;
    color: #333;
}

/* ========================================================
   PROJECTS CONTENT
   ======================================================== */

.projects-content {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 500px;
}

/* Text Block */
.project-text-block {
    position: relative;
    z-index: 2;
    background-color: #F8BA0099;
    padding: 2rem 3.5rem;
    width: 55%;
    max-width: 700px;
    max-height: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.project-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.3;
}

.project-description {
    color: #333;
    line-height: 1.6;
    font-size: 15px;
}

.project-description p {
    margin-bottom: 15px;
}

.project-description p:last-child {
    font-style: italic;
    margin-bottom: 0;
}

/* Image Container */
.project-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    max-width: 600px;
    z-index: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

/* Read More Link */
.read-more-link {
    display: inline-block;
    margin-top: 20px;
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.read-more-link:hover {
    color: #000000;
    transform: translateX(5px);
}

/* Fade Out Animation State */
.projects-content.fade-out .project-text-block {
    opacity: 0;
    transform: translateX(-20px);
}

.projects-content.fade-out .project-image img {
    opacity: 0;
    transform: scale(1.05);
}

/* ========================================================
   DESKTOP RESPONSIVE BREAKPOINTS 
   ======================================================== */

/* Extra Large Desktops (1580px+)*/
@media (min-width: 1580px) {
    .projects-section {
        padding: 7rem 3.5rem;
    }

    .container {
        max-width: 1290px;
    }

    .section-title {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }

    .project-text-block {
        padding: 2.5rem 4rem;
        max-width: 750px;
    }

    .project-title {
        font-size: 1.75rem;
    }

    .project-description {
        font-size: 1rem;
    }
}

/* Large Desktops (1400px - 1579px) */
@media (max-width: 1579px) {
    .projects-section {
        padding: 6rem 3rem;
    }

    .container {
        max-width: 1290px;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* Medium Desktops (1200px - 1399px) */
@media (max-width: 1399px) {
    .projects-section {
        padding: 5.5rem 3rem;
    }

    .container {
        max-width: 1290px;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .project-text-block {
        padding: 2rem 3rem;
    }

    .project-title {
        font-size: 1.5rem;
    }
}

/* Small Desktops (1000px - 1199px) */
@media (max-width: 1199px) {
    .projects-section {
        padding: 5rem 3rem;
    }

    .container {
        max-width: 1290px;
    }

    .section-title {
        font-size: 2.6rem;
    }
}

/* ========================================================
   TABLET & MOBILE - GLASSMORPHISM DESIGN (1000px and below)
   ======================================================== */

@media (max-width: 1100px) {
    .projects-section {
        padding: 60px 50px;
        position: relative;
    }

    .container {
        padding: 0;
        max-width: 100%;
    }

    .section-title {
        font-size: 42px;
        text-align: center;
        margin-bottom: 50px;
        position: relative;
        z-index: 10;
    }

    /* Position arrows on each side */
    .navigation-arrows {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
        margin-bottom: 0;
        z-index: 10;
        pointer-events: none;
    }

    .nav-arrow {
        pointer-events: all;
        background-color: rgba(248, 186, 0, 0.8);
        backdrop-filter: blur(10px);
        width: 45px;
        height: 45px;
    }

    /* Main content wrapper with background image */
    .projects-content {
        position: relative;
        min-height: 600px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        overflow: hidden;
        border-radius: 16px;
    }

    /* Background image */
    .project-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        z-index: 0;
        border-radius: 16px;
        overflow: hidden;
    }

    .project-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 16px;
        z-index: 1;
        pointer-events: none;
    }

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 16px;
        display: block;
    }

    /* Glassmorphism text card */
    .project-text-block {
        position: relative;
        z-index: 2;
        width: 85%;
        max-width: 600px;
        max-height: none;
        padding: 40px 35px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    .project-title {
        font-size: 28px;
        color: #fff;
        text-align: center;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        margin-bottom: 20px;
    }

    .project-description {
        color: #fff;
        text-align: center;
        font-size: 16px;
        line-height: 1.7;
    }

    .project-description p {
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    }

    .read-more-link {
        color: #FDB913;
        font-size: 16px;
    }

    .read-more-link:hover {
        color: #ffe28c;
    }

    /* Fade animation adjustments for mobile */
    .projects-content.fade-out .project-text-block {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* ========================================================
   SMALL TABLETS
   ======================================================== */

@media (max-width: 768px) {
    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .projects-content {
        min-height: 550px;
    }

    .project-text-block {
        width: 90%;
        padding: 35px 30px;
    }

    .project-title {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .project-description {
        font-size: 15px;
    }

    .navigation-arrows {
        padding: 0 15px;
    }

    .nav-arrow {
        width: 42px;
        height: 42px;
    }

    .nav-arrow svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================================
   MOBILE PHONES
   ======================================================== */

@media (max-width: 480px) {
    .projects-section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 35px;
    }

    .projects-content {
        min-height: 500px;
        border-radius: 12px;
    }

    .project-image img {
        border-radius: 12px;
    }

    .project-text-block {
        width: 92%;
        padding: 30px 25px;
        border-radius: 16px;
    }

    .project-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .project-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .project-description p {
        margin-bottom: 12px;
    }

    .navigation-arrows {
        padding: 0 10px;
    }

    .nav-arrow {
        width: 38px;
        height: 38px;
    }

    .nav-arrow svg {
        width: 18px;
        height: 18px;
    }
}

/* ========================================================
   EXTRA SMALL PHONES
   ======================================================== */

@media (max-width: 360px) {
    .section-title {
        font-size: 24px;
    }

    .projects-content {
        min-height: 450px;
    }

    .project-text-block {
        padding: 25px 20px;
    }

    .project-title {
        font-size: 20px;
    }

    .project-description {
        font-size: 13px;
    }
}