/* =========================================
   1. RESET E VARIÁVEIS GERAIS
   ========================================= */
:root {
    --gold: #FFD700;
    --text-white: #FFFFFF;
    --text-gray: #B0B0B0;
    --black: #000000;
    --card-bg: #1E1E1E;
    --bg-dark: #121212;
    --overlay-dark: rgba(0, 0, 0, 0.85);
    --overlay-light: rgba(0, 0, 0, 0.6);
    --red-alert: #d32f2f;
    --nav-height: 70px;
    --mobile-nav-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Remove o "piscar" azul ao tocar em links no Android/iOS */
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    /* Espaço extra no final para não esconder conteúdo atrás do menu mobile */
    padding-bottom: 90px; 
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* =========================================
   2. HEADER E NAVEGAÇÃO (DESKTOP)
   ========================================= */
header {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 0 5%;
    height: var(--nav-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    backdrop-filter: blur(10px);
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
    transition: 0.3s;
}

.logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 5px var(--gold));
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}

nav ul li a:hover {
    color: var(--gold);
}

/* Esconde navegação desktop em telas menores */
@media (max-width: 768px) {
    nav { display: none; }
    header { justify-content: center; }
    /* Ajuste para logo centralizada no mobile */
    .btn-header { display: none; } 
}

/* =========================================
   3. BOTÕES
   ========================================= */
.btn-gold {
    display: inline-block;
    background-color: var(--gold);
    color: var(--black);
    padding: 12px 30px;
    font-weight: 800;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--gold);
    transform: translateY(-3px);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--gold);
    padding: 12px 30px;
    font-weight: 800;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: 0.3s;
    margin-left: 15px;
    text-align: center;
}

.btn-outline:hover {
    background-color: var(--gold);
    color: black;
}

.btn-back {
    color: var(--text-white);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.btn-back:hover {
    color: var(--gold);
}

/* =========================================
   4. LAYOUT E SEÇÕES
   ========================================= */
.section-padding {
    padding: 100px 5%;
}

.section-bg {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
    background-color: #111;
}

/* Classes específicas de fundo (imagens devem estar na pasta) */
.bg-hero { background-image: linear-gradient(var(--overlay-light), var(--overlay-dark)), url('bg-hero.jpg'); }
.bg-vr { background-image: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.95)), url('bg-tecnologia.jpg'); }
.bg-ia { background-image: linear-gradient(rgba(0,0,0,0.95), rgba(0,0,0,0.9)), url('bg-ia.jpg'); }
.bg-market { background-image: linear-gradient(var(--overlay-dark), var(--overlay-dark)), url('bg-market.jpg'); }

.text-box-overlay {
    background: rgba(0,0,0,0.75);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #333;
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
}

.section-title {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    margin-bottom: 50px;
    color: var(--text-gray);
    text-align: center;
}

/* =========================================
   5. HERO GERAL (PÁGINAS INTERNAS)
   ========================================= */
.hero, .course-hero, .tech-hero, .page-header, .page-title {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 5%; }
.hero-content { max-width: 900px; z-index: 2; animation: fadeUp 1s ease-out; }
.hero h1 { font-size: 3.5rem; color: var(--gold); margin-bottom: 20px; line-height: 1.1; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); }

.course-hero { height: 50vh; margin-top: var(--nav-height); display: flex; align-items: flex-end; padding: 0 5% 50px; }
.tech-hero { padding: 180px 5% 100px; text-align: center; }
.page-header, .page-title { padding: 150px 20px 80px; text-align: center; }

/* Tags no Hero */
.tags { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.tag { border: 1px solid var(--gold); color: var(--gold); padding: 5px 15px; font-size: 0.8rem; border-radius: 50px; text-transform: uppercase; background: rgba(0,0,0,0.6); }

/* =========================================
   6. CARDS E GRID
   ========================================= */
.method-grid, .grid-cards, .data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.course-card, .info-card, .data-card, .sidebar-card {
    background-color: rgba(30, 30, 30, 0.95);
    border-radius: 10px;
    border: 1px solid #333;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.course-card { display: flex; flex-direction: column; justify-content: space-between; }
.course-card:hover, .info-card:hover, .data-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: 0 0 20px rgba(255, 215, 0, 0.15); }

.course-header { padding: 20px; border-bottom: 2px solid var(--gold); background: rgba(0,0,0,0.5); }
.course-body { padding: 30px 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.course-badge { position: absolute; top: 10px; right: 10px; background: var(--gold); color: black; font-size: 0.7rem; font-weight: bold; padding: 2px 8px; border-radius: 4px; }
.ribbon-red { position: absolute; top: 20px; right: -32px; background-color: var(--red-alert); color: white; padding: 5px 30px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; transform: rotate(45deg); box-shadow: 0 2px 5px rgba(0,0,0,0.5); z-index: 10; width: 150px; text-align: center; }

/* Cards de Profissões e Info */
.info-card { padding: 30px; }
.info-card i { font-size: 2.5rem; color: var(--gold); margin-bottom: 20px; }

/* Timeline (Profissões) */
.timeline { margin-top: 50px; position: relative; padding-left: 30px; border-left: 2px solid #333; }
.timeline-item { margin-bottom: 40px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -36px; top: 0; width: 10px; height: 10px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 10px var(--gold); }

/* =========================================
   7. PÁGINAS ESPECÍFICAS (TECNOLOGIA / MERCADO)
   ========================================= */
/* Tecnologia */
.step-container { padding: 80px 5%; max-width: 1000px; margin: 0 auto; }
.step-item { display: flex; align-items: flex-start; gap: 30px; margin-bottom: 50px; background: rgba(30,30,30,0.8); padding: 30px; border-radius: 10px; border: 1px solid #333; }
.step-number { font-size: 4rem; font-weight: 800; color: #333; line-height: 1; font-family: 'Montserrat', sans-serif; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 900px; margin: 0 auto; border: 2px solid #333; border-radius: 10px; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Mercado */
.salary-chart { margin-top: 50px; background: #050505; padding: 40px; border-radius: 10px; border: 1px solid #333; }
.salary-row { display: flex; align-items: center; margin-bottom: 20px; }
.salary-label { width: 150px; font-weight: bold; font-size: 0.9rem; color: #ddd; }
.salary-bar-container { flex: 1; background: #222; height: 35px; border-radius: 5px; margin: 0 15px; position: relative; overflow: hidden; }
.salary-bar { height: 100%; background: var(--gold); display: flex; align-items: center; padding-left: 10px; color: black; font-weight: bold; width: 0; animation: growBar 1.5s forwards; white-space: nowrap; }

/* =========================================
   8. LAYOUT DIVIDIDO (SPLIT SECTION)
   ========================================= */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}
.split-content { padding: 80px 5%; display: flex; flex-direction: column; justify-content: center; background: #0a0a0a; }
.split-image { position: relative; background-color: #000; }
.split-image img { width: 100%; height: 100%; object-fit: cover; display: block; border-left: 2px solid var(--gold); }

.method-list-item {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
}
.method-list-item:hover { border-color: var(--gold); transform: translateX(10px); }
.method-icon-box { font-size: 2rem; color: var(--gold); min-width: 50px; text-align: center; }

/* =========================================
   9. NAVEGAÇÃO MOBILE (APP STYLE)
   ========================================= */
.mobile-nav-bar {
    display: none; /* Escondido por padrão no Desktop */
}

/* FOOTER FIXO DE CURSOS (MOBILE CTA) */
.mobile-cta { display: none; }

/* =========================================
   10. RESPONSIVIDADE (MEDIA QUERIES)
   ========================================= */
@media (max-width: 768px) {
    /* Ajustes Gerais */
    .hero h1 { font-size: 2.2rem; }
    .btn-outline { margin-left: 0; margin-top: 15px; display: block; width: 100%; }
    .section-padding { padding: 60px 5%; }
    
    /* Layouts */
    .split-section, .content-container, .tech-comparison-grid, .market-expanded-grid, .salary-row, .step-item {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    
    .split-image { min-height: 300px; display: block; }
    .content-container { padding-bottom: 0; }
    .sidebar-card { display: none; } /* Sidebar some no mobile */
    
    .salary-bar-container { width: 100%; margin: 10px 0; }
    .salary-label { width: 100%; }

    /* Tags em scroll horizontal */
    .shared-features { justify-content: flex-start; overflow-x: auto; padding-bottom: 10px; flex-wrap: nowrap; }
    .feature-tag { white-space: nowrap; }

    /* MENU INFERIOR FIXO (APP) */
    .mobile-nav-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: var(--mobile-nav-height);
        background: rgba(18, 18, 18, 0.95);
        border-top: 1px solid #333;
        z-index: 5000;
        justify-content: space-around;
        align-items: center;
        backdrop-filter: blur(10px);
        padding-bottom: env(safe-area-inset-bottom); /* Ajuste para iPhone X+ */
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #777;
        font-size: 0.7rem;
        flex: 1;
        height: 100%;
    }

    .nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
    .nav-item.active { color: var(--gold); }

    /* BARRA DE AÇÃO FLUTUANTE (CURSOS) */
    .mobile-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80px;
        background: #161616;
        border-top: 1px solid #333;
        padding: 15px 20px;
        z-index: 5000;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
        padding-bottom: max(15px, env(safe-area-inset-bottom));
    }
    .mobile-cta .label { font-size: 0.8rem; color: #ccc; line-height: 1.2; }
    .mobile-cta .btn-gold { 
        padding: 10px 25px; 
        border-radius: 50px; 
        font-size: 0.9rem;
    }
}

/* =========================================
   11. ANIMAÇÕES
   ========================================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseGold { 0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); } }
@keyframes growBar { from { width: 0; } to { width: var(--width); } }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* BARRAS DE PROGRESSO */
.bar-fill.reveal.active.p90 { width: 90%; }
.bar-fill.reveal.active.p70 { width: 70%; }
.bar-fill.reveal.active.p35 { width: 35%; }
.comparison-fill.reveal.active.w40 { width: 40%; }
.comparison-fill.reveal.active.w95 { width: 95%; }

/* GRÁFICO VERTICAL */
.v-bar.reveal.active.h20 { height: 20%; }
.v-bar.reveal.active.h58 { height: 58%; }
.v-bar.reveal.active.h100 { height: 100%; }
.v-bar.reveal.active .v-val { opacity: 1; transition-delay: 0.5s; }

/* =========================================
   12. BOTÃO FLUTUANTE WHATSAPP
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 80px; /* Acima do menu mobile */
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    z-index: 4000;
    animation: pulseGold 2s infinite;
}

@media (min-width: 769px) {
    .whatsapp-float { bottom: 30px; right: 30px; }
}

/* =========================================
   13. FOOTER
   ========================================= */
footer {
    background-color: black;
    padding: 60px 5% 20px;
    border-top: 1px solid #333;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.contact-info li {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    color: #ccc;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    margin-top: 40px;
    color: #555;
    font-size: 0.8rem;
}