/* body {
    max-width: 90%;
    margin: 0 auto;
} */

.header-section {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 5%;
    overflow: hidden;
    background: inherit;
    z-index: 1000;
    transition: top 0.3s;
}


#navbar a:hover {
  background-color: #ddd;
  color: black;
}

.tech-background-services {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-section .glass-container {

    align-items: center;
    max-width: 800px;
    padding: 3rem;
    position: relative;
}

.header-logo-img {
    height: 70px;
    width: auto;
    /* filter: drop-shadow(0 0 40px #ffffffec) ; */

}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, white, var(--tech-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
}

.title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, white, var(--tech-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

}

.header-title-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 50px;
}

.tohome {
    margin-left: 20px;
    margin-top: 50px;
}

.tohome h1 a {
    font-size: 1.2rem;
    color: var(--tech-cyan);
    text-decoration: none;
}

.header-logo-img {
    height: 70px;
    width: auto;
    margin-right: auto;
    /* Garante que fique à esquerda */
}



.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}


/*fim header*/




section#services {
    padding: 20px 0;
    margin: 95px auto 20px auto;
}

section#services h2 {
    text-align: center;
    margin: auto;
    max-width: 1600px;
    font-size: 2.4rem;
    ;


}

section#services h3 {


    max-width: 1600px;
    font-size: 1.6rem;
    ;


}

.services-container {
    margin: 20px auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
        'img txt txt';
    gap: 20px;
    padding: 0px;
    align-items: center
}

.service-image {
    grid-area: img;
    max-width: 100%;
    object-fit: cover;
}

.service-description {
    grid-area: txt;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 30px 0 0;
}

.service-description p {
    text-align: justify;
}

.service-container-reverse {
    margin: 20px auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
        'txt txt img';
    gap: 20px;
    padding: 0px;
    align-items: center
}

.service-description-reverse {
    grid-area: txt;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0 0 30px;
}

.service-description-reverse p {
    text-align: justify;
}

@media screen and (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            'img'
            'txt';
    }

    .service-image {
        grid-area: img;
        max-width: 100%;
        object-fit: cover;
    }

    .service-description {
        padding: 0 20px;
    }

    .service-description-reverse {
        padding: 0 20px;
    }

    .service-container-reverse {
        grid-template-columns: 1fr;
        grid-template-areas:
            'img'
            'txt';
    }

}



/* @media screen and (max-width: 600px) {



    .header-section {



    }
    .title {
        font-size: 1.3rem;
    }

    .header-logo-img {
        height: 38px;
    }
} */

@media screen and (max-width: 600px) {
    .header-section {
        display: grid;
        row-gap: 5x;
        column-gap: 10px;
        grid-template-columns: 1fr 2fr;
        grid-template-areas:
            'logo title'
            'logo page';

            /* flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: 10px 5%;
        min-height: auto;
        height: auto; */
        
    }

    .header-logo-img {
        /* height: 38px;
        margin: 0;
        display: inline-block; */
        grid-area: logo;
        height: 70px;
        padding-left: 10px;
    }

    .header-title-container {
        grid-area: page;
        /* position: static;
        transform: none;
        margin: 0;
        text-align: right;
        order: 2;
        display: flex;
        flex-direction: column; */
    }

    .title {
        font-size: 1.8rem;
        margin-bottom: 0;
        order: 2;
        /* Puts title below tohome */
    }

    .tohome {
        grid-area: title;
        text-align: right;
    }

    .tohome h1 a {
        font-size: 1rem;
    }

    section#services {
    margin: 80px auto 20px auto;
}
}

.service-image,
.service-description,
.service-description-reverse {
    will-change: transform, opacity;
}

.services-container,
.service-container-reverse {
    overflow: hidden;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}