/* CSS Reset and Variables */
:root {
    --moon-white: #f8f8ff;
    --shadow-blue: #1a1a2e;
    --deep-purple: #16213e;
    --glitch-red: #ff073a;
    --glitch-cyan: #00f5ff;
    --glitch-yellow: #ffee00;
    --fault-pink: #ff3d71;
    --reality-green: #39ff14;
    --bg-primary: #0a0a0f;
    --bg-secondary: #151520;
    --text-primary: #e8e8f0;
    --text-faded: #a8a8b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Animated Background Elements - New Subtle Version */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        /* Subtle scanlines */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(248, 248, 255, 0.03) 2px,
            rgba(248, 248, 255, 0.03) 4px
        ),
        /* Digital noise pattern */
        radial-gradient(circle at 25% 25%, rgba(255, 61, 113, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 50%, rgba(0, 245, 255, 0.015) 0%, transparent 50%),
        radial-gradient(circle at 50% 75%, rgba(57, 255, 20, 0.01) 0%, transparent 50%),
        /* Very subtle moving dots */
        radial-gradient(1px 1px at 20% 30%, rgba(248, 248, 255, 0.3), transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(0, 245, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(248, 248, 255, 0.25), transparent),
        radial-gradient(1px 1px at 60% 10%, rgba(255, 61, 113, 0.15), transparent);
    background-size: 
        100% 100%,
        400px 400px,
        300px 300px, 
        350px 350px,
        800px 800px,
        600px 600px,
        700px 700px,
        500px 500px;
    animation: subtleFloat 30s ease-in-out infinite;
}

.moon {
    position: fixed;
    top: 10%;
    right: 10%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(248, 248, 255, 0.3),
                0 0 100px rgba(248, 248, 255, 0.1);
    z-index: -1;
    animation: moonPulse 8s ease-in-out infinite alternate;
}

.moon-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes subtleFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px);
        opacity: 1;
    }
    25% { 
        transform: translateY(-10px) translateX(5px);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-5px) translateX(-3px);
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-15px) translateX(2px);
        opacity: 0.85;
    }
}

@keyframes moonPulse {
    0% { filter: brightness(1) blur(0px); transform: scale(1); }
    100% { filter: brightness(1.2) blur(1px); transform: scale(1.05); }
}

/* Main Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.logo {
    font-family: 'Space Mono', monospace;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    color: var(--moon-white);
    text-shadow: 0 0 20px var(--glitch-cyan);
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--text-faded);
    font-style: italic;
    letter-spacing: 0.15em;
    opacity: 0.8;
    animation: subtleFade 4s ease-in-out infinite alternate;
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitchMain 3s infinite;
}

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

.glitch::before {
    animation: glitchBefore 3s infinite;
    color: var(--glitch-red);
    z-index: -1;
}

.glitch::after {
    animation: glitchAfter 3s infinite;
    color: var(--glitch-cyan);
    z-index: -2;
}

@keyframes glitchMain {
    0%, 96%, 100% { transform: translate(0); }
    97% { transform: translate(-2px, 2px); }
    98% { transform: translate(2px, -2px); }
    99% { transform: translate(-1px, 1px); }
}

@keyframes glitchBefore {
    0%, 96%, 100% { transform: translate(0); }
    97% { transform: translate(2px, 0); }
    98% { transform: translate(-2px, 0); }
    99% { transform: translate(1px, 0); }
}

@keyframes glitchAfter {
    0%, 96%, 100% { transform: translate(0); }
    97% { transform: translate(-2px, 0); }
    98% { transform: translate(2px, 0); }
    99% { transform: translate(-1px, 0); }
}

/* Main Text Styling */
.main-text {
    margin-bottom: 4rem;
}

.text-block {
    margin-bottom: 2.5rem;
    padding: 1rem 0;
    position: relative;
}

.text-block::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--fault-pink), transparent);
    opacity: 0.3;
    animation: pulseBar 2s ease-in-out infinite alternate;
}

.line {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
}

.line:hover {
    color: var(--glitch-cyan);
    text-shadow: 0 0 10px var(--glitch-cyan);
    transform: translateX(5px);
}

.line.indent {
    margin-left: 2rem;
    color: var(--text-faded);
    font-size: 1rem;
}

.line.highlight {
    color: var(--fault-pink);
    font-weight: 700;
    text-shadow: 0 0 15px var(--fault-pink);
    position: relative;
}

.line.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--fault-pink);
    animation: underlineGlitch 2s infinite;
}

.text-block.final {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    border: 1px solid var(--shadow-blue);
    background: rgba(21, 21, 32, 0.3);
    backdrop-filter: blur(10px);
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    display: inline-block;
    font-weight: 700;
    color: var(--reality-green);
    animation: textGlitch 4s infinite;
}

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

.glitch-text::before {
    color: var(--glitch-red);
    animation: beforeGlitch 4s infinite;
}

.glitch-text::after {
    color: var(--glitch-cyan);
    animation: afterGlitch 4s infinite;
}

@keyframes textGlitch {
    0%, 90%, 100% { opacity: 1; transform: translate(0); }
    91% { opacity: 0.8; transform: translate(-1px, 1px); }
    92% { opacity: 0.9; transform: translate(1px, -1px); }
    93% { opacity: 0.7; transform: translate(-1px, -1px); }
}

@keyframes beforeGlitch {
    0%, 90%, 100% { opacity: 0; }
    91%, 93% { opacity: 0.7; transform: translate(2px, 0); }
}

@keyframes afterGlitch {
    0%, 90%, 100% { opacity: 0; }
    92% { opacity: 0.5; transform: translate(-2px, 0); }
}

/* Event Information */
.event-info {
    margin: 4rem 0;
    display: flex;
    justify-content: center;
}

.event-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--deep-purple));
    border: 1px solid var(--fault-pink);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 61, 113, 0.1);
    transition: all 0.3s ease;
}

.event-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(var(--fault-pink), transparent, var(--glitch-cyan), transparent, var(--fault-pink));
    animation: rotate 20s linear infinite;
    z-index: -1;
    opacity: 0.1;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 61, 113, 0.2);
}

.event-date {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--moon-white);
}

.event-recurring {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.event-address {
    font-size: 0.9rem;
    color: var(--text-faded);
    font-style: italic;
}

.highlight {
    color: var(--fault-pink);
    text-shadow: 0 0 10px var(--fault-pink);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    padding: 2rem 0;
}

.social-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    color: var(--text-faded);
    transition: all 0.3s ease;
    position: relative;
}

.social-link svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--glitch-cyan);
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 15px var(--glitch-cyan));
}

.social-link:nth-child(2):hover {
    color: var(--fault-pink);
    filter: drop-shadow(0 0 15px var(--fault-pink));
}

/* Utility Animations */
@keyframes subtleFade {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.5; }
}

@keyframes pulseBar {
    0% { opacity: 0.3; transform: scaleY(1); }
    100% { opacity: 0.7; transform: scaleY(1.1); }
}

@keyframes underlineGlitch {
    0%, 95%, 100% { transform: scaleX(1); opacity: 1; }
    96% { transform: scaleX(0.8); opacity: 0.7; }
    97% { transform: scaleX(1.2); opacity: 0.9; }
    98% { transform: scaleX(0.9); opacity: 0.8; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        padding-top: 8rem;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .line {
        font-size: 1rem;
    }
    
    .line.indent {
        margin-left: 1rem;
    }
    
    .event-card {
        padding: 1.5rem;
    }
    
    .moon {
        position: fixed;
        top: 2rem;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 100px;
        z-index: 1;
    }
    
    .logo-section {
        padding-top: 2rem;
        position: relative;
    }
    
    .social-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-top: 7rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .line {
        font-size: 0.95rem;
    }
    
    .event-card {
        padding: 1rem;
    }
    
    .moon {
        position: fixed;
        top: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 80px;
        z-index: 1;
    }
    
    .logo-section {
        padding-top: 1.5rem;
    }
}

/* Performance optimizations */
.glitch,
.glitch-text,
.moon,
.stars {
    will-change: transform;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Selection styling */
::selection {
    background: var(--fault-pink);
    color: var(--bg-primary);
}

::-moz-selection {
    background: var(--fault-pink);
    color: var(--bg-primary);
} 