/* =========================
   LET'S PRESS START
   CYBERPUNK / GLITCH THEME
========================= */

:root {
    --background: #0B0712;
    --surface: #160D25;
    --surface-light: #211336;
    --surface-hover: #2B1942;

    --text: #F8FAFC;
    --muted: #C4B5D4;

    --accent: #A855F7;
    --accent-bright: #C084FC;
    --accent-secondary: #FACC15;

    --border: #392454;
    --border-bright: #A855F7;

    --purple-glow: rgba(168, 85, 247, 0.35);
    --purple-glow-strong: rgba(168, 85, 247, 0.6);
    --yellow-glow: rgba(250, 204, 21, 0.3);
}

/* =========================
   GENERAL
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background-color: var(--background);
    color: var(--text);

    font-family: "Segoe UI", Verdana, Arial, sans-serif;
    line-height: 1.7;

    overflow-x: hidden;
}

/* =========================
   BACKGROUND EFFECTS
========================= */

/* Subtle scanlines */

body::before {
    content: "";
    position: fixed;
    inset: 0;

    pointer-events: none;
    z-index: 9999;

    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(168, 85, 247, 0.025) 3px
    );

    opacity: 0.4;
}

/* Cyberpunk grid */

body::after {
    content: "";
    position: fixed;
    inset: 0;

    pointer-events: none;
    z-index: -1;

    background-image:
        linear-gradient(
            rgba(168, 85, 247, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(168, 85, 247, 0.04) 1px,
            transparent 1px
        );

    background-size: 40px 40px;
}

/* =========================
   PAGE LAYOUT
========================= */

header,
main,
footer {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */

header {
    position: relative;

    margin-top: 30px;
    padding: 40px 30px;

    background:
        linear-gradient(
            135deg,
            rgba(168, 85, 247, 0.1),
            transparent 60%
        ),
        var(--surface);

    border: 1px solid var(--accent);
    border-left: 4px solid var(--accent);
    border-right: 4px solid var(--accent-secondary);

    box-shadow:
        0 0 15px var(--purple-glow),
        inset 0 0 20px rgba(168, 85, 247, 0.04);

    text-align: center;

    clip-path: polygon(
        0 0,
        calc(100% - 20px) 0,
        100% 20px,
        100% 100%,
        20px 100%,
        0 calc(100% - 20px)
    );
}

/* Header system label */

header::before {
    content: "SYSTEM // ONLINE";

    position: absolute;
    top: 10px;
    left: 15px;

    color: var(--accent-secondary);

    font-size: 0.7rem;
    letter-spacing: 3px;
}

/* Header decorative element */

header::after {
    content: "";

    position: absolute;
    bottom: 12px;
    right: 15px;

    width: 60px;
    height: 2px;

    background: var(--accent-secondary);

    box-shadow:
        0 0 8px var(--yellow-glow);
}

/* =========================
   HEADER TITLE
========================= */

header h1 {
    margin-bottom: 5px;

    color: var(--accent-bright);

    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;

    letter-spacing: 3px;
    text-transform: uppercase;

    text-shadow:
        0 0 5px var(--accent),
        0 0 15px var(--purple-glow);

    transition: 0.2s;
}

/* Subtle glitch on hover */

header h1:hover {
    animation: glitch-skew 0.3s linear;
    text-shadow:
        -2px 0 var(--accent-secondary),
        2px 0 #F0ABFC,
        0 0 15px var(--purple-glow);
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    25% {
        transform: skew(-2deg);
    }

    50% {
        transform: skew(2deg);
    }

    75% {
        transform: skew(-1deg);
    }

    100% {
        transform: skew(0deg);
    }
}

/* =========================
   HEADER SUBTITLE
========================= */

header p {
    margin-top: 10px;

    color: var(--muted);
    letter-spacing: 2px;
}

/* =========================
   NAVIGATION
========================= */

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 25px;
}

nav a {
    position: relative;

    padding: 10px 18px;

    color: var(--text);
    background-color: var(--surface-light);

    border: 1px solid var(--border);

    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;

    font-size: 0.85rem;

    transition: 0.2s ease;
}

/* Navigation hover */

nav a:hover {
    color: var(--accent-secondary);

    background-color: rgba(168, 85, 247, 0.12);

    border-color: var(--accent-secondary);

    box-shadow:
        0 0 10px var(--yellow-glow),
        inset 0 0 10px rgba(250, 204, 21, 0.05);

    transform: translateY(-2px);
}

/* =========================
   MAIN CONTENT
========================= */

main {
    margin-top: 35px;
}

/* =========================
   SECTIONS
========================= */

section {
    position: relative;

    margin-bottom: 25px;
    padding: 30px;

    background:
        linear-gradient(
            135deg,
            rgba(168, 85, 247, 0.05),
            transparent 60%
        ),
        var(--surface);

    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);

    box-shadow:
        0 0 12px rgba(168, 85, 247, 0.06);

    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Section hover */

section:hover {
    border-color: var(--accent);

    box-shadow:
        0 0 15px rgba(168, 85, 247, 0.12);
}

/* Decorative panel marker */

section::before {
    content: "//";

    position: absolute;
    top: 10px;
    right: 15px;

    color: var(--accent);
    opacity: 0.5;

    font-weight: bold;
    letter-spacing: 4px;
}

/* =========================
   SECTION HEADINGS
========================= */

section h2 {
    margin-top: 0;

    color: var(--accent-bright);

    text-transform: uppercase;
    letter-spacing: 2px;

    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;

    text-shadow:
        0 0 8px var(--purple-glow);
}

section h3 {
    color: var(--accent-secondary);
}

/* =========================
   LINKS
========================= */

a {
    color: var(--accent-bright);
    text-decoration: none;

    transition: 0.2s;
}

a:hover {
    color: var(--accent-secondary);

    text-shadow:
        0 0 8px var(--yellow-glow);
}

/* =========================
   BUTTONS
========================= */

button,
.button {
    display: inline-block;

    padding: 12px 20px;

    color: var(--text);
    background-color: var(--surface-light);

    border: 1px solid var(--accent);
    border-left: 3px solid var(--accent-secondary);

    text-transform: uppercase;
    letter-spacing: 1px;

    font-weight: bold;

    cursor: pointer;
    text-decoration: none;

    transition: 0.2s ease;
}

button:hover,
.button:hover {
    color: var(--background);

    background-color: var(--accent-secondary);

    border-color: var(--accent-secondary);

    box-shadow:
        0 0 15px var(--yellow-glow);

    transform: translateY(-2px);
}

/* =========================
   TERMINAL / SYSTEM TEXT
========================= */

.system-text {
    color: var(--accent-secondary);

    font-family: monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.terminal-text {
    color: var(--accent-bright);

    font-family: monospace;
}

.status-online {
    color: #4ADE80;
}

.status-warning {
    color: var(--accent-secondary);
}

.status-offline {
    color: #F87171;
}

/* =========================
   FOOTER
========================= */

footer {
    margin-top: 40px;
    margin-bottom: 30px;
    padding: 25px;

    color: var(--muted);
    text-align: center;

    border-top: 1px solid var(--accent);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    header,
    main,
    footer {
        width: 95%;
    }

    header {
        padding: 30px 20px;
    }

    header h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    nav {
        flex-direction: column;
    }

    nav a {
        display: block;
        text-align: center;
    }

    section {
        padding: 20px;
    }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
