/* ============================================================
   devnest-larger.css  |  1020px DESKTOP BREAKPOINT
   Full desktop layout. Only overrides what changes from
   the 640px state — everything else inherits from base.
   ============================================================ */

@media (min-width: 1020px) {

    /* -------------------------------------------------------
       HEADER & NAV — flip to horizontal
       ------------------------------------------------------- */

    header {
        padding: 1.5rem 2.5rem;
    }

    /* Row layout for the nav wrapper */
    nav {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        justify-content: space-between;
        position: static;
        width: 100%;
        padding: 0;
        gap: 2rem;
    }

    .nav-top {
        width: auto;
        /* align-items: center; */
    }

    .logo {
        flex: none;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    /* Reveal the nav list as a horizontal row.
       display:none in the base is overridden here because
       devnest-larger.css is loaded last — later same-specificity
       declaration wins. No !important needed. */
    nav ul {
        display: flex;
        flex-direction: row;
        flex: 1;
        justify-content: flex-end;
        align-items: center;
        gap: clamp(2rem, 3.5vw, 4rem);
        margin: 0;
        margin-top: auto;
        padding: 0;
        border: none;
        background: none;
        backdrop-filter: none;
        width: 100%;
        order: 2;
        overflow: visible;
        /* box-sizing: border-box; */
        /* margin-left: auto; */
    }

    nav ul li {
        width: auto;
        /* margin-bottom: -1.2rem; */
    }

    /* Desktop nav links — underline style, not left-border */
    nav ul a {
        display: block;
        font-size: .92rem;
        display: inline;
        width: 100%;
        padding: 0.3rem 0;
        padding-bottom: .95rem;
        /* margin-bottom: ; */
        border-left: none;
        border-bottom: 2px solid transparent;
        background: none;
        transition: color var(--ease), border-color var(--ease);
    }

    nav ul a.active {
        border-bottom-color: var(--cyan);
        background: none;
    }

    nav ul a:hover {
        color: var(--white);
        background: none;
        border-bottom-color: rgba(248, 250, 252, 0.5);
        font-weight: 700;
    }

    body.light-mode nav ul a:hover {
        border-bottom-color: rgba(58, 73, 87, 0.5);

    }

    /* Hide hamburger on desktop */
    .hamburger {
        display: none;
    }

    /* -------------------------------------------------------
       THEME TOGGLE
       ------------------------------------------------------- */

    /* #theme-bar {
        top: 76px;
    } */

    /* Restore to the larger, desktop-sized icon */
    #theme-icon {
        width: 42px;
        height: 42px;
        object-fit: cover;
        /* transform: scale(2); */
    }

    #theme-toggle {
        /* margin-left: auto; */
        margin-bottom: -2rem;
        flex-shrink: 0;
        order: 3;
        padding-bottom: 0;
    }

    .hero-content {
        flex-direction: row;
    }

    /* -------------------------------------------------------
       MAIN LAYOUT
       ------------------------------------------------------- */

    main {
        max-width: 1200px;
        margin-top: -3rem;
    }

    /* -------------------------------------------------------
       TYPOGRAPHY — left-align section labels on desktop
       ------------------------------------------------------- */

    h2 {
        text-align: left;
    }

    /* Shift the accent underline to the left */
    h2::after {
        left: 0;
        transform: none;
    }

    /* -------------------------------------------------------
       HERO — side by side
       ------------------------------------------------------- */

    #hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: clamp(2rem, 5vw, 5rem);
    }

    #hero-bg {
        height: 55vh;
        min-height: 500px;
        max-height: 600px;
    }

    .hero-text {
        max-width: 55%;
    }

    .hero-img {
        order: 1;
    }

    .hero-btns {
        justify-content: flex-start;
    }

    .hero-img img {
        width: clamp(280px, 28vw, 400px);
        height: clamp(280px, 28vw, 400px);
    }

    .bio {
        min-width: 40rem;
        min-height: 0;
    }

    /* -------------------------------------------------------
       SKILLS — auto-fit multi-column
       ------------------------------------------------------- */

    .my-skills-wrap {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    /* -------------------------------------------------------
       FEATURED PROJECT — image left, info right
       ------------------------------------------------------- */

    .project {
        flex-direction: row;
        align-items: stretch;
        /* width: clamp(280px, 38%, 460px); */
    }

    .project>img {
        /* Fixed width column — clamp between sensible bounds */
        width: clamp(280px, 38%, 460px);
        height: clamp(260px, 32vw, 380px);
        min-height: 260px;
    }

    .project .project-info {
        justify-content: center;
    }

    /* -------------------------------------------------------
       PROJECTS GRID — auto-fit multi-column
       ------------------------------------------------------- */

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

    #projects h1,
    .about-text h1,
    #contact h1 {
        /* border-left: 3px solid var(--cyan); */
        text-align: left;
    }

    /* .filter-buttons{
        grid-template-columns: auto repeat(3, 1fr);
    } */

    /* -------------------------------------------------------
       ABOUT — side by side
       ------------------------------------------------------- */

    #about {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    .about-img {
        flex-shrink: 0;
        /* margin-top: 2rem; */
        flex-direction: column;
        /* align-self: center; */
    }

    .about-img img {
        /* width: clamp(200px, 22vw, 280px);
        height: clamp(200px, 22vw, 280px); */
        border-radius: 100%;
    }

    .about-text {
        flex: 1;
        min-width: 0;
        /* prevent flex overflow */
    }

    .contact-btn {
        margin-bottom: 0;
    }

    /* -------------------------------------------------------
       CONTACT — side by side
       ------------------------------------------------------- */

    #contact {
        flex-direction: row;
        align-items: flex-start;
    }

    #contact h1 {
        text-align: left;
    }

    .contact-info {
        flex: 1;
        min-width: 260px;
        text-align: left;
    }

    .socials {
        justify-content: flex-start;
    }

    #contact-form {
        flex: 1.2;
        min-width: 320px;
        width: auto;
    }

    /* -------------------------------------------------------
       POPUP
       ------------------------------------------------------- */

    .popup-box {
        max-width: 420px;
    }
}