/* ==========================================================================
   Custom Style: High-End Tech & Cloud (Sem plÃ¡gio IBM, 100% Autoral e Animado)
   ========================================================================== */

:root {
    --primary: #00b4db;          /* Tom ciano tecnolÃ³gico */
    --primary-dark: #006b99;     /* Baseada nos tons de nuvem seguros */
    --accent: #8e2de2;           /* Destaque puxado pro roxo vibrante */
    --dark-bg: #070b14;          /* Fundo bem dark, cor de painel de servidor */
    --dark-card: #0d1526;
    --font-base: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-base);
    overflow-x: hidden;
}

/* EspaÃ§amentos Universais */
.py-6 { padding-top: 6rem; padding-bottom: 6rem; }
.tracking-wide { letter-spacing: 2px; }
.letter-spacing-1 { letter-spacing: 1.5px; }

/* Navbar Animation Glass effect */
.transition-all { transition: all 0.3s ease-in-out; }
.glass-nav {
    background: transparent;
    padding: 1.5rem 0;
}
.glass-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}
.glass-nav .nav-link:hover {
    color: #ffffff;
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);
    padding: 0.8rem 0;
}
.glass-nav.scrolled .nav-link, .glass-nav.scrolled .navbar-brand span {
    color: #1a1a1a !important;
}
.glass-nav.scrolled .logo-img { filter: drop-shadow(0px 1px 1px rgba(0,0,0,0.1)); }
.glass-nav .logo-img { transition: filter 0.3s; }
.logo-footer { filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.3)); }

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700 !important;
    letter-spacing: 0px;
}

/* Buttons & Gradients Gerais */
.btn-gradient {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: white !important;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 180, 219, 0.4);
}
.title-gradient {
    background: -webkit-linear-gradient(45deg, #ffffff, #85e2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient {
    background: -webkit-linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hover-white:hover { color: #fff !important; }
.text-primary-accent { color: var(--primary-dark); }
.text-primary-custom { color: var(--primary-dark); }
.border-primary-custom { border-color: var(--primary) !important; }
.bg-light-primary { background-color: rgba(0, 180, 219, 0.1); width: 65px; height: 65px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }

/* =======================================================
   Background DinÃ¢mico - Hero
   ======================================================= */
.hero-section {
    min-height: 100vh;
    background-color: var(--dark-bg);
    overflow: hidden;
}
.bg-shape {
    position: absolute;
    filter: blur(95px);
    border-radius: 50%;
    animation: drift 15s infinite alternate ease-in-out;
    opacity: 0.7;
}
.shape-1 {
    width: 600px; height: 600px;
    background: rgba(0, 107, 153, 0.3);
    top: -150px; right: -200px;
}
.shape-2 {
    width: 700px; height: 700px;
    background: rgba(142, 45, 226, 0.2);
    bottom: -200px; left: -200px;
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translateY(0) translateX(0) scale(1); }
    100% { transform: translateY(60px) translateX(100px) scale(1.1); }
}

/* =======================================================
   Componentes Cards - Glass e UI Modern
   ======================================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    border-color: rgba(0, 180, 219, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.icon-box {
    width: 55px; height: 55px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
}

.bg-gradient-1 { background: linear-gradient(135deg, #00C9FF 0%, #92FE9D 100%); }
.bg-gradient-2 { background: linear-gradient(135deg, #4A00E0 0%, #8E2DE2 100%); }
.bg-gradient-3 { background: linear-gradient(135deg, #11998E 0%, #38EF7D 100%); }
.bg-gradient-4 { background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%); }
.bg-gradient-custom { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); }

.glass-btn { border-color: rgba(255,255,255,0.3); color: white; background: rgba(255,255,255,0.05); backdrop-filter: blur(5px); }
.glass-btn:hover { background: rgba(255,255,255,0.2) !important; color: white !important; }

@media (min-width: 576px) { .mt-minus-sm { margin-top: -3.5rem; } }

/* =======================================================
   Sobre, Servicos e Diversos
   ======================================================= */
.overlay-glass {
    position: absolute;
    bottom: 24px; right: 24px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.service-card { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important; }

.dark-section { background: var(--dark-bg); }

.contact-wrapper { min-height: 500px; }
.focus-ring-custom:focus { outline: none; border-color: var(--primary) !important; box-shadow: 0 0 0 4px rgba(0, 180, 219, 0.15); }
.border-white-50 { border-color: rgba(255,255,255,0.3) !important; }
.btn-social:hover { background: white; color: var(--dark-bg) !important; }

/* Custom Scrollbar Moderno */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }

/* ==========================================================================
   Plataformas Marquee (Infinite Carousel)
   ========================================================================== */
.plataformas-marquee-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 2rem 0;
}

.plataformas-marquee {
    width: max-content;
    animation: marqueeScroll 20s linear infinite;
}

.plataformas-marquee:hover {
    animation-play-state: paused;
}

.min-w-100 {
    min-width: 100%;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* because we have duplicated the content visually inside */
}

/* Tipografia especÃ­fica secÃ§Ã£o old-site */
.old-site-title {
    color: #002347; 
    font-weight: 500; 
    letter-spacing: -1px;
}

/* Correção do Fundo do Menu Mobile */
@media (max-width: 991px) {
    .glass-nav .navbar-collapse {
        background-color: var(--dark-bg, #070b14);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-radius: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    .glass-nav.scrolled .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        border-color: rgba(0, 0, 0, 0.05);
    }
}

/* =======================================================
   Floating Chat Widget
   ======================================================= */
.chat-widget-container { position: fixed; bottom: 30px; right: 30px; z-index: 1050; }
.chat-btn { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.chat-btn:hover { transform: scale(1.1); }
.chat-box { position: absolute; bottom: 80px; right: 0; width: 320px; border-radius: 1rem; animation: chatSlideUp 0.3s ease forwards; transform-origin: bottom right; }
@keyframes chatSlideUp { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 576px) { .chat-widget-container { bottom: 20px; right: 20px; } .chat-box { width: calc(100vw - 40px); right: 0; } }

.chat-bubble { max-width: 85%; padding: 12px 16px; border-radius: 12px; margin-bottom: 12px; font-size: 0.9rem; clear: both; word-wrap: break-word; line-height: 1.4; animation: bubblePop 0.3s ease forwards; }
.bot-bubble { background-color: #f1f5f9; color: #212529; border-bottom-left-radius: 2px; }
.user-bubble { background: linear-gradient(90deg, var(--primary-dark), var(--primary)); color: white; border-bottom-right-radius: 2px; }
@keyframes bubblePop { 0% { opacity: 0; transform: translateY(10px) scale(0.95); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
