/* =====================================================
   MUSIC SECTION
   ===================================================== */

#musicSection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
    z-index: 100;
}

#musicSection.active {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Background image ---- */

.background-image {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: auto;
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}

/* ---- Catalog panel ---- */

.catalog-container {
    position: fixed;
    left: 4rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: opacity 0.5s ease;
}

.catalog {
    border: 1px solid var(--text-light);
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    background: rgba(10,10,10,0.8);
    backdrop-filter: blur(10px);
}

.catalog-title {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 2.5rem;
}

/* ---- Project items ---- */

.project-item {
    margin-bottom: 2rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.project-item:hover { opacity: 0.7; }

.project-name {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.project-meta {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    opacity: 0.6;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.project-action {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-action { opacity: 1; }

/* ---- Bio / info items ---- */

.bio-item {
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding-top: 2rem;
    border-top: 1px solid rgba(245,245,240,0.2);
    margin-bottom: 0;
}

.bio-item:not(:last-child) { margin-bottom: 2rem; }
.bio-item:hover { opacity: 0.7; }

.bio-title {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.bio-description {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    opacity: 0.6;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.bio-action {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.bio-item:hover .bio-action { opacity: 1; }

/* ---- 3D Canvas ---- */

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#canvas.active {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Now playing ---- */

.now-playing {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 20;
    white-space: nowrap;
}

.now-playing.visible { opacity: 0.8; }

/* ---- Controls bar ---- */

.controls {
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 16px;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.controls.visible { opacity: 1; }

.back-button,
.sound-toggle {
    background: transparent;
    border: 1px solid rgba(245,245,240,0.4);
    color: var(--text-light);
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.back-button:hover,
.sound-toggle:hover {
    background: rgba(247,244,239,0.1);
    border-color: rgba(245,245,240,0.8);
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
    .catalog-container { left: 2rem; }
    .catalog { padding: 2rem; max-width: 400px; }
}

@media (max-width: 768px) {
    .catalog-container {
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
    }

    .background-image { opacity: 0.2; }
}
