:root {
    --bg-dark: #020617;
    --bg-light: #fff9e6; 
    --glass-dark: rgba(15, 23, 42, 0.6);
    --glass-light: rgba(255, 255, 255, 0.4);
    --text-dark: #f8fafc;
    --text-light: #1a1a1a;
    --accent: #facc15;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    cursor: none;
}

#custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
    will-change: transform;
    transform: translate(-10px, -10px);
}

#custom-cursor.clicking {
    transform: scale(0.8) !important;
}

.click-pop {
    position: fixed;
    width: 80px;
    pointer-events: none;
    z-index: 9999;
    animation: popFade 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popFade {
    0% { transform: translate(-50%, -50%) scale(0) rotate(-20deg); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.2) rotate(10deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0; }
}

body.dark-mode { background-color: var(--bg-dark); color: var(--text-dark); }
body.light-mode { background-color: var(--bg-light); color: var(--text-light); }

#canvas-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

.toggle-btn {
    position: fixed; top: 30px; right: 30px; z-index: 1000;
    background: var(--accent); padding: 12px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.content { position: relative; z-index: 2; }
.page-section { min-height: 120vh; display: flex; align-items: center; justify-content: center; padding: 0 5%; }
.glass-card { backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.glass-card.big { padding: 3rem; border-radius: 40px; width: 90%; max-width: 600px; text-align: center; }

.image-box-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.slider-aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.slider-label {
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--accent);
}

#cube-ui-area { height: 180px; width: 180px; }
input[type="range"] { 
    writing-mode: bt-lr;
    width: 120px; 
    accent-color: var(--accent); 
}

.game-instructions {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

#snake-game { 
    background: rgba(0,0,0,0.4); 
    border: 3px solid var(--accent); 
    border-radius: 15px; 
    margin: 20px auto; 
    display: block;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.2);
}

#particle-canvas { width: 100%; height: 400px; }