/* ── Custom Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;600;700&display=swap');

body {
    font-family: 'Noto Sans Arabic', sans-serif;
    /* Soft gradient background for the whole page */
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    min-height: 100vh;
}

/* ── Intro Screen & Gatefold Container ── */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f172a;
    transition: opacity 0.6s ease, visibility 0.6s;
}

#intro-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.gatefold-container {
    position: relative;
    width: 100%;
    max-width: 412px;
    height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    background-color: #0f172a;
}

/* ── Both Doors ── */
.door {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    background-image: url('1.jpg');
    background-repeat: no-repeat;
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 10;
}

.left-door {
    left: 0;
    background-position: left center;
    background-size: 412px 100vh;
}

.right-door {
    right: 0;
    background-position: right center;
    background-size: 412px 100vh;
}

@media (max-width: 412px) {
    .left-door, .right-door {
        background-size: 100vw 100vh;
    }
}

/* ── Open State: doors slide apart ── */
.gatefold-container.open .left-door {
    transform: translateX(-100%);
}

.gatefold-container.open .right-door {
    transform: translateX(100%);
}

/* ── Falling Flowers Animation ── */
.falling-flower {
    position: fixed;
    top: -150px;
    z-index: 200;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation-name: fallAnimation;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    pointer-events: none;
    object-fit: cover;
}

@keyframes fallAnimation {
    0% {
        top: -150px;
        opacity: 0.9;
    }
    100% {
        top: 110vh;
        opacity: 0;
    }
}

/* Hide scrollbar for cleaner look */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
