/* ============================================
   INOVABOT "PREMIUM AI" THEME
   Redesign: Dark Mode + Glassmorphism + Neon
   ============================================ */

/* === VARIÁVEIS === */
:root {
    /* Cores de Fundo */
    --bg-dark: #0f172a;
    /* Azul marinho muito escuro */
    --bg-darker: #020617;
    /* Quase preto */
    --bg-card: rgba(30, 41, 59, 0.7);
    /* Vidro escuro */

    /* Cores de Acento (Neon) */
    --neon-blue: #3b82f6;
    --neon-cyan: #06b6d4;
    --neon-purple: #8b5cf6;
    --neon-orange: #f97316;
    --neon-green: #10b981;

    /* Texto */
    --text-main: #f8fafc;
    /* Quase branco */
    --text-muted: #94a3b8;
    /* Cinza azulado */

    /* Efeitos */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shine: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    --gradient-main: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    --glow-blue: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Slab', serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Evita scroll lateral acidental */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: white;
}

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

a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === UTILITÁRIOS === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

.text-gradient {
    background: linear-gradient(to right, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-shine);
    pointer-events: none;
    opacity: 0.5;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* === HEADER === */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.4s;
    background: transparent;
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -1px;
}

.logo i {
    color: var(--neon-cyan);
    font-size: 28px;
    filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.5));
}

.logo span {
    color: var(--neon-cyan);
}

/* === BUTTONS === */
.btn {
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.6);
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: 0.5s;
}

.btn:hover .btn-glow {
    opacity: 1;
    transform: scale(1);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Fundo complexo escuro */
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
}

.hero::before {
    /* Glow de fundo */
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    filter: blur(80px);
}

.hero::after {
    /* Glow de fundo 2 */
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    filter: blur(80px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

/* === SECTIONS GENERAL === */
section {
    padding: 100px 0;
    position: relative;
}

section:nth-child(even) {
    background: var(--bg-darker);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(to right, white, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* === MARKET REALITY (Grid 3 cols) === */
.reality-grid {
    display: grid;
    /* Increased min-width from 350px to 450px to ensure larger images */
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.glass-card {
    /* Existing styles assumed, just ensuring we don't break them */
    /* Adjust padding for image cards if needed via a new utility class in HTML */
}

/* Helper for cards that are mainly images */
.glass-card.image-focused {
    padding: 2.5rem;
    /* Slightly reduced/optimized padding or kept large but changing grid does the heavy lifting */
}

/* === INSTRUCTOR === */
.instructor-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));
    border-radius: 30px;
    padding: 60px;
    border: var(--glass-border);
}

.instructor-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.instructor-info h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.instructor-info ul {
    list-style: none;
    margin-top: 20px;
}

.instructor-info li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructor-info li i {
    color: var(--neon-green);
}

/* === COURSE IMMERSION === */
.immersion-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: 0.3s;
}

.tab-btn.active {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* === FEATURES GRID (Tools) === */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tool-card {
    border-top: 3px solid transparent;
}

.tool-card:hover {
    border-top-color: var(--neon-blue);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* === FOOTER === */
footer {
    padding: 80px 0 40px;
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .instructor-wrapper {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }

    .instructor-img {
        width: 200px;
        height: 200px;
    }

    .reality-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* === INTERATIVIDADE DISPARADA POR JS === */
.modal.show {
    display: flex !important;
    animation: fadeIn 0.3s ease-out;
}

.rob-speech.show {
    opacity: 1 !important;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}