/******************** Fontes usadas */
@import url('https://fonts.cdnfonts.com/css/tt-hoves-pro-trial');
@import url('clash-grotesk.css');

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

:root {
    --font-grande: 'TT Hoves Pro Trial', sans-serif;
    --font-pequena: 'ClashGrotesk-Light', sans-serif;
    --preto: #000000d2;
    --verde: #728e6f;
    --cor-texto: #9c9d9d;
    --branco: #f6f6f6;
    --color-gray1: #3d4143;
}

:root {
    --secondary-black: #222;
    --dark-green: #27ae60;
    --light-green: rgba(20, 92, 50, 0.328);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--preto);
}

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



body {
    font-family: 'Poppins', sans-serif;
    color: var(--branco);
    background-color: var(--preto);
    overflow-x: hidden;
}


/*#region PRELOADER */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--preto);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #333;
    border-top-color: var(--verde);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/*#endregion */

/*#region HEADER*/
.header {
    user-select: none;
    position: fixed;
    top: 0;
    width: 100vw;
    padding: 0rem 7.2em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 99;
    transition: top 0.3s ease-in-out;
    /* background-color: rgba(0, 0, 0, .9); */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    width: 100%;
}

.logo img {
    width: 150px;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 100;
}

.hamburger {
    cursor: pointer;
}

.hamburger input {
    display: none;
}

.hamburger svg {
    height: 3em;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
    fill: none;
    stroke: white;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
    stroke-dasharray: 12 63;
}

.hamburger input:checked+svg {
    transform: rotate(-45deg);
}

.hamburger input:checked+svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}

.menu-aberto {
    background-color: var(--preto);
    position: fixed;
    left: 0;
    top: 0;
    height: 0;
    width: 100%;
    z-index: 98;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0;
}

.menu-aberto.active {
    height: 100vh;
    opacity: 1;
}

.nav-menu {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    transition: opacity 0.5s ease-in-out;
}

.nav-menu a {
    user-select: none;
    text-decoration: none;
    color: var(--branco);
    font-family: var(--font-pequena);
    font-size: 3rem;
    font-weight: bold;
    opacity: 0;
    transform: translateY(-20px);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.menu-aberto.active .nav-menu a {
    opacity: 1;
    transform: translateY(0);
}

.nav-menu a:hover {
    color: #A5CA9E;
    transition: all 0.3s ease;
}


/*#endregion*/

/*#region BANNER */
.banner {
    position: relative;
    height: 100vh;
    background: url('../img/banner.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    overflow: hidden;

    & h1 {
        font-size: 4.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    & p {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        font-weight: lighter
    }


    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(rgba(43, 45, 43, 0.566));
    }

    .hero-scroll-down {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;

        .scroll-down-link {
            display: block;
            width: 40px;
            height: 40px;
            border: 2px solid white;
            border-radius: 50%;
            text-align: center;
            line-height: 36px;
            color: white;
            animation: bounce 2s infinite;
            text-decoration: none;
        }
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}


/*#region Botão Inicio */
.cta {
    position: relative;
    margin: auto;
    padding: 12px 18px;
    transition: all 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;

    & a {
        position: relative;
        text-decoration: none;
        font-family: var(--font-pequena);
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 0.05em;
        color: var(--branco);
    }

    & svg {
        position: relative;
        top: 0;
        margin-left: 10px;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke: var(--branco);
        stroke-width: 2;
        transform: translateX(-5px);
        transition: all 0.3s ease;
    }
}

.cta:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    border-radius: 50px;
    background: var(--verde);
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
}



.cta:hover:before {
    width: 100%;
    background: var(--verde);
}

.cta:hover svg {
    transform: translateX(0);
    stroke: var(--preto);
}

.cta:active {
    transform: scale(0.95);
}

.complemento-inicio {
    position: absolute;
    bottom: 2rem;
    width: 100vw;
    padding: 0rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.complemento-inicio .text {
    text-align: center
}

.complemento-inicio .qr-code {
    width: 80px;
    opacity: .2;
    transition: all .5s ease-in-out;
}

.qr-code:hover {
    opacity: 1;
}

/*#endregion*/


/*#endregion*/

/*#region SOBRE*/
.sobre {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    z-index: 1;
    user-select: none;
    overflow: visible;

    .container-sobre {
        width: 100%;
        max-width: 1600px;
        margin: 0 auto;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 0 1rem;

        .conteudo-sobre {
            position: relative;
            top: 30%;
            width: 100%;
            height: 70%;
            display: flex;

            .left-sobre {
                color: var(--branco);
                height: 100%;
                width: 50%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                gap: 3rem;

                & h2 {
                    font-size: 3rem;
                    font-weight: 700;
                    font-family: var(--font-grande);
                }

                & p {
                    font-size: 1.2em;
                    color: var(--cor-texto);
                    line-height: 1.4;
                    letter-spacing: 1.5px;
                }

                .redes-sociais {
                    width: 100%;
                    display: flex;
                    flex-direction: column;
                    align-items: flex-start;
                    justify-content: center;
                    gap: 1.5rem;

                    & a {
                        display: flex;
                        justify-content: space-between;
                        text-decoration: none;
                        color: var(--cor-texto);
                        font-size: 1.3rem;
                        width: 100%;
                        padding-bottom: 5px;
                        border-bottom: 1px solid hsla(0, 0%, 100%, 0.15);
                    }
                }
            }

            .right-sobre {
                height: 85%;
                width: 50%;
                display: flex;
                align-items: center;
                justify-content: center;

                .imagem-sobre {
                    display: flex;
                    justify-content: right;
                    align-items: center;
                    position: absolute;

                    & img {
                        width: 410px;
                        padding-top: 100px;
                        padding-left: 30px;
                        z-index: 99;
                    }
                }

                .complemento-sobre {
                    width: auto;
                    z-index: 0;

                    & img {
                        position: relative;
                        left: -38px;
                        top: 50px;
                        width: 118%;
                        z-index: 1000;
                        animation: rotate 20s linear infinite;
                    }
                }

            }
        }

    }

    .headline-sobre {
        height: 30%;
        width: 100vw;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;

        .headline-scroll {
            display: flex;
            align-items: center;
            white-space: nowrap;
            animation: scroll 20s linear infinite;

            & span {
                font-family: var(--font-grande);
                font-size: 5rem;
                text-transform: uppercase;
                display: flex;
                align-items: center;
            }
        }

    }
}


@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


.headline-scroll .divisor {
    width: 20px;
    height: 20px;
    background-color: var(--cor-texto);
    border-radius: 50%;
    margin: 0 20px;
}

.headline-scroll .bold {
    font-weight: bold;
    color: #728e6f;
}

.headline-scroll .light {
    font-weight: lighter;
    color: var(--cor-texto);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/*#endregion*/

/*#region PROCESSOS*/
.skills {
    width: 100%;
    padding: 4rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;

    .container-skills {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;

        .headline-skills {
            width: 100%;
            text-align: center;
            margin-bottom: 2rem;
            color: var(--branco);
            display: flex;
            align-items: center;
            justify-content: center;

            .text-headline-skills {
                & h2 {
                    font-size: 3rem;
                    font-weight: 700;
                    font-family: var(--font-grande);
                }

                & p {
                    line-height: 1.4;
                    font-size: 1.2em;
                    color: var(--cor-texto);
                    letter-spacing: 1.5px;
                    font-weight: lighter;
                }

            }
        }

        .conteudo-skills {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            width: 75%;

            .box-skills {
                border: 1px solid hsla(0, 0%, 100%, 0.15);
                border-radius: 20px;
                color: var(--branco);
                display: flex;
                flex-direction: column;
                justify-content: center;
                height: 450px;
                padding: 2rem;
                gap: 0.5rem;

                & i {
                    font-size: 3rem;
                    color: var(--verde);
                }

                & h3 {
                    font-size: 1.8rem;
                }

                & p {
                    color: var(--cor-texto);
                    font-size: 1rem;
                    font-weight: 500;
                    line-height: 1.4;
                }
            }
        }
    }
}

/*#endregion*/

/*#region SERVIÇOS */
.servicos {
    padding: 100px 0;
    background-color: var(--secondary-black);

    & h2 {
        font-size: 3rem;
        font-weight: 700;
        font-family: var(--font-grande);
    }

    & hr {
        margin-bottom: 4%;
        color: var(--verde);
    }

    .servicos-card {
        background-color: var(--preto);
        border-radius: 15px;
        padding: 40px 30px;
        margin-bottom: 30px;
        transition: all 0.3s ease;
        border-top: 3px solid transparent;

        & h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
        }

        .service-icon {
            font-size: 2.5rem;
            color: var(--verde);
            margin-bottom: 20px;
        }
    }

    .servicos-card:hover {
        transform: translateY(-10px);
        border-top: 3px solid var(--verde);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }
}

/*#endregion */

/*#region PORTFOLIO*/
.portfolio {
    padding: 100px 0;
    background-color: var(--preto);

    & h2 {
        text-align: center;
        font-size: 3rem;
        font-weight: 700;
        font-family: var(--font-grande);
    }

    .portfolio-filter {
        display: flex;
        justify-content: center;
        margin-bottom: 40px;
        flex-wrap: wrap;
    }
}

.filter-btn {
    background: none;
    border: none;
    color: var(--branco);
    padding: 8px 20px;
    margin: 0 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--verde);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.filter-btn:hover::after,
.filter-btn.active::after {
    width: 100%;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--verde);
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.portfolio-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(114, 142, 111, 0.808);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-overlay p {
    transform: translateY(20px);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.portfolio-overlay a {
    color: var(--branco);
    background-color: var(--preto);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay h4,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay a {
    transform: translateY(0);
}

/*#endregion */

/*#region CONTATO*/
.contato {
    padding: 100px 0;

    & h2 {
        text-align: center;
        font-size: 3rem;
        margin-bottom: 30px;
        font-weight: 700;
        font-family: var(--font-grande);
    }

    .contato-form {
        background-color: var(--preto);
        padding: 40px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

        .form-control {
            background-color: #333;
            border: none;
            color: var(--branco);
            padding: 15px;
            margin-bottom: 20px;
            border-radius: 10px;
        }

        .form-control:focus {
            box-shadow: 0 0 0 0.25rem rgba(46, 204, 113, 0.25);
            background-color: #333;
            color: var(--branco);
        }

        textarea.form-control {
            min-height: 150px;
        }
    }

    .contato-info {
        background-color: var(--preto);
        padding: 40px;
        border-radius: 15px;
        height: 100%;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

        & h3 {
            color: var(--verde);
            margin-bottom: 30px;
            font-size: 1.8rem;
        }

        .info-item {
            display: flex;
            align-items: center;
            margin-bottom: 20px;

            .info-icon {
                width: 50px;
                height: 50px;
                background-color: var(--light-green);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                color: var(--verde);
                font-size: 1.2rem;
                margin-right: 15px;
                flex-shrink: 0;
            }
        }
    }

    & button {
        background: var(--verde);
    }

    & button:hover {
        background: var(--verde);
    }
}

/*#endregion */

/*#region FOOTER */
.footer {
    background-color: var(--preto);
    padding: 50px 0 20px;
    border-top: 3px solid var(--verde);
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--branco);
    margin-bottom: 20px;
    display: inline-block;

    & span {
        color: var(--verde);
    }
}

.footer-links {

    & h4 {
        color: var(--verde);
        margin-bottom: 20px;
        font-size: 1.3rem;
    }

    & ul {
        list-style: none;
        padding: 0;
    }

    & li {
        margin-bottom: 10px;
    }

    & a {
        color: var(--branco);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    & a:hover {
        color: var(--verde);
        padding-left: 5px;
    }
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;

    & a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--branco);
        transition: all 0.3s ease;
    }

    & a:hover {
        background-color: var(--verde);
        transform: translateY(-3px);
    }
}


.copyright {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
}

/* BOTÃO TOPO */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--verde);
    color: var(--branco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-green);
    transform: translateY(-3px);
}

/*#endregion */

/* Estilos para mensagens de alerta */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert i {
    font-size: 16px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* responsivo */
@media (max-width: 992px) {
    .banner h1 {
        font-size: 2.8rem;
    }

    .banner p {
        font-size: 1.2rem;
    }

    .about-content {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .banner h1 {
        font-size: 2.2rem;
    }

    .banner p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .process-step,
    .servicos-card {
        padding: 20px;
    }

    .contato-form,
    .contato-info {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .banner h1 {
        font-size: 1.8rem;
    }

    .btn-primary-custom {
        padding: 10px 20px;
    }

    .social-icons {
        justify-content: center;
    }

    .filter-btn {
        margin: 5px;
        padding: 5px 15px;
    }

    .footer-links {
        margin-bottom: 30px;
    }
}