/* Large laptops / small desktops */
@media screen and (max-width: 1400px) {
    #profile {
        min-height: 70vh;
        margin-bottom: 4rem;
    }
    .about-containers {
        flex-wrap: wrap;
    }
    section {
        margin: 0 clamp(1rem, 5vw, 6rem);
    }
}


/* Tablets */
@media screen and (max-width: 1200px) {
    #desktop-nav {
        display: none;
    }
    #hamburger-nav {
        display: flex;
        justify-content: space-between;
        padding: 0 1.5rem;
        min-height: auto;
    }
    #hamburger-nav .Mundi-logo {
        height: clamp(70px, 14vw, 120px);
        margin-top: 0;
    }
    #experience, .experience-details-container {
        margin-top: 2rem;
    }
    #profile,
    .section-container {
        display: block;
    }
    .arrow {
        display: none;
    }
    section,
    .section-container {
        height: fit-content;
        min-height: auto;
    }
    section {
        margin: 0 5%;
    }
    .section__pic-container {
        width: min(320px, 80vw);
        margin: 0 auto 2rem;
    }
    #about .section__pic-container {
        width: min(380px, 85vw);
    }
    .about-containers {
        margin-top: 0;
    }
    #profile {
        padding-top: 8vh;
        padding-bottom: 4rem;
    }

    /* Experience: stack skills above photos */
    .experience-main-container {
        flex-direction: column;
        align-items: center;
    }
    .experience-left-side,
    .experience-right-side {
        max-width: 100%;
        width: 100%;
    }
    .experience-photos {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .details-container {
        max-width: 100%;
        width: 100%;
    }

    /* Board of Directors: flatten fan into swipeable deck */
    #board {
        padding: 2rem 0;
    }
    .fan-container {
        height: 300px;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 3rem 2rem 1rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .fan-container::-webkit-scrollbar {
        display: none;
    }
    .fan-card {
        width: 160px;
        height: 240px;
        margin-left: -60px;
        border-radius: 1rem;
    }
    .fan-card:first-child { margin-left: 0; }
    .fan-card:last-child { margin-right: 2rem; }
    .fan-card:nth-child(n) { transform: none; }
    .fan-card:hover, .fan-card:focus, .fan-card:active {
        transform: translateY(-30px) scale(1.05) !important;
    }
    .fan-info {
        padding: 1rem 0.8rem;
    }
    .fan-info h4 {
        font-size: 0.95rem;
    }
}

/* Phones */
@media screen and (max-width: 600px) {
    #profile {
        min-height: auto;
        margin-bottom: 0;
        padding-top: 4vh;
    }
    .marquee-item {
        font-size: 1rem;
    }

    .about-containers, .btn-container {
        flex-wrap: wrap;
    }

    .nav-links li a {
        font-size: 1rem;
    }

    .experience-sub-title {
        font-size: 1.25rem;
    }

    .logo {
        font-size: 1.5rem;
    }
    #hamburger-nav .Mundi-logo {
        height: 64px;
    }
    .menu-links a {
        padding: 0.75rem 1.75rem;
        font-size: 1.25rem;
    }
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        align-items: center;
    }
    .section__pic-container {
        width: min(260px, 75vw);
        height: auto;
        justify-content: center;
    }

    .section__text__p2 {
        font-size: 1.25rem;
        min-height: 2rem;
    }
    .title {
        font-size: 2rem;
    }
    .text-container {
        text-align: justify;
    }

    .btn {
        width: 100%;
        max-width: 16rem;
    }

    .experience-photo {
        width: min(220px, 44vw);
    }

    #projects .details-container {
        width: 100%;
    }

    #scroll-to-top {
        width: 44px;
        height: 44px;
        bottom: 14px;
        right: 14px;
    }

    .fan-card {
        width: 140px;
        height: 210px;
        margin-left: -50px;
    }
    .fan-info h4 {
        font-size: 0.9rem;
    }
}
