/* RESET E FONTES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #04000b; /* Mescla com a cor escura do topo */
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    background: linear-gradient(to bottom, #04000b, #220074) fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('logo_bg.png') no-repeat center center;
    background-size: 45% auto; /* Tamanho proporcional para computadores e notebooks */
    opacity: 0.07; /* Super sutil para não atrapalhar a leitura */
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4 {
    font-weight: 600;
}

.gold-text {
    color: #D4AF37;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* VIDEO DE FUNDO FIXED */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* OVERLAY PARA ESCURECER O VIDEO */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #04000b, #220074);
    opacity: 0.95;
    z-index: -2;
}

/* GLASSMORPHISM GLOBAL */
.glass-panel {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 16px;
    box-shadow: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 3rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
    border-bottom: 1px solid rgba(212, 175, 55, 0.2); /* Linha sutil dourada meio transparente ao scrollar */
    background: rgba(4, 0, 11, 0.7); /* Fundo sutilmente escurecido ao scrollar */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    position: absolute;
    left: 3rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #D4AF37;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8), 
                 0 0 20px rgba(212, 175, 55, 0.4), 
                 0 0 30px rgba(212, 175, 55, 0.2);
    transition: text-shadow 0.3s ease;
    cursor: pointer;
}

.logo-text:hover {
    text-shadow: 0 0 15px rgba(212, 175, 55, 1), 
                 0 0 30px rgba(212, 175, 55, 0.6), 
                 0 0 45px rgba(212, 175, 55, 0.3);
}

.menu-toggle {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 400;
    transition: color 0.3s, text-shadow 0.3s, transform 0.3s;
    display: inline-block;
}

.nav-links a:hover {
    color: #D4AF37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8), 0 0 20px rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
}

.app-title, .section-title, .hero-content h1 {
    transition: text-shadow 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.app-title:hover, .section-title:hover, .hero-content h1:hover {
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8), 0 0 30px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    padding: 4rem;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #D4AF37 0%, #b5952f 100%);
    color: #000;
    font-weight: 800;
    border-radius: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
}

/* SEÇÕES COMUNS */
.section-padding {
    padding: 100px 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #D4AF37;
    display: block !important;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.text-center {
    text-align: center;
}

/* GRID SOBRE NÓS */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.about-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* APPS (SOLUÇÕES) */
.apps-wrapper {
    padding: 50px 0;
}

.app-section {
    margin-bottom: 80px;
    padding: 0 20px;
}

.app-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 1.5rem;
}

.app-title {
    font-size: 2.5rem;
}

.app-tagline {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.app-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.app-info p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.highlight-box {
    background: rgba(212, 175, 55, 0.1);
    padding: 1.5rem;
    border-left: 4px solid #D4AF37;
    border-radius: 4px;
    font-weight: 600;
    opacity: 1 !important;
}

.feature-list li {
    margin-bottom: 0.5rem;
}

.feature-list i {
    margin-right: 10px;
}

/* MINI CARDS (DIAGRAMA) */
.app-diagram {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    padding: 2rem;
    border-radius: 12px;
}

.app-diagram h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.diagram-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mini-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 8px;
    width: 80%;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mini-card:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #D4AF37;
    transform: scale(1.05);
}

.highlight-card {
    background: rgba(212, 175, 55, 0.15);
    border-color: #D4AF37;
    color: #D4AF37;
}

.arrow-icon {
    color: #D4AF37;
    font-size: 1.2rem;
    opacity: 0.6;
}

/* CLUSTER (Para IntegraEdu) */
.diagram-cluster {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cluster-center {
    font-size: 1.25rem;
    font-weight: 800;
    padding: 22px 30px !important;
    width: 100% !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
    border-radius: 10px;
}

.cluster-nodes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

/* BOTÕES WHATSAPP */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

.mt-2 {
    margin-top: 2rem;
}

/* ANIMAÇÕES ON SCROLL */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVO */
@media (max-width: 992px) {
    .grid-2, .about-grid {
        grid-template-columns: 1fr;
    }
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
        padding: 120px 15px 60px; /* Espaço para o menu fixado no topo */
    }
    .hero-content {
        padding: 2.5rem 1rem;
        width: 100%;
        max-width: 100%;
    }
    .hero-content h1 {
        font-size: 2.2rem;
        display: block; /* Remove o inline-block no mobile para evitar quebras estranhas */
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    .hero-content p {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }
    .navbar {
        justify-content: space-between;
        padding: 1rem 2rem;
        border-radius: 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }
    .logo {
        position: static;
    }
    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        color: #D4AF37;
        font-size: 1.8rem;
        cursor: pointer;
        transition: color 0.3s;
    }
    .menu-toggle:hover {
        color: #fff;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 65px; /* Logo abaixo do cabeçalho */
        right: 2rem; /* Alinhado ao canto direito */
        left: auto;
        width: 180px; /* Largura reduzida */
        background: rgba(4, 0, 11, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 1.5rem;
        text-align: center;
        gap: 1.2rem;
        border: 1px solid rgba(212, 175, 55, 0.25); /* Borda fina dourada */
        border-radius: 12px; /* Formato de cartão suspenso */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    .nav-links.active {
        display: flex;
    }
    .cluster-nodes {
        grid-template-columns: 1fr; /* Coluna única no mobile para não estourar a tela */
    }
    .contact-buttons {
        flex-direction: column; /* Botões empilhados no mobile */
        align-items: center;
        width: 100%;
    }
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
}

/* INTRO SCREEN */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #04000b, #220074);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out;
}

#intro-screen.fade-out {
    opacity: 0;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Proporção de tela cheia sem cortar nenhuma parte */
    background-color: transparent;
    transition: opacity 0.5s ease-in-out; /* Fade suave de transição entre os vídeos */
}

#intro-video.fade-out-video {
    opacity: 0;
}

/* FADE-IN DO SITE INTEIRO */
.fade-in-content {
    opacity: 0;
    transition: opacity 1.2s ease-in-out; /* Efeito rápido e suave de entrada */
}

.fade-in-content.visible {
    opacity: 1;
}
