/* Global Cyber Theme Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@400;700&family=Orbitron:wght@400;700&family=Courier+New&display=swap');

/* Base Reset & Body */
html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    background: #020406;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, transparent 0%, rgba(0, 212, 255, 0) 45%, rgba(0, 212, 255, 0.15) 50%, rgba(255, 255, 255, 0.1) 50.5%, rgba(0, 212, 255, 0) 55%, transparent 100%);
    background-size: 50px 50px, 50px 50px, 200% 200%;
    animation: gridFlow 15s linear infinite;
    color: #00ff88;
    min-height: 100vh;
}

/* Animations */
@keyframes gridFlow {
    0% {
        background-position: 0 0, 0 0, 0% 0%;
    }

    100% {
        background-position: 50px 50px, 50px 50px, -200% -200%;
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    100% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 195, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 0, 128, 0.03) 0%, transparent 50%);
    animation: matrix 15s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes matrix {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 136, 0.05) 50%, transparent 100%);
    background-size: 100% 200%;
    animation: scanBeam 8s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes scanBeam {
    0% {
        background-position: 0% -100%;
    }

    100% {
        background-position: 0% 200%;
    }
}

/* Common Container */
.cyber-container {
    background: rgba(10, 15, 25, 0.7);
    border: 1px solid rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), inset 0 0 2px rgba(0, 255, 136, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    display: flex;
    flex-direction: column;
}

.cyber-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 255, 136, 0.02) 50%);
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
}

/* Typography */
.cyber-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    letter-spacing: 4px;
    margin: 0;
}

.cyber-subtitle {
    font-family: 'Orbitron', sans-serif;
    color: #66ffb3;
    letter-spacing: 6px;
    text-transform: uppercase;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Buttons */
.cyber-btn {
    display: block;
    width: 100%;
    padding: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    color: #00d4ff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cyber-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    transform: translateX(5px);
    color: #fff;
    text-shadow: 0 0 5px #00d4ff;
}

/* Small Button Variant */
.cyber-btn-sm {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.5);
    color: #00ff88;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.cyber-btn-sm:hover {
    background: rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
    color: #fff;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #020205;
    border-left: 1px solid rgba(0, 255, 136, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid #00ff88;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
    cursor: pointer;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 136, 0.5) #020205;
}