/* ============================================
   ESTILOS COMPLETOS DA PÁGINA PRINCIPAL
   Ebooks Cofeci - Conhecimento para Corretores
   ============================================ */

/* --- Reset e Variáveis --- */
:root {
    --primary-orange: #2d537f;
    --secondary-orange: #4e78a2;
    --color-primary: #1e3a5f;
    --color-secondary: #2d5a87;
    --color-accent: #D4AF37;
    --color-accent-light: #F4E4BC;
    --dark-bg: #0a0a0a;
    --darker-bg: #0a0a0a;
    --text-light: #f5f5f5;
    --text-gray: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg-principal: rgba(30, 58, 95, 0.1);
    --glass-border-principal: rgba(212, 175, 55, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: transparent;
    color: var(--text-light);
    overflow-x: hidden;
}

/* --- Tipografia --- */
h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

h1 {
    color: var(--primary-orange);
    line-height: 1;
}

h5 {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
}

a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

/* --- Background Animado (Blobs) --- */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: var(--dark-bg);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    animation: moveBlob infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #e2a83b;
    animation-duration: 5s;
}

.blob-2 {
    top: 40%;
    right: -5%;
    width: 400px;
    height: 450px;
    background: hsl(36, 64%, 45%);
    animation: moveBlobLeft 12s infinite alternate ease-in-out;
    animation-delay: -5s;
}

.blob-3 {
    bottom: -20%;
    left: 30%;
    width: 600px;
    height: 400px;
    background: #7c6912;
    animation-duration: 3s;
    animation-delay: -6s;
}

.blob-4 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: #ffcd69;
    animation-duration: 6s;
    animation-delay: -2s;
    opacity: 0.5;
}

@keyframes moveBlob {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(150px, 100px) rotate(20deg) scale(1.1); }
    100% { transform: translate(-100px, -80px) rotate(-10deg) scale(0.9); }
}

@keyframes moveBlobLeft {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(-60vw, -50px) rotate(-15deg) scale(1.1); }
    100% { transform: translate(-10vw, 50px) rotate(10deg) scale(0.95); }
}

/* --- Header --- */
header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    color: var(--text-gray);
    width: 100%;
    min-height: auto;
    padding: 30px 0 0 0;
    margin-bottom: 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

header h6 {
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 1px;
}

header .redes {
    text-align: center;
}

/* --- Footer --- */
footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    color: var(--text-gray);
    width: 100%;
    min-height: 25vh;
    padding: 40px 20px;
    background-color: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

footer h6 {
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 1px;
}

footer .redes {
    text-align: center;
}

/* ============================================
   ESTILOS EXCLUSIVOS DA PÁGINA PRINCIPAL
   ============================================ */

/* --- Hero Principal --- */
.hero-principal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    z-index: 1;
}

.hero-principal .logo-principal {
    width: 150px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.2));
    animation: float 6s ease-in-out infinite;
}

.hero-principal .ebook-hero {
    max-width: 280px;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 16px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

.hero-principal .logo-hero {
    width: 100px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-principal h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.5rem;
    letter-spacing: 4px;
    background: linear-gradient(90deg, #D4AF37, #F4E4BC, #D4AF37);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s linear infinite;
    margin-bottom: 1rem;
    text-shadow: none;
}

@keyframes gradient-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-principal .subtitulo {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-principal .descricao {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 550px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Botão CTA */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 1rem 3rem;
    border-radius: 8px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    border-color: var(--color-accent);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
    color: #ffffff;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

/* --- Seção Sobre o Projeto --- */
.sobre-projeto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 80px 10%;
    align-items: center;
    position: relative;
    z-index: 1;
}

.sobre-texto h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.sobre-texto p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.9;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    font-weight: 300;
}

/* Estatísticas */
.estatisticas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: rgba(30, 58, 95, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(212, 175, 55, 0.1);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    color: var(--color-accent);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-icon svg {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.counter-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    white-space: nowrap;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* --- Seção Galeria --- */
.galeria-ebooks {
    padding: 80px 5%;
    position: relative;
    z-index: 1;
}

.galeria-ebooks > h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

.ano-secao {
    margin-bottom: 2rem;
}

.ano-secao h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 4px solid var(--color-accent);
    letter-spacing: 2px;
}

.ebook-grid-principal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 2rem;
    justify-items: center;
    width: 100%;
    max-width: 1100px;
}

/* --- Cards de Ebooks --- */
.ebook-card {
    display: block;
    width: 100%;
    max-width: 200px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
}

.ebook-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(212, 175, 55, 0.15);
}

.ebook-card .card-image {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    position: relative;
}

.ebook-card .card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}

.ebook-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.ebook-card:hover .card-image img {
    transform: scale(1.08);
}

.ebook-card .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem;
    z-index: 2;
}

.ebook-card .card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    margin: 0 0 0.3rem 0;
    letter-spacing: 1px;
}

.ebook-card .card-month {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 300;
}

/* Efeito brilho no hover do card */
.ebook-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.ebook-card:hover::after {
    left: 150%;
}

/* --- Divisor Geométrico --- */
.divisor-geometrico {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    margin: 3rem 10%;
    position: relative;
}

.divisor-geometrico::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: var(--color-accent);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* --- Seção Como Funciona --- */
.como-funciona {
    padding: 80px 10%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.como-funciona h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    color: var(--color-accent);
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

.passos-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.passos-container::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 18%;
    right: 18%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        rgba(212, 175, 55, 0.4) 0px,
        rgba(212, 175, 55, 0.4) 8px,
        transparent 8px,
        transparent 16px
    );
    z-index: 0;
}

.passo-item {
    background: rgba(30, 58, 95, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.passo-item:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.passo-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
    position: relative;
}

.passo-item:hover .passo-icon {
    transform: scale(1.1);
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.passo-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--color-accent);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.passo-numero {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
}

.passo-titulo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.passo-descricao {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
    font-weight: 300;
}

/* --- Animações Adicionais --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.4); }
}

.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-accent), transparent, var(--color-accent));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.glow-border:hover::before {
    opacity: 1;
    animation: glow-rotate 3s linear infinite;
}

@keyframes glow-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Responsividade --- */

@media (max-width: 1200px) {
    .sobre-projeto {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .estatisticas {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-principal h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 960px) {
    .hero-principal h1 {
        font-size: 3rem;
    }

    .hero-principal .subtitulo {
        font-size: 1.3rem;
    }

    .sobre-projeto {
        padding: 60px 8%;
    }

    .passos-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .passos-container::before {
        display: none;
    }

    .galeria-ebooks {
        padding: 60px 4%;
    }

    .ebook-grid-principal {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1.5rem;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .hero-principal {
        padding: 80px 15px;
    }

    .hero-principal h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero-principal .subtitulo {
        font-size: 1.1rem;
    }

    .hero-principal .descricao {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1.2rem;
    }

    .sobre-projeto {
        padding: 40px 5%;
    }

    .sobre-texto h2,
    .galeria-ebooks > h2,
    .como-funciona h2 {
        font-size: 2rem;
    }

    .estatisticas {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .counter-number {
        font-size: 2.2rem;
    }

    .ano-secao h3 {
        font-size: 1.5rem;
    }

    .ebook-grid-principal {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
    }

    .ebook-card {
        max-width: 100%;
    }

    .ebook-card .card-title {
        font-size: 1rem;
    }

    .ebook-card .card-month {
        font-size: 0.7rem;
    }

    .passo-item {
        padding: 2rem 1rem;
    }

    .passo-icon {
        width: 70px;
        height: 70px;
    }

    .passo-icon svg {
        width: 30px;
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-principal .logo-principal {
        animation: none;
    }

    .hero-principal h1 {
        animation: none;
    }

    .cta-button::before {
        display: none;
    }

    .ebook-card::after {
        display: none;
    }

    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}