@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;
        margin: 1rem auto 0;
        width: min(96vw, 1120px);
        padding: 0.85rem 1.2rem;
        background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(240, 244, 248, 0.95));
        border: 1px solid rgba(148, 163, 184, 0.24);
        border-radius: 999px;
        box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
    }
    #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: 600px) {
    #contact {
        height: 40vh;
    }
    footer {
        height: auto;
        padding: 1rem 0;
    }
    #profile {
        height: 83vh;
        margin-bottom: 0;
    }
    article {
        font-size: 1rem;
    }
    footer nav {
        height: fit-content;
        margin-bottom: 1rem;
    }
    .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.25rem;
    }
    nav {
        padding: 0.65rem 0.9rem;
        min-height: 56px;
        margin-top: 0.75rem;
        width: min(96vw, 1120px);
        background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(240, 244, 248, 0.95));
        border: 1px solid rgba(148, 163, 184, 0.24);
        border-radius: 999px;
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.10);
    }
    #desktop-nav .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    footer .nav-links {
        flex-direction: row;
        gap: 1.25rem;
        text-align: center;
        justify-content: center;
    }
    .section__pic-container {
        width: auto;
        height: 46vw;
        justify-content: center;
    }
    .section__text__p2 {
        font-size: 1.25rem;
    }
    .title {
        font-size: 2rem;
    }
    .certificate-slide-area {
        padding: 0 2.5rem;
    }
    .certificate-arrow {
        width: 38px;
        height: 38px;
    }
    .certificate-image-frame {
        height: auto;
        min-height: 0;
        aspect-ratio: 1052 / 841;
    }
    .certificate-caption {
        align-items: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    .certificate-caption h2 {
        text-align: center;
    }
    .project-filter-bar {
        gap: 0.6rem;
    }

    .filter-btn {
        width: 100%;
    }

    .text-container, .about-details {
        padding: 0 0.75rem;
        text-align: center;
    }
    .text-container p {
        max-width: 100%;
    }
}

