/* --- CORE VARIABLES --- */
:root {
    --neon-cyan: #00f3ff;
    --neon-pink: #ff007f;
    --neon-yellow: #ffea00;
    --dark-bg: #0b0c10;
    --panel-bg: rgba(11, 12, 16, 0.85);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body, html { 
    width: 100%; 
    overflow-x: hidden; 
    font-family: 'VT323', monospace; 
    background-color: var(--dark-bg); 
    color: var(--neon-cyan); 
    scroll-behavior: smooth; 
}

/* --- CRT SCANLINES EFFECT --- */
.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    z-index: 9999;
    pointer-events: none;
}

/* --- PRELOADER LOGIC --- */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000; 
    transition: opacity 0.4s ease, visibility 0.4s;
}

.terminal-wrapper {
    width: 80%;
    max-width: 600px;
}

.loading-text {
    font-size: 2rem;
    color: #39ff14; /* Terminal Green */
    margin-bottom: 20px;
    text-shadow: 0 0 10px #39ff14;
}

.loading-bar-bg {
    width: 100%;
    height: 30px;    
    border: 2px solid #39ff14;
    position: relative;
    padding: 2px;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: #39ff14;
    transition: width 0.1s linear;
}

/* --- EFFECTS & PANELS --- */
.neon-panel { 
    background: var(--panel-bg); 
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan), inset 0 0 15px rgba(0, 243, 255, 0.2);
    border-radius: 5px; 
    padding: 40px;
}
.observe-me { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.observe-me.visible { opacity: 1; transform: translateY(0); }

/* --- HERO SECTION --- */
.hero { 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: linear-gradient(180deg, rgba(11, 12, 16, 0.9) 0%, rgba(255, 0, 127, 0.2) 100%);
    position: relative; 
    text-align: center; 
    z-index: 2;
}
.hero-content { z-index: 10; }

.glitch {
    font-family: 'Righteous', cursive;
    font-size: 6rem;
    color: white;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255,0,0,0.75), -0.025em -0.05em 0 rgba(0,255,0,0.75), 0.025em 0.05em 0 rgba(0,0,255,0.75);
    animation: glitch 500ms infinite;
}

.neon-text {
    font-family: 'Righteous', cursive;
    font-size: 2.5rem;
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink), 0 0 40px var(--neon-pink);
    margin-top: -10px;
    letter-spacing: 5px;
}

/* --- DETAILS SECTION --- */
.details-section { padding: 80px 20px; max-width: 1000px; margin: 0 auto; position: relative; z-index: 2;}
.section-title { font-family: 'Righteous', cursive; font-size: 2.5rem; margin-bottom: 40px; color: var(--neon-yellow); text-align: center; text-shadow: 0 0 10px var(--neon-yellow); }
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; }
.detail-box h3 { font-size: 1.8rem; color: var(--neon-pink); margin-bottom: 10px; }
.detail-box p { font-size: 1.5rem; color: white; }

/* --- RSVP SECTION --- */
.rsvp-section { padding: 40px 20px 100px 20px; max-width: 800px; margin: 0 auto; position: relative; z-index: 2;}
.form-container { display: flex; flex-direction: column; align-items: center; text-align: center; }

.rsvp-hype {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 40px;
    max-width: 80%;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.neon-button { 
    width: 100%; 
    max-width: 400px; /* Limits the width so it doesn't stretch too far */
    padding: 20px; 
    background: var(--neon-pink); 
    color: white; 
    font-family: 'Righteous', cursive; 
    font-size: 1.5rem; 
    border: none; 
    cursor: pointer; 
    box-shadow: 0 0 15px var(--neon-pink);
    transition: all 0.2s;
    text-decoration: none; /* Removes the underline from the link */
    display: inline-block; /* Allows the anchor tag to have padding and width */
}

.neon-button:hover { 
    background: var(--disco-gold); 
    color: black; 
    box-shadow: 0 0 25px var(--disco-gold); 
    transform: translateY(-2px);
}

/* --- MUSIC PLAYER --- */
.music-player { position: fixed; bottom: 30px; right: 30px; padding: 12px 25px; display: flex; align-items: center; gap: 15px; z-index: 1000; cursor: pointer; transition: transform 0.3s ease; }
.music-player:hover { transform: scale(1.05); }
.record-icon { font-size: 2rem; }
.track-info { display: flex; flex-direction: column; }
.track-name { font-family: 'Righteous', cursive; font-size: 1.2rem; color: var(--neon-pink); }
.track-status { font-size: 1rem; color: white; }

/* --- CANVAS ANIMATION --- */
#canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .glitch { font-size: 3.5rem; }
    .neon-text { font-size: 1.5rem; }
    .music-player { bottom: 20px; right: 20px; padding: 10px; }
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 rgba(255,0,0,0.75), -0.05em -0.025em 0 rgba(0,255,0,0.75), -0.025em 0.05em 0 rgba(0,0,255,0.75); }
    14% { text-shadow: 0.05em 0 0 rgba(255,0,0,0.75), -0.05em -0.025em 0 rgba(0,255,0,0.75), -0.025em 0.05em 0 rgba(0,0,255,0.75); }
    15% { text-shadow: -0.05em -0.025em 0 rgba(255,0,0,0.75), 0.025em 0.025em 0 rgba(0,255,0,0.75), -0.05em -0.05em 0 rgba(0,0,255,0.75); }
    49% { text-shadow: -0.05em -0.025em 0 rgba(255,0,0,0.75), 0.025em 0.025em 0 rgba(0,255,0,0.75), -0.05em -0.05em 0 rgba(0,0,255,0.75); }
    50% { text-shadow: 0.025em 0.05em 0 rgba(255,0,0,0.75), 0.05em 0 0 rgba(0,255,0,0.75), 0 -0.05em 0 rgba(0,0,255,0.75); }
    99% { text-shadow: 0.025em 0.05em 0 rgba(255,0,0,0.75), 0.05em 0 0 rgba(0,255,0,0.75), 0 -0.05em 0 rgba(0,0,255,0.75); }
    100% { text-shadow: -0.025em 0 0 rgba(255,0,0,0.75), -0.025em -0.025em 0 rgba(0,255,0,0.75), -0.025em -0.05em 0 rgba(0,0,255,0.75); }
}