@font-face {
    font-family: 'Cera PRO';
    src: url('assets/fonts/CeraPRO-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html, body {
    height: 100%;
}

/* Prevent image and SVG selection/dragging */
img, svg {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Re-enable pointer events for clickable images/SVGs */
a img, a svg, button img, button svg {
    pointer-events: auto;
}

/* Show pointer cursor for interactive elements */
button, a, input[type="range"] {
    cursor: pointer;
}

/* Background Video */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    opacity: 0;
    pointer-events: none;
}

/* WebGL Canvas for distortion effect */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Optional overlay for better text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.nav-label {
    font-family: 'Cera PRO', Arial, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.5em;
    font-weight: 600;
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.icon-circle {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.icon-circle svg {
    width: 24px;
    height: 24px;
}

.icon-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3rem;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-logo {
    display: block;
    width: 100%;
    min-width: 660px;
    max-width: 800px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.2));
}

/* Streaming Platforms */
.streaming-platforms {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.platform-link {
    color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}

.platform-link img {
    width: auto;
    height: 30px;
    display: block;
    vertical-align: middle;
}

.platform-link:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .container {
        padding: 1.5rem;
    }

    .top-nav {
        gap: 1rem;
    }

    .nav-left,
    .nav-right {
        gap: 0.5rem;
    }

    .icon-circle {
        width: 40px;
        height: 40px;
    }

    .icon-circle svg {
        width: 20px;
        height: 20px;
    }

    .main-logo {
        min-width: auto;
        max-width: 450px;
    }

    .platform-link img {
        width: auto;
        height: 25px;
    }

    .streaming-platforms {
        gap: 0.75rem;
        row-gap: 2.5rem;
        max-width: 350px;
    }

    .platform-link {
        flex: 0 0 calc(33.333% - 1rem);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Config panel adjustments for mobile */
    .config-panel {
        bottom: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    .config-header h3 {
        font-size: 0.8rem;
    }

    .config-content {
        padding: 1rem;
        gap: 1rem;
    }

    .control-group label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .main-logo {
        min-width: auto;
        max-width: 320px;
    }

    .nav-label {
        font-size: 0.65rem;
    }

    .platform-link img {
        width: auto;
        height: 20px;
    }

    .streaming-platforms {
        gap: 0.3rem;
        row-gap: 2rem;
        max-width: 280px;
    }

    .platform-link {
        flex: 0 0 calc(33.333% - 0.7rem);
    }

    /* Swap Spotify and Deezer positions on mobile */
    .platform-link:nth-child(1) {
        order: 1;
    }

    .platform-link:nth-child(2) {
        order: 3;
    }

    .platform-link:nth-child(3) {
        order: 2;
    }

    .platform-link:nth-child(4) {
        order: 4;
    }

    .platform-link:nth-child(5) {
        order: 5;
    }

    .hero {
        gap: 2rem;
    }
}

/* Disable scrolling on mobile and tablet in portrait orientation */
@media (max-width: 1024px) and (orientation: portrait) {
    html, body {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .container {
        overflow: hidden;
        height: 100vh;
    }
}

/* Configuration Panel */
.config-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0;
    min-width: 280px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    display: none; /* Hidden by default, shown only with #debug in URL */
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.config-header h3 {
    margin: 0;
    font-family: 'Cera PRO', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.toggle-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toggle-btn:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.config-panel.collapsed .toggle-btn {
    transform: rotate(180deg);
}

.config-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.config-panel.collapsed .config-content {
    max-height: 0;
    padding: 0 1.25rem;
    overflow: hidden;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.control-group .value {
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.control-group input[type="range"] {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.control-group input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background 0.3s ease, border-color 0.3s ease;
    margin-top: 0.5rem;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Animation on load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    animation: fadeIn 1s ease-out;
}

.top-nav {
    animation: fadeIn 0.8s ease-out;
}
