@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Lato", sans-serif;
    background-color: #212226;
    color: #ffffff;
}

.header {
    background-color: #212226;
    border-bottom: 1px solid #2c2d32;
}

.logo {
    max-width: 100px;
}

.nav-link {
    color: #CFF250;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

/* HERO */
.hero {
    padding: 90px 0;
    background: linear-gradient(135deg, #212226, #1b1c21);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 30px;
}

.hero-img {
    max-width: 300px;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.6);
}

.btn-cta {
    background-color: #CFF250;
    color: #212226;
    padding: 14px 34px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.btn-cta:hover {
    background-color: #ffffff;
    color: #212226;
}

/* SECTIONS */
.section-light {
    background-color: #ffffff;
    color: #212226;
    padding: 90px 0;
}

/* CENTRALIZAR SEÇÃO "QUEM É OSÉIAS SOUSA" NO DESKTOP */
.section-light .section-title,
.section-light .section-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-dark {
    background-color: #212226;
    padding: 90px 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.section-text {
    max-width: 750px;
    margin-bottom: 20px;
}

/* SKILLS */
.skill-img {
    width: 100%;
    max-width: 260px;
    border-radius: 14px;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* PROJECTS */
.project-img {
    width: 100%;
    max-width: 220px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.portfolio-img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* BUTTON OUTLINE */
.btn-outline {
    border: 2px solid #CFF250;
    color: #CFF250;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline:hover {
    background-color: #CFF250;
    color: #212226;
}

/* SERVICES */
.service-card {
    text-align: center;
    padding: 30px;
    border-radius: 14px;
    transition: 0.3s;
}

.service-card i {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #CFF250;
}

.service-card:hover {
    background-color: #f5f5f5;
    color: #212226;
}

/* FOOTER */
.footer-icons a {
    color: #CFF250;
    font-size: 1.6rem;
    margin: 0 10px;
    transition: 0.3s;
}

.footer-icons a:hover {
    color: #ffffff;
}

.footer-icons a i {
    color: #CFF250;
    transition: 0.3s;
}

.footer-icons a i:hover {
    color: #ffffff;
}

/* IMPACT NUMBER */
.impact-number {
    font-size: 1.3rem;
    font-weight: 900;
    color: #CFF250;
    margin-top: 10px;
}

/* MOBILE */
@media (max-width: 768px) {
    .hero {
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }
    
    .section-title,
    .section-text {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .project-img,
    .portfolio-img {
        margin-bottom: 20px;
    }
    
    .btn-cta,
    .btn-outline {
        display: inline-block;
        margin-top: 15px;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(207, 242, 80, 0.6);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(207, 242, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(207, 242, 80, 0);
    }
}

.btn-pulse {
    animation: pulse 2.8s infinite;
}

/* Ajuste de contraste para textos dentro de section-dark */
.section-dark .section-text,
.section-dark p {
    color: #EAEAEA;
    opacity: 0.95;
}

.section-dark .card p {
    color: #F1F1F1;
}

/* Títulos dentro de áreas escuras (ebooks, biblioteca, cards) */
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.fi {
    width: 1.4em;
    height: 1em;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .navbar-collapse {
        background-color: #212226;
        text-align: center;
    }
    
    .navbar-nav {
        width: 100%;
        align-items: center;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        display: block;
        padding: 12px 0;
    }
}

.section-light .form-box {
    color: #ffffff;
}

.section-light .form-box h3,
.section-light .form-box p,
.section-light .form-box label {
    color: #ffffff !important;
}

/* ==== CORREÇÃO DEFINITIVA DO FORMULÁRIO ==== */
.section-light .form-box h3,
.section-light .form-box p,
.section-light .form-box label {
    color: #ffffff !important;
}

/* Inputs */
.section-light .form-box .form-control {
    color: #ffffff !important;
    background-color: #212226 !important;
    border: 1px solid #2c2d32;
}

/* Placeholder */
.section-light .form-box .form-control::placeholder {
    color: #bbbbbb !important;
}

/* Foco */
.section-light .form-box .form-control:focus {
    background-color: #212226 !important;
    color: #ffffff !important;
    border-color: #CFF250 !important;
    box-shadow: none !important;
}

/* Corrige sobreposição de imagem grande na biblioteca */
.section-dark .card {
    position: relative;
    z-index: 1;
}

.section-dark .card img {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.section-dark .card .btn {
    position: relative;
    z-index: 5;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.hero-book {
    max-width: 360px;
    width: 100%;
    box-shadow: 0 20px 45px rgba(0,0,0,0.6);
    border-radius: 12px;
}

.hero-text-wrapper {
    max-width: 520px;
    text-align: left;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text-wrapper {
        text-align: center;
    }
}

/* FORÇA TAMANHO DA CAPA DO EBOOK */
.section-light #formulario img.ebook-img {
    max-width: 340px !important;
    width: 100% !important;
    height: auto !important;
}

/* =============================== 
SOLUÇÃO DEFINITIVA - BIBLIOTECA PERFEITAMENTE ALINHADA 
=============================== */

/* Container fixo para todas as imagens da biblioteca */
.biblioteca-img {
    height: 280px; /* ALTURA FIXA PARA TODAS */
    width: 100%;
    display: flex;
    align-items: center; /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
    margin-bottom: 20px;
    overflow: hidden; /* Garante que nada ultrapasse */
    position: relative;
}

/* Imagens dentro do container */
.biblioteca-img img {
    max-height: 100%; /* Máximo da altura do container */
    max-width: 100%; /* Máximo da largura do container */
    width: auto; /* Mantém proporção */
    height: auto; /* Mantém proporção */
    object-fit: contain; /* Mostra imagem inteira sem cortar */
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

/* Efeito hover opcional */
.biblioteca-img img:hover {
    transform: scale(1.03);
}

/* Card com altura total flexível */
.biblioteca-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    transition: all 0.3s ease;
}

/* Título com altura mínima para alinhamento */
.biblioteca-card h3 {
    min-height: 60px; /* Altura fixa para títulos */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.4rem;
    line-height: 1.3;
    text-align: center;
}

/* Texto descritivo ocupa espaço disponível */
.biblioteca-card .section-text {
    flex-grow: 1;
    min-height: 100px; /* Altura mínima para textos */
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #EAEAEA;
    opacity: 0.9;
    text-align: center;
}

/* Botão sempre na mesma posição */
.biblioteca-card .btn {
    margin-top: auto; /* Empurra para baixo */
    padding: 12px 25px;
    font-weight: 700;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Garantir que todas as linhas tenham mesma altura */
.row.g-5 {
    align-items: stretch; /* Estica os cards para mesma altura */
}

/* Ajuste para imagens com proporções extremas */
.biblioteca-img .img-scale-90 {
    transform: scale(0.9);
}

.biblioteca-img .img-scale-110 {
    transform: scale(1.1);
}

/* Ajuste para telas médias */
@media (max-width: 992px) {
    .biblioteca-img {
        height: 250px;
    }
    
    .biblioteca-card h3 {
        min-height: 50px;
        font-size: 1.3rem;
    }
    
    .biblioteca-card .section-text {
        min-height: 120px;
    }
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .biblioteca-img {
        height: 220px;
    }
    
    .biblioteca-card {
        margin-bottom: 30px;
    }
    
    .biblioteca-card h3 {
        min-height: auto;
        font-size: 1.2rem;
    }
    
    .biblioteca-card .section-text {
        min-height: auto;
        margin-bottom: 15px;
    }
}

/* =============================== 
ESTILOS ESPECÍFICOS DA PÁGINA BIBLIOTECA 
=============================== */

.biblioteca-intro {
    max-width: 800px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.biblioteca-divider {
    margin: 80px 0 50px 0;
    text-align: center;
}

.biblioteca-divider h2 {
    color: #CFF250;
    font-size: 2rem;
    margin-bottom: 15px;
}

.biblioteca-divider p {
    max-width: 700px;
    margin: 0 auto;
    color: #EAEAEA;
    opacity: 0.9;
}

/* REMOVENDO ESTILOS ANTIGOS DA BIBLIOTECA QUE CAUSAM CONFLITO */
.biblioteca-img-wrap,
.img-menor,
.img-media {
    /* Estilos antigos serão substituídos pelos novos */
    display: none;
}

/* Garantindo que cards antigos usem novo sistema */
/* apaguei em 13/01/2026
 .section-dark .card,
.section-light .card {
    height: 100%;
    display: flex;
    flex-direction: column;
} 
    */

/* Mantendo compatibilidade com seções existentes */
.section-dark .card .section-text,
.section-light .card .section-text {
    flex-grow: 1;
}

/* ===============================
   FORÇA GRID DA BIBLIOTECA (OVERRIDE FINAL)
   =============================== */

.section-dark .biblioteca-card {
    display: grid !important;
    grid-template-rows: 280px auto minmax(120px, auto) auto;
}

.section-dark .biblioteca-card .btn {
    margin-top: 0 !important;
}

.project-img-lg {
  transform: scale(1.5);
}

.pampulha-caption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #cfcfcf;
  font-style: italic;
}

@media (max-width: 768px) {

    /* Centraliza tudo no mobile */
    .hero .row {
        text-align: center;
    }

    /* Cria espaço real entre texto/botão e imagem */
    .hero .col-md-5 {
        margin-top: 1.2cm;
    }

    /* Garante que o botão respire */
    .hero .btn-cta {
        margin-top: 20px;
    }

}
