:root {
    --bg-deep: #050505;
    --bg-card: #0a0a0a;
    --accent: #eeba2b;
    --accent-dim: #b88a1a;
    --tech-blue: #0055d4;
    --text-main: #f5f5f7;
    --text-dim: #86868b;
    --border: rgba(255, 255, 255, 0.08);
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1140px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Fundo sólido sem imagem */
    background: var(--bg-deep);
}

/* Diferenciação entre seções */
.section-alt {
    background: rgba(255, 255, 255, 0.015);
}

.section-dark {
    background: rgba(0, 0, 0, 0.3);
}

.section-accent {
    background: linear-gradient(135deg, rgba(0, 85, 212, 0.05) 0%, rgba(238, 186, 43, 0.03) 100%);
}

/* Elementos flutuantes de tecnologia */
.tech-element {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    filter: blur(1px);
    transition: transform 0.2s ease-out;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* --- Grain Overlay --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

/* --- Typography --- */
h1 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-size: clamp(40px, 6vw, 90px) !important;
}

h2 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-size: clamp(30px, 4vw, 60px) !important;
}

h3 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    font-size: 24px;
}

.text-gold { color: var(--accent); }

/* --- Layout Elements --- */
.container-premium {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.grid-border {
    border: 1px solid var(--border);
}

/* --- Navbar --- */
.navbar-premium {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99999;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px 0;
}

.navbar-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar-scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    mix-blend-mode: normal;
    padding: 10px 0;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link-p {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: opacity 0.3s;
    position: relative;
}

.nav-link-p::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link-p:hover::after {
    width: 100%;
}

.nav-link-p:hover { opacity: 0.8; }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 100001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s ease;
}

/* --- Hero & Headers --- */
.hero-p, .page-header-p {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 0 60px; /* Aumentado para evitar overlap com navbar fixa */
    position: relative;
    overflow: hidden;
}

.page-header-p {
    min-height: 60vh;
    justify-content: center;
    padding-bottom: 60px;
}

/* Removido o overlay escuro radial para destacar o fundo tecnológico */
.hero-p::after, .page-header-p::after {
    display: none;
}

.neural-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}

.neural-bg svg {
    width: 100%;
    height: 100%;
}

.hero-title-large {
    font-size: clamp(40px, 8vw, 120px) !important;
    margin-bottom: 20px;
}

.hero-footer {
    position: relative;
    margin-top: 40px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.hero-desc-p {
    max-width: 450px;
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* --- Section Styling --- */
.sec-title-p {
    font-size: clamp(30px, 5vw, 60px) !important;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
}

.block-item {
    padding: 40px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.block-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.block-item h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.block-item p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Cards --- */
.area-grid-p {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
}

.area-cell {
    padding: 40px 30px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
}

.area-cell::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--accent);
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.area-cell:hover::after { height: 100%; }
.area-cell:hover * { color: #000 !important; }

.area-cell p i {
    color: var(--tech-blue) !important;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px var(--tech-blue));
}

.area-cell:hover::after {
    background: linear-gradient(135deg, var(--tech-blue) 0%, var(--accent) 100%);
}

/* --- Custom Cursor --- */
.c-cursor {
    width: 8px;
    height: 8px;
    background: var(--tech-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 10px var(--tech-blue), 0 0 20px var(--tech-blue);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .navbar-premium { padding: 20px 30px; }
    .hero-footer { flex-direction: column; align-items: flex-start; gap: 30px; }
    .area-grid-p { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container-premium { padding: 0 20px; }
    
    .navbar-premium { padding: 15px 20px; }
    .navbar-scrolled { padding: 10px 20px; }
    
    .menu-toggle { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #050505; /* Fundo sólido e escuro */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 100000; /* Acima de tudo */
        gap: 20px;
        padding: 40px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link-p {
        font-size: 1rem;
        letter-spacing: 2px;
        text-align: center;
        width: 100%;
        padding: 10px 0;
    }

    .sec-title-p {
        font-size: 2rem !important;
        margin-bottom: 30px;
    }

    /* Hamburger Animation */
    .menu-toggle.active span { background: var(--tech-blue); box-shadow: 0 0 10px var(--tech-blue); }
    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero-p, .page-header-p {
        padding: 100px 0 40px;
        min-height: auto;
    }

    /* Grid do Cuito Cuanavale e outros grids 1fr 1fr */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Centros: 350px 1fr → 1 coluna */
    div[style*="grid-template-columns: 350px 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .hero-title-large {
        font-size: 12vw !important;
    }

    .hero-desc-p {
        font-size: 0.9rem !important;
        max-width: 100% !important;
        margin: 0 auto;
    }

    .content-block { grid-template-columns: 1fr; }
    .area-grid-p { grid-template-columns: 1fr; }
    
    .block-item { padding: 40px 20px; }

    /* Grids genéricos para mobile */
    section div[style*="grid-template-columns: 1fr 1fr"],
    section div[style*="grid-template-columns: 1.5fr 1fr"],
    section div[style*="grid-template-columns: 1fr 1.5fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Centros: 5 colunas → 1 coluna */
    div[style*="repeat(5, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Números: 6 colunas → 3 colunas */
    /* Números: 6 colunas → 2 colunas para melhor leitura */
    div[style*="repeat(6, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    /* Footer: 6 colunas → 2 colunas */
    /* Footer: 6 colunas → 1 coluna para mobile real */
    div[style*="2fr 1fr 1fr 1fr 1fr 1.5fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }
    
    div[style*="2fr 1fr 1fr 1fr 1fr 1.5fr"] img {
        margin: 0 auto;
    }

    /* Hero image mobile */
    .hero-p img[style*="position: absolute"] {
        width: 100% !important;
        opacity: 0.3 !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }

    /* Parceiros wrap */
    div[style*="justify-content: space-between"][style*="flex-wrap"] {
        justify-content: center !important;
        gap: 20px !important;
    }
    
    .hero-footer div {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-footer a {
        text-align: center;
    }
}
