/* ==========================================================================
   1. RESET & VARIÁVEIS GLOBAL
   ========================================================================== */
:root {
    --primary-color: #d10000;
    /* Vermelho principal dinâmico */
    --primary-hover: #990000;
    /* Vermelho mais escuro para hover */
    --bg-dark: #050505;
    /* Preto quase absoluto para o fundo principal */
    --bg-alt: #0f0f0f;
    /* Preto levemente elevado para cards/seções alternativas */
    --text-color: #ffffff;
    /* Texto principal em branco limpo */
    --text-muted: #a3a3a3;
    /* Texto secundário em cinza neutro */
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    font-family: system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fundo Principal */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0, 0, 0, .80), rgba(0, 0, 0, .95)),
        url("../img/camuflado.jpg");
    background-size: cover;
    background-position: center;
    z-index: -2;
}

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

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


/* Estilo moderno para o texto da Logo */
.logo-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    position: relative;
    /* Leve sombra de fundo para dar profundidade */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* Destaque em vermelho metálico/iluminado na palavra TÁTICAS */
.logo-text .highlight {
    background: linear-gradient(180deg, #ff3b3b 0%, #b10000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    /* Glow/Brilho vermelho em volta da palavra */
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6));
}

/* Efeito ao passar o mouse na Logo */
.logo:hover .logo-text .highlight {
    filter: drop-shadow(0 0 14px rgba(255, 0, 0, 0.9));
    transition: filter 0.3s ease;
}

/* ==========================================================================
   2. HEADER & NAVBAR
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(0, 2, 6, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.nav-desktop {
    display: flex;
    gap: 30px;
}

.nav-desktop a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-desktop a:hover {
    color: var(--text-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

/* ==========================================================================
   3. BOTÕES
   ========================================================================== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   SIDEBAR MOBILE
   ========================================================================== */

.sidebar {

    position: fixed;

    top: 0;
    right: -88px;

    width: 88px;
    height: 100vh;

    background: #090909;

    border-left: 1px solid rgba(255, 0, 0, .15);

    backdrop-filter: blur(18px);

    box-shadow: -10px 0 30px rgba(0, 0, 0, .45);

    z-index: 999;

    display: flex;

    flex-direction: column;

    align-items: center;

    padding: 20px 0;

    transition: right .35s ease;

}

.sidebar.active {

    right: 0;

}

/*==============================
HEADER
==============================*/

.sidebar-header {

    width: 100%;

    display: flex;

    justify-content: center;

    margin-bottom: 25px;

}

.close-btn {

    width: 48px;

    height: 48px;

    border: none;

    border-radius: 50%;

    background: #161616;

    color: #fff;

    display: flex;

    justify-content: center;

    align-items: center;

    cursor: pointer;

    transition: .3s;

}

.close-btn:hover {

    background: #b10000;

    transform: rotate(90deg);

}

/*==============================
MENU
==============================*/

.sidebar-nav {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Alinha no topo */
    align-items: center;
    gap: 18px;
    padding-top: 40px;
    /* Ajuste este valor para subir ou descer o conjunto */
}

.sidebar-link {

    width: 52px;

    height: 52px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 16px;

    background: #141414;

    color: #d7d7d7;

    text-decoration: none;

    transition: .3s;

}

.sidebar-link svg,
.sidebar-link i {

    width: 24px;

    height: 24px;

}

.sidebar-link:hover {

    background: #b10000;

    color: #fff;

    transform: scale(1.08);

    box-shadow: 0 0 20px rgba(255, 0, 0, .45);

}

/*==============================
BOTÃO
==============================*/

.sidebar-btn {
    width: 52px;
    height: 52px;

    /* REMOVA O PADDING-TOP */
    /* Use margin-top para subir o botão em relação ao elemento anterior */
    margin-top: -20px;

    /* Mantenha o restante */
    margin-bottom: 20px;
    border: none;
    border-radius: 16px;
    background: #b10000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: .3s;
}

.sidebar-btn svg,
.sidebar-btn i {

    width: 24px;

    height: 24px;



}

.sidebar-btn:hover {

    background: #d30000;

    transform: scale(1.08);

    box-shadow: 0 0 20px rgba(255, 0, 0, .45);

}

/*==============================
OVERLAY
==============================*/

.overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .65);

    backdrop-filter: blur(3px);

    opacity: 0;

    visibility: hidden;

    transition: .35s;

    z-index: 998;

}

.overlay.active {

    opacity: 1;

    visibility: visible;

}

/*==============================
RESPONSIVO
==============================*/

@media (max-height:700px) {

    .sidebar-nav {

        gap: 12px;

    }

    .sidebar-link,
    .sidebar-btn {

        width: 46px;
        height: 46px;

    }

}

@media (max-height:560px) {

    .sidebar-nav {

        gap: 8px;

    }

    .sidebar-link,
    .sidebar-btn {

        width: 42px;
        height: 42px;

    }

}

/* ==========================================================================
   5. BANNER / HERO (RESPONSIVO PARA CELULAR)
   ========================================================================== */
.hero {
    /* dvh (dynamic viewport height) previne os bugs de altura do Safari/Chrome no celular */
    min-height: 100dvh;
    width: 100%;
    padding-top: calc(var(--header-height, 80px) + 20px);
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* Imagem de Fundo com ajuste perfeito para celular */
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.9)), url('img/tatica1.jpeg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    /* Mantém scroll suave em navegadores móveis */
}

.hero-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.hero-content h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted, #9a9a9a);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    /* Permite que os botões dobrem de linha se a tela for pequena */
}

/* ==========================================================================
   AJUSTES ESPECÍFICOS PARA DISPOSITIVOS MÓVEIS
   ========================================================================== */
@media (max-width: 768px) {
    .hero {
        /* Garante que o banner apareça sem cortar em celulares menores */
        min-height: 85vh;
        padding-top: calc(var(--header-height, 70px) + 30px);
    }

    .hero-content h1 {
        font-size: 2.2rem;
        /* Reduz o tamanho da fonte para não estourar a tela */
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
        /* Reduz o tamanho do texto para caber no visor */
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        /* Empilha os botões um abaixo do outro no celular */
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary,
    .hero-buttons button,
    .hero-buttons a {
        width: 100%;
        /* Botões ocupam a largura total no celular para facilitar o toque */
    }
}

/* ==========================================================================
   6. SEÇÕES & CARDS
   ========================================================================== */
.section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-alt);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
}

.card-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ==========================================================================
   7. CARROSSEL DE IMAGENS
   ========================================================================== */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.7);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: var(--primary-color);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--primary-color);
}



/* ==========================================================================
   9. RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 768px) {

    .nav-desktop,
    .desktop-only {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .carousel-slide img {
        height: 300px;
    }
}


/* ==========================================================================
   Loading
   ========================================================================== */

@keyframes loading {

    100% {

        width: 100%;

    }

}

/* ==========================================================================
   LOADER (TELA DE CARREGAMENTO)
   ========================================================================== */
#loader {
    position: fixed;
    inset: 0;
    background: #070707;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.loader-content {
    width: 700px;
    max-width: 90%;
    text-align: center;
}

.loader-logo {
    color: #ddd;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 35px;
    letter-spacing: 4px;
}

.loader-frame {
    padding: 14px;
    border-radius: 45px;
    background: linear-gradient(180deg, #444, #0f0f0f);
    box-shadow:
        inset 0 0 15px rgba(255, 255, 255, .08),
        0 0 30px rgba(0, 0, 0, .8);
}

.loader-track {
    height: 56px;
    background: #111;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    border: 2px solid #2b2b2b;
}

/* Barra de progresso unificada */
.loader-progress {
    width: 0%;
    height: 100%;
    position: relative;
    border-radius: 40px;
    background: linear-gradient(90deg, #290000, #6d0000, #ff2b2b);
    box-shadow:
        inset 0 0 15px rgba(255, 255, 255, .2),
        0 0 25px red;
    overflow: visible;
}

.loader-progress::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg,
            rgba(255, 255, 255, .10) 0,
            rgba(255, 255, 255, .10) 18px,
            transparent 18px,
            transparent 38px);
    animation: moveLines 1.3s linear infinite;
}

.bullet {
    position: absolute;
    right: -95px;
    top: -12px;
    width: 140px;
    height: 80px;
    background: url("img/9mm2.png") center center no-repeat;
    background-size: contain;
    filter: drop-shadow(0 0 10px #ff0000);
}

.loader-track::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120px;
    width: 120px;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, .4),
            transparent);
    animation: shine 2s linear infinite;
}


.card {
    background-color: var(--bg-alt);
    /* #0f0f0f */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(209, 0, 0, 0.2);
    /* Borda sutil vermelha */
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(209, 0, 0, 0.25);
    /* Glow vermelho ao passar o mouse */
}

.card-icon {
    width: 44px;
    height: 44px;
    color: var(--primary-color);
    /* #d10000 */
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(209, 0, 0, 0.6));
    /* Brilho vermelho no ícone */
}



.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-color);
}

.logo-img {
    height: 48px;
    /* Ajuste o tamanho da logo no header */
    width: auto;
    object-fit: contain;
    /* Adiciona um leve brilho vermelho ao redor do brasão */
    filter: drop-shadow(0 0 6px rgba(209, 0, 0, 0.4));
}


/* ==========================================================================
   FOOTER (AJUSTADO E RESPONSIVO)
   ========================================================================== */
/* ==========================================================================
   FOOTER (COMPLETO & CORRIGIDO)
   ========================================================================== */
.footer {
    position: relative;
    overflow: hidden;
    margin-top: 100px;
    background: #050505;
    border-top: 1px solid rgba(209, 0, 0, .15);
}

/* Linha Neon / Laser Superior em Vermelho */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    max-width: 90%;
    height: 2px;
    background: #d10000;
    box-shadow:
        0 0 20px #d10000,
        0 0 45px #d10000;
}

/* Grid Container das Colunas */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px 40px;
}

/* Colunas do Rodapé */
.footer-col h3,
.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

/* Logo do Footer */
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    text-decoration: none;
    transition: .35s ease;
}

.footer-logo:hover {
    transform: translateX(5px);
}

.footer-logo img {
    width: 65px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.5));
    transition: .35s ease;
}

.footer-logo:hover img {
    transform: rotate(-5deg) scale(1.05);
}

/* Texto da Logo no Footer */
.footer-logo .logo-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    line-height: 1;
}

.footer-logo .logo-text .highlight {
    background: linear-gradient(180deg, #ff3b3b 0%, #b10000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.footer-description {
    color: #9a9a9a;
    line-height: 1.9;
    max-width: 320px;
    margin-top: 15px;
    font-size: 0.95rem;
}

/* Listas e Links do Rodapé */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: #bbb;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: .3s ease;
}

.footer-col ul li a:hover {
    color: #ff2a2a;
    padding-left: 4px;
}

.footer-col ul li i {
    width: 18px;
    color: #d10000;
}

/* Redes Sociais */
.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #101010;
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    transition: .35s ease;
}

.social-btn:hover {
    transform: translateY(-8px) scale(1.08);
    background: #b10000;
    border-color: #ff4444;
    box-shadow: 0 0 25px rgba(255, 0, 0, .55);
}

/* Rodapé Inferior */
.footer-bottom {
    margin-top: 20px;
    padding: 22px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #777;
    font-size: 14px;
    letter-spacing: 1px;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE)
   ========================================================================== */
@media(max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 650px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-col ul li {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* ==========================================================================
   LOADER LOGO (CENTRALIZADO & MAIOR)
   ========================================================================== */
.loader-logo-inicio {
    display: flex;
    justify-content: center;
    /* Centraliza na horizontal */
    align-items: center;
    /* Centraliza na vertical se houver altura */
    width: 100%;
    margin-bottom: 35px;
    text-align: center;
}

.loader-logo-inicio .logo-inicio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    /* Aumentado o espaço entre a imagem e o texto */
    text-decoration: none;
}

.loader-logo-inicio .logo-img-inicio {
    height: 80px;
    /* Aumentou a altura da imagem proporcionalmente */
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.6));
}

.loader-logo-inicio .logo-text-inicio {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.4rem;
    /* Fonte maior para se destacar na tela de carregamento */
    font-weight: 800;
    letter-spacing: 3px;
    /* Letras um pouco mais espaçadas para visual tático */
    color: #ffffff;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
}

.loader-logo-inicio .logo-text-inicio .highlight-inicio {
    background: linear-gradient(180deg, #ff3b3b 0%, #b10000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    filter: drop-shadow(0 0 12px rgba(255, 0, 0, 0.8));
}