/* Large screens (1200px and below) */
@media screen and (max-width: 1200px) {
    section {
        margin: 0 5rem;
        padding: 4rem 5rem;
    }

    #profile {
        padding-top: 2vh;
        gap: 3rem;
    }

    .section_pic-container {
        width: 350px;
        height: 350px;
    }

    #about .section_pic-container {
        width: 350px;
        height: 525px;
    }

    .color-container {
        width: calc(50% - 2rem);
    }
}

/* Medium screens (992px and below) */
@media screen and (max-width: 992px) {
    section {
        padding: 4rem 2rem;
        margin: 0;
    }

    /* Hide desktop nav and show hamburger menu */
    #desktop-nav {
        display: none;
    }

    #hamburger-nav {
        display: flex;
    }

    #profile {
        flex-direction: column;
        gap: 2rem;
    }

    .section_pic-container {
        width: 300px;
        height: 300px;
    }

    #about .section_pic-container {
        width: 300px;
        height: 450px;
    }

    .section__text {
        text-align: center;
    }

    .section-container {
        flex-direction: column;
        align-items: center;
    }

    .about-containers {
        margin-top: 0;
        width: 100%;
        flex-wrap: wrap;
    }
}

/* Small screens (768px and below) */
@media screen and (max-width: 768px) {
    section {
        padding: 4rem 1rem;
        margin: 0;
    }

    .title {
        font-size: 2.5rem;
    }

    .section__text__p1 {
        font-size: 1.5rem;
    }

    .section__text__p2 {
        font-size: 1rem;
    }

    .color-container {
        width: 100%;
        padding-bottom: 100px;
    }

    .project-title {
        margin: 1rem 0 3rem 0;
    }

    .btn-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .details-container {
        padding: 1.25rem;
    }

    .details-container p {
        white-space: normal;
        font-size: 0.85rem;
    }

    .about-containers {
        gap: 1.5rem;
    }

    .text-container {
        text-align: justify;
    }

    footer .nav-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* Extra small screens (480px and below) */
@media screen and (max-width: 480px) {
    .section_pic-container {
        width: 250px;
        height: 250px;
    }

    #about .section_pic-container {
        width: 250px;
        height: 375px;
    }

    .btn {
        padding: 0.8rem;
        width: 7rem;
    }

    .icon {
        height: 1.75rem;
    }

    .details-container {
        padding: 1rem;
    }

    .section__text__p1 {
        font-size: 1.25rem;
    }

    .title {
        font-size: 2rem;
    }

    .contact-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .contact-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Handle very large screens (1600px and above) */
@media screen and (min-width: 1600px) {
    section {
        padding: 4rem 5rem;
        max-width: 1800px;
    }

    .section_pic-container {
        width: 450px;
        height: 450px;
    }

    #about .section_pic-container {
        width: 450px;
        height: 675px;
    }

    .title {
        font-size: 3.5rem;
    }

    .section__text__p1 {
        font-size: 2rem;
    }

    .section__text__p2 {
        font-size: 1.25rem;
    }
}