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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* WebGL Canvas */
canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Fullscreen Transition Overlay */
.fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-overlay.active {
    opacity: 1;
}

/* Center Brand Label */
.center-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    text-align: center;
}

.title {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(20px, 3vw, 36px);
    font-weight: 200;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    text-indent: 0.6em; /* Offset for letter-spacing centering */
    user-select: none;
    animation: glow-pulse 6s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1),
                 0 0 20px rgba(255, 255, 255, 0.05);
}

@keyframes glow-pulse {
    0%, 100% {
        color: rgba(255, 255, 255, 0.7);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.1),
                     0 0 20px rgba(255, 255, 255, 0.05);
    }
    50% {
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.2),
                     0 0 30px rgba(255, 255, 255, 0.1),
                     0 0 45px rgba(255, 255, 255, 0.05);
    }
}

/* Bottom Control Dots */
.control-dots {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hide UI on inactivity */
.control-dots.hidden {
    opacity: 0;
    transform: translate(-50%, 10px);
    pointer-events: none;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dot:hover {
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.dot.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                0 0 20px rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}
