@media screen and (max-width: 768px) {

    .container{
        width: 90vw;
    }

    a[class^="btn"], button[class^="btn"]{
        margin: var(--spacer-md) auto;
    }

    section, article {
        /* min-height: 100vh; */
    }

    .flex:has(>.col){
        flex-direction: column;
    }


    header.header-scrolled{
        position: fixed;
        background-color: rgba(36,1,1,.4);
        backdrop-filter: blur(5px);
        top: 0;
        padding: .3em 0 .5em 0;
        border-bottom-left-radius: 50%;
        border-bottom-right-radius: 50%;
        transition: all 0.2s;
        border-bottom: 4px solid white;
    }
    .header-scrolled .container.flex{
        flex-direction: row;
    }
    .header-scrolled .main-links{
        display: none;
    }
    .header-scrolled #header-logo{
        margin-right: 0;
    }


    .hero-section{
    }
    .hero-section .btn-group .btn{
        font-size: 1.5rem;
    }
    .hero-section h1 {
        line-height: .9em;
        font-size: 3.45rem;
    }
    .hero-section h4{
        max-width: 100%;
        line-height: 2rem;
        margin-bottom: 0.2em;
    }
    .hero-section .btn-group{
        text-align: center;
    }
    .tabs-section .tabs{
        font-size: 1rem;
    }

    .card-section .card{
        flex: 0 0 100%;
        height: fit-content;
    }

.tabs-section .service-writeup{
    width: 100%;
}
.tabs-section .service-img{
    display: none;
}

.card button,
.card-section .card::after{
    display: none;
}
.project-intro .project-img img {
    width: 100%;
}
.project-intro .project-text{
    text-align: center;
    margin-bottom: var(--spacer-md);
}
    .project-details .project-img,
    .works-section .project-img,
    .project-intro .project-text{
        width: 100%;
        max-width: none;
    }
    .project .overview video:first-of-type{
        width: 80%;
        margin: var(--spacer-md) auto;
    }
    .project-text h2,
    .project-details h4{
        text-align: center;
        word-wrap: break-word;
    }
    .project-intro,
    .project-details .row.flex{
        flex-direction: column;
        padding: 0 var(--spacer-sm);
    }
    .project.gui .project-text,
    .project.branding .project-text{
        width: auto;
    }
    .works-section .project-img img{
        padding: 0;
    }
    .project-details .row.flex .project-text{
        width: 100%;
        padding: 0 1em;
    }
    .project-details .project-tools li{
        flex-wrap: wrap;
    }
    .project-details .project-tools-why{
        /* left: 0; */
    }
    .project-tools.flex{
        gap: 3em;
        margin: 0;
    }
    .gui .container,
    .branding .container{
        padding: var(--spacer-md);
    }
    .project.branding .scroll-logos.flex{
        gap: var(--spacer-sm);
    }
    .modal-window.modal-window-open img{
        width: 85vw;
        padding: var(--spacer-md);
    }

    .about-section .container{
        flex-direction: column;
        gap: var(--spacer-sm);
    }


    .contact-section .container{
        flex-direction: column;
        gap: var(--spacer-sm);
    }
    .contact-section .design-form{
        width: 92%;
    }
    .contact-section .social-media{
        gap: var(--spacer-lg);
        flex-wrap: wrap;
        width: 100%;
        flex-direction: initial;
        justify-content: space-evenly;
    }
    .contact-section .contact .input-container:last-of-type{
        flex-direction: column;
    }
    .contact-section .input-container:last-of-type .btn-group{
        margin: var(--spacer-md) auto;
    }

    .pass-window{
        width: 70vw;
        text-align: center;
        padding: var(--spacer-lg) var(--spacer-md);
    }
}
/* exclusive to small screens */
@media screen and (max-width: 550px) {
    .desktop-only{
        display: none !important;
    }

    /* header .container{
        flex-direction: column;
        gap: 1.2em;
    }
    header .main-links,
    header #header-logo{
        margin-right: 0;
    } */
    /* #header-logo{
        width: 4.8rem;
    } */
    .hero-section .intro{
        width: 90%;
        padding-top: 1em;
    }
    .project.branding .scroll-logos.flex{
        gap: var(--spacer-lg);
    }
    .branding-img:nth-of-type(2){
        margin-left: 5em;
    }
    .branding-img img{
        width: 86vw;
    }

}