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

body {
    overflow: hidden;
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: white;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #000000;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-content {
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    padding-left: 20px;
}

.header-logo-img {
    height: 50px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-btn {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.cursor-ring {
    position: fixed;
    width: 117.1875px;
    height: 117.1875px;
    border: 2px solid rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.1s ease, height 0.1s ease;
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

#mainCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

.logo-alt {
    display: none;
}

.control-panel {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.control-panel.minimized {
    display: none;
}

.controls-content {
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.3s ease;
}

.controls-content.hidden {
    display: none;
}

.control-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-divider {
    width: 1px;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 8px;
}

.control-btn,
.shape-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
}

/* Specific styling for shape buttons to ensure consistent appearance */
.shape-btn {
    font-size: 20px;
    line-height: 1;
    padding: 0;
    position: relative;
}

/* Individual shape adjustments for perfect alignment */
.shape-btn[data-shape="circle"] {
    font-size: 22px;
}

.shape-btn[data-shape="square"] {
    font-size: 20px;
}

.shape-btn[data-shape="triangle"] {
    font-size: 22px;
}

.shape-btn[data-shape="star"] {
    font-size: 22px;
}

.shape-btn[data-shape="heart"] {
    font-size: 20px;
}

.control-btn:hover,
.shape-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.9);
    transform: translateY(-1px);
}

.control-btn.muted {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.control-btn.muted:hover {
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
}

.control-btn.active {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.control-btn.active:hover {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
}

.shape-btn.active {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.9);
}

.shape-btn.active:hover {
    background: rgba(0, 0, 0, 0.12);
}

.volume-slider {
    width: 90px;
    height: 3px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.08);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    border: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.floating-settings-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    z-index: 100;
}

.floating-settings-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.9);
    transform: translateX(-50%) translateY(-1px);
}

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

/* Desktop/Mobile Element Visibility */
.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

.mobile-reveal-btn {
    width: auto !important;
    padding: 10px 20px !important;
    font-size: 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.06) !important;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .mobile-only {
        display: flex;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .control-divider {
        display: none;
    }
    .main-header {
        height: 60px;
    }
    
    .header-content {
        padding: 0 20px;
    }
    
    .header-logo-img {
        height: 35px;
    }
    
    .nav-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* Show default logo initially on mobile, JavaScript will handle switching */
    .logo {
        display: block !important;
        max-width: 200px;
        max-height: 200px;
    }
    
    .logo-alt {
        display: none !important;
        max-width: 200px;
        max-height: 200px;
    }
    
    /* Hide control panel completely on mobile */
    .control-panel {
        display: none !important;
    }
    
    /* Hide floating settings button on mobile */
    .floating-settings-btn {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .header-nav {
        gap: 10px;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Show default logo initially on smaller mobile too, JavaScript will handle switching */
    .logo {
        display: block !important;
        max-width: 150px;
        max-height: 150px;
    }
    
    .logo-alt {
        display: none !important;
        max-width: 150px;
        max-height: 150px;
    }
    
    /* Ensure control panel stays hidden */
    .control-panel {
        display: none !important;
    }
}