/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 600px;
}

.loader-character {
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    display: inline-block;
}

#loader-img {
    max-width: 400px;
    height: auto;
    filter: grayscale(1) contrast(1.2);
    opacity: 0.5;
}

.shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%);
    transform: skewX(-25deg);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.loader-status {
    width: 300px;
    margin: 0 auto;
}

.loading-text {
    font-family: var(--font-heading);
    color: var(--accent-red);
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.loading-bar-container {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
    animation: progress 3s forwards cubic-bezier(0.1, 0, 0.2, 1);
}

@keyframes progress {
    0% {
        width: 0%;
    }

    20% {
        width: 10%;
    }

    50% {
        width: 30%;
    }

    80% {
        width: 85%;
    }

    100% {
        width: 100%;
    }
}

:root {
    --bg-color: #050505;
    --card-bg: rgba(15, 15, 15, 0.7);
    --accent-red: #ff0000;
    --accent-blue: #0033ff;
    --text-main: #ffffff;
    --text-dim: #b0b0b0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --siren-glow-red: rgba(255, 0, 0, 0.4);
    --siren-glow-blue: rgba(0, 51, 255, 0.4);
    --font-heading: 'Oswald', 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-slow: 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Particles & Noise */
#parallax-bg {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: url('../assets/bg.png') center/cover no-repeat;
    z-index: -2;
    pointer-events: none;
    transition: transform 0.1s ease-out;
    filter: brightness(0.4) contrast(1.1);
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/dark-matter.png');
    /* Subtle noise */
    opacity: 0.1;
    z-index: 1000;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--accent-red);
    text-shadow: 0 0 15px var(--siren-glow-red);
}

.section-subtitle {
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.text-center {
    text-align: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.logo span {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-red);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #111 0%, #050505 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(5, 5, 5, 0.9) 30%, transparent 100%);
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 900;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch:hover::before {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: var(--accent-blue);
    z-index: -1;
}

.glitch:hover::after {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    color: var(--accent-red);
    z-index: -2;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-3px, 3px);
    }

    40% {
        transform: translate(-3px, -3px);
    }

    60% {
        transform: translate(3px, 3px);
    }

    80% {
        transform: translate(3px, -3px);
    }

    100% {
        transform: translate(0);
    }
}

.sub-title {
    font-size: 2rem;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Buttons */
.btn-primary,
.btn-primary-sm,
.btn-secondary,
.btn-discord {
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-fast);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 0 20px var(--siren-glow-red);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px var(--siren-glow-red);
    background: #ff3333;
}

.btn-primary-sm {
    padding: 0.6rem 1.2rem;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.8rem;
}

.btn-secondary {
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
    transform: translateY(-5px);
}

.btn-discord {
    background: #5865F2;
    color: #fff;
    font-size: 1.2rem;
    padding: 1.5rem 3rem;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    background: #4752c4;
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(88, 101, 242, 0.6);
}

/* Hero Image & Animation */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.character-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--accent-red) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 1;
    filter: blur(40px);
}

.floating {
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Siren Lights */
.siren-light {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--siren-glow-red) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    animation: flash 2s infinite alternate;
}

.siren-light.red {
    top: -100px;
    left: -100px;
}

.siren-light.blue {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--siren-glow-blue) 0%, transparent 70%);
    animation-delay: 1s;
}

@keyframes flash {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.glass-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    backdrop-filter: blur(5px);
}

.lead {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 600;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent-red);
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-dim);
}

/* Requirements Grid */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.req-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
}

.req-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-red);
}

.req-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-red);
}

.req-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.req-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.glow-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--accent-red), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}

.req-card:hover .glow-border {
    opacity: 1;
}

/* Weapons Showcase */
.weapons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.weapon-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.weapon-card.full-width {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
}

.weapon-img {
    background: radial-gradient(circle, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    justify-content: center;
}

.weapon-img img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
    transition: var(--transition-fast);
}

.weapon-card:hover .weapon-img img {
    transform: scale(1.1);
}

.weapon-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-red);
}

/* Apply Box */
.apply-box {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(5, 5, 5, 0.9) 100%);
    padding: 4rem;
    border-radius: 20px;
    border: 1px dashed var(--accent-red);
    text-align: center;
}

.apply-steps {
    display: flex;
    justify-content: space-around;
    margin: 4rem 0;
    flex-wrap: wrap;
    gap: 2rem;
}

.step {
    flex: 1;
    min-width: 150px;
    position: relative;
}

.step-num {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: rgba(255, 0, 0, 0.2);
    margin-bottom: -1rem;
}

.step p {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background: #000;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-dim);
    margin-top: 1rem;
}

.footer-badge {
    display: block;
    max-width: 80px;
    height: auto;
    margin-top: 1rem;
    filter: drop-shadow(0 0 10px var(--siren-glow-red));
    opacity: 0.8;
    transition: var(--transition-fast);
}

.footer-badge:hover {
    opacity: 1;
    transform: scale(1.1);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.disclaimer {
    margin-top: 0.5rem;
    opacity: 0.5;
}

/* Reveal Animations */
[data-reveal] {
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.2s ease;
}

[data-reveal="left"] {
    transform: translateX(-50px);
}

[data-reveal="right"] {
    transform: translateX(50px);
}

[data-reveal="bottom"] {
    transform: translateY(50px);
}

[data-reveal].active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Weapon Silhouettes Decor */
.hero::before {
    content: '\f05b';
    /* Crosshairs */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20%;
    right: 10%;
    font-size: 20rem;
    color: rgba(255, 255, 255, 0.02);
    transform: rotate(15deg);
    z-index: 0;
}

.about::before {
    content: '\f5d2';
    /* Shield */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 10%;
    left: 5%;
    font-size: 15rem;
    color: rgba(255, 0, 0, 0.03);
    z-index: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 100px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .weapons-grid {
        grid-template-columns: 1fr;
    }

    .weapon-card.full-width {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .apply-steps {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}