/**
 * BLACKOUT [REC] - Global Styles
 *
 * Design system: CSS custom properties, reset, base typography,
 * scrollbar, self-hosted font-face declarations, shared utilities.
 *
 * @package Blackout
 */

/* === FONT DECLARATIONS === */
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/syne/syne-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/syne/syne-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/syne/syne-800.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 100;
    font-display: swap;
    src: url('../fonts/jetbrains-mono/jetbrains-mono-100.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/jetbrains-mono/jetbrains-mono-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/jetbrains-mono/jetbrains-mono-700.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/jetbrains-mono/jetbrains-mono-800.woff2') format('woff2');
}

/* === SYSTEM VARIABLES === */
:root {
    --bg: #030303;
    --fg: #f4f4f4;
    --accent: #00e68a;
    --accent2: #a855f7;
    --glow: rgba(0, 230, 138, 0.15);
    --glow2: rgba(168, 85, 247, 0.1);
    --glass: rgba(255, 255, 255, 0.02);
    --glass-strong: rgba(10, 10, 10, 0.6);
    --border: rgba(255, 255, 255, 0.1);
    --blur: blur(24px);
}

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

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: 'JetBrains Mono', monospace;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); }

/* === REVEAL ANIMATION UTILITY === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* === SHARED SECTION STYLES === */
.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 6vw, 7rem);
    text-transform: uppercase;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    line-height: 1;
}

.section-padding {
    padding: 8rem 5%;
}

/* === BUTTON === */
.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 1rem 2rem;
    border: 1px solid var(--fg);
    color: var(--fg);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    transition: all 0.3s;
}
.btn:hover {
    background: var(--fg);
    color: var(--bg);
}

/* === PRELOADER === */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: strobe 0.15s infinite;
    transition: opacity 0.3s ease, visibility 0.3s;
}
#preloader .preloader-title {
    font-family: 'Syne', sans-serif;
    font-size: 5vw;
    mix-blend-mode: difference;
    color: white;
    text-transform: uppercase;
}
@keyframes strobe {
    0% { background: #000; }
    50% { background: #1a1a1a; }
    100% { background: #000; }
}

/* === AUDIO PLAYER GLASSMORPHISM === */
.audio-player {
    background: var(--glass-strong);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}

/* === SKIP TO CONTENT === */
.skip-to-content {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    background: var(--bg);
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 1rem 2rem;
    border: 1px solid var(--accent);
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-to-content:focus {
    top: 20px;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    /* Disable preloader strobe */
    #preloader {
        animation: none;
    }

    /* Scroll reveal: opacity-only fade, no translateY movement */
    .reveal {
        transform: none;
        transition: opacity 0.6s ease;
    }
    .reveal.active {
        transform: none;
    }

    /* Disable scroll-line pulse if present globally */
    .scroll-line {
        animation: none;
    }
}

/* === RESPONSIVE: DESKTOP (1200px+) === */
@media (min-width: 1200px) {
    .section-padding {
        padding: 10rem 8%;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    * { cursor: auto !important; }
    #preloader h1 { font-size: 7vw; }
    .section-padding { padding: 4rem 32px; }
    .section-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        margin-bottom: 2rem;
    }
}

/* === RESPONSIVE: SMALL MOBILE (400px) === */
@media (max-width: 400px) {
    .section-padding { padding: 3rem 24px; }
}
