/* ========================================
   HAKYOFF CYBER MATRIX EFFECTS
   ======================================== */

/* Cyber Grid Background */
.cyber-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: #050505;
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 1000px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-100px);
    mask-image: linear-gradient(to bottom, transparent, black 40%, black 60%, transparent);
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    from { background-position: 0 0; }
    to { background-position: 0 50px; }
}

/* Scanning Line Effect */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 215, 0, 0.4),
        transparent
    );
    opacity: 0.3;
    z-index: 10;
    pointer-events: none;
    animation: scanning 6s linear infinite;
}

.scan-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

@keyframes scanning {
    0% { top: -5%; }
    100% { top: 105%; }
}

/* Monitor Vignette Effect */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%);
    z-index: 0;
}

/* Typewriter Effect */
.typewriter-text {
    overflow: hidden;
    border-right: 3px solid var(--gold);
    white-space: nowrap;
    letter-spacing: -0.02em;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--gold); }
}

/* Neon Glow Button */
.hakyoff-glow-button {
    background: transparent;
    color: var(--gold);
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    padding: 12px 28px;
    border: 2px solid var(--gold);
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    box-shadow: 
        0 0 10px rgba(255, 215, 0, 0.4),
        inset 0 0 5px rgba(255, 215, 0, 0.4);
    animation: neon-flicker 3s infinite alternate;
}

.hakyoff-glow-button:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 
        0 0 25px var(--gold),
        0 0 50px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 22%, 24%, 55% { opacity: 0.8; }
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(18, 18, 18, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.05) 0%,
        transparent 100%
    );
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(25, 25, 25, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 215, 0, 0.1);
}

/* Scanlines (CRT Monitor Effect) */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: 
        linear-gradient(
            rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%
        ),
        linear-gradient(
            90deg,
            rgba(255, 0, 0, 0.03),
            rgba(0, 255, 0, 0.01),
            rgba(0, 0, 255, 0.03)
        );
    z-index: 9999;
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    opacity: 0.2;
}

/* Lucide/Phosphor Icon Style */
.cyber-icon {
    stroke-width: 1.5px;
    color: var(--gold);
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
    transition: all 0.3s ease;
}

.cyber-icon:hover {
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    transform: scale(1.1);
}

/* Text Glow Effect */
.text-glow {
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.text-glow-intense {
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(255, 215, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.2);
}

/* Cyber Border Effect */
.cyber-border {
    position: relative;
}

.cyber-border::before,
.cyber-border::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
}

.cyber-border::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.cyber-border::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.cyber-border:hover::before,
.cyber-border:hover::after {
    width: 100%;
    height: 100%;
}
