/* ==========================================================================
   VARIÁVEIS DE ESTILO - ZERO STOP PRECISION
   ========================================================================== */
   :root {
    /* Cores Principais */
    --black-matte: #0a0a0a;
    --lead-gray: #141414;
    --dark-graphite: #1f1f1f;
    --brushed-steel: #5e6268;
    --light-steel: #8a8f96;
    
    /* Destaques */
    --cool-white: #e6edf5;
    --pure-white: #ffffff;
    --dark-red: #7a1515;
    --glow-red: rgba(122, 21, 21, 0.4);
    --glow-white: rgba(230, 237, 245, 0.1);
    
    /* Tipografia */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-subheading: 'Oswald', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-tech: 'Orbitron', sans-serif;
    
    /* Outros */
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(94, 98, 104, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--black-matte);
    color: var(--cool-white);
}

body {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Tactical grid background */
    background-image: 
        linear-gradient(rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.9)),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-attachment: fixed;
}

::selection {
    background-color: var(--dark-red);
    color: var(--pure-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-weight: 400;
    line-height: 1.1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   PARTICLES & BACKGROUNDS
   ========================================================================== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo a {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--cool-white);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--brushed-steel);
    margin-left: 8px;
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links li a {
    font-family: var(--font-subheading);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-steel);
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--pure-white);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--dark-red);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
    box-shadow: 0 0 8px var(--glow-red);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--light-steel);
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(10, 10, 10, 0.9) 0%, 
        rgba(10, 10, 10, 0.4) 50%,
        rgba(10, 10, 10, 0.8) 100%
    );
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--black-matte) 0%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 5rem;
    max-width: 900px;
    margin-top: 5rem;
}

.hero h1 {
    font-size: 6rem;
    color: var(--pure-white);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
    position: relative;
}

/* Glitch Effect */
.glitch {
    position: relative;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--brushed-steel);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--dark-red);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 86px, 0); }
    20% { clip: rect(61px, 9999px, 59px, 0); }
    40% { clip: rect(12px, 9999px, 48px, 0); }
    60% { clip: rect(74px, 9999px, 14px, 0); }
    80% { clip: rect(4px, 9999px, 93px, 0); }
    100% { clip: rect(21px, 9999px, 42px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(3px, 9999px, 13px, 0); }
    40% { clip: rect(48px, 9999px, 72px, 0); }
    60% { clip: rect(11px, 9999px, 88px, 0); }
    80% { clip: rect(59px, 9999px, 2px, 0); }
    100% { clip: rect(81px, 9999px, 56px, 0); }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--light-steel);
    margin-bottom: 3rem;
    border-left: 2px solid var(--dark-red);
    padding-left: 1rem;
    max-width: 600px;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-subheading);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--dark-red);
    color: var(--pure-white);
    border: 1px solid var(--dark-red);
    box-shadow: 0 0 15px rgba(122, 21, 21, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(122, 21, 21, 0.6);
    background-color: #8c1a1a;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background-color: transparent;
    color: var(--cool-white);
    border: 1px solid var(--brushed-steel);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: var(--cool-white);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    opacity: 0.7;
}

.scroll-indicator span {
    font-family: var(--font-tech);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--brushed-steel);
    margin-bottom: 10px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 1px solid var(--brushed-steel);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background-color: var(--cool-white);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 3.5rem;
    color: var(--pure-white);
}

.section-header h2 span {
    color: var(--brushed-steel);
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--dark-red);
    margin: 1rem auto 0;
    box-shadow: 0 0 10px var(--glow-red);
}

.divider.left {
    margin: 1rem 0 0 0;
}

/* ==========================================================================
   CATEGORIES SECTION
   ========================================================================== */
.categories-section {
    background-color: var(--black-matte);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--lead-gray);
    border: 1px solid var(--dark-graphite);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background-color: var(--dark-red);
    transition: var(--transition);
}

.category-card:hover {
    background: var(--dark-graphite);
    border-color: var(--brushed-steel);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.category-card:hover::before {
    height: 100%;
}

.category-card i {
    font-size: 3rem;
    color: var(--brushed-steel);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.category-card:hover i {
    color: var(--pure-white);
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1.8rem;
    color: var(--cool-white);
}

/* ==========================================================================
   ARTICLES SECTION
   ========================================================================== */
.articles-section {
    background: linear-gradient(to bottom, var(--black-matte), var(--lead-gray));
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 2.5rem;
}

.article-card {
    background: var(--dark-graphite);
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
}

.article-card:hover {
    border-color: var(--brushed-steel);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    transform: translateY(-10px);
}

.article-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.article-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--dark-graphite), transparent);
}

.article-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--brushed-steel);
    padding: 0.3rem 1rem;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--cool-white);
    z-index: 2;
}

.article-content {
    padding: 2rem;
}

.article-date {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    color: var(--brushed-steel);
    display: block;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--pure-white);
    transition: var(--transition);
}

.article-card:hover .article-content h3 {
    color: var(--dark-red);
}

.article-content p {
    color: var(--light-steel);
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-read-more {
    font-family: var(--font-subheading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pure-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-read-more i {
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-read-more:hover i {
    transform: translateX(5px);
    color: var(--dark-red);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    background-image: url('assets/about.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(10, 10, 10, 0.95) 0%, 
        rgba(10, 10, 10, 0.8) 60%, 
        transparent 100%
    );
}

.about-container {
    position: relative;
    z-index: 10;
}

.about-content {
    max-width: 600px;
}

.about-content h2 {
    font-size: 4rem;
    color: var(--pure-white);
    margin-bottom: 0.5rem;
}

.about-content h2 span {
    color: var(--brushed-steel);
}

.about-content p {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: var(--light-steel);
}

.about-content strong {
    color: var(--pure-white);
    font-weight: 600;
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-tech);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pure-white);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-subheading);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dark-red);
    margin-top: 5px;
}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */
.newsletter-section {
    background-color: var(--lead-gray);
    border-top: 1px solid var(--dark-graphite);
    border-bottom: 1px solid var(--dark-graphite);
}

.newsletter-box {
    background: var(--black-matte);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02));
    transform: skewX(-45deg);
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    font-size: 3rem;
    color: var(--pure-white);
    margin-bottom: 1rem;
}

.newsletter-text h2 span {
    color: var(--dark-red);
}

.newsletter-text p {
    color: var(--light-steel);
}

.newsletter-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group i {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    color: var(--brushed-steel);
}

.input-group input {
    width: 100%;
    background: var(--dark-graphite);
    border: 1px solid var(--glass-border);
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    color: var(--pure-white);
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--brushed-steel);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.newsletter-form .btn {
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--black-matte);
    padding: 5rem 0 2rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-family: var(--font-tech);
    font-size: 1.8rem;
    color: var(--pure-white);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.footer-brand h3 span {
    color: var(--brushed-steel);
}

.footer-brand p {
    color: var(--light-steel);
    max-width: 300px;
}

.footer h4 {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--pure-white);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--light-steel);
}

.footer-links a:hover {
    color: var(--pure-white);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--dark-graphite);
    border: 1px solid var(--glass-border);
    color: var(--light-steel);
    border-radius: 2px;
}

.social-icons a:hover {
    background: var(--brushed-steel);
    color: var(--pure-white);
    border-color: var(--pure-white);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--brushed-steel);
    font-size: 0.9rem;
}

.footer-motto {
    font-family: var(--font-tech);
    color: var(--dark-red);
    letter-spacing: 2px;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 992px) {
    .hero h1 { font-size: 4rem; }
    .hero-content { padding: 0 2rem; }
    .section-header h2 { font-size: 2.8rem; }
    .newsletter-box { flex-direction: column; padding: 3rem 2rem; gap: 2rem; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        border-bottom: 1px solid var(--glass-border);
        z-index: -1;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        background-attachment: scroll;
    }
    
    .hero h1 { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-buttons { flex-direction: column; }
    
    .about-content h2 { font-size: 3rem; }
    .stats-row { flex-direction: column; gap: 1.5rem; }
    
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 576px) {
    .container { padding: 0 1rem; }
    .hero-content { padding: 0 1rem; }
    section { padding: 4rem 0; }
    .section-header { margin-bottom: 3rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
    .section-header h2 { font-size: 2.2rem; }
    .category-card { padding: 2rem 1rem; }
    .about-content h2 { font-size: 2.2rem; }
    .newsletter-box { padding: 2rem 1rem; }
    .input-group input { padding: 1rem 1rem 1rem 3rem; font-size: 1rem; }
    .btn { padding: 0.8rem 1.5rem; font-size: 1rem; }
    .footer { padding: 3rem 0 1.5rem; }
    .logo a { font-size: 1.2rem; }
    .glitch::before { clip: rect(10px, 550px, 50px, 0); }
    .glitch::after { clip: rect(30px, 550px, 80px, 0); }
}
