/* typography.css - Typography, headers, and special effects */
header {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
}

h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--accent-green);
}

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--accent-purple);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--accent-green);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); }
    20% { clip-path: inset(20% 0 60% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(50% 0 30% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(70% 0 10% 0); transform: translate(-1px, 1px); }
    80% { clip-path: inset(10% 0 80% 0); transform: translate(1px, -1px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); }
    20% { clip-path: inset(70% 0 10% 0); transform: translate(2px, 1px); }
    40% { clip-path: inset(10% 0 80% 0); transform: translate(-2px, -1px); }
    60% { clip-path: inset(30% 0 50% 0); transform: translate(1px, 2px); }
    80% { clip-path: inset(60% 0 20% 0); transform: translate(-1px, -2px); }
}

/* Typing Animation */
.typing {
    overflow: hidden;
    white-space: nowrap;
    animation: typing-reveal 3s steps(60, end) forwards, cursor-blink 0.75s step-end infinite;
    clip-path: inset(0 100% 0 0);
}

@keyframes typing-reveal {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0% 0 0);
    }
}

/* Easter Egg */
.konami-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.anime-text {
    font-size: 4em;
    color: var(--accent-green);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
