:root {
    --bg-color: #38bdf8;
}

body {
    background: var(--bg-color);
    background-attachment: fixed;
    color: #f0f6fc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
    transition: background 1.5s ease;
}

/* Atmospheric Scene Background Layer */
.sky-element {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Base celestial sizing and positioning */
.sun-moon {
    position: absolute;
    top: 40px;
    right: 10%;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    transition: all 1.5s ease;
}

/* Explicit Sun Styling */
.sun {
    background: radial-gradient(circle, #fef08a 0%, #fbbf24 100%);
    box-shadow: 0 0 50px rgba(251, 191, 36, 0.6);
}

/* Explicit Moon Styling */
.moon {
    background: radial-gradient(circle, #f1f5f9 0%, #cbd5e1 100%);
    box-shadow: 0 0 30px rgba(203, 213, 225, 0.4);
}

/* Cloud Elements */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 100px;
}
.cloud-1 { top: 60px; left: 8%; width: 120px; height: 45px; }
.cloud-1::before { content: ''; position: absolute; top: -20px; left: 25px; width: 50px; height: 50px; background: rgba(255, 255, 255, 0.15); border-radius: 50%; }
.cloud-1::after { content: ''; position: absolute; top: -12px; left: 60px; width: 40px; height: 40px; background: rgba(255, 255, 255, 0.15); border-radius: 50%; }

.cloud-2 { top: 40px; left: 38%; width: 100px; height: 35px; }
.cloud-2::before { content: ''; position: absolute; top: -15px; left: 20px; width: 40px; height: 40px; background: rgba(255, 255, 255, 0.15); border-radius: 50%; }

.cloud-3 { top: 160px; right: 18%; width: 130px; height: 45px; }
.cloud-3::before { content: ''; position: absolute; top: -22px; left: 30px; width: 55px; height: 55px; background: rgba(255, 255, 255, 0.15); border-radius: 50%; }

/* Isolated Raindrop Style (Ensures zero full-width background bleeding) */
.raindrop {
    position: absolute;
    width: 2px !important;
    height: 12px !important;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8)) !important;
    opacity: 0.7;
    pointer-events: none;
    animation: fall linear infinite;
    z-index: 1;
}

@keyframes fall {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100px);
        opacity: 0;
    }
}

/* Bottom Action Dock Navigation Bar */
.nav-dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 8px 16px;
    display: flex;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    z-index: 1000;
}

.nav-btn {
    background: transparent;
    border: none;
    color: #f0f6fc;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #38bdf8;
}

.nav-btn.active {
    background: #0284c7;
    color: #ffffff;
}

/* Container adjusted to add vertical spacing and push content down */
.container {
    max-width: 1400px;
    width: 95%;
    margin: 40px auto 0 auto;
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 140px);
}

/* Spread cards out evenly across the full width without a scrollbar */
.forecast-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0 auto;
}

.forecast-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
    flex: 1;
    min-width: 0;
}
