/* ==========================================================================
   VIRTULA ERP - Site Institucional SaaS Premium (Mobile-First)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Paleta de Cores */
    --bg-dark: #09090B;
    --card-bg: #18181B;
    --neon-blue: #3B82F6;
    --neon-purple: #8B5CF6;
    --cyan: #06B6D4;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    /* Gradientes */
    --brand-gradient: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    --neon-glow: 0 0 25px rgba(59, 130, 246, 0.4);
}

/* Base Reset */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- ANIMAÇÕES CORE --- */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- UTILIDADES E COMPONENTES --- */
.text-muted-custom { color: var(--text-muted) !important; }

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-card {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), var(--neon-glow);
}

/* --- BOTÕES PREMIUM --- */
.btn-neon {
    background: var(--brand-gradient);
    color: var(--text-main) !important;
    font-weight: 600;
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
}

.btn-outline-custom {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main) !important;
    font-weight: 500;
    padding: 12px 26px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    border-color: var(--neon-blue);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: var(--neon-glow);
}

/* --- MENU MOBILE-FIRST (Estilização da Gaveta) --- */
.navbar {
    background: rgba(9, 9, 11, 0.7) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

/* Estilização Mobile Padrão */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(12, 12, 14, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        padding: 80px 30px 30px 30px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: block !important; /* Força o funcionamento correto da transição lateral */
    }

    .navbar-collapse.show {
        right: 0;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 12px 0 !important;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }
    
    /* Botão de Fechar customizado para o Menu Mobile */
    .btn-close-menu {
        position: absolute;
        top: 25px;
        right: 25px;
        background: transparent;
        border: none;
        color: white;
        font-size: 2rem;
    }
}

/* Desliga o botão de fechar em desktops */
@media (min-width: 992px) {
    .btn-close-menu { display: none; }
    .nav-link {
        position: relative;
        transition: color 0.3s ease;
    }
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--brand-gradient);
        transition: width 0.3s ease;
    }
    .nav-link:hover::after {
        width: 100%;
    }
}

/* --- HERO SECTION --- */
.hero-wrapper {
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glow-effect {
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--neon-purple);
    filter: blur(140px);
    border-radius: 50%;
    will-change: transform, opacity;
    animation: pulseGlow 8s infinite ease-in-out;
}

.floating-hexagon {
    animation: float 6s infinite ease-in-out;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.2));
}