/* intro.css (separate file for intro effects) */

/* Intro Overlay Styles */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    transition: opacity 2s ease;
    overflow: hidden;
    opacity: 1;
}

/* Cyberpunk Neon Grid Background */
#intro-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to right, transparent 0%, rgba(0, 255, 255, 0.1) 50%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, rgba(255, 215, 0, 0.1) 50%, transparent 100%),
        repeating-linear-gradient(0deg, rgba(0, 255, 255, 0.05), rgba(0, 255, 255, 0.05) 2px, transparent 2px, transparent 4px),
        repeating-linear-gradient(90deg, rgba(255, 215, 0, 0.05), rgba(255, 215, 0, 0.05) 2px, transparent 2px, transparent 4px);
    animation: neon-grid-shift 4s linear infinite;
    opacity: 0;
    transition: opacity 1s ease;
}

@keyframes neon-grid-shift {
    0% { background-position: 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 20px 0, 0 20px, 0 4px, 4px 0; }
}

/* Subtle Rain Effect (Cyberpunk style) */
#intro-overlay::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 300%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 255, 255, 0.02) 1px,
        transparent 2px,
        rgba(255, 215, 0, 0.02) 3px,
        transparent 4px
    );
    animation: rain-fall 2s linear infinite;
    opacity: 0;
    transition: opacity 1s ease;
    filter: blur(1px);
}

@keyframes rain-fall {
    0% { transform: translateY(0); }
    100% { transform: translateY(33%); }
}

/* Activate effects on class addition */
#intro-overlay.cyberpunk-intro::before,
#intro-overlay.cyberpunk-intro::after {
    opacity: 1;
}

/* Subtle Glow Pulse */
#intro-overlay.cyberpunk-intro {
    box-shadow: inset 0 0 50px rgba(0, 255, 255, 0.2), inset 0 0 100px rgba(255, 215, 0, 0.1);
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% { filter: brightness(0.8) contrast(1.2); }
    100% { filter: brightness(1.2) contrast(1.5); }
}