/* =========================================
   VARIÁVEIS DE CORES (Paleta da Camila)
   ========================================= */  
:root {
    --cor-roxo: #523088;
    --cor-amarelo: #E0D906;
    --cor-rosa: #E72578;
    --cor-fundo: #F5F1F4;
    --cor-texto: #333333;
}

/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    overflow-x: hidden;
}

/* =========================================
   CABEÇALHO E NAVEGAÇÃO
   ========================================= */
header {
    background-color: var(--cor-roxo);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

nav a {
    color: var(--cor-fundo);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 700;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--cor-amarelo);
}

/* =========================================
   SEÇÃO HERO (Apresentação Principal)
   ========================================= */
.hero {
    background-color: var(--cor-roxo);
    color: var(--cor-fundo);
    text-align: center;
    padding: 120px 20px;
    border-bottom: 8px solid var(--cor-amarelo);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--cor-amarelo);
    margin-bottom: 30px;
    min-height: 80px;
}

.hero h2::after {
    content: '|';
    animation: piscar 0.8s infinite;
}

@keyframes piscar {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--cor-fundo);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-primario {
    background-color: var(--cor-rosa);
    color: var(--cor-fundo);
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(231, 37, 120, 0.4);
    border: none;
    cursor: pointer;
}

.btn-primario:hover {
    background-color: var(--cor-amarelo);
    color: var(--cor-roxo);
    box-shadow: 0 4px 15px rgba(224, 217, 6, 0.4);
    transform: translateY(-3px);
}

/* =========================================
   COMPONENTES DE SEÇÕES SECUNDÁRIAS
   ========================================= */
.sub-tag {
    display: inline-block;
    background-color: var(--cor-rosa);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.sub-tag.tag-escura {
    background-color: var(--cor-roxo);
}

/* Seção Sobre Mim */
.sobre-mim {
    padding: 100px 10%;
    background-color: #ffffff;
}
.sobre-container {
    max-width: 900px;
    margin: 0 auto;
}
.sobre-conteudo h2 {
    color: var(--cor-roxo);
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 30px;
    font-weight: 900;
}
.sobre-conteudo p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 20px;
}

/* Seção Dores do Cliente */
.dores-cliente {
    padding: 100px 10%;
    background-color: #fcfbfe;
    text-align: center;
    border-top: 1px solid rgba(82, 48, 136, 0.05);
}
.dores-cliente h2 {
    color: var(--cor-roxo);
    font-size: 2.3rem;
    margin-bottom: 50px;
    font-weight: 900;
}
.dores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
.dor-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(82, 48, 136, 0.04);
    transition: transform 0.3s ease, opacity 0.8s ease, transform 0.8s ease;
    border-top: 4px solid #dddddd;
    text-align: left;
}
.dor-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--cor-rosa);
}
.dor-icone {
    font-size: 2rem;
    margin-bottom: 20px;
}
.dor-card h3 {
    color: #222222;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}
.dor-card p {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Seção Solução */
.solucao-estratega {
    padding: 100px 10%;
    background-color: var(--cor-roxo);
    color: var(--cor-fundo);
}
.solucao-estratega h2 {
    color: var(--cor-amarelo);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}
.solucao-lead {
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 50px;
    opacity: 0.9;
    line-height: 1.5;
}
.solucao-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    gap: 40px;
    max-width: 1100px;
}
.solucao-item {
    display: flex;
    gap: 20px;
}
.solucao-numero {
    background-color: var(--cor-rosa);
    color: #ffffff;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}
.solucao-item h3 {
    color: var(--cor-amarelo);
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.solucao-item p {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.6;
}

/* Seção Meu Método (Timeline) */
.metodo-secao {
    padding: 100px 10%;
    background-color: #ffffff;
    text-align: center;
}
.metodo-secao h2 {
    color: var(--cor-roxo);
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 900;
}
.metodo-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    text-align: left;
    padding-left: 30px;
}
.metodo-timeline::before {
    content: '';
    position: absolute;
    left: 45px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: rgba(82, 48, 136, 0.15);
}
.metodo-passo {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}
.metodo-passo:last-child {
    margin-bottom: 0;
}
.metodo-badge {
    background-color: var(--cor-fundo);
    color: var(--cor-roxo);
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
    z-index: 2;
    border: 2px solid var(--cor-roxo);
    transition: all 0.3s;
}
.metodo-passo:hover .metodo-badge {
    background-color: var(--cor-rosa);
    color: #ffffff;
    border-color: var(--cor-rosa);
}
.metodo-txt h3 {
    color: #222222;
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.metodo-txt p {
    color: #666663;
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   PORTFÓLIO
   ========================================= */
.portfolio {
    padding: 120px 10% 80px;
    text-align: center;
}

.portfolio h2 {
    color: var(--cor-roxo);
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.carrossel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-nav {
    background-color: var(--cor-rosa);
    color: var(--cor-fundo);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background-color: var(--cor-roxo);
    transform: scale(1.1);
}

.btn-prev { left: -15px; }
.btn-next { right: -15px; }

.btn-prev-feedback { left: -15px; }
.btn-next-feedback { right: -15px; }


.grid-projetos {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.grid-projetos::-webkit-scrollbar {
    display: none;
}

.card-projeto {
    flex: 0 0 min(100%, 360px);
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-bottom: 5px solid var(--cor-rosa);
}

.card-projeto:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--cor-roxo);
}

.imagem-projeto {
    min-height: 200px;
    background-color: var(--cor-fundo);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cor-roxo);
    font-weight: bold;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
}

.imagem-projeto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.info-projeto {
    padding: 20px;
    text-align: left;
}

.info-projeto h3 {
    color: var(--cor-roxo);
    margin-bottom: 10px;
}

.info-projeto p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.link-projeto {
    color: var(--cor-rosa);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.link-projeto:hover {
    color: var(--cor-roxo);
}

/* =========================================
   CONTATO E RODAPÉ
   ========================================= */
footer {
    background-color: var(--cor-roxo);
    color: var(--cor-fundo);
    text-align: center;
    padding: 60px 20px 20px;
    margin-top: 50px;
}

footer h2 {
    color: var(--cor-amarelo);
    margin-bottom: 20px;
    font-size: 2rem;
}

footer p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* =========================================
   MODAL POPUP (INTEGRAÇÃO JOTFORM E PORTFÓLIO)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    background-color: #ffffff; 
    width: 92%;
    max-width: 750px;
    height: 85vh; 
    border-radius: 14px;
    overflow: hidden; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.btn-fechar-modal {
    position: absolute;
    top: 12px;
    right: 20px;
    background: #ffffff;
    border: none;
    color: var(--cor-roxo);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2010;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-fechar-modal:hover {
    color: var(--cor-rosa);
    transform: scale(1.05);
}

.modal-card-branco {
    width: 100%;
    height: 100%;
    margin: 0; 
    padding: 0; 
    border-radius: 0;
    box-shadow: none;
    flex-grow: 1;
    display: block;
}

.modal-card-branco iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Rodapé e Redes Sociais */
.redes-sociais-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(245, 241, 244, 0.15);
}

.redes-sociais-container h3 {
    font-size: 1.2rem;
    color: var(--cor-fundo);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.redes-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.rede-item {
    color: var(--cor-amarelo);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.rede-item:hover {
    color: var(--cor-rosa);
    transform: translateY(-2px);
}

.creditos-desenvolvedor {
    margin-top: 40px;
    font-size: 0.8rem;
    opacity: 0.6;
    border-top: 1px solid rgba(245, 241, 244, 0.1);
    padding-top: 20px;
    letter-spacing: 0.5px;
}

.creditos-desenvolvedor a {
    color: var(--cor-fundo);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.creditos-desenvolvedor a:hover {
    color: var(--cor-amarelo);
}

/* =========================================
   SISTEMA DE ANIMAÇÕES VIA SCROLL (JS)
   ========================================= */
.animar-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animar-fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.dores-grid .dor-card:nth-child(1) { transition-delay: 0.1s; }
.dores-grid .dor-card:nth-child(2) { transition-delay: 0.3s; }
.dores-grid .dor-card:nth-child(3) { transition-delay: 0.5s; }

.solucao-grid .solucao-item:nth-child(1) { transition-delay: 0.1s; }
.solucao-grid .solucao-item:nth-child(2) { transition-delay: 0.2s; }
.solucao-grid .solucao-item:nth-child(3) { transition-delay: 0.3s; }
.solucao-grid .solucao-item:nth-child(4) { transition-delay: 0.4s; }

.metodo-passo {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.metodo-passo.active {
    opacity: 1;
    transform: translateX(0);
}

.metodo-passo:nth-child(1) { transition-delay: 0.1s; }
.metodo-passo:nth-child(2) { transition-delay: 0.2s; }
.metodo-passo:nth-child(3) { transition-delay: 0.3s; }
.metodo-passo:nth-child(4) { transition-delay: 0.4s; }
.metodo-passo:nth-child(5) { transition-delay: 0.5s; }

/* =========================================
   RESPONSIVIDADE MOBILE
   ========================================= */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
    }
    nav {
        margin-top: 20px;
    }
    nav a {
        margin: 0 10px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .sobre-mim, .dores-cliente, .solucao-estratega, .metodo-secao {
        padding: 70px 5%;
    }
    .sobre-conteudo h2, .dores-cliente h2, .solucao-estratega h2, .metodo-secao h2 {
        font-size: 1.8rem;
    }
    .solucao-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .metodo-timeline::before {
        left: 20px;
    }
    .metodo-timeline {
        padding-left: 5px;
    }
    .metodo-badge {
        min-width: 32px;
        height: 32px;
    }
    .modal-container {
        width: 100%;
        height: 100%; 
        margin: 0;
        border-radius: 0;
    }
    .btn-fechar-modal {
        top: 10px;
        right: 15px;
        background: rgba(255, 255, 255, 0.9);
    }
}
/* =========================================
   SEÇÃO DE FEEDBACKS / DEPOIMENTOS
   ========================================= */
.feedbacks-secao {
    padding: 100px 10%;
    background-color: var(--cor-fundo);
    text-align: center;
}

.feedbacks-secao h2 {
    color: var(--cor-roxo);
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 900;
}

.feedbacks-grid {
    display: flex;
    gap: 30px;
    max-width: 1000px;
    max-height: 1000px;
    margin: 0 auto;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.feedbacks-grid::-webkit-scrollbar {
    display: none;
}

.card-feedback {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(82, 48, 136, 0.04);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(82, 48, 136, 0.05);
    flex: 0 0 min(100%, 310px);
    transition: transform 0.3s ease;
}

.card-feedback:hover {
    transform: translateY(-5px);
}

.btn-ver-mais {
    background: none;
    border: none;
    color: var(--cor-rosa);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 0;
    margin-top: 10px;
    align-self: flex-start;
    font-family: 'Montserrat', sans-serif;
}

.feedback-projeto-tag {
    align-self: flex-start;
    background-color: rgba(82, 48, 136, 0.08);
    color: var(--cor-roxo);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.feedback-texto {
    color: #555555;
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 25px;
    flex-grow: 1;
    /* Limita a altura inicial do texto */
    max-height: 100px; /* Aproximadamente 4-5 linhas */
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease-out;
    flex-grow: 1;
}

.feedback-autor {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
}

.feedback-autor h4 {
    color: var(--cor-roxo);
    font-size: 1.1rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .feedbacks-secao {
        padding: 70px 5%;
    }
    .feedbacks-secao h2 {
        font-size: 1.8rem;
    }
}