/* =================================================================
   1. VARIÁVEIS
   ================================================================= */
:root {
    --color-bg: #F8F9FA;
    --color-text: #111111;
    --color-text-secondary: #6c757d;
    --color-accent: #00BFFF;
    --color-border: #dee2e6;
    --color-blob: #00BFFF;
    --font-main: 'Sora', sans-serif;
}

/* =================================================================
   2. RESET E GLOBAIS
   ================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =================================================================
   3. TIPOGRAFIA
   ================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.services-section h2, .process-section h2, .portfolio-section h2 {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 60px;
}

p {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* =================================================================
   4. CABEÇALHO E NAVEGAÇÃO
   ================================================================= */
.main-header {
    padding: 25px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

.main-header.scrolled {
    background-color: rgba(248, 249, 250, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo, .main-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 700;
}

.main-nav {
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.4s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Estilo específico para o Logo no Cabeçalho (ATUALIZAÇÃO) */
.nav-logo {
    font-size: 1.5rem; /* Deixa a letra maior */
}

.nav-logo span {
    color: var(--color-accent); /* Colore o ponto com sua cor de destaque (azul) */
}

/* =================================================================
   5. SEÇÃO HERO
   ================================================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    /* Ajustes para garantir que o canvas ocupe 100% da largura e altura do hero */
    width: 100%; 
    height: 100%; /* Garante que o hero ocupe a viewport height */
}

#hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Certifica-se de que o canvas não afete o scroll */
    display: block; 
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-section h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    max-width: 1000px;
    line-height: 1.2;
    margin: 0 auto 40px auto;
    letter-spacing: -0.03em;
}

#blob {
    background-image: linear-gradient(180deg, var(--color-blob), #87CEEB);
    height: 300px;
    width: 300px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(80px); /* Reduzindo o blur para menos peso */
    transition: transform 0.15s ease-out;
    will-change: transform; /* Adicionado para otimização */
}

.cta-button {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text);
    background-color: transparent;
    border: 2px solid var(--color-border);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.2);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid var(--color-text-secondary);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 5px;
    height: 5px;
    background-color: var(--color-text-secondary);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    opacity: 1;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    to {
        opacity: 0;
        top: 25px;
    }
}

/* =================================================================
   6. SEÇÃO DE SERVIÇOS
   ================================================================= */
.services-section {
    padding: 120px 0;
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    padding: 35px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* =================================================================
   7. SEÇÃO DE PROCESSO (VERSÃO FINAL E ANIMADA)
   ================================================================= */
.process-section {
    padding: 120px 0;
    background-color: var(--color-bg);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Grade de 4 colunas */
    gap: 40px;
    position: relative;
}

.process-step {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    position: relative;
    /* Adicionada a transição da borda para a animação */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Linha do Tempo (Conector) */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 60px; /* Alinha verticalmente com o centro do ícone */
    right: -40px; /* Metade do 'gap' para se posicionar entre os cards */
    width: 40px; /* O tamanho do 'gap' */
    height: 2px;
    background-image: linear-gradient(to right, var(--color-border) 60%, transparent 40%);
    background-size: 10px 2px;
    background-repeat: repeat-x;
    z-index: 0;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.process-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    color: var(--color-accent); /* Cor do ícone */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.process-step:hover .process-icon {
    background-color: var(--color-accent);
    color: #fff;
}

.process-icon svg {
    width: 28px;
    height: 28px;
}

.process-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.process-step p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* Estilo para o passo destacado pela animação automática */
.process-step.is-highlighted {
    border-color: var(--color-accent); /* Borda fica azul */
    transform: translateY(-8px); /* Efeito de levantar, igual ao hover */
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1); /* Sombra, igual ao hover */
}

.process-step.is-highlighted .process-icon {
    background-color: var(--color-accent); /* Ícone fica azul */
    color: #fff; /* Símbolo dentro do ícone fica branco */
}


/* Responsividade para a seção de processo */
@media (max-width: 992px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em tablets */
        gap: 30px 60px; /* Ajusta o espaçamento */
    }
    /* Esconde a linha nos itens que quebram a linha */
    .process-step:nth-child(2)::after {
        display: none;
    }
    .process-step:not(:last-child)::after {
        right: -60px;
        width: 60px;
    }
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr; /* 1 coluna em mobile */
        gap: 30px;
    }
    /* Esconde completamente a linha do tempo em mobile */
    .process-step:not(:last-child)::after {
        display: none;
    }
}

/* =================================================================
   8. SEÇÃO DE PROJETOS (ATUALIZADA PARA O CARROSSEL)
   ================================================================= */
.portfolio-section {
    padding: 120px 0;
    background-color: #fff;
    position: relative;
}

.project-swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 60px;
    /* Ajustes para o tamanho do card no carrossel */
    --swiper-navigation-size: 32px; /* Ajusta o tamanho das setas de navegação, se necessário */
    overflow: hidden; /* Garante que o conteúdo que extrapola o carrossel seja escondido */
}

.swiper-slide {
    width: 350px; /* Largura padrão para um card. Ajuste este valor conforme necessário. */
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.project-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.project-card-image {
    width: 100%;
    padding-top: 65%;
    position: relative;
    overflow: hidden;
}

.project-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 5px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.project-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    font-size: 0.8rem;
    background-color: var(--color-border);
    padding: 4px 12px;
    border-radius: 20px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-text);
    top: auto;
    bottom: 5px;
    height: 44px;
}

.swiper-button-prev {
    left: calc(50% - 60px);
}

.swiper-button-next {
    right: calc(50% - 60px);
}

/* =================================================================
   9. SEÇÃO DE CONTATO (ATUALIZADA COM FORMULÁRIO)
   ================================================================= */
.contact-section {
    padding: 120px 0;
    background-color: var(--color-bg);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    align-items: center;
}

.contact-text {
    flex: 1;
    min-width: 300px;
}

.contact-text h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

.contact-text p {
    font-size: 1.1rem;
    max-width: 45ch;
}

.contact-text a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 700;
}

.contact-form-wrapper {
    flex: 1.2;
    min-width: 300px;
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.2);
}

.submit-button {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background-color: var(--color-text);
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* =================================================================
   10. ANIMAÇÕES E RESPONSIVIDADE (COM AJUSTES GERAIS)
   ================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .contact-container {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .services-section,
    .process-section,
    .portfolio-section,
    .contact-section {
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .contact-text {
        text-align: center;
    }

    .contact-text h2 {
        font-size: 2rem;
    }

    .contact-text p {
        margin: 0 auto;
    }

    /* Ajustes para o carrossel em telas menores */
    .swiper-slide {
        width: 85%; /* Em telas menores, o slide ocupa 85% da largura da tela */
    }
}

@media (max-width: 480px) {
    .swiper-slide {
        width: 95%; /* Em telas muito pequenas, o slide pode ocupar quase toda a largura */
    }
}
/* =================================================================
   11. PÁGINA DE PLANOS (VERSÃO FINAL E ATUALIZADA)
   ================================================================= */
.plans-section {
    padding: 140px 0 120px 0;
    min-height: 80vh;
}

.plans-title {
    text-align: center;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

.plans-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.plan-card {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.plan-card.popular {
    border-color: var(--color-accent);
    border-width: 2px;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.plan-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    color: var(--color-accent);
}

.plan-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.plan-name {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.plan-description {
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    flex-grow: 1;
}

.plan-price {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.plan-price strong {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
}

.plan-cta {
    width: 100%;
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.plan-cta:hover {
    background-color: #333;
    color: var(--color-bg);
}

.extras-section {
    margin-top: 80px;
    text-align: center;
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.extras-section h3 {
    margin-bottom: 20px;
}

.extras-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px;
}

.extras-section ul li {
    color: var(--color-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.extras-section ul li svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-accent);
    stroke-width: 3;
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================================================
   13. MENU MOBILE (VERSÃO COMPLETA E CORRIGIDA)
   ================================================================= */

.hamburger-menu {
    display: none; /* Escondido por padrão no desktop */
    width: 30px;
    height: 22px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.hamburger-menu .bar:nth-child(1) {
    top: 0;
}

.hamburger-menu .bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu .bar:nth-child(3) {
    bottom: 0;
}

.mobile-nav {
    display: none; /* Alterado para none para evitar renderização desnecessária */
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100%;
    background-color: #fff;
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1001;
    padding: 20px;
}

.mobile-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ESTADOS ATIVOS (QUANDO O MENU ESTÁ ABERTO) */

.mobile-nav.is-active {
    right: 0;
}

/* Animação dos links aparecendo */
.mobile-nav.is-active a {
    opacity: 1;
    transform: translateY(0);
}
.mobile-nav.is-active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.is-active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.is-active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.is-active a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.is-active a:nth-child(5) { transition-delay: 0.3s; }


.hamburger-menu.is-active .bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu.is-active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.is-active .bar:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}


/* REGRAS DE RESPONSIVIDADE */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* Esconde o menu de desktop */
    }
    .hamburger-menu {
        display: block; /* Mostra o botão hambúrguer */
    }
    .mobile-nav {
        display: flex; /* Permite que o menu mobile seja exibido */
    }
}
/* =================================================================
   14. SEÇÃO DE DEPOIMENTOS (VERSÃO COMPACTA)
   ================================================================= */

.testimonials-section {
    padding: 120px 0;
    background-color: var(--color-bg);
}

.testimonials-section h2 {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 60px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1000px; /* Adicionado para centralizar o grid */
    margin: 0 auto;    /* Adicionado para centralizar o grid */
}

.testimonial-card {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 30px; /* Reduzido de 40px */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-size: 1rem; /* Reduzido de 1.1rem */
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 25px; /* Reduzido de 30px */
    font-style: italic;
}

.testimonial-text::before {
    content: '“';
    font-size: 2.5rem; /* Reduzido de 3rem */
    color: var(--color-accent);
    font-weight: 700;
    display: block;
    margin-bottom: -15px; /* Ajustado */
    margin-left: -5px;   /* Ajustado */
}

.testimonial-author {
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

.author-name {
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.author-info {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
}
/* =================================================================
   15. AJUSTES NO HERO SECTION
   ================================================================= */

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 650px; /* Limita a largura para melhor legibilidade */
    margin: -15px auto 40px auto; /* Margem negativa para aproximar do título */
    line-height: 1.7;
}

/* Ajuste para o subtítulo em telas menores */
@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1rem;
        margin-top: -10px;
    }
}
/* =================================================================
   16. HUMANIZAÇÃO DA SEÇÃO DE CONTATO
   ================================================================= */

.contact-text > p {
    font-size: 1.1rem;
    max-width: 45ch;
    margin-bottom: 30px; /* Adiciona espaço antes do card */
}

.author-bio {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #fff;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    max-width: 450px;
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.07);
}

.author-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent);
    flex-shrink: 0; /* Impede que a foto encolha */
}

.author-text h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--color-text);
}

.author-text p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.author-text a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 700;
}

.author-text a:hover {
    text-decoration: underline;
}


/* Ajuste para mobile */
@media (max-width: 480px) {
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
}
/* =================================================================
   17. RODAPÉ (VERSÃO FINAL COMPACTA E ALINHADA)
   ================================================================= */
.main-footer {
    background: linear-gradient(to bottom, #222, var(--color-text) 250px);
    padding: 60px 0 0 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.footer-bg-element {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 15% 20%, rgba(0, 191, 255, 0.08) 0%, transparent 40%);
    opacity: 0.5;
}

.footer-content-final {
    position: relative;
    z-index: 2;
    display: flex; /* LAYOUT HORIZONTAL */
    justify-content: space-between; /* ESQUERDA E DIREITA */
    align-items: center; /* ALINHAMENTO VERTICAL PERFEITO */
    padding-bottom: 40px; /* Espaçamento inferior */
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand .footer-logo {
    font-size: 1.5rem; /* Um pouco mais sutil */
    color: #fff;
    margin: 0 0 5px 0;
}

.footer-logo span {
    color: var(--color-accent);
}

.footer-brand p {
    opacity: 0.6;
    margin: 0;
    font-size: 0.9rem;
}

.footer-social-icons {
    display: flex;
    gap: 12px; /* Ícones mais próximos */
}

.social-icon {
    width: 42px; /* Tamanho ajustado */
    height: 42px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Responsividade para o layout final */
@media (max-width: 768px) {
    .main-footer {
        padding-top: 30px;
    }
    .footer-content-final {
        flex-direction: column; /* No mobile, empilha */
        justify-content: center; /* e centraliza */
        text-align: center;
        gap: 25px;
        padding-bottom: 30px;
    }
}