/* ------------------------------------------------ */
/* BACKGROUND AUTO-SCROLLING CAROUSEL                */
/* ------------------------------------------------ */
.bg-carousel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background-color: var(--color-bg);
    overflow: hidden;
    pointer-events: none;
    /* Make sure it doesn't block interactions */
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 2vh 0;
}

.bg-carousel-row {
    width: 100%;
    height: 30vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.bg-carousel-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    will-change: transform;
}

.bg-carousel-track.scroll-left {
    animation: bg-scroll-left 50s linear infinite;
}

.bg-carousel-track.scroll-right {
    animation: bg-scroll-right 50s linear infinite;
}

.bg-carousel-slide {
    flex-shrink: 0;
    width: 52vw;
    /* Larger images */
    margin: 0 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-carousel-slide img {
    width: 100%;
    max-height: 28vh;
    object-fit: contain;
    opacity: 0.15;
    /* Subtle watermark opacity, slightly elevated for lines */
    mix-blend-mode: screen;
    /* Perfectly removes inverted black background, making it transparent */

    /* 
       CSS Filter Color Shift:
       1. invert(1): makes white background black (transparent) & black lines white
       2. sepia(1) saturate(18) hue-rotate(5deg): shifts white lines to rich gold-yellow
       3. brightness(1.4) contrast(1.1): makes the lines pop against the dark background
    */
    filter: invert(1) sepia(1) saturate(18) hue-rotate(5deg) brightness(1.4) contrast(1.1);
    border-radius: 8px;
}

@keyframes bg-scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes bg-scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.ui-layer {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.ui-layer>* {
    pointer-events: auto;
}

/* ------------------------------------------------ */
/* REDESIGNED HEADER                                */
/* ------------------------------------------------ */
.main-header {
    text-align: center;
    padding: 2rem 0 1rem 0;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 300;
    pointer-events: none;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    pointer-events: auto;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 160%;
    background-color: #000;
    opacity: 0.75;
    filter: blur(25px);
    border-radius: 50%;
    z-index: 100;
    pointer-events: none;
}

.logo-row {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.75rem;
    color: var(--color-yellow);
    text-transform: uppercase;
    line-height: 1;
    margin: 0.35rem auto 0;
    width: fit-content;
    display: inline-block;
    text-align: center;
    mix-blend-mode: difference;
    position: relative;
    z-index: 200;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.15rem;
    color: var(--color-yellow);
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    mix-blend-mode: difference;
    position: relative;
    z-index: 200;
    animation: breathe-spacing-title 6s ease-in-out infinite;
}

@keyframes breathe-spacing-title {

    0%,
    100% {
        letter-spacing: 0.15rem;
    }

    50% {
        letter-spacing: 0.4rem;
    }
}

.recording-dot {
    width: 8px;
    height: 8px;
    background-color: #ff4757;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.8);
    animation: pulse-record 1.5s infinite;
    position: absolute;
    right: -15px;
    top: 5px;
    z-index: 200;
}

@keyframes pulse-record {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.records-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: visible;
}

.records-text {
    display: none;
}

/* ------------------------------------------------ */
/* CENTER                                           */
/* ------------------------------------------------ */
.content-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-content {
    position: absolute;
    top: 40%;
    /* Moved up for optimal visual balance */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90vw;
    max-width: 900px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Avoids blocking interactions with the spheres */
}

.center-content {
    isolation: isolate;
}

.center-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(ellipse at center, rgba(11, 10, 8, 0.75) 0%, rgba(11, 10, 8, 0.35) 55%, rgba(11, 10, 8, 0) 75%);
    z-index: -1;
    pointer-events: none;
}

.center-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 300;
    color: var(--color-paper);
    letter-spacing: 0.25rem;
    line-height: 1.6;
    text-transform: uppercase;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.1);
    margin: 0;
    opacity: calc(1 - var(--scroll-progress));
    transition: opacity 0.1s ease-out;
}

/* Discreet footer at the bottom (only visible at scroll bottom) */
.discreet-footer {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    text-align: center;
    pointer-events: none;
    width: 90vw;
    max-width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s ease;
}

.discreet-footer.visible {
    opacity: 1;
    visibility: visible;
}

.footer-text {
    font-family: var(--font-main);
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    font-weight: 300;
    letter-spacing: 0.25rem;
    color: var(--color-yellow);
    opacity: 0.55;
    text-transform: uppercase;
    animation: breathe-opacity 4s ease-in-out infinite;
    margin: 0;
}

.credit-text {
    font-family: var(--font-main);
    font-size: clamp(0.6rem, 1vw, 0.75rem);
    font-weight: 300;
    letter-spacing: 0.2rem;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.8;
    margin: 0.5rem auto 0;
    text-transform: uppercase;
}

.link-angelika {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    pointer-events: auto;
    /* Allows the link to be interactive */
}

.link-angelika:hover {
    color: var(--color-yellow);
}

@keyframes breathe-opacity {

    0%,
    100% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ------------------------------------------------ */
/* VINYL RECORD OVER EACH SPHERE                    */
/* ------------------------------------------------ */
.panel-vinyl {
    /*
     * Direct child of .side-panel (position: fixed).
     * Fills the sphere minus 2px on each side → 4px total.
     * position: absolute is relative to .side-panel since it's fixed.
     */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(var(--h) - 4px);
    height: calc(var(--h) - 4px);
    border-radius: 50%;
    z-index: 1;
    /* above yellow sphere bg */
    pointer-events: none;
    overflow: hidden;
    /* --h is a custom property: changing it (e.g. via .disc-mode) recomputes
       width/height instantly on this element, since custom-property changes
       don't transition on their own. Without this, the disc snaps to its
       final size immediately while .side-panel is still animating position,
       looking like it vanishes and reappears already small. */
    transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                height 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.left-panel .panel-vinyl {
    right: 2px;
}

.right-panel .panel-vinyl {
    left: 2px;
}

.validation-circle-svg {
    display: none !important;
    /* Hidden momentarily by user request */
}

.validation-circle-svg circle {
    fill: none !important;
    stroke: #ff3838 !important;
    stroke-width: 3px !important;
    stroke-dasharray: 1px 6px !important;
    stroke-linecap: round !important;
    vector-effect: non-scaling-stroke !important;
}

.panel-vinyl-svg {
    width: 100%;
    height: 100%;
    animation: vinyl-spin 2.8s linear infinite;
    transform-origin: center center;
    will-change: transform;
    display: block;
}

@keyframes vinyl-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

