* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    /* Already here, keeping it for standard links */
    font-family: "Poppins";
}

a,
a:visited,
a:hover,
a:active {
    color: inherit;
}

:root {
    --bg-color: #080808;
    --second-bg-color: #0f0f0f;
    --text-color: white;
    --main-color: #aeec0f;
}

html {
    font-size: 60%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 1rem 12%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lang-selector {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--main-color);
    border-radius: 5px;
    padding: 0.5rem;
    font-size: 1.5rem;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

.lang-selector option {
    background: var(--bg-color);
    color: var(--text-color);
}

#menu-icon {
    font-size: 3.5rem;
    color: var(--main-color);
    font-weight: 800;
    display: none;
}

.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

span {
    color: var(--main-color);
}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
}

.navbar a:hover {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

.gradient-btn {
    font-size: 1.8rem;
    padding: 1rem 1.5rem;
    border-radius: 3rem;
    background: var(--main-color);
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    color: var(--bg-color);
    border: none;
    text-wrap: nowrap;
}

.gradient-btn:hover {
    transform: scale(1.05);
}

section {
    min-height: 100vh;
    padding: 5rem 12%;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home-content h3 {
    margin: 1rem 0;
    font-size: 4rem;
}

.home-content p {
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.8;
}

.home-img img {
    height: 32vw;
    border-radius: 50%;
    transition: 0.4s ease-in-out;
}

.home-img img:hover {
    transform: scale(1.02);
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 0.5rem;
    transition: 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--text-color);
    background-color: var(--main-color);
    transform: scale(1.2)translateY(-5px);
    box-shadow: 0 0 20px var(--main-color);
}

.btn-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
    border-radius: 3rem;
    font-size: 1.8rem;
    color: black;
    border: 2px solid transparent;
    font-weight: 600;
    transition: 0.3s ease-in-out;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--main-color),
        0 0 40px var(--main-color)
}

.btn-group a:nth-of-type(2) {
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 20px transparent;
}

.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 20px var(--main-color);
    background-color: var(--main-color);
    color: black;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    background-color: var(--second-bg-color);
}

.about-img img {
    width: 32vw;
    border-radius: 20%;
    transition: 0.4s ease-in-out;
}

.about-img img:hover {
    transform: scale(1.02);
}

.about-topic {
    font-size: 3rem;
    text-align: left;
    margin-top: 2rem;
    color: var(--main-color);
}

.about-content h2 {
    font-size: 7rem;
    text-align: left;
}

.about-content p {
    font-size: 1.8rem;
}

.about-content .btn {
    margin: 3rem 0;
}

::-webkit-scrollbar {
    width: 20px;
}

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

}

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

.heading {
    text-align: center;
    font-size: 7rem;
    margin: 5rem 0;
    margin-top: -0.5rem;
}

.services {
    background-color: var(--bg-color);
    color: black;
}

.services h2 {
    color: var(--text-color);
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 1050px;
    margin: 0 auto;
}

.carousel-btn {
    background: var(--main-color);
    border: none;
    color: var(--bg-color);
    font-size: 3rem;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 10;
    transition: 0.2s;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--main-color);
}

.left-btn {
    left: -80px;
}

.right-btn {
    right: -80px;
}

.services-container {
    display: flex;
    align-items: stretch;
    gap: 2.5rem;
    overflow-x: hidden;
    padding: 4rem 2rem;
    /* Margem ajustada para ser menor que o gap (2.5rem), blindando a visão do card seguinte */
    width: calc(100% + 4rem);
    margin: -4rem -2rem;
    /* Ocultar barra de scroll no Desktop e Mobile */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.services-container::-webkit-scrollbar {
    display: none;
}

.service-box,
.project-card {
    background-color: var(--main-color);
    /* verde */
    height: auto;
    min-height: 420px;
    /* Reduced from 500px */
    flex: 0 0 calc((100% - 5rem) / 3);
    border-radius: 3rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.25s ease-in-out;
}

.service-box:hover {
    background: var(--second-bg-color);
    color: var(--main-color);
    border: 5px solid var(--main-color);
    transform: translateY(-8px) scale(1.02);
}

.service-info {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 5rem;
    flex: 1;
}

.service-info h4 {
    font-size: 4rem;
    margin: 2rem 0;
    font-weight: 800;
}

.service-info p {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.7;
}

.service-info i {
    font-size: 8rem;
}

.projects {
    background-color: var(--second-bg-color);
}

/* Tech Slider (Infinite Marquee) */
.tech-slider {
    width: 100%;
    max-width: 1200px;
    margin: 1rem auto 0 auto;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 2.5rem 3rem 2.5rem 3rem;
    /* Horizontal oculta a marquee nas bordas; vertical expande sombras do hover */
    position: relative;
}

.tech-slider::before,
.tech-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.tech-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.tech-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.tech-track {
    display: flex;
    width: max-content;
    animation: scrollTech 20s linear infinite;
    gap: 3rem;
    margin: 0 -3rem;
    /* compensa o padding lateral ampliado do container e evita corte de hover */
}

.tech-icon {
    width: 65px;
    /* Reduzido de 80px */
    height: 65px;
    /* Reduzido de 80px */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--second-bg-color);
    border: 2px solid var(--main-color);
    border-radius: 1.2rem;
    font-size: 3.2rem;
    /* Reduzido de 4rem p/ casar com a nova caixa */
    color: var(--main-color);
    transition: 0.3s ease;
    position: relative;
    z-index: 1;
}

.tech-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--main-color);
    z-index: 3;
}

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

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

/* Projects */

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-radius: 20px;
}

.projects-subtitle {
    font-size: 3rem;
    margin: 2rem 1rem;
    text-align: left;
    color: var(--main-color);
}

.projects-dev {
    background-color: var(--bg-color);
    padding: 3rem 3rem 6rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.projects-others {
    padding: 3rem;
    z-index: 1;
    margin-top: 3rem;
}

.project-card {
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
    gap: 2rem;
    padding: 4rem 2rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 0 5px var(--main-color);
    min-height: 480px;
}

.project-card:hover {
    box-shadow: 0 0 15px var(--main-color);
    transform: translateY(-8px) scale(1.02);
}

/* ===================================================== */
/* Ocultar Widget e Barra do Google Translate */
/* ===================================================== */
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
#google_translate_element,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip .google-src-text,
.goog-tooltip .google-dst-text {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0 !important;
  margin-top: 0 !important;
}

.project-card img {
    max-width: 100%;
    width: 250px;
    object-fit: cover;
    border-radius: 2rem;
}

.project-card h3 {
    font-size: 2.5rem;
}

.project-card p {
    font-size: 1.5rem;
}

/* Contact */

.contact {
    background-color: var(--bg-color);
}

.contact h2 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact form {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
    margin: 5rem 0;
    text-align: center;
}

.input-group,
.input-group-2 {
    width: 100%;
}

.contact form .input-box {
    display: flex;
    gap: 1.5rem;
}

.contact form .input-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
}

.contact form .input-wrapper input,
.contact form .input-wrapper textarea {
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    resize: none;
}

.error-msg {
    color: #ff4d4d;
    font-size: 1.4rem;
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-align: left;
    display: none;
    animation: fadeInError 0.3s ease forwards;
}

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

.error-msg.visible {
    display: block;
}

.contact form textarea {
    margin-bottom: 1.5rem;
}

.wpp-container {
    text-align: center;
    width: 100%;
    margin-top: 5rem;
}

.wpp-text {
    font-size: 2.2rem;
    color: var(--text-color) !important;
    display: inline-block;
    transition: 0.25s ease;
}

.mobile-break {
    display: none;
}

.wpp-text .wpp-whatsapp,
.wpp-text .wpp-whatsapp i {
    color: var(--main-color) !important;
}

.wpp-text .wpp-prefix {
    color: var(--text-color) !important;
}

.wpp-text span {
    text-decoration: underline;
    font-weight: 600;
}

.wpp-text i {
    font-size: 2.5rem;
    vertical-align: middle;
}

.wpp-text i {
    font-size: 2.5rem;
    vertical-align: middle;
}

.wpp-text:hover {
    transform: scale(1.05);
}

.submit-desktop {
    width: 100%;
    margin-top: 1.5rem;
}

/* Chrome, Edge, Opera */
.contact input[type=number]::-webkit-inner-spin-button,
.contact input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.contact input[type=number] {
    -moz-appearance: textfield;
}

.footer {
    background-color: var(--second-bg-color);
    padding: 50px 0;
    margin-top: auto;
}

.footer .social-icons {
    text-align: center;
}

.footer ul {
    text-align: center;
    font-size: 1.8rem;
}

footer ul li {
    display: inline-block;
    margin-left: 20px;
}

footer ul li a {
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
    border-bottom: 3px solid var(--main-color);
}

footer .copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 15px;
}

@media(max-width: 1285px) {
    #menu-icon {
        display: block;
    }

    .home,
    .about,
    .services,
    .projects,
    .contact {
        margin-top: 1rem !important;
        margin-bottom: 2rem !important;
    }

    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        padding: 1rem 3rem;
        background: rgba(0, 0, 0, 0.8);
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        border-bottom-left-radius: 2rem;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(--text-color);
    }

    .navbar.active {
        display: block;
    }

    header .gradient-btn {
        display: none;
    }

    .home {
        flex-direction: column-reverse;
        gap: 2rem;
        padding-top: 12rem;
    }

    .home-content {
        align-items: center;
        text-align: center;
    }

    .home-content h1 {
        font-size: clamp(4rem, 8vw, 6rem);
    }

    .home-content h3 {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }

    .home-content p {
        font-size: 1.8rem;
    }

    .home-img img {
        width: 60vw;
        height: 60vw;
        max-width: 350px;
        max-height: 350px;
        object-fit: cover;
        border-radius: 50%;
    }

    .about {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2rem 2rem;
        text-align: center;
    }

    .about-img img {
        display: none;
    }

    .about-content h2 {
        margin: 0;
        font-size: 5rem;
        text-align: center;
    }

    .about-content p,
    .about-topic {
        text-align: center;
        font-size: 2rem;
    }

    .contact form {
        flex-direction: column;
    }
}

@media(max-width: 1024px) {

    .service-box,
    .project-card {
        flex: 0 0 calc((100% - 2.5rem) / 2);
    }
}

@media(max-width: 768px) {
    section {
        min-height: auto !important;
        /* Quebra do 100vh estático para exterminar os buracos vazios */
        padding: 3rem 5% !important;
        /* Padding mais apertado para reduzir espaços em banco */
    }

    .home {
        padding-top: 10rem !important;
        /* Descola do Header limpo */
        gap: 3rem;
    }

    .home-content h1 {
        font-size: 4rem;
        /* Legibilidade equilibrada sem exageros */
    }

    .home-content h3 {
        font-size: 2.2rem;
    }

    .home-content p {
        font-size: 1.6rem;
        line-height: 1.6;
        margin-top: 1.5rem;
    }

    .btn {
        font-size: 1.6rem;
        padding: 1rem 2rem;
    }

    .heading {
        font-size: 4.5rem;
        margin: 3rem 0;
    }

    .about-content h2 {
        font-size: 4rem;
    }

    .about-content p,
    .about-topic {
        font-size: 1.6rem;
    }

    /* CARDS - MOBILE RESET */
    .service-box,
    .project-card {
        flex: 0 0 100%;
        min-height: 380px;
    }

    .service-box:hover,
    .project-card:hover {
        transform: scale(1);
        /* Anula pulo e elevação nocivos em touchscreen */
    }

    .service-info h4 {
        font-size: 3.2rem;
    }

    .service-info p {
        font-size: 1.35rem;
        /* Ajuste refinado p/ encaixar textos tecnis longo s/ esmagar */
    }

    .project-card h3 {
        font-size: 2.2rem;
    }

    /* CONTROLE DOS CARROSÉIS */
    .carousel-wrapper {
        padding: 0 55px;
        /* Expele botoes sutilmente p lado */
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 2.5rem;
    }

    .left-btn {
        left: 0;
    }

    .right-btn {
        right: 0;
    }

    .services-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 4rem 2rem;
        margin: -4rem -2rem;
        width: calc(100% + 4rem);
    }

    .service-box,
    .project-card {
        scroll-snap-align: center;
    }

    /* REORDENAMENTO DE FORMULÁRIO (Flex Order Nativa) */
    .contact form {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        /* Respiro coerente entre blocões */
    }

    .contact form .input-group,
    .contact form .input-group-2 {
        display: contents;
        /* Achata o dom virtual p os items internos agirem soltos! */
    }

    .contact form .input-box {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        order: 1;
        /* Força Inputs a virem primeiro */
        width: 100%;
    }

    .contact form textarea {
        order: 2;
        /* Mensagem aparece imadiatamente abaixo dos inputs fisicamente */
        width: 100%;
    }

    .contact form .submit-desktop {
        order: 3;
        /* Vai para debaixo de todos eles! */
        margin-top: 1.5rem;
        /* Descola legal da Textarea */
        width: 100%;
    }

    .mobile-break {
        display: block;
    }
    .wpp-container {
        margin-top: 6.5rem;
        /* Alivia a folga inferior do grupo de acao */
    }

    .wpp-text {
        font-size: 1.85rem;
        /* Reduz peso brutal no cel p manter elgância */
    }

    .projects-dev,
    .projects-others {
        padding: 2rem 5%;
    }

    ::-webkit-scrollbar {
        display: none;
    }

    body {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .tech-slider::before,
    .tech-slider::after {
        width: 30px;
        /* Reduz gradiente no cel p ler as tech nas beiradas */
    }
}