:root {
    --bg-color: #0b0f19;
    --glass-bg: rgba(20, 25, 40, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --highlight: #818cf8;
    --success: #34d399;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Highly Animated Background */
.background-animation {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 25s infinite ease-in-out alternate;
}

.circle-1 { width: 45vw; height: 45vw; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); top: -15%; left: -15%; }
.circle-2 { width: 35vw; height: 35vw; background: radial-gradient(circle, var(--highlight) 0%, transparent 70%); bottom: -15%; right: -15%; animation-delay: -12s; }
.circle-3 { width: 30vw; height: 30vw; background: radial-gradient(circle, var(--success) 0%, transparent 70%); top: 40%; left: 30%; animation-delay: -5s; opacity: 0.2; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(80px, 80px) scale(1.15) rotate(15deg); }
}

.container { max-width: 1280px; margin: 0 auto; padding: 2rem; }

header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 0; margin-bottom: 3rem;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    font-size: 1.8rem; font-weight: 800; letter-spacing: 1px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    display: flex; align-items: center; gap: 0.5rem;
}

nav a {
    color: var(--text-secondary); text-decoration: none; margin-left: 2.5rem;
    font-weight: 600; font-size: 1.1rem; transition: color 0.3s ease;
}
nav a:hover { color: var(--text-primary); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--highlight));
    color: #fff !important; padding: 0.8rem 2rem; border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    position: relative; overflow: hidden;
}

.btn-primary::after {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg); transition: all 0.6s ease; opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(129, 140, 248, 0.5);
}
.btn-primary:hover::after { left: 100%; opacity: 1; transition: left 0.6s ease-out, opacity 0.2s; }

/* Hero Section */
.hero-content {
    text-align: center; margin-top: 12vh;
    animation: zoomIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-content h1 { font-size: 5rem; font-weight: 800; margin-bottom: 1.5rem; line-height: 1.1; }
.highlight { background: linear-gradient(135deg, var(--highlight), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero-content p { font-size: 1.35rem; color: var(--text-secondary); max-width: 700px; margin: 0 auto 3.5rem auto; line-height: 1.7; }

/* Dashboard UI */
.dashboard-content { animation: fadeIn 0.8s ease-out 0.2s both; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.glass-panel {
    background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: 24px; padding: 3rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 var(--glass-highlight);
    position: relative; overflow: hidden;
}

.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; }
.panel-header h2 { font-size: 1.8rem; font-weight: 600; background: linear-gradient(to right, #fff, var(--text-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Weather Metrics Cards */
.metrics-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 3rem;
}

.metric-card {
    background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 16px;
    padding: 1.5rem; text-align: center; transition: all 0.3s ease;
}
.metric-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); }
.metric-card i { font-size: 2rem; margin-bottom: 1rem; display: block; color: var(--accent); }
.metric-card span { display: block; color: var(--text-secondary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.metric-card strong { display: block; font-size: 1.8rem; font-weight: 700; color: #fff; }

.chart-container { position: relative; height: 450px; width: 100%; }

.loading-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 15, 25, 0.85); backdrop-filter: blur(8px); border-radius: 24px;
    display: none; flex-direction: column; justify-content: center; align-items: center; z-index: 10;
}
.spinner {
    width: 60px; height: 60px; border: 4px solid var(--glass-border); border-top: 4px solid var(--highlight);
    border-radius: 50%; animation: spin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite; margin-bottom: 1.5rem;
}
