/* ============================================
   LANDING PAGE - BASE STYLES
   Maddox's World - Godzilla Theme
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    background: #000;
}

/* Canvas Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Rain Container */
#rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.raindrop {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(174, 194, 224, 0.5));
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* UI Overlay */
.ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Title */
.title {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(2.5rem, 8vw, 6rem);
    color: #fff;
    text-shadow: 
        0 0 10px #00d4ff,
        0 0 20px #00d4ff,
        0 0 40px #00d4ff,
        0 0 80px #0066ff,
        0 4px 0 #1a1a3a;
    letter-spacing: 8px;
    animation: titleGlow 3s ease-in-out infinite;
    text-align: center;
}

.title span {
    display: inline-block;
    background: linear-gradient(180deg, #00d4ff 0%, #0088ff 40%, #0044aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 0 #001133) drop-shadow(0 0 30px rgba(0, 212, 255, 0.5));
}

/* Instructions */
.instructions {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
    background: rgba(0, 20, 40, 0.8);
    padding: 15px 30px;
    border-radius: 5px;
    border: 2px solid rgba(0, 212, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 50%, #0a0a1a 100%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #00d4ff;
    margin-bottom: 30px;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    letter-spacing: 8px;
    animation: flicker 0.5s ease-in-out infinite alternate;
}

.loading-subtitle {
    font-size: 1rem;
    color: rgba(0, 212, 255, 0.6);
    margin-top: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

@keyframes flicker {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.loading-bar-bg {
    width: min(400px, 80vw);
    height: 8px;
    background: #1a1a2e;
    border: 2px solid #00d4ff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00d4ff, #0088ff, #00d4ff);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    transition: width 0.25s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading-percent {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #00d4ff;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

/* Welcome Screen (transition after destruction complete) */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0a0a1a 0%, #001a33 50%, #002244 100%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.welcome-screen.visible {
    opacity: 1;
    pointer-events: auto;
}

.welcome-screen h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(2.5rem, 7vw, 5rem);
    color: #00d4ff;
    text-shadow: 
        0 0 20px rgba(0, 212, 255, 0.8),
        0 0 40px rgba(0, 212, 255, 0.5);
    margin-bottom: 20px;
    animation: welcomePulse 1.5s ease-in-out infinite;
    letter-spacing: 6px;
}

.welcome-screen p {
    font-size: 1.3rem;
    color: rgba(0, 212, 255, 0.8);
    letter-spacing: 3px;
}

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

