header {
    position: absolute;
}

header .navbar {
    height: 66px;
}

html,
body.index-page {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    overscroll-behavior: none;
}

@supports (height: 100dvh) {
    html,
    body.index-page {
        height: 100dvh;
    }
}

body.index-page {
    position: fixed;
    inset: 0;
}

body.index-page main,
body.index-page .middle,
body.index-page .hero-img,
body.index-page .audio,
body.index-page .visual {
    height: 100vh;
    overflow: hidden;
}

@supports (height: 100dvh) {
    body.index-page main,
    body.index-page .middle,
    body.index-page .hero-img,
    body.index-page .audio,
    body.index-page .visual {
        height: 100dvh;
    }
}

/*#region MAIN */
main .noPadding {
    padding: 0;
}

main .middle {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Centered buttons */
.center-buttons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 0;
    z-index: 10;
    height: 100%;
    width: 100%;
}

.center-btn {
    font-family: inherit;
    font-size: 2.2rem;
    padding: 1.2rem 3.5rem;
    border: none;
    border-radius: 2.5rem;
    background: rgba(20, 20, 20, 0.92);
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition:
        background 0.2s,
        transform 0.2s;
    width: 50%;
    opacity: 0;
}
.center-btn.audio-btn {
    background: #222;
}
.center-btn.visual-btn {
    background: #ff7a00;
    color: #111;
}
.center-btn:hover,
.center-btn:focus {
    transform: scale(1.08);
    background: #333;
}
.center-btn.visual-btn:hover,
.center-btn.visual-btn:focus {
    background: #ff9a2b;
}

/* Popup overlay for video */
.popup-overlay {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 80vw;
    max-width: 1300px;
    height: 70vw;
    max-height: 70vh;
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 8px 60px 0 rgba(0, 0, 0, 0.55);
    border-radius: 2.5rem;
    z-index: 100;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.25s,
        transform 0.25s;
    opacity: 0;
}
.popup-overlay.active {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.popup-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2.2rem;
    background: #000;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.hero-img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    transition: transform 0.5s ease;
    transform-origin: center;
}

/* Slightly larger base scale so moving never reveals background */
.hero-img--zoom {
    transform: scale(1.12);
}

.hero-img--left {
    transform: scale(1.12) translateX(4%);
}

.hero-img--right {
    transform: scale(1.12) translateX(-4%);
}

main .audio,
main .visual {
    flex: 1;
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

main .audio {
    background-image: url("https://pub-bdd0f366dfb14d41981d9dacbe930f80.r2.dev/images/index/main_background_left.png");
    background-position: right center;
    margin-right: -10vw;
}

main .visual {
    background-image: url("https://pub-bdd0f366dfb14d41981d9dacbe930f80.r2.dev/images/index/main_background_right.png");
    background-position: left center;
}

main h3 {
    text-transform: uppercase;
    font-family: "Mayak Ultra Extended";
    letter-spacing: 1px;
    font-weight: bold;
    font-size: 50px;
}

main a {
    width: 100%;
    height: 100%;
}
/*#endregion */

.projectsSection {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.projectsSection h3 {
    font-family: "Adriana", sans-serif !important;
    padding-bottom: 500px;
    font-size: 64px;
    color: black;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.projectsSection p {
    font-size: 24px;
}

.projectsSection .rightSide h3 {
    color: #ff640a;
}

.projectsSection .rightSide p {
    color: #d9d9d9;
}

.projectsSection .project-column {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 1100px) {
    .center-buttons {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .center-btn {
        width: 100%;
        height: 50vh;
        padding: 0;
        border-radius: 0;
    }

    main .middle {
        flex-direction: column;
        height: 100vh !important;
        overflow: visible;
    }

    main .audio,
    main .visual {
        width: 100%;
        height: 100vh;
        margin: 0;
    }

    /* TOP section */
    main .audio {
        background-image: url("https://pub-bdd0f366dfb14d41981d9dacbe930f80.r2.dev/images/index/main_background_top.png");
        background-position: center bottom;
        margin-bottom: -30vh;
        z-index: 2;
    }

    /* BOTTOM section */
    main .visual {
        background-image: url("https://pub-bdd0f366dfb14d41981d9dacbe930f80.r2.dev/images/index/main_background_bottom.png");
        background-position: center top;
    }

    .projectsSection {
        top: 63px;
        left: 0;
        transform: none;
        height: calc(100vh - 63px);
    }

    .projectsSection .row {
        flex-direction: column;
        gap: 0;
        height: 100%;
    }

    .projectsSection .leftSide {
        min-height: 50%;
    }

    .projectsSection .rightSide {
        min-height: 50%;
    }

    .projectsSection .rightSide h3 {
        margin-top: 1.5rem;
    }

    .projectsSection .project-column {
        max-width: 100%;
        flex: 0 0 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding-top: 2rem;
        padding-bottom: 3rem;
    }
}
