/* Importação de Fontes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@300;400&display=swap');

/* ================================== */
/* 1. VARIÁVEIS E RESET GERAL         */
/* ================================== */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-bg: #1a1a2e;
    --light-bg: #272740;
    --text-light: #e0e0e0;
    --text-dark: #333333;
    --accent-color: #3f90ff;
    --border-color: #3b3b55;
    --box-shadow-dark: rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100%;
    background-image: linear-gradient(rgba(26, 26, 46, 0.95), rgba(26, 26, 46, 0.95)), url('images/background-sobre.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

main,
footer {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.8rem; margin-bottom: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ================================== */
/* 2. HELPERS GLOBAIS (BOTÕES, GRADIENTES) */
/* ================================== */

.button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.primary-button {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    text-decoration: none;
}

.primary-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.highlight-gradient {
    background: linear-gradient(90deg, #4A90E2, #9a7cff, #4A90E2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-flow 4s ease infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInFromBottom {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================== */
/* 3. HEADER E NAVEGAÇÃO (REFATORADO)   */
/* ================================== */

header {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: transparent;
    backdrop-filter: none;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

header.scrolled {
    background-color: rgba(39, 39, 64, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: var(--text-light);
    font-weight: 600;
    padding-bottom: 5px;
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    text-decoration: none !important;
}

.cta-nav {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.0) !important;
    border: none !important;
    color: var(--text-light) !important;
    border-radius: 8px;
    padding: 10px 22px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-nav::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(90deg, #4A90E2, #9a7cff, #4A90E2);
    background-size: 200% 200%;
    animation: gradient-flow 4s ease infinite;
    z-index: -1;
    border-radius: 8px;
}

.cta-nav:hover {
    color: white !important;
    background-color: #4A90E2 !important;
    box-shadow: 0 0 15px 3px rgba(74, 144, 226, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}

.cta-nav:hover::after {
    display: none;
}

.menu-toggle {
    display: none;
}

/* ================================== */
/* 4. SEÇÃO HERO (REFATORADA)         */
/* ================================== */

.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: auto;
}

#hero #hero-h1 {
    font-size: 3.5rem;
    animation: fadeInFromBottom 0.6s ease-out 0.2s;
    animation-fill-mode: backwards;
}

#hero #hero-p {
    font-size: 1.2rem;
    color: #c5cde0;
    margin-bottom: 30px;
    animation: fadeInFromBottom 0.6s ease-out 0.4s;
    animation-fill-mode: backwards;
}

#hero #hero-p em {
    font-style: italic;
    color: white;
}

#hero .hero-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 35px;
    animation: fadeInFromBottom 0.6s ease-out 0.6s;
    animation-fill-mode: backwards;
}

#hero .hero-button i {
    color: white;
    margin-right: 8px;
    font-weight: 900;
}

#hero .hero-button {
    background-color: rgba(74, 144, 226, 0.15);
    border: 1px solid rgba(74, 144, 226, 0.5);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

#hero .hero-button:hover {
    background-color: rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.8);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 0 15px 3px rgba(74, 144, 226, 0.4),
                0 4px 10px rgba(0, 0, 0, 0.5);
}

#hero .hero-button:hover i {
    transform: scale(1.1) rotate(-3deg);
    transition: transform 0.2s ease-out;
}

#hero .hero-button:active {
    transform: translateY(0);
    box-shadow: none;
}

#hero .hero-response-container {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    transform: translateY(20px);
    margin-top: 40px;
    padding: 25px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(74, 144, 226, 0.6);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

#hero .hero-response-container.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#hero #response-text {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #f0f0f0;
}

#hero #response-text strong {
    color: #4A90E2;
    font-weight: 700;
}

/* ================================== */
/* 5. SEÇÃO "SOBRE" (REFATORADA)      */
/* ================================== */

#sobre {
    padding-top: 60px;
}

#sobre h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
}

.about-container {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    background-color: rgba(39, 39, 64, 0.5);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px var(--box-shadow-dark);
}

.about-text-content {
    flex-basis: 60%;
    position: relative;
    min-height: 250px;
}

.about-text-block {
    opacity: 0;
    position: absolute;
    transition: opacity 0.4s ease-in-out;
    visibility: hidden;
    pointer-events: none;
}

.about-text-block.active {
    opacity: 1;
    position: relative;
    visibility: visible;
    pointer-events: auto;
}

.about-text-content h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-text-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.about-skills-list {
    flex-basis: 40%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.skill-item span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-light);
}

.skill-item:hover {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
    transform: translateX(10px);
}

.skill-item:hover i {
    transform: scale(1.2) rotate(-5deg);
}

/* ================================== */
/* 6. SEÇÃO "SERVIÇOS" (REFATORADA)   */
/* ================================== */

.services-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.services-section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.service-card-container {
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.service-card-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}

.service-card-container:hover .service-card-flipper {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-color: rgba(39, 39, 64, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--box-shadow-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
}

.card-front i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.card-front h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.card-front p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.card-back {
    transform: rotateY(180deg);
    align-items: flex-start;
    text-align: left;
}

.card-back h4 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.card-back ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.card-back ul li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 20px;
}

.card-back ul li::before {
    content: '✓';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.card-back .cta-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: white;
    background-color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 5px;
    position: absolute;
    bottom: 30px;
    right: 30px;
}

/* ================================== */
/* 7. PORTFÓLIO (VERSÃO FINAL E LIMPA) */
/* ================================== */

.portfolio-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.portfolio-section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.portfolio-section .section-subtitle {
    margin-bottom: 4rem;
}

.portfolio-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 3rem;
    display: none;
}

.nav-button {
    background-color: var(--dark-bg);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-button:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.4);
}

/* Estrutura de Cada Item do Portfólio */
.portfolio-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;

    /* A CORREÇÃO ESSENCIAL: Garante que o pai ocupe o espaço */
    width: 100%;

    /* Gerenciamento de visibilidade (JS) */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    height: 0;
    overflow: hidden;
    padding: 0;
    border: none;
}

.portfolio-item.active {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    overflow: visible;
    padding: 40px;
    background-color: rgba(39, 39, 64, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--box-shadow-dark);
}

/* Coluna de Detalhes (Esquerda) */
.project-details {
    flex: 1;
    max-width: 50%;
    /* A CORREÇÃO ESSENCIAL: Impede que encolha */
    flex-shrink: 0;
}

.project-tag {
    display: inline-block;
    background-color: rgba(74, 144, 226, 0.2);
    color: var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-details h3 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.project-overview h4,
.project-features h4 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.project-overview p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.project-features ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.project-features ul li {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.project-features ul li i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.project-cta {
    display: inline-block;
    margin-top: 3rem;
    padding: 12px 25px;
    font-size: 1.1rem;
    text-decoration: none;
    background-color: var(--accent-color);
    color: var(--text-dark);
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.project-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.5);
}

/* Coluna de Demonstração (Direita) */
.project-demo-wrapper {
    flex: 1;
    max-width: 50%;
    position: relative;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--box-shadow-dark);
    border: 1px solid var(--border-color);
    padding: 15px 15px 0 15px;
    height: 60vh;
    max-height: 550px;
    overflow-y: hidden;
    /* A CORREÇÃO ESSENCIAL: Impede que encolha */
    flex-shrink: 0;
}

.project-mockup {
    width: 100%;
    display: block;
    object-position: top;
    transform: translateY(0%);
    transition: transform 1s ease-in-out;
}

/* --- Indicador de Rolagem (REFATORADO com Animação de Chevron) --- */

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px; /* Ajustado para caber só o ícone */
    border-radius: 20px;
    /* display: flex; será controlado pelo JS */
    display: none; /* JS controla */
    align-items: center;
    justify-content: center; /* Centraliza o ícone */
    gap: 8px; /* Mantido caso adicione algo depois */
    z-index: 10;
    opacity: 0;
    /* Remove a animação fadePulse daqui */
    /* transition: opacity 0.3s ease; será controlado pelo JS */
}

/* Estilo e Animação do ÍCONE */
.scroll-indicator i {
    font-size: 1rem; /* Tamanho do ícone */
    animation: bounce-down 1.5s infinite ease-in-out; /* Nova animação */
}

/* Keyframes para a animação "bounce" */
@keyframes bounce-down {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(5px); /* Move para baixo */
    }
    60% {
        transform: translateY(2px); /* Move um pouco para baixo */
    }
}

/* ================================== */
/* RESPONSIVIDADE DO PORTFÓLIO        */
/* ================================== */

/* Tablets */
@media (max-width: 992px) {
    .portfolio-item.active {
        flex-direction: column;
        padding: 30px;
    }

    .project-details,
    .project-demo-wrapper {
        max-width: 100%;
    }

    .project-demo-wrapper {
        margin-top: 30px;
        height: 50vh;
        max-height: 450px;
    }
}

/* Celulares Menores */
@media (max-width: 576px) {
    .portfolio-section h2 {
        font-size: 2.2rem;
    }
    .project-details h3 {
        font-size: 1.8rem;
    }
    .project-cta {
        width: 100%;
        text-align: center;
    }
}

/* ================================== */
/* 8. SEÇÃO DE CONTATO (FORMULÁRIO)   */
/* ================================== */

.form-section {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.contact-form {
    max-width: 800px;
    margin: 2rem auto 0 auto;
    background-image: linear-gradient(rgba(39, 39, 64, 0.92), rgba(39, 39, 64, 0.92)), url('images/background-sobre.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--box-shadow-dark);
    border: 1px solid var(--border-color);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-light);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

.budget-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px; /* Altura da barra */
    background: var(--dark-bg); /* Cor de fundo da barra */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    outline: none;
}

/* Estilo do "Thumb" (a bolinha) para Chrome/Edge/Safari */
.budget-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px; /* Largura da bolinha */
    height: 24px; /* Altura da bolinha */
    background: var(--accent-color); /* Cor da bolinha */
    border-radius: 50%;
    border: 3px solid var(--dark-bg); /* Borda interna para efeito */
    cursor: pointer;
    transition: transform 0.2s ease;
}
.budget-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1); /* Efeito de crescer no hover */
}

/* Estilo do "Thumb" para Firefox */
.budget-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--dark-bg);
    cursor: pointer;
    transition: transform 0.2s ease;
}
 .budget-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

/* Remove estilos padrão do Firefox */
 .budget-slider::-moz-range-track {
    background: transparent;
    border: none;
}
.budget-slider::-moz-focus-outer {
     border: 0; /* Remove borda de foco no Firefox */
}

#verba-valor {
    color: var(--primary-color);
    font-weight: bold;
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}
.form-submit-button {
    width: 100%; /* Faz o botão ocupar a largura total do form */
    /* Outros ajustes se precisar (ex: margin-top) */
    margin-top: 1rem; /* Adiciona um espaço acima do botão */
}

/* 9. FOOTER (REFATORADO)             */

footer {
    background-color: var(--dark-bg);
    padding: 60px 0 20px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
    align-items: flex-start;
}

.footer-column h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.tagline {
    color: var(--secondary-color);
    font-size: 0.9rem;
    max-width: 250px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 0;
    align-items: flex-start;
}

.footer-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-nav a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.footer-nav a span {
    transition: transform 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-nav a:hover i {
    transform: scale(1.2) rotate(10deg);
}

.footer-nav a:hover span {
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0 20px;
}

/* --- ESTILOS DO NOVO BOTÃO CTA DO FOOTER --- */

.footer-cta-column {
    /* Alinha o botão um pouco melhor verticalmente */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Ou center se preferir */
}

.footer-cta-column h4 {
    margin-bottom: 1rem; /* Espaço entre título e botão */
}

/* Estilo do Botão (Reutilizando e adaptando o .project-cta) */
.footer-cta-button {
    /* Herda de .button, mas customizamos */
    padding: 10px 20px; /* Um pouco menor que o project-cta */
    font-size: 1rem;
    text-decoration: none;
    background-color: var(--accent-color);
    color: var(--text-dark) !important; /* Força cor escura */
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
    border: none; /* Garante que não tenha borda */
}

.footer-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.5);
    background-color: var(--primary-color); /* Muda a cor no hover */
    color: white !important; /* Cor clara no hover */
}

/* --- AJUSTE HOVER LINKS NAVEGAÇÃO FOOTER --- */
/* Remove o efeito antigo de ícone/texto e aplica só cor */

.footer-nav a:hover i,
.footer-nav a:hover span {
    transform: none; /* Remove a animação de mover/girar */
}

.footer-nav a:hover {
    color: var(--accent-color); /* Muda a cor no hover (ou var(--primary-color)) */
}

.footer-logo {
    margin-top: 0;
    padding-top: 0;
    display: block; /* Garante que margens funcionem como esperado */
}

/* Zera a margem superior de TODOS os H4 dentro das colunas do footer */
.footer-column h4 {
    margin-top: 0; /* Mantém zerado */
    margin-bottom: 1.5rem;
    text-align: left;
}

/* --- Estilos Navegação Fixa Inferior Portfólio --- */
.portfolio-navigation-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(39, 39, 64, 0.9); /* Fundo semi-transparente */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999; /* Abaixo do header (z-index: 1000) mas acima do resto */
    border-top: 1px solid var(--border-color);

    /* Escondido por padrão - Transição */
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%); /* Começa fora da tela */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Classe para mostrar a barra */
.portfolio-navigation-fixed.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Estilo dos botões fixos */
.portfolio-navigation-fixed .nav-button {
    padding: 8px 16px; /* Um pouco menor */
    font-size: 1rem;
    /* Reutiliza o estilo base .nav-button */
}

/* Oculta no Desktop */
@media (min-width: 993px) {
    .portfolio-navigation-fixed {
        display: none;
    }
    /* Garante que a navegação superior apareça no desktop */
    #portfolio-nav-top {
        display: flex; /* Ou o display original dela */
    }
}

/* 10. HELPERS (FIM DE PÁGINA)        */

.whatsapp-button {
    background-color: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.thank-you-content {
    text-align: center;
    padding: 60px 0;
}

/* 11. MEDIA QUERIES (RESPONSIVIDADE) */


/* Tablets (Sobre) */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
    }
    .about-text-content {
        min-height: 0;
    }
    .about-skills-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .skill-item {
        flex-grow: 1;
    }
}

/* Tablets (Portfólio) */
@media (max-width: 992px) {
    .portfolio-item.active {
        flex-direction: column;
        padding: 30px;
    }

    .project-details,
    .project-demo-wrapper {
        max-width: 100%;
    }

    .project-demo-wrapper {
        margin-top: 30px;
        height: 50vh;
        max-height: 450px;
    }
    
    #portfolio-nav-top { display: none; }
}

/* Celulares (Geral) */
@media (max-width: 768px) {

    .hero-content h1 {
        font-size: 2.8rem;
        line-height: 1.3;
        margin-bottom: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    section {
        padding: 60px 20px;
    }

    /* Menu Hamburguer */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .menu-toggle span {
        height: 3px;
        width: 25px;
        background-color: var(--text-light);
        margin-bottom: 5px;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    nav ul {
        position: fixed;
        top: 70px; /* Altura do header */
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(39, 39, 64, 0.75);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 1001;
    }
    nav ul.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    nav ul li a {
        font-size: 1.5rem;
    }

    /* Serviços (Mobile) */
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card-container {
        height: 320px;
    }

    /* Footer (Mobile) */
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 30px;
    }
    .tagline {
        margin: 0 auto;
    }
}

/* Celulares Menores (Portfólio) */
@media (max-width: 576px) {
    .portfolio-section h2 {
        font-size: 2.2rem;
    }
    .project-details h3 {
        font-size: 1.8rem;
    }
    .project-cta {
        width: 100%;
        text-align: center;
    }
}