/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Russo+One&display=swap');

:root {
    /* Colors - Military Operations */
    --bg-dark: #0a0c0a;
    /* Deep Jungle Black */
    --bg-panel: rgba(20, 30, 20, 0.85);
    --accent-c4: #8f9e78;
    /* Faded Olive / Khaki */
    --accent-ct: #4B5320;
    /* Army Green */
    --accent-t: #706c42;
    /* Dirty Gold */
    --text-main: #e0e0e0;
    --text-muted: #838f83;
    --danger: #cf3a3a;
    --success: #4caf50;

    /* Effects */
    --glass-border: 1px solid rgba(143, 158, 120, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 10, 0, 0.6);
    --neon-glow-c4: 0 0 10px rgba(143, 158, 120, 0.2);
    --neon-glow-ct: 0 0 15px rgba(75, 83, 32, 0.4);

    /* Typography */
    --font-heading: 'Russo One', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

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

/* Background Texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(11, 15, 25, 0.95), rgba(11, 15, 25, 0.95)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235d79ae' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

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

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

.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 12px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--accent-ct);
    color: white;
    box-shadow: var(--neon-glow-ct);
}

.btn-primary:hover {
    background: #4a628e;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-c4);
    color: var(--accent-c4);
}

.btn-outline:hover {
    background: rgba(224, 204, 167, 0.1);
    box-shadow: var(--neon-glow-c4);
}

/* Sections */
section {
    padding: 80px 0;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

footer .shimatsu {
    color: var(--accent-ct);
    font-weight: 700;
}

/* Global H1 Typography */
h1 {
    font-size: clamp(2.5rem, 8vw, 7rem) !important;
    line-height: 1.1;
    width: 100%;
    white-space: nowrap;
    letter-spacing: -2px;
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }

    /* Hero Actions Stack */
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }



    h2 {
        font-size: 1.8rem !important;
        /* Force override inline styles if any */
    }

    .glass-panel {
        padding: 20px !important;
    }

    /* Hero Actions Stack */
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    /* Filters scrollable */
    .filters {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        margin-bottom: 20px;
        display: flex;
        gap: 10px;
    }

    .filters .btn {
        width: auto;
        /* Buttons in filters shouldn't be full width */
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Grid Adjustments */
    #clips-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- ANIMATIONS --- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes glitch {

    2%,
    64% {
        transform: translate(2px, 0) skew(0deg);
    }

    4%,
    60% {
        transform: translate(-2px, 0) skew(0deg);
    }

    62% {
        transform: translate(0, 0) skew(5deg);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(75, 83, 32, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(75, 83, 32, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(75, 83, 32, 0);
    }
}

/* Hero Intro Animations */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hero-animate {
    opacity: 0;
    animation: heroFadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.7s;
}

/* Utility Classes for JS */
.animate-on-scroll {
    opacity: 0;
    /* Will be handled by JS IntersectionObserver */
}

.animate-on-scroll.is-visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Specific Effects */
/* Glitch hover removed as requested */

.pulse-animation {
    animation: pulse-glow 2s infinite;
}

/* Stagger delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}