* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --color-primary:#222;
    --color-secondary:#3D90C0;
    --color-tertiary: #8E8E8E;
    --color-base: #fff;
}

::-webkit-scrollbar{
    width: 10px;
    background: var(--color-primary);
}

::-webkit-scrollbar-thumb{
    background: var(--color-secondary);
}

body {
    font-family: "Inter", sans-serif;
}

/*.tooltip-message {*/
/*    position: fixed;*/
/*    bottom: 20px;*/
/*    right: 20px;*/
/*    background-color: #222;*/
/*    color: #fff;*/
/*    padding: 15px 20px;*/
/*    border-radius: 8px;*/
/*    box-shadow: 0 0 10px rgba(0,0,0,0.2);*/
/*    font-size: 14px;*/
/*    opacity: 0;*/
/*    pointer-events: none;*/
/*    transform: translateY(10px);*/
/*    transition: all 0.3s ease;*/
/*    z-index: 9999;*/
/*}*/

/*.tooltip-message.show {*/
/*    opacity: 1;*/
/*    transform: translateY(0);*/
/*    pointer-events: auto;*/
/*}*/

/*.tooltip-message.hidden {*/
/*    display: none;*/
/*}*/

header {
    z-index: 1000;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-scroll {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-top {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.logo-img {
    width: 200px;
    transition-delay: 0.2s;
}

nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0 auto;

}

.nav-links li a {
    color: #003D6A;
    text-decoration: none;
    font-size: clamp(0.8rem, 0.85vw, 0.85vw);
    font-weight: 600;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: var(--color-secondary);
}

.nav-links li:nth-child(1) { transition-delay: 0.3s; }
.nav-links li:nth-child(2) { transition-delay: 0.4s; }
.nav-links li:nth-child(3) { transition-delay: 0.5s; }
.nav-links li:nth-child(4) { transition-delay: 0.6s; }
.nav-links li:nth-child(5) { transition-delay: 0.7s; }

.menu-toggle{
    display: none;
    flex-direction: column;
    cursor: pointer;
    transition-delay: 0.9s;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--color-secondary);
    margin: 4px 0;
    transition: 0.3s;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(10px, 5px);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(10px, -5px);
}

.hero{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100vh;
    background: none;
    padding: 7% 10%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0;
    transform: scale(1.1);
    transition: transform 1s ease, opacity 1s ease;
}

.hero-text{
    display: flex;
    width: 50%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-weight: 300;
    gap: 2rem;
}

.hero-title{
    color: var(--color-base);
    font-size: clamp(2.3rem, 3.646vw, 3.646vw);
    transition-delay: 0.3s;
}

.hero-sub{
    color: var(--color-base);
    font-size: clamp(1.2rem, 1.563vw, 1.563vw);
    transition-delay: 0.5s;
}

.cta-button {
    background-color: var(--color-base);
    padding: 15px 20px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    z-index: 1;
    transition-delay: 0.9s;
}

.hero-image {
    width: 45%;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    height: 100vh;
}

.about-text{
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 30%;
    gap: 30px;
}

.about-title{
    font-size: clamp(24px, 1.4vw, 1.4vw);
    transition-delay: 0.3s;
    color: var(--color-secondary);
}

.about-content{
    font-size: clamp(14px, 0.9vw, 0.9vw);
    transition-delay: 0.6s;
}

.about-img{
    width: clamp(18rem, 25vw, 25vw);
    border-radius: 40px;
    transition-delay: 0.6s;
}

.hidden {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.show {
    max-height: 1000px;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 1;
}

.title-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

/* Subtítulo aparece primeiro */
.title-secondary {
    font-size: clamp(1.1rem, 1.30vw, 1.30vw);
    font-weight: 700;
    color: var(--color-secondary);
    text-align: center;
    transition-delay: 0.2s;
}

/* Título principal aparece depois */
.title-primary {
    font-size: clamp(1rem, 1.10vw, 1.10vw);
    font-weight: 200;
    color: var(--color-base);
    transition-delay: 0.5s;
}

.title-black {
    color: var(--color-primary);
}

.services {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    gap: 50px;
    padding: 0 0;
    background-color: #F2F2F2;
}

.services-grid {
    display: flex;
    flex-wrap: wrap; /* Permite quebra de linha */
    justify-content: center; /* Centraliza os cards horizontalmente */
    gap: 1rem;
    width: 90%;
    max-width: 1700px;
}

.service-card {
    width: 250px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    transition: 0.3s ease;
}

.service-card img {
    width: 45px;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1rem;
    color: #222;
    margin-bottom: 0.5rem;
}

.highlight-yellow{
    color: var(--color-secondary);
}

.service-card p {
    font-size: 1rem;
    color: #444444;
    width: 75%;
}

.portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    gap: 50px;
    padding: 0 0;
    background-color: #ffffff;
}

.portfolio-img {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}

.portfolio-card {
    width: 340px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    transition: 0.3s ease;
}

.gallery-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    padding: 20px;
}

.gallery-modal.hidden {
    display: none;
}

.gallery-content {
    text-align: center;
    color: white;
    max-width: 90%;
    max-height: 90%;
}

.gallery-content img {
    max-width: 90%;
    max-height: 60vh;
    border-radius: 10px;
}

.gallery-description {
    margin: 1rem auto;
    max-width: 700px;
    font-size: 1rem;
}

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.gallery-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s;
}

.gallery-thumbnails img:hover {
    transform: scale(1.1);
}

.close-gallery {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px; /* Espaço entre título e formulário */
    color: var(--color-secondary);
}

#contato {
    width: 100%;
    height: 100vh;
    background-color: #F2F2F2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 1rem;
}

.form-contato {
    max-width: 700px;
    width: 100%;
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    margin: 0 auto; /* centraliza horizontalmente */
}


.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0A1128;
}

.form-group input,
.form-group textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #CCC;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1A6FAE;
}

.btn-enviar {
    display: inline-block;
    background-color: #004C84;
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn-enviar:hover {
    background-color: #1A6FAE;
}

.footer {
    background-color: var(--color-base);
    box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.08);
    color: var(--color-tertiary);
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 10%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 5%;
    flex: 1;
    min-width: 200px;
}

.footer-title {
    font-size: 2rem;
    color: #222;
    font-weight: bold;
    margin-bottom: 20px;

    transition-delay: 0.2s;
}

.footer-column h3 {
    font-size: clamp(1.1rem, 0.8vw, 1vw);
    color: #222;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-column p, .footer-column a {
    font-size: clamp(1rem, 0.7vw, 1vw);
    color: #444;
    line-height: 1.5;
}

.footer-column p {
    transition-delay: 0.4s;
}

.footer-column a {
    text-decoration: none;
    color: #444;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--color-secondary);
}

.footer-column ul {
    list-style: none;
    padding: 0;

    transition-delay: 0.6s;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    font-size: clamp(1rem, 0.7vw, 0.9vw);
    text-decoration: none;
    color: #444;
}

.footer-column ul li a:hover {
    color: var(--color-secondary);
}

.contact-item {
    display: flex;
    gap: 10px;

    transition-delay: 0.8s;
}

.icon-insta:hover,
.icon-face:hover,
.icon-tiktok:hover {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.contact-item img {
    width: 25px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;

    transition-delay: 1s;
}

.footer-bottom {
    background-color: var(--color-secondary);
    padding: 10px;
    text-align: center;
    color: var(--color-primary);
}

.footer-bottom p {
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    color: var(--color-base);
}

.footer-bottom a {
    color: var(--color-base);
    text-decoration: none;
    font-weight: bold;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px;
    background-color: #004C84;
    color: var(--color-base);
    border-radius: 100%;
    cursor: pointer;
    display: none;
    transition: background-color 0.2s ease-in-out;
    border-color: transparent;
}

.back-to-top:hover {
    background-color: #1A6FAE;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

.back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-secondary);
}




/* Responsivo */
@media (max-width: 1800px) {
    .services{
        padding: 0%;
    }

    .budget-content{
        height: 350px;
    }

    .budget-info{
        width: 28%;
        left: 12%;
    }

    form {
        right: 12%;
    }
}


/* Responsivo */
@media (max-width: 1565px) {
    .services{
        height: auto;
        padding: 10% 20%;
    }

    .title-left{
        margin-left: 20%;
    }
}



/* Responsivo */

@media (max-width: 1425px) {

    .title-left{
        margin-left: 15%;
    }

    .budget-content{
        height: 350px;
    }

    .budget-info{
        width: 30%;
        left: 8%;
    }

    form {
        right: 8%;
    }


    .footer-container {
        padding: 40px 5%;
        max-width: 100%;
    }

    .footer-column {
        padding: 20px;
    }
}


@media (max-width: 1100px) {

    .portfolio {
        height: auto;
        padding: 100px 5%;
    }

    .services-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .portfolio-card {
        width: 100%;
        max-width: 380px;
        height: auto;
    }

    .portfolio-img {
        height: auto;
        max-height: 200px;
        object-fit: cover;
    }

    .service{
        height: auto;
    }

    .carousel-track {
        gap: 30px;
        animation: scrollLoopMobile 30s linear infinite;
    }

    @keyframes scrollLoopMobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }

    .about{
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 50px;
        padding: 10%;
    }

    .about-text{
        width: 80%;
        align-items: center;
    }

    .testimony{
        gap: 100px;
    }

    .budget{
        height: auto;
        align-items: center;
        gap: 20px;
        padding: 100px 0px;
    }

    .title-left{
        position: relative;
        margin: 0;
    }

    .budget-content{
        display: flex;
        flex-direction: column;
        gap: 50px;
        height: auto;
        margin-top: 0;
        padding: 5%;
    }

    .budget-info{
        position: relative;
        width: 60%;
        min-width: 260px;
        left: 0;
    }

    .input-grup{
        flex-wrap: wrap;
    }

    form{
        position: relative;
        left: 0;
        width: 60vw;
        box-shadow: none;
    }

    .footer-title {
        font-size: 2rem;
        text-align: left;
    }

    .footer-container {
        flex-direction: column;
        text-align: left;
        gap: 80px;
    }

    .footer-column {
        text-align: center;
        padding: 0;
    }
}

@media (max-width: 1100px) and (min-width: 720px) {
    @keyframes scrollLoopMedium {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }
}



@media (max-width: 800px) {
    .services{
        padding: 15% 20%;
    }
    .service-card {
        width: 100%; /* Ocupa largura total disponível */
        max-width: 380px; /* Não passa do tamanho definido */
    }
}


@media (max-width: 768px) {

    nav{
        display: flex;
        justify-content: end;
    }

    header {
        padding: 10px 5%;
    }

    .logo-img {
        width: 150px;
    }

    .menu-toggle {
        margin-left: auto;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        padding-top: 30px;
        left: -105%;
        width: 100vw;
        height: 100vh;
        background-color: var(--color-base);
        flex-direction: column;
        text-align: center;
        transition: left 0.3s ease;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links li a {
        font-size: 18px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links.open {
        left: 0;
    }

    .hero{
        padding-top: 10%;
    }

    .title{
        width: 100%;
    }

    .about{
        padding: 100px 0px;
    }

    .team{
        padding: 10% 0;
    }

    .services{
        gap: 20px;
        padding: 100px 0px;
    }

    form {
        width: clamp(300px, 60vw, 60vw);
        padding: 10% 5%
    }

    .contact-item img {
        width: 24px;
        margin-right: 10px;
    }
}

/* Responsivo extra para mobile */
@media (max-width: 600px) {
    .service-card {
        width: 300px;
        height: auto; /* Deixa a altura automática no celular */
    }

    .portfolio-card {
        width: 90%;
        padding: 1rem;
    }

    .portfolio-img {
        width: 100%;
        max-height: 180px;
    }

    .gallery-content img {
        max-width: 100%;
        max-height: 50vh;
    }

    .gallery-thumbnails img {
        width: 60px;
        height: 45px;
    }

    .hero {
        flex-direction: column;
        height: 100vh;
        padding: 80px 5% 40px;
        justify-content: center;
        gap: 30px;
        text-align: center;
    }

    .hero-text {
        width: 100%;
        align-items: center;
    }

    .hero-image {
        display: none;
    }
}