/* Remove as margens padrão do navegador */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 90px;
}

/* Configuração geral da página */
body {
    background-color: #0b1120;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

/* Cabeçalho */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 25px 8%;

    background-color: #111827;

    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #1e293b;
}

/* Nome CodeFlux */
header h1 {
    font-size: 28px;
    color: #38bdf8;
}

/* Menu */
nav {
    display: flex;
    gap: 30px;
}

/* Links do menu */
nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

/* Efeito quando passa o mouse */
nav a:hover {
    color: #38bdf8;
}
/* =========================
   ÁREA PRINCIPAL
========================= */

#inicio {
    min-height: 80vh;

    display: flex;
    align-items: center;

    padding: 80px 8%;

    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(56, 189, 248, 0.15),
            transparent 35%
        );
}

.inicio-conteudo {
    max-width: 750px;
}

.destaque {
    color: #38bdf8;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;

    margin-bottom: 20px;
}

#inicio h2 {
    font-size: 58px;
    line-height: 1.1;

    margin-bottom: 25px;
}

#inicio h2 span {
    color: #38bdf8;
}

.descricao {
    color: #cbd5e1;

    font-size: 19px;
    line-height: 1.7;

    max-width: 650px;

    margin-bottom: 35px;
}

.botoes {
    display: flex;
    gap: 15px;
}

.btn-principal,
.btn-secundario {
    padding: 15px 25px;

    border-radius: 8px;

    text-decoration: none;
    font-weight: bold;

    transition: 0.3s;
}

.btn-principal {
    background-color: #38bdf8;
    color: #0b1120;
}

.btn-principal:hover {
    background-color: #7dd3fc;
    transform: translateY(-3px);
}

.btn-secundario {
    border: 1px solid #38bdf8;
    color: #38bdf8;
}

.btn-secundario:hover {
    background-color: #38bdf8;
    color: #0b1120;

    transform: translateY(-3px);
}
/* =========================
   SERVIÇOS
========================= */

#servicos {
    padding: 100px 8%;
    background-color: #111827;
}

.servicos-titulo {
    max-width: 700px;
    margin-bottom: 50px;
}

.servicos-titulo h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.servicos-titulo > p:last-child {
    color: #94a3b8;
    font-size: 18px;
    line-height: 1.6;
}

/* Grade dos serviços */
.servicos-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

/* Cada card */
.servico-card {
    background-color: #0b1120;

    border: 1px solid #1e293b;
    border-radius: 12px;

    padding: 30px;

    transition: 0.3s;
}

/* Efeito ao passar o mouse */
.servico-card:hover {
    transform: translateY(-8px);

    border-color: #38bdf8;

    box-shadow:
        0 10px 30px rgba(56, 189, 248, 0.10);
}

/* Ícones */
.icone {
    font-size: 35px;
    margin-bottom: 20px;
}

/* Títulos dos cards */
.servico-card h3 {
    font-size: 21px;
    margin-bottom: 15px;
}

/* Textos dos cards */
.servico-card p {
    color: #94a3b8;

    line-height: 1.6;
}
/* =========================
   PROJETOS / PORTFÓLIO
========================= */

#projetos {
    padding: 100px 8%;
    background-color: #0b1120;
}

/* Título da seção */
.projetos-titulo {
    max-width: 750px;
    margin-bottom: 50px;
}

.projetos-titulo h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.projetos-titulo > p:last-child {
    color: #94a3b8;
    font-size: 18px;
    line-height: 1.6;
}

/* Organização dos projetos */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Card de cada projeto */
.projeto-card {
    position: relative;

    background-color: #111827;

    border: 1px solid #1e293b;
    border-radius: 14px;

    padding: 35px;

    overflow: hidden;

    transition: 0.3s;
}

/* Efeito ao passar o mouse */
.projeto-card:hover {
    transform: translateY(-8px);

    border-color: #38bdf8;

    box-shadow:
        0 15px 35px rgba(56, 189, 248, 0.10);
}

/* Número do projeto */
.projeto-numero {
    color: #38bdf8;

    font-size: 45px;
    font-weight: bold;

    margin-bottom: 30px;

    opacity: 0.8;
}

/* Nome do projeto */
.projeto-card h3 {
    font-size: 24px;

    margin-bottom: 15px;
}

/* Descrição */
.projeto-card > p {
    color: #94a3b8;

    line-height: 1.7;

    margin-bottom: 25px;
}

/* Área das tecnologias */
.tecnologias {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

/* Etiquetas */
.tecnologias span {
    background-color: rgba(56, 189, 248, 0.10);

    color: #38bdf8;

    border: 1px solid rgba(56, 189, 248, 0.25);

    padding: 7px 12px;

    border-radius: 20px;

    font-size: 13px;
    font-weight: bold;
}
/* =========================
   SOBRE A CODEFLUX
========================= */

#sobre {
    padding: 110px 8%;
    background-color: #111827;
}

.sobre-conteudo {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Lado esquerdo */

.sobre-texto h2 {
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 30px;
}

.sobre-texto h2 span {
    color: #38bdf8;
}

.sobre-texto > p:not(.destaque) {
    color: #94a3b8;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Lado direito */

.sobre-destaques {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.sobre-item {
    background-color: #0b1120;

    border: 1px solid #1e293b;
    border-radius: 12px;

    padding: 28px;

    transition: 0.3s;
}

.sobre-item:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
}

.sobre-item strong {
    display: block;

    color: #38bdf8;

    font-size: 20px;
    margin-bottom: 10px;
}

.sobre-item span {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.5;
}
/* =========================
   CONTATO
========================= */

#contato {
    padding: 110px 8%;
    background-color: #0b1120;
}

.contato-conteudo {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

/* LADO ESQUERDO */

.contato-texto h2 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 25px;
}

.contato-texto h2 span {
    color: #38bdf8;
}

.contato-descricao {
    color: #94a3b8;
    font-size: 18px;
    line-height: 1.7;
    max-width: 650px;
    margin-bottom: 35px;
}

/* BOTÃO WHATSAPP */

.btn-whatsapp {
    display: inline-block;

    background-color: #22c55e;
    color: white;

    padding: 16px 26px;

    border-radius: 8px;

    text-decoration: none;
    font-weight: bold;

    transition: 0.3s;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 30px rgba(34, 197, 94, 0.25);
}

/* LADO DIREITO */

.contato-info {
    background-color: #111827;

    border: 1px solid #1e293b;
    border-radius: 15px;

    padding: 35px;
}

.contato-item {
    display: flex;
    align-items: center;

    gap: 20px;

    padding: 22px 0;

    border-bottom: 1px solid #1e293b;
}

.contato-item:last-child {
    border-bottom: none;
}

.contato-icone {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: rgba(56, 189, 248, 0.10);

    border-radius: 10px;

    font-size: 25px;
}

.contato-item span {
    display: block;

    color: #38bdf8;

    font-size: 18px;
    font-weight: bold;

    margin-bottom: 5px;
}

.contato-item p {
    color: #94a3b8;
    line-height: 1.5;
}
/* =========================
   RODAPÉ
========================= */

footer {
    background-color: #070d19;
    border-top: 1px solid #1e293b;

    padding: 70px 8% 0;
}

.footer-conteudo {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;

    gap: 70px;

    padding-bottom: 50px;
}

/* MARCA */

.footer-marca h2 {
    color: #38bdf8;

    font-size: 26px;

    margin-bottom: 15px;
}

.footer-marca p {
    color: #94a3b8;

    line-height: 1.7;

    max-width: 400px;
}

/* TÍTULOS */

.footer-links h3,
.footer-servicos h3 {
    font-size: 17px;

    margin-bottom: 20px;

    color: white;
}

/* LINKS */

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: #94a3b8;

    text-decoration: none;

    margin-bottom: 12px;

    transition: 0.3s;
}

.footer-links a:hover {
    color: #38bdf8;

    transform: translateX(5px);
}

/* SERVIÇOS */

.footer-servicos {
    display: flex;
    flex-direction: column;
}

.footer-servicos span {
    color: #94a3b8;

    margin-bottom: 12px;
}

/* PARTE FINAL */

.footer-final {
    border-top: 1px solid #1e293b;

    padding: 25px 0;

    text-align: center;
}

.footer-final p {
    color: #64748b;

    font-size: 14px;
}
/* =========================
   RESPONSIVIDADE - TABLET
========================= */

@media (max-width: 900px) {

    /* CABEÇALHO */

    header {
        padding: 20px 5%;
    }

    header h1 {
        font-size: 23px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 14px;
    }


    /* INÍCIO */

    #inicio {
        padding: 70px 5%;
    }

    #inicio h2 {
        font-size: 45px;
    }


    /* SERVIÇOS */

    #servicos {
        padding: 80px 5%;
    }

    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* PROJETOS */

    #projetos {
        padding: 80px 5%;
    }

    .projetos-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* SOBRE */

    #sobre {
        padding: 80px 5%;
    }

    .sobre-conteudo {
        grid-template-columns: 1fr;
        gap: 50px;
    }


    /* CONTATO */

    #contato {
        padding: 80px 5%;
    }

    .contato-conteudo {
        grid-template-columns: 1fr;
        gap: 50px;
    }


    /* RODAPÉ */

    footer {
        padding-left: 5%;
        padding-right: 5%;
    }

    .footer-conteudo {
        grid-template-columns: 1fr 1fr;
    }
}
/* =========================
   MENU MOBILE
========================= */

.menu-toggle {
    display: none;

    background: none;
    border: none;

    color: #38bdf8;

    font-size: 30px;
    cursor: pointer;
}


/* =========================
   RESPONSIVIDADE - CELULAR
========================= */

@media (max-width: 600px) {

    /* CABEÇALHO MOBILE */

header {
    position: relative;

    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    padding: 20px;
}

header h1 {
    font-size: 22px;
}

/* Mostra o botão ☰ */

.menu-toggle {
    display: block;

}
/* =========================
   AJUSTES DE LEITURA MOBILE
========================= */

.destaque {
    font-size: 12px;
    letter-spacing: 2px;
    line-height: 1.5;
}

.descricao {
    font-size: 16px;
    line-height: 1.7;
}

#inicio h2 {
    font-size: 38px;
    line-height: 1.15;
}

.btn-whatsapp,
.btn-secundario {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

/* Menu escondido inicialmente */

.menu {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;

    background-color: #111827;

    border-top: 1px solid #1e293b;

    padding: 25px 20px;

    flex-direction: column;
    align-items: center;

    gap: 20px;

    z-index: 1000;
}

/* Esta classe será ativada pelo JavaScript */

.menu.ativo {
    display: flex;
}

.menu a {
    font-size: 17px;

    }


    /* INÍCIO */

    #inicio {
        min-height: auto;

        padding: 70px 20px;
    }

    #inicio h2 {
        font-size: 38px;
    }

    .descricao {
        font-size: 17px;
    }

    .botoes {
        flex-direction: column;
    }

    .btn-principal,
    .btn-secundario {
        text-align: center;
    }


    /* SERVIÇOS */

    #servicos {
        padding: 70px 20px;
    }

    .servicos-titulo h2 {
        font-size: 34px;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
    }


    /* PROJETOS */

    #projetos {
        padding: 70px 20px;
    }

    .projetos-titulo h2 {
        font-size: 34px;
    }

    .projetos-grid {
        grid-template-columns: 1fr;
    }


    /* SOBRE */

    #sobre {
        padding: 70px 20px;
    }

    .sobre-texto h2 {
        font-size: 36px;
    }

    .sobre-destaques {
        grid-template-columns: 1fr;
    }


    /* CONTATO */

    #contato {
        padding: 70px 20px;
    }

    .contato-texto h2 {
        font-size: 38px;
    }

    .btn-whatsapp {
        width: 100%;
        text-align: center;
    }

    .contato-info {
        padding: 25px;
    }


    /* RODAPÉ */

    footer {
        padding: 60px 20px 0;
    }

    .footer-conteudo {
        grid-template-columns: 1fr;

        gap: 40px;
    }
}

/* =========================
   ANIMAÇÕES DE ENTRADA
========================= */

.animar {
    opacity: 0;
    transform: translateY(120px) scale(0.96);
    filter: blur(4px);

    transition:
        opacity 1.4s ease,
        transform 1.4s ease,
        filter 1.4s ease;
}

.animar.aparecer {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* =========================
   ANIMAÇÃO DOS CARDS
========================= */

.animar-card {
    opacity: 0;
    transform: translateY(70px) scale(0.95);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.animar-card.aparecer-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.servico-card:nth-child(1) {
    transition-delay: 0.1s;
}

.servico-card:nth-child(2) {
    transition-delay: 0.2s;
}

.servico-card:nth-child(3) {
    transition-delay: 0.3s;
}

.servico-card:nth-child(4) {
    transition-delay: 0.4s;
}

.servico-card:nth-child(5) {
    transition-delay: 0.5s;
}

.servico-card:nth-child(6) {
    transition-delay: 0.6s;
}

.projeto-card:nth-child(1) {
    transition-delay: 0.1s;
}

.projeto-card:nth-child(2) {
    transition-delay: 0.2s;
}

.projeto-card:nth-child(3) {
    transition-delay: 0.3s;
}

.projeto-card:nth-child(4) {
    transition-delay: 0.4s;
}

.projeto-card:nth-child(5) {
    transition-delay: 0.5s;
}

/* =========================
   CABEÇALHO AO ROLAR
========================= */

header.rolando {
    background-color: rgba(17, 24, 39, 0.96);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(10px);
}

/* =========================
   LINK ATIVO DO MENU
========================= */

.menu a.ativo {
    color: #38bdf8;
}

/* =========================
   WHATSAPP FLUTUANTE
========================= */

.whatsapp-flutuante {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #22c55e;
    color: white;

    font-size: 28px;

    text-decoration: none;

    border-radius: 50%;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.35);

    z-index: 999;

    transition: 0.3s;
}

.whatsapp-flutuante:hover {
    transform: translateY(-5px) scale(1.08);

    box-shadow:
        0 12px 30px rgba(34, 197, 94, 0.30);
}

/* =========================
   PULSAÇÃO DO WHATSAPP
========================= */

@keyframes pulsar-whatsapp {

    0% {
        box-shadow:
            0 0 0 0 rgba(34, 197, 94, 0.45),
            0 8px 25px rgba(0, 0, 0, 0.35);
    }

    70% {
        box-shadow:
            0 0 0 12px rgba(34, 197, 94, 0),
            0 8px 25px rgba(0, 0, 0, 0.35);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(34, 197, 94, 0),
            0 8px 25px rgba(0, 0, 0, 0.35);
    }
}

.whatsapp-flutuante {
    animation: pulsar-whatsapp 2.5s infinite;
}

/* =========================
   EFEITO NOS ÍCONES DOS SERVIÇOS
========================= */

.servico-card .icone {
    transition: transform 0.3s ease;
}

.servico-card:hover .icone {
    transform: scale(1.15);
}

/* =========================
   EFEITO NOS NÚMEROS DOS PROJETOS
========================= */

.projeto-numero {
    transition: transform 0.3s ease;
}

.projeto-card:hover .projeto-numero {
    transform: translateX(6px);
}

/* =========================
   EFEITO NAS TECNOLOGIAS
========================= */

.tecnologias span {
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease;
}

.tecnologias span:hover {
    background-color: #38bdf8;
    color: #0b1120;
    border-color: #38bdf8;

    transform: translateY(-3px);
}

/* =========================
   SETA DO BOTÃO DE SERVIÇOS
========================= */

.seta-botao {
    display: inline-block;
    margin-left: 8px;

    transition: transform 0.3s ease;
}

.btn-secundario:hover .seta-botao {
    transform: translateX(6px);
}

/* =========================
   ÍCONE DO WHATSAPP
========================= */

.whatsapp-flutuante svg {
    width: 34px;
    height: 34px;
    display: block;

    color: white;
    fill: white;

    position: relative;
    z-index: 2;
}

.whatsapp-flutuante svg path {
    fill: white;
}
/* =========================
   COMPROMISSOS CODEFLUX
========================= */

.sobre-confianca {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.confianca-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 16px;

    background-color: rgba(15, 23, 42, 0.55);
    border: 1px solid #1e293b;
    border-radius: 10px;

    transition: 0.3s ease;
}

.confianca-item span {
    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background-color: rgba(56, 189, 248, 0.12);
    color: #38bdf8;

    border-radius: 50%;

    font-size: 15px;
    font-weight: bold;
}

.confianca-item p {
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.4;
}

.confianca-item:hover {
    border-color: #38bdf8;
    transform: translateX(5px);
}

/* =========================
   LINKS DA ÁREA DE CONTATO
========================= */

.contato-link,
.contato-link:visited {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contato-link:hover {
    color: #34c1fd;
}

.contato-link:active {
    color: #38bdf8;
}

/* COR NORMAL DOS LINKS */
.contato-link,
.contato-link:visited {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* WHATSAPP - VERDE AO PASSAR O MOUSE */
.whatsapp-link:hover {
    color: #25d366;
    text-shadow: 0 0 8px rgba(37, 211, 102, 0.8);
    font-weight: 600;
}

/* E-MAIL - AZUL AO PASSAR O MOUSE */
.email-link:hover {
    color: #38bdf8;
}

/* =========================
   LOGO CODEFLUX - CABEÇALHO
========================= */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    width: 59px;
    height: 59px;
    object-fit: contain;
    transition: transform 0.9s ease;
}

.logo h1 {
    margin: 0;
    color: #ffffff;
}

.logo:hover img {
    transform: scale(2.08);
}

/* =========================
   BOTÃO WHATSAPP DO INÍCIO
========================= */

#inicio .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 0 26px;

    background: #22c55e;
    color: #ffffff;

    border: 1px solid #22c55e;
    border-radius: 8px;

    text-decoration: none;
    font-weight: 600;
    font-size: 16px;

    transition: all 0.3s ease;
}

#inicio .btn-whatsapp:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;

    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.30);
}