:root {
    --bg-blur: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --accent: #00d2ff;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body {
    overflow: hidden;
    background-color: #000;
    color: var(--text-primary);
    font-family: var(--font-body);
    height: 100vh;
}

#main-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #001529 0%, #000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-out;
}

.loader-content {
    text-align: center;
}

.loader-content h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    letter-spacing: 0.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px auto;
    border-radius: 2px;
    overflow: hidden;
}

#progress {
    width: 0%;
    height: 100%;
    background: var(--accent);
    transition: width 0.3s;
}

/* UI Overlay */
#ui-overlay {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    pointer-events: none;
}

#ui-overlay header, 
#ui-overlay main, 
#ui-overlay footer {
    pointer-events: auto;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    color: var(--accent);
    animation: pulse 2s infinite ease-in-out;
}

.brand h1 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
    font-weight: 600;
}

.controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-blur);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
}

button {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, color 0.2s;
}

button:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.audio-control {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

#volume-slider {
    width: 80px;
    height: 3px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Scene Info */
.scene-info {
    max-width: 300px;
    padding-left: 1rem;
    border-left: 2px solid var(--accent);
}

#current-time-label {
    font-size: 2rem;
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

#whale-status {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.1rem;
}

/* Footer */
footer {
    display: flex;
    justify-content: center;
}

.interaction-hint {
    background: var(--bg-blur);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.05rem;
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.5; transform: scale(0.9); }
}

/* Responsive */
@media (max-width: 768px) {
    #ui-overlay {
        padding: 1rem;
    }
    .brand h1 { font-size: 1rem; }
    #current-time-label { font-size: 1.5rem; }
    .controls { padding: 0.4rem 0.8rem; }
    #volume-slider { width: 50px; }
}
