/* Variáveis de Cores e Fontes */
:root {
    --primary-color: #007bff;
    /* Azul forte para destaque */
    --secondary-color: #6c757d;
    /* Cinza para elementos secundários */
    --dark-bg: #1a1a2e;
    /* Fundo escuro principal, inspirado no espaço/tecnologia */
    --card-bg: #2c2c4d;
    /* Fundo dos cards, um pouco mais claro que o dark-bg */
    --light-text: #e0e0e0;
    /* Texto claro para contraste */
    --gray-text: #b0b0d0;
    /* Texto cinza suave para detalhes */
    --hover-effect: #0056b3;
    /* Cor do hover para botões */
    --heading-font: 'Roboto', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --logo-spacing: 2px;
    --logo-img-height: 100px;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Rolagem suave ao clicar nos links do menu */
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--light-text);
    background-color: var(--dark-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;

}

#container-contact {
    text-align: center;
}

/* Estilo para títulos */
h1,
h2,
h3 {
    font-family: var(--heading-font);
    color: var(--light-text);
    margin-bottom: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

p {
    margin-bottom: 15px;
    color: var(--gray-text);
}

/* Botões */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 10px 5px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-primary:hover {
    background-color: var(--hover-effect);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    margin: 5px 0;
}

/* Header */
.header {
    background-color: var(--dark-bg);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

/* Estilos do contentor interno */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    /* Garante que os elementos só fiquem visíveis após a animação */
}

.logo-icon img {
    height: 30px;
    width: 100%;
    /* Esta é a imagem do seu logo, mas pode ser um SVG se quiser */
    background-image: url('/img/TE.png');
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease-in-out;
    transform-origin: left;

    /* Animação para o ícone */
    animation: slideInLeft 0.8s ease-out forwards;
}

/* Contêiner de texto com animação */
.logo-text-animated {
    color: #fff;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.8s ease-out forwards;
    animation-delay: 0.3s;
    /* Atraso para o texto aparecer depois do ícone */
    opacity: 0;
    /* Começa invisível */
}

/* Definição das animações */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.logo-text-animated h1 {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    padding: 0;
}

.logo-text-animated p {
    font-size: 14px;
    font-weight: normal;
    margin: 0;
    padding: 0;
}

.content {
    padding: 2rem;
    text-align: center;
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    margin-left: 35px;
}

.nav-list a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    /* Adicionado estado ativo */
    width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 2em;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: url('../img/banner.png') no-repeat center center/cover;
    /* Certifique-se que 'hero-bg.jpg' existe na pasta 'img/' */
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    position: relative;
    padding-top: 100px;
    /* Para acomodar o header fixo */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Overlay escuro */
}

.hero .container {
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Para quebrar em telas menores */
    gap: 40px;
    padding: 60px 25px;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.hero-main-text {
    flex: 2;
    min-width: 300px;
}

.hero-main-text h1 {
    font-size: 3em;
    margin-bottom: 25px;
    animation: fadeInDown 1s ease-out;
}

.hero-main-text p {
    font-size: 1.3em;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
    max-width: 600px;
    color: var(--gray-text);
}

.hero-actions {
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

.hero-skills-box {
    flex: 1;
    min-width: 280px;
    background-color: rgba(44, 44, 77, 0.9);
    /* card-bg com transparência */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: fadeInRight 1s ease-out 1.2s forwards;
    opacity: 0;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.hero-skills-box h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8em;
}

.hero-skills-box ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hero-skills-box .skill-tag {
    background-color: #3a3a5e;
    /* Um tom mais escuro para os tags */
    color: var(--light-text);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9em;
    border: 1px solid #4a4a6e;
    transition: background-color 0.3s ease;
}

.hero-skills-box .skill-tag:hover {
    background-color: #4a4a7e;
    transform: scale(1.05);
}

/* Animações */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Seções Padrão */
section {
    padding: 40px 0;
    position: relative;
    /* Para animações de scroll */
    overflow: hidden;
    /* Evita que conteúdo animado saia da tela */
}

/* Animação genérica ao rolar */
.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-on-scroll.fade-in-active {
    opacity: 1;
    transform: translateY(0);
}


/* Sobre Nós */
.about {
    text-align: center;
    background-color: var(--card-bg);
    /* Fundo um pouco mais claro */
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    color: var(--gray-text);
    text-align: center;
}

/* Serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid #3c3c6d;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card .service-icon {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95em;
    color: var(--gray-text);
    min-height: 90px;
    /* Para manter a altura consistente */
}

/* Portfólio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.portfolio-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    border: 1px solid #3c3c6d;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    /* Altura fixa para as imagens */
    object-fit: cover;
    /* Recorta a imagem para cobrir a área */
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
    /* Zoom na imagem ao passar o mouse */
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--light-text);
}

.portfolio-info p {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--gray-text);
}

/* Depoimentos */
.testimonials {
    background-color: #242440;
    /* Um tom ligeiramente diferente para esta seção */
}

.testimonial-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.testimonial-image {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--primary-color);
}

.testimonial-image img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
    /* Suaviza a imagem */
}

.testimonial-grid {
    flex: 2;
    min-width: 300px;
    display: grid;
    grid-template-columns: 1fr;
    /* Um card por linha na grid */
    gap: 30px;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    position: relative;
    border: 1px solid #3c3c6d;
}

.testimonial-card::before {
    content: '“';
    /* Aspas decorativas */
    font-family: serif;
    font-size: 4em;
    color: rgba(0, 123, 255, 0.3);
    /* Cor suave */
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
    z-index: 0;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.15em;
    margin-bottom: 20px;
    color: var(--light-text);
    position: relative;
    /* Para que o texto fique acima das aspas */
    z-index: 1;
}

.testimonial-card cite {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1em;
    position: relative;
    z-index: 1;
}


/* Contato */
.contact {
    background-color: var(--dark-bg);
}

.contact-form {
    max-width: 700px;
    margin: 50px auto 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid #3c3c6d;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 15px;
    border: 1px solid #4a4a6e;
    border-radius: 8px;
    background-color: #34345c;
    color: var(--light-text);
    font-size: 1.05em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    align-self: flex-start;
    /* Alinha o botão à esquerda no formulário */
    margin-left: 0;
    margin-top: 15px;
}

.contact-info {
    margin-top: 40px;
    font-size: 1.2em;
    color: var(--gray-text);
    text-align: center;
}

.contact-info p {
    margin-bottom: 12px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 12px;
}

.cta-whatsapp-grande {
    /* Garante que o contêiner centralize o botão */
    text-align: center;
    margin: 30px 0;
    /* Espaço acima e abaixo do botão */
}

.btn-whatsapp-cta {
    /* Aparência do Botão */
    display: inline-block;
    background-color: #25D366;
    /* Cor Verde WhatsApp */
    color: #ffffff;
    /* Texto Branco */
    padding: 15px 30px;
    border-radius: 8px;
    /* Cantos Arredondados */
    text-decoration: none;
    /* Remove sublinhado do link */
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 0.5px;

    /* Sombra para dar destaque */
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);

    /* Efeito de Transição (Melhora a experiência ao passar o mouse) */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;

    /* Adiciona uma margem entre o ícone e o texto */
    display: flex;
    /* Para alinhar o ícone e o texto */
    align-items: center;
    /* Centraliza verticalmente */
    justify-content: center;
    /* Centraliza horizontalmente */
    max-width: 400px;
    /* Limita o tamanho máximo em desktops */
    margin-left: auto;
    margin-right: auto;
}

.btn-whatsapp-cta:hover {
    /* Efeito ao passar o mouse (Hover) */
    background-color: #128C7E;
    /* Verde mais escuro no hover */
    box-shadow: 0 6px 15px rgba(18, 140, 126, 0.6);
    transform: translateY(-2px);
    /* Efeito de "levantar" um pouco */
}

.btn-whatsapp-cta i {
    /* Estilo do Ícone do WhatsApp */
    font-size: 1.3em;
    margin-right: 10px;
    /* Espaço entre o ícone e o texto */
}


/* Footer */
.footer {
    background-color: #10101d;
    /* Fundo mais escuro para o footer */
    padding: 35px 0;
    text-align: center;
    font-size: 0.95em;
    border-top: 1px solid #30304a;
}

.footer p {
    margin-bottom: 20px;
    color: var(--gray-text);
}

.social-links a {
    color: var(--light-text);
    font-size: 1.8em;
    margin: 0 12px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}

/* =================== */
/* Seção Processo      */
/* =================== */
.process {
    background-color: var(--card-bg);
    /* Use a cor de fundo dos cards */
    padding: 80px 0;
    text-align: center;
}

.process h2 {
    color: var(--light-text);
    margin-bottom: 20px;
}

.process-intro {
    font-size: 1.1em;
    color: var(--gray-text);
    /* Use a cor de texto cinza */
    max-width: 800px;
    margin: 0 auto 50px;
}

.process-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.step {
    background-color: var(--dark-bg);
    /* Fundo escuro para os passos */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Sombra mais escura */
    padding: 30px 0;
    text-align: center;
    width: 200px;
    /* Largura fixa para cada passo */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #3c3c6d;
    /* Borda sutil */
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.step-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    /* Cor primária para os ícones */
    margin-bottom: 15px;
}

.step h3 {
    font-size: 1.3em;
    color: var(--light-text);
    /* Título claro */
    margin-bottom: 10px;
}

.step p {
    font-size: 0.95em;
    color: var(--gray-text);
    /* Texto cinza suave */
}

/* =================== */
/* Seção Tecnologias   */
/* =================== */
.technologies {
    background-color: var(--dark-bg);
    text-align: center;
}

.technologies h2 {
    color: var(--light-text);

}

.tech-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
}

.tech-card i {
    font-size: 4em;
    color: var(--primary-color);
    /* Cor primária para os ícones */
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.tech-card i:hover {
    color: var(--hover-effect);
    /* Cor do hover para o efeito */
}

.tech-card p {
    font-size: 1em;
    font-weight: bold;
    color: var(--light-text);
    /* Texto claro */
}



@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-main-text {
        order: 2;
        text-align: center;
    }

    .hero-main-text h1 {
        font-size: 2em;
        text-align: center;
    }

    .hero-main-text p {
        font-size: 1.1em;
        max-width: 100%;
    }

    .hero-actions {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-skills-box {
        order: 1;
        margin-bottom: 40px;
        width: 100%;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
        padding: 20px 0;
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
        border-top: 1px solid rgba(0, 123, 255, 0.3);
    }

    .nav-list.active {
        display: flex;
        max-height: 350px;
    }

    .nav-list li {
        margin: 12px 0;
        text-align: center;
    }

    .nav-list a::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .about-content {
        font-size: 1em;
    }


    .service-card p {
        min-height: auto;
    }

    .testimonial-content {
        flex-direction: column;
    }

    .testimonial-image {
        min-width: unset;
        width: 80%;
    }
}

@media (max-width: 768px) {
    .hero-skills-box {
        padding: 25px;
    }


    h1,
    .hero-main-text h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.2em;
    }

    p {
        font-size: 0.9em;
    }
}

@media (max-width: 576px) {
    section {
        padding: 10px 0;
    }

    .container {
        align-items: center;
        padding: 0 10px;
    }

    .tech-grid {
        flex-wrap: wrap;
        gap: 25px;
    }


    .logo-text-animated h1 {
        font-size: 1.2em;
    }

    .hero-main-text p {
        font-size: 1em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    .hero-actions .btn {
        margin: 5px;
    }

    .hero-skills-box {
        padding: 20px;
    }

    .hero-skills-box h3 {
        font-size: 1.5em;
    }

    .service-card {
        padding: 35px 0;
    }

    .service-card .service-icon {
        font-size: 3em;
    }

    .portfolio-item img {
        height: 180px;
    }

    .contact-form {
        margin-top: 30px;
    }

    .contact-info {
        font-size: 1em;
    }

    .btn-whatsapp-cta {
        /* Permite que o botão ocupe quase toda a largura em mobile */
        width: 90%;
        padding: 15px 15px;
        font-size: 1em;
    }
}