@media(max-width:1180px){

    .card-grid.four{
        grid-template-columns:repeat(2,1fr);
    }

    .levcore-box{
        grid-template-columns:1fr;
    }

    .service-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .service-item{
        border-left:0;
        border-top:1px solid var(--border);
    }

    .contact-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:980px){

    .card-grid.three{
        grid-template-columns:1fr;
    }
}

@media(max-width:768px){

    :root{
        --sidebar:0px;
    }

    .site-main,
    .footer{
        margin-left:0;
    }

    .sidebar{
        inset:auto 0 0 0;
        width:100%;
        height:70px;
        flex-direction:row;
        justify-content:center;
        border-right:0;
        border-top:1px solid var(--border);
    }

    .brand,
    .sidebar-socials{
        display:none;
    }

    .nav-links{
        display:grid;
        grid-template-columns:repeat(7, 1fr);
        width:100%;
        height:100%;
    }

    .nav-link{
        min-width:0;
        min-height:70px;
        padding:8px 3px;
    }

    .nav-link::before{
        top:auto;
        right:0;
        bottom:0;
        width:auto;
        height:4px;
    }

    .nav-link i{
        font-size:1rem;
    }

    .nav-link span{
        font-size:.54rem;
        line-height:1.1;
        white-space:nowrap;
    }

    .hero-profile-section{
        min-height:100svh;
    }

    .hero-profile-inner{
        min-height:100svh;
        padding:34px 0 92px;
    }

    .hero-avatar{
        width:145px;
        height:145px;
        margin-bottom:24px;
    }

    .hero-profile-section h1{
        font-size:3rem;
        margin-bottom:8px;
    }

    .hero-slogan{
        font-size:1.15rem;
        color:var(--accent-light);
        font-weight:800;
        margin-bottom:18px;
    }

    .hero-description{
        font-size:1rem;
        line-height:1.6;
        margin-bottom:28px;
    }

    .section{
        min-height:100svh;
        padding:72px 0 92px;
    }

    .card-grid.four{
        grid-template-columns:1fr;
    }

    .footer{
        padding-bottom:92px;
    }
}

@media(max-width:680px){

    .container{
        width:min(100% - 32px, 1180px);
    }

    .section{
        align-items:flex-start;
        padding:56px 0 92px;
    }

    .service-grid{
        grid-template-columns:1fr;
    }

    .contact-grid{
        grid-template-columns:1fr;
        align-items:start;
    }

    .contact-grid .btn{
        width:100%;
    }

    .footer-inner{
        flex-direction:column;
        text-align:center;
    }
}

@media(max-width:560px){

    .sidebar{
        height:66px;
    }

    .nav-link{
        min-height:66px;
        gap:4px;
    }

    .nav-link i{
        font-size:1.08rem;
    }

    .nav-link span{
        display:none;
    }

    .hero-profile-inner{
        padding-bottom:88px;
    }

    .section{
        padding-bottom:88px;
    }

    .footer{
        padding-bottom:88px;
    }
}

@media(max-width:480px){

    .hero-avatar{
        width:125px;
        height:125px;
        margin-bottom:22px;
    }

    .hero-profile-section h1{
        font-size:2.35rem;
    }

    .hero-slogan{
        font-size:1rem;
        margin-bottom:16px;
    }

    .hero-description{
        font-size:.96rem;
        line-height:1.55;
    }

    .timeline-item{
        grid-template-columns:52px 1fr;
    }

    .timeline-item::before{
        left:64px;
    }

    .timeline-item::after{
        left:68px;
    }

    .timeline-item p{
        margin-left:24px;
    }

    .info-card,
    .project-card,
    .levcore-box{
        padding:22px;
    }
}