@media screen and (max-width: 1400px) {
    #profile {
        height: 83vh;
        margin-bottom: 6rem;
    }

    .about-containers {
        flex-wrap: wrap;
    }
}


@media screen and (max-width: 1200px) {
    #desktop-nav {
        display: none;
    }

    #hamburger-nav {
       display: flex; 
    }
    
    #experience, .experience-details-container {
        margin-top: 2rem;
    }
    
    #profile, .section-container {
        display: block;
    }
    
    .arrow {
        display: none;
    }
    
    section, .section-container {
        height: fit-content;
    }

    section {
        margin: 0 5%;
    }
    
    .section__pic-container {
        width: 275px;
        height: 275px;
        margin: 0 auto 2rem;
    }
    
    .about-containers {
        margin-top: 0;
    }
}

@media screen and (max-width: 1199px) {
    body {
        background-position: -10px top;
        background-size: contain;
}
}


@media screen and (max-width: 600px) {
    #contact, footer {
        height: 40vh;
    }
    
    #profile {
        height: 83vh;
        margin-bottom: 0;
    }
    
    article {
        font-size: 1rem;
    }
    
    footer nav {
        height: fit-content;
        margin-bottom: 2rem;
    }
    
    .about-containers, .contact-info-upper-container, .btn-container {
        flex-wrap: wrap;
    }
    
    .contact-info-container {
        margin: 0;
    }
    
    .contact-info-container p, .nav-links li a {
        font-size: 1rem;
    }
    
    .experience-sub-title {
        font-size: 1.25rem;
    }

body {
    font-family: "Poppins", sans-serif;
    background-size: contain;           /* Changed from 'cover' */
    background-position: -100px top;    /* Changed positioning */
    background-repeat: repeat-y;        /* Changed from 'no-repeat' */
    background-attachment: fixed;
    background-size: 150%;
}
    
    .logo {
        font-size: 1.5rem;
        padding: 0.3rem 0.8rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .section__pic-container {
        width: auto;
        height: 46vw;
        justify-content: center;
    }
    
    .section__text__p2 {
        font-size: 1.25rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .text-container {
        text-align: justify;
    }
}

/*  PROJECT 1 HTML  */

@media screen and (max-width: 768px) {
    .project-detail-section {
        padding: 1rem;
    }

    .project-detail-title {
        font-size: 2rem;
    }

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

    .project-images-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .project-image-wrapper {
        max-width: 100%;
    }

    .project-commentary {
        padding: 1.5rem;
    }

    .commentary-title {
        font-size: 1.8rem;
    }

    .commentary-section h3 {
        font-size: 1.3rem;
    }

    .commentary-section p {
        font-size: 1rem;
        text-align: left;
    }
}

@media screen and (max-width: 600px) {
    .project-header {
        margin-bottom: 2rem;
    }

    .project-images-container {
        gap: 1rem;
    }

    .commentary-section h3 {
        font-size: 1.2rem;
    }
}

/* projects section */
@media screen and (max-width: 1400px) {
    #profile {
        height: 83vh;
        margin-bottom: 6rem;
    }

    .about-containers {
        flex-wrap: wrap;
    }
}

/* New media query for tablet/medium screens */
@media screen and (max-width: 1999px) and (min-width: 601px) {
    body {
        background-position: center top;
        background-size: cover;
    }
}

/* Projects section - 2 columns on tablet */
@media screen and (max-width: 1024px) {
    #projects .about-containers {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    #projects .article-container {
        height: 280px;
    }
}


@media screen and (max-width: 1200px) {
    #desktop-nav {
        display: none;
    }

    #hamburger-nav {
       display: flex; 
    }
    
    #experience, .experience-details-container {
        margin-top: 2rem;
    }
    
    #profile, .section-container {
        display: block;
    }
    
    .arrow {
        display: none;
    }
    
    section, .section-container {
        height: fit-content;
    }

    section {
        margin: 0 5%;
    }
    
    .section__pic-container {
        width: 275px;
        height: 275px;
        margin: 0 auto 2rem;
    }
    
    .about-containers {
        margin-top: 0;
    }
}

/* Projects section - 1 column on mobile */
@media screen and (max-width: 768px) {
    #projects .about-containers {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    #projects .article-container {
        height: 250px;
    }
}


@media screen and (max-width: 600px) {
    #contact, footer {
        height: 40vh;
    }
    
    #profile {
        height: 83vh;
        margin-bottom: 0;
    }
    
    article {
        font-size: 1rem;
    }
    
    footer nav {
        height: fit-content;
        margin-bottom: 2rem;
    }
    
    .about-containers, .contact-info-upper-container, .btn-container {
        flex-wrap: wrap;
    }
    
    .contact-info-container {
        margin: 0;
    }
    
    .contact-info-container p, .nav-links li a {
        font-size: 1rem;
    }
    
    .experience-sub-title {
        font-size: 1.25rem;
    }
    
    .logo {
        font-size: 1.5rem;
        padding: 0.3rem 0.8rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .section__pic-container {
        width: auto;
        height: 46vw;
        justify-content: center;
    }
    
    .section__text__p2 {
        font-size: 1.25rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .text-container {
        text-align: justify;
    }
    
    body {
        background-position: -128px top;
        background-size: 150%;
    }
}

/*  ALBUM HTML */
/* Tablet Responsive album html*/
@media screen and (max-width: 1024px) {
    .album-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile Responsive album html */
@media screen and (max-width: 768px) {
    .album-section {
        padding: 1rem;
    }

    .album-title {
        font-size: 2rem;
    }

    .album-subtitle {
        font-size: 1rem;
    }

    .album-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .album-overlay h3 {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 600px) {
    .album-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .album-item {
        max-width: 100%;
    }

    .album-header {
        margin-bottom: 2rem;
    }
}