@media (max-width: 768px) {

    body {
        font-size: 0.9rem;
    }

    #team, #about, #faq, #gallery, #features
    { scroll-margin-top: 8vh; }   

    section { 
        padding: 2rem 0.2rem; 
        width: 90%; 
        margin: 0 auto;
    }

    section.light {
        padding: 2rem 0.2rem; 
    }
    
    #logo-desktop, #logo-desktop.scroll {
        display: none;
    }

    #logo-mobile {
        display: block;
        position: absolute;
        width: 2rem;
        left: 5%;
    }

    nav {
        gap: 1rem;
        font-size: 0.9rem;
        background-color: rgba(36, 75, 86, 0.5);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    header {
        flex-direction: column;
        justify-content: center;
        width: 100%;
        padding: 0;
        background-size: cover;
        background-position: top;
    }

    .header-left {
        display: none;
    }

    #logo-header {
        display: flex;
        width: 60vw;
        margin: 0 auto;
        margin-bottom: 2rem;
        margin-top: 3rem;
    }

    .animation {
        display: none;
    }

    .header-right {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0 10%;
        justify-content: center;
        height: auto;
    }

    .header-buttons {
        flex-direction: column;
        gap: 0;
    }

    #tagline {
        font-size: 2.2rem;
        line-height: 2.3rem;
        width: 100%;
        text-align: center;
    }

    h1 {
        font-size: 2.1rem;
        font-weight: 600;
        margin-top: 0;
        line-height: 2rem;
    }

    .subtitle {
        line-height: 1.2rem;
        font-size: 1.2rem;
        margin-top: 5%;
    }

    button {
        margin: 0 auto;
        width: fit-content;
        padding: 0.5rem 1.25rem;
        font-size: 1rem;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.2s ease;
        margin-bottom: 5%;
    }

    .howcontainer {
        flex-direction: column;
        gap: 1rem;
    }

    .howbox {
        width: fit-content;
        position: relative;
        line-height: 1.1rem;
    }

    .howbox span {
        font-size: 1.2rem;
    }

    .howbox h2 {
        font-size: 1.5rem;
        line-height: 0.5rem;
        margin-top: 1.5rem;
    }

    .howbox p {
        font-size: 0.9rem;
    }

    .feature-slide,
    .feature-slide.reverse {
        flex-direction: column;
        min-height: auto;
        padding-bottom: 4rem;
        text-align: left;
    }

    .feature-content h2 {
        margin-bottom: 1.3rem;
        font-size: 1.3rem;
    }

    .feature-content p {
        font-size: 1rem;
        margin-top: 0;
    }

    .feature-image,
    .feature-content {
        width: 100%;
    }

    .team {
        flex-direction: column;
    }

    .teamsection {
        flex-direction: column;
    }

    .teamabout {
        width: 100%;
        display: block;
        gap: 0;
        text-align: left;
        margin-bottom: 2rem;
    }

    .teamabout h1 {
        margin-bottom: 0;
    }

    .teamsection h3 {
        font-size: 1.2rem;
    }

    .teamabout p {
        font-size: 1rem;
        width: 100%;
    }

    .member {
        padding: 0 0.5rem;
        width: 90%;
        padding: 2%;
    }

    .profile {
        width: 18vw;
        height: 18vw;
        font-size: 2rem;
    }

    .innermember h2 {
        font-size: 1rem;
        line-height: 0.8rem;
    }

    .innermember p {
        font-size: 0.8rem;
        line-height: 0.8rem;
    }

    .footerBox {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-left img {
        width: 30vw;
    }

    .footer-left p {
        margin-top: 0.5rem;
    }

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

    .faq-question {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }

    .button-arrow {
        padding-top: 0.2rem;
        padding-bottom: 0.5rem;
    }

    .to-button-header h2 {
        font-size: 1.5rem;
    }

    .contacts {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-img {
        width: 100vw;
        display: flex;
        justify-content: center;
    }

    .contact-img img {
        padding-top: 7rem;
        padding-bottom: 3rem;
        width: 60%;
    }

    .contact-info {
        width: 80%;
        margin: 0 auto;
        padding: 0;
        padding-top: 0;
    }

    .contact-info h1 {
        font-size: 2rem;
        margin-top: 2rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .teamcontact {
        grid-template-columns: 1.5fr 1fr;
        margin-bottom: 1rem;
    }

    .teamcontact-link {
        margin-left: 2rem;
    }

    .gallery {
        margin-top: 3rem;
    }

    .gallery-section {
        flex-direction: column;
        margin-bottom: 5rem;
    }

    .gallery-section:nth-child(1) img, 
    .gallery-section:nth-child(2) img {
        width: 100%; 
    }

    .gallery h1 {
        font-size: 1.5rem;
        line-height: 1.8rem;
        text-align: left;
        margin-left: 0;
    }

    .gallery-section.reverse {
        flex-direction: column;
        text-align: left;
    }

    .gallery-section.reverse div,
    .gallery-section div {
        margin-right: 0;
        margin-left: 0;
    }

    .gallery-section p {
        font-size: 0.9rem;
    }

    .demo iframe {
        width: 100%;
        height: auto;
    }

}