/* =========================================
   ESTILOS GLOBAIS E TIPOGRAFIA
========================================= */
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; background-color: #F8F9FA; color: #333333; overflow-x: hidden;}
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; }

/* SELEÇÃO DE TEXTO KUBOS (BRANDING) */
::selection {
    background-color: rgba(212, 175, 55, 0.3); /* Dourado KUBOS translúcido */
    color: #0A192F; /* Azul Marinho KUBOS para alto contraste */
}
::-moz-selection {
    background-color: rgba(212, 175, 55, 0.3);
    color: #0A192F;
}
/* =========================================
   HEADER
========================================= */
.glass-header {
    background: rgba(10, 25, 47, 0.90);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* =========================================
   HERO SECTION (MALHA GEOMÉTRICA)
========================================= */
#home {
    position: relative;
    background-image: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.95)), url('https://images.unsplash.com/photo-1541881451970-ba0fe586714b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

/* FIX MOBILE: Resolve o bug do background sumir ou dar zoom no iOS/Android */
@media (max-width: 768px) {
    #home {
        background-attachment: scroll;
    }
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* =========================================
   GEOMETRIA  (HEXÁGONOS E FUNDOS)
========================================= */
.hexagon-shape {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    transition: all 0.3s ease;
}

.hexagon-shape:hover {
    background: #D4AF37;
}

/* FIX: Mantém o eixo centralizado (X em -50%) ao dar o zoom (scale) */
.hexagon-shape.absolute:hover {
    transform: translateX(-50%) scale(1.1) !important;
}

.hexagon-shape:hover i {
    color: #0A192F;
}

.bg-geometric {
    background-color: #ffffff;
    background-image: linear-gradient(30deg, #F8F9FA 12%, transparent 12.5%, transparent 87%, #F8F9FA 87.5%, #F8F9FA),
                      linear-gradient(150deg, #F8F9FA 12%, transparent 12.5%, transparent 87%, #F8F9FA 87.5%, #F8F9FA),
                      linear-gradient(30deg, #F8F9FA 12%, transparent 12.5%, transparent 87%, #F8F9FA 87.5%, #F8F9FA),
                      linear-gradient(150deg, #F8F9FA 12%, transparent 12.5%, transparent 87%, #F8F9FA 87.5%, #F8F9FA),
                      linear-gradient(60deg, #f0f0f0 25%, transparent 25.5%, transparent 75%, #f0f0f0 75%, #f0f0f0),
                      linear-gradient(60deg, #f0f0f0 25%, transparent 25.5%, transparent 75%, #f0f0f0 75%, #f0f0f0);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    opacity: 0.95;
}

/* =========================================
   CARDS DE SERVIÇO (BLOCOS CÚBICOS)
========================================= */
.cube-card {
    border-bottom: 4px solid #D4AF37;
    border-right: 4px solid #D4AF37;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cube-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 10px 10px 0px rgba(10, 25, 47, 0.1);
}
/* TRAVA DE SEGURANÇA CONTRA OVERFLOW HORIZONTAL */
html, body {
    max-width: 100%;
    overflow-x: hidden; /* Impede o arraste lateral */
    position: relative;
}

/* Ajuste específico para as partículas não vazarem a tela */
#particles-js canvas {
    display: block;
    vertical-align: bottom;
    width: 100% !important;
    height: 100% !important;
}

/* Ajuste para evitar que as animações do AOS empurrem o site para o lado antes de entrarem */
[data-aos] {
    pointer-events: none;
}
.aos-animate {
    pointer-events: auto;
}

/* FIX ADICIONAL PARA MOBILE */
@media (max-width: 768px) {
    #home {
        background-attachment: scroll !important; /* Força o scroll simples no mobile */
        height: auto;
        min-height: 100svh;
    }
}