/* GLOBAL STYLES - UNHOLY DEVOTION */
:root {
    --bg: #000000;
    --accent: #ff0000;
    --accent-glow: rgba(255, 0, 0, 0.4);
    --text: #E5E5E5;
    --steel: #888888;
    --glass: rgba(255, 255, 255, 0.03);
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Work Sans', 'Roboto Mono', monospace;
    overflow-x: hidden;
    position: relative;
}

/* OVERLAYS FOR AESTHETICS */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.7) 140%);
    pointer-events: none;
    z-index: 9998;
}

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

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg,
            rgba(255, 0, 0, 0.02),
            rgba(0, 255, 0, 0.01),
            rgba(0, 0, 255, 0.02));
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    z-index: 9997;
}

/* NAVIGATION */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: transparent;
}

nav.scrolled {
    padding: 12px 50px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--accent);
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.75rem;
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2100;
}

.hamburger span {
    width: 30px;
    height: 1.5px;
    background: var(--accent);
    transition: all 0.4s ease;
}

@media (max-width: 1024px) {
    nav {
        padding: 15px 25px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 2050;
        gap: 30px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        width: 80%;
        text-align: center;
        padding: 15px;
        border: 1px solid rgba(255, 0, 0, 0.1);
    }

    .nav-links a:hover {
        background: rgba(255, 0, 0, 0.05);
    }
}

/* FOOTER */
footer {
    padding: 60px 40px;
    text-align: center;
    border-top: 1px solid #111;
    background: #050505;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.social-links a {
    color: var(--steel);
    text-decoration: none;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #333;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* COMMON COMPONENTS */
.section-title {
    font-family: 'Pirata One', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* ANIMATIONS */
@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.glitch-hover:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.05em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* CUSTOM CURSOR SYSTEM */
#custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease, background 0.3s ease, width 0.3s ease, height 0.3s ease;
    mix-blend-mode: difference;
    display: flex;
    align-items: center;
    justify-content: center;
}

#custom-cursor::after {
    content: "";
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.cursor-hover #custom-cursor {
    transform: scale(3);
    background: rgba(255, 0, 0, 0.1);
    border-width: 0.5px;
}

@media (max-width: 1024px) {
    #custom-cursor {
        display: none;
    }
}

/* AUDIO TOGGLE BUTTON */
.audio-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--accent);
    color: var(--accent);
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.audio-toggle:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.1);
}

.audio-toggle .sound-on {
    display: block;
}

.audio-toggle .sound-off {
    display: none;
}

.audio-toggle.muted .sound-on {
    display: none;
}

.audio-toggle.muted .sound-off {
    display: block;
}