/* =====================================================
   HOMEPAGE SECTION
   ===================================================== */

#homepageSection {
    position: relative;
    width: 100%;
    transition: opacity 0.8s ease;
}

#homepageSection.fading-out {
    opacity: 0;
    pointer-events: none;
}

.image-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.image-section {
    position: relative;
    width: 100%;
    max-width: 2048px;
    overflow: hidden;
    display: block;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.parallax-image {
    width: 100%;
    max-width: 2048px;
    height: auto;
    display: block;
    transition: transform 0.1s ease-out;
    margin: 0;
    padding: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.head-section {
    position: relative;
    margin: 0;
    padding: 0;
}

.body-section {
    position: relative;
    margin: -2px 0 0 0;
    padding: 0;
}

.body-section .parallax-image {
    width: 75%;
    display: block;
    margin: 0 auto;
}

/* ---- Name overlay ---- */

.text-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: calc(100% - 100px);
    pointer-events: none;
}

h1 {
    font-family: 'Impact', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 900;
    color: var(--cream);
    opacity: 0.25;
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    line-height: 0.85;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.name-line {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 5px;
    white-space: nowrap;
    transform-origin: center;
}

.name-line-1 { font-size: 15vw; transform: scaleX(1.4); }
.name-line-2 { font-size: 15vw; transform: scaleX(1.0); }

/* ---- Soft Addiction slide ---- */

.soft-addiction-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #090909;
    display: none;
}

.soft-addiction-section.visible { display: block; }

/* ---- Compass / album-art slides ---- */

.compass-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #090909;
    display: none;
}

.compass-section.visible { display: block; }

.fixed-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.compass-image {
    position: absolute;
    max-width: 70%;
    max-height: 70vh;
    width: auto;
    height: auto;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.8s ease, filter 0.8s ease;
}

.compass-image.active {
    opacity: 1;
    filter: blur(0px);
}

/* ---- Navigation arrows ---- */

.navigation-arrows {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 10;
    overflow: visible;
}

.nav-arrow {
    position: relative;
    background: transparent;
    border: none;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    overflow: visible;
}

.arrow-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #F7F4EF;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    box-shadow:
        0 0 20px rgba(247,244,239,0.8),
        0 0 40px rgba(247,244,239,0.6),
        0 0 60px rgba(247,244,239,0.4),
        0 0 80px rgba(247,244,239,0.2);
    transition: all 0.3s ease;
}

/* ---- Explore button ---- */

.explore-button {
    position: relative;
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 4px;
    color: transparent;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-shadow:
        0 0 20px rgba(247,244,239,0.8),
        0 0 40px rgba(247,244,239,0.6),
        0 0 60px rgba(247,244,239,0.4);
    -webkit-text-stroke: 1px var(--cream);
}

.explore-button.revealed {
    opacity: 0.4;
    animation: explorePulse 2s ease-in-out 3;
}

@keyframes explorePulse {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(247,244,239,0.8),
            0 0 40px rgba(247,244,239,0.6),
            0 0 40px rgba(247,244,239,0.4);
        opacity: 0.4;
    }
    50% {
        text-shadow:
            0 0 40px rgba(247,244,239,1),
            0 0 80px rgba(247,244,239,0.8),
            0 0 120px rgba(247,244,239,0.6),
            0 0 160px rgba(247,244,239,0.4);
        opacity: 0.8;
    }
}

.explore-button.revealed:hover,
.explore-button.formed {
    opacity: 1;
    animation: none;
    text-shadow:
        0 0 25px rgba(247,244,239,1),
        0 0 50px rgba(247,244,239,0.8),
        0 0 75px rgba(247,244,239,0.6);
}

.explore-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--cream);
    border-radius: 50%;
    box-shadow:
        0 0 20px rgba(247,244,239,0.8),
        0 0 40px rgba(247,244,239,0.6),
        0 0 60px rgba(247,244,239,0.4),
        0 0 80px rgba(247,244,239,0.2);
    transition: all 0.5s ease;
    opacity: 0.4;
}

.explore-button.formed .explore-dot {
    opacity: 1;
    box-shadow:
        0 0 25px rgba(247,244,239,1),
        0 0 50px rgba(247,244,239,0.8),
        0 0 75px rgba(247,244,239,0.6),
        0 0 100px rgba(247,244,239,0.4);
}

/* ---- Play Music / Sound Toggle buttons ---- */

.play-music-button,
.sound-toggle-homepage {
    position: fixed;
    background: transparent;
    border: 2px solid var(--cream);
    color: var(--cream);
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: none;
    z-index: 1000;
    border-radius: 4px;
}

.play-music-button {
    bottom: 90px;
    right: 90px;
}

.sound-toggle-homepage {
    bottom: 30px;
    right: 90px;
}

.play-music-button.visible,
.sound-toggle-homepage.visible { display: block; }

.play-music-button:hover,
.sound-toggle-homepage:hover {
    background: rgba(247,244,239,0.1);
    transform: scale(1.05);
}

/* ---- Scroll hint ---- */

.scroll-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1000;
    animation: bounce 2s infinite;
}

.scroll-hint.visible { opacity: 0.6; }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(-10px); }
}

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

@media (max-width: 768px) {
    .play-music-button  { bottom: 200px; right: 20px; }
    .sound-toggle-homepage { bottom: 140px; right: 20px; }
    .navigation-arrows  { bottom: 80px; }

    h1 {
        flex-direction: row;
        flex-wrap: wrap;
        line-height: 0.75;
    }

    .name-line { white-space: normal; word-break: break-all; }

    .name-line-1,
    .name-line-2 {
        font-size: 22vw;
        transform: scaleX(1.0);
        width: auto;
    }

    .text-overlay {
        width: calc(100% - 100px);
        top: 45%;
        z-index: 1001;
    }
}


/* =====================================================
   PAGE NAVIGATION SECTION
   ===================================================== */

.page-nav-section {
    width: 100%;
    background: #0a0a0a;
    padding: 80px 40px;
    box-sizing: border-box;
}

.page-nav-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.page-nav-card {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 36px 0;
    border-bottom: 1px solid rgba(247, 244, 239, 0.1);
    text-decoration: none;
    color: #F7F4EF;
    transition: all 0.35s ease;
    cursor: pointer;
    position: relative;
}

.page-nav-card:first-child {
    border-top: 1px solid rgba(247, 244, 239, 0.1);
}

.page-nav-card:hover {
    padding-left: 16px;
    border-bottom-color: rgba(247, 244, 239, 0.35);
}

.page-nav-card:first-child:hover {
    border-top-color: rgba(247, 244, 239, 0.35);
}

.page-nav-number {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: rgba(247, 244, 239, 0.3);
    min-width: 28px;
    transition: color 0.35s ease;
}

.page-nav-card:hover .page-nav-number {
    color: rgba(247, 244, 239, 0.6);
}

.page-nav-content {
    flex: 1;
}

.page-nav-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    margin: 0 0 6px 0;
    color: #F7F4EF;
    transition: letter-spacing 0.35s ease;
}

.page-nav-card:hover .page-nav-title {
    letter-spacing: 0.07em;
}

.page-nav-desc {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    color: rgba(247, 244, 239, 0.45);
    margin: 0;
    font-style: italic;
    transition: color 0.35s ease;
}

.page-nav-card:hover .page-nav-desc {
    color: rgba(247, 244, 239, 0.65);
}

.page-nav-arrow {
    font-size: 1.2rem;
    color: rgba(247, 244, 239, 0.2);
    transition: all 0.35s ease;
    transform: translateX(0);
}

.page-nav-card:hover .page-nav-arrow {
    color: rgba(247, 244, 239, 0.8);
    transform: translateX(8px);
}

@media (max-width: 600px) {
    .page-nav-section {
        padding: 60px 24px;
    }
    .page-nav-title {
        font-size: 1.5rem;
    }
    .page-nav-card {
        gap: 20px;
    }
}
