/* ===============================
   ROOT
   =============================== */
:root {
    --gold: #ffd700;
    --rose: #e91e63;
    --deep: #c2185b;
    --purple: #6a1b9a;
    --pink: #f8bbd0;
    --dark: #050510;
    --font-d: 'Reem Kufi', sans-serif;
    --font-b: 'Cairo', sans-serif;
    --font-p: 'Amiri', serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-b);
    background: var(--dark);
    color: #fff;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===============================
   FX CANVAS
   =============================== */
#fx-canvas,
#fw-canvas,
#storm-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#fx-canvas {
    position: fixed;
    z-index: 1;
}

/* ===============================
   SCENES
   =============================== */
.scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 2s ease, visibility 2s ease;
    padding: 40px 20px;
    overflow: hidden;
}

.scene.active {
    opacity: 1;
    visibility: visible;
}

.scene-scroll {
    overflow-y: auto;
}

/* ===============================
   S1 – GATE
   =============================== */
#s1 {
    background: var(--dark);
}

.s1-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(255, 215, 0, 0.9), transparent),
        radial-gradient(1px 1px at 25% 45%, rgba(255, 200, 220, 0.7), transparent),
        radial-gradient(2px 2px at 40% 15%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 55% 65%, rgba(255, 215, 0, 0.6), transparent),
        radial-gradient(2px 2px at 70% 30%, rgba(255, 182, 193, 0.7), transparent),
        radial-gradient(1px 1px at 85% 80%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 15% 75%, rgba(255, 105, 180, 0.6), transparent),
        radial-gradient(1px 1px at 50% 90%, rgba(255, 215, 0, 0.4), transparent),
        radial-gradient(2px 2px at 90% 50%, rgba(255, 182, 193, 0.5), transparent),
        radial-gradient(1px 1px at 35% 55%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 60% 85%, rgba(255, 105, 180, 0.5), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 215, 0, 0.7), transparent);
    animation: twinkle 3s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: .4
    }

    100% {
        opacity: 1
    }
}

.s1-aurora {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: conic-gradient(from 0deg at 50% 50%,
            transparent 0deg,
            rgba(233, 30, 99, 0.08) 40deg,
            transparent 80deg,
            rgba(106, 27, 154, 0.06) 120deg,
            transparent 160deg,
            rgba(255, 215, 0, 0.05) 200deg,
            transparent 240deg,
            rgba(233, 30, 99, 0.07) 280deg,
            transparent 320deg,
            rgba(106, 27, 154, 0.04) 360deg);
    animation: aurora-spin 20s linear infinite;
}

@keyframes aurora-spin {
    to {
        transform: rotate(360deg);
    }
}

.s1-center {
    text-align: center;
    z-index: 2;
    position: relative;
}

.s1-ornament {
    font-size: clamp(3rem, 10vw, 7rem);
    animation: float 4s ease-in-out infinite, glow-pulse 2s ease-in-out infinite alternate;
    color: var(--gold);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-25px)
    }
}

@keyframes glow-pulse {
    0% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 60px rgba(255, 215, 0, 0.1);
    }

    100% {
        text-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 100px rgba(255, 215, 0, 0.3);
    }
}

.s1-title {
    font-family: var(--font-d);
    font-size: clamp(2.5rem, 12vw, 6rem);
    background: linear-gradient(135deg, var(--gold), #ff6b9d, var(--gold), #ff6b9d);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
    margin: 15px 0;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.s1-date {
    font-family: var(--font-p);
    font-size: clamp(1rem, 4vw, 1.8rem);
    color: var(--pink);
    opacity: 0;
    animation: fadeUp 1.5s ease 0.8s forwards;
    margin-bottom: 40px;
}

.btn-go {
    background: linear-gradient(135deg, var(--rose), var(--purple), var(--rose));
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite, pulse-btn 2.5s ease-in-out infinite;
    color: #fff;
    border: none;
    padding: 18px 55px;
    font-size: clamp(1rem, 3.5vw, 1.4rem);
    font-family: var(--font-b);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 40px rgba(233, 30, 99, 0.5), 0 0 80px rgba(106, 27, 154, 0.2);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeUp 1.5s ease 1.5s forwards, pulse-btn 2.5s ease-in-out 3s infinite;
}

@keyframes pulse-btn {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.06)
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.btn-go {
    transform: translateY(20px);
}

.btn-go::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: sweep 4s ease-in-out infinite;
}

@keyframes sweep {
    0% {
        transform: translateX(-100%) rotate(45deg)
    }

    100% {
        transform: translateX(100%) rotate(45deg)
    }
}

/* ===============================
   S2 – VISUAL BURST
   =============================== */
#s2 {
    background: var(--dark);
}

.vfx-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid;
    opacity: 0;
}

.r1 {
    width: 100px;
    height: 100px;
    border-color: var(--rose);
}

.r2 {
    width: 100px;
    height: 100px;
    border-color: var(--gold);
}

.r3 {
    width: 100px;
    height: 100px;
    border-color: var(--purple);
}

.vfx-ring.go {
    animation: ring-burst 2s ease-out forwards;
}

.r1.go {
    animation-delay: 0s;
}

.r2.go {
    animation-delay: 0.3s;
}

.r3.go {
    animation-delay: 0.6s;
}

@keyframes ring-burst {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(15);
        opacity: 0;
    }
}

.vfx-flash {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
}

.vfx-flash.go {
    animation: flash 0.6s ease-out 0.1s;
}

@keyframes flash {
    0% {
        opacity: 0.8
    }

    100% {
        opacity: 0
    }
}

/* ===============================
   S3, S5, S9 – QUOTES
   =============================== */
#s3,
#s5,
#s9 {
    background: radial-gradient(ellipse at center, #120015, #050510);
}

.quote-line {
    font-family: var(--font-p);
    font-size: clamp(1.4rem, 5vw, 2.5rem);
    text-align: center;
    max-width: 90%;
    line-height: 2;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s ease, transform 1.5s ease;
    margin: 10px 0;
}

.quote-line.show {
    opacity: 1;
    transform: translateY(0);
}

.quote-line.q1 {
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    color: #ffe0b2;
}

.quote-line.q2 {
    text-shadow: 0 0 30px rgba(233, 30, 99, 0.4);
    color: var(--pink);
}

/* ===============================
   S4 – AURORA
   =============================== */
#s4 {
    background: var(--dark);
}

.aurora-wave {
    position: absolute;
    width: 200%;
    height: 300px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
}

.w1 {
    background: rgba(233, 30, 99, 0.3);
    top: 20%;
    left: -30%;
}

.w2 {
    background: rgba(106, 27, 154, 0.25);
    top: 40%;
    left: -50%;
}

.w3 {
    background: rgba(255, 215, 0, 0.15);
    top: 60%;
    left: -20%;
}

.aurora-wave.go {
    animation: aurora-drift 6s ease-in-out forwards;
}

.w1.go {
    animation-delay: 0s;
}

.w2.go {
    animation-delay: 1s;
}

.w3.go {
    animation-delay: 2s;
}

@keyframes aurora-drift {
    0% {
        transform: translateX(-30%);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translateX(80%);
        opacity: 0;
    }
}

/* ===============================
   S6 – FIREWORKS (canvas)
   =============================== */
#s6 {
    background: var(--dark);
}

/* ===============================
   S7 – NAMES
   =============================== */
#s7 {
    background: radial-gradient(ellipse at center, #1a0020, var(--dark));
}

.names-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 5vw, 40px);
}

.nm {
    font-family: var(--font-d);
    font-size: clamp(2.5rem, 13vw, 7rem);
    opacity: 0;
    transition: opacity 2s ease, transform 2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nm-r {
    transform: translateX(80px);
    color: var(--gold);
}

.nm-l {
    transform: translateX(-80px);
    color: var(--pink);
}

.nm.show {
    opacity: 1;
    transform: translateX(0);
}

.nm-heart {
    font-size: clamp(2rem, 8vw, 5rem);
    color: var(--rose);
    opacity: 0;
    transform: scale(0);
    transition: opacity 1s ease 1.5s, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s;
}

.nm-heart.show {
    opacity: 1;
    transform: scale(1);
    animation: heartBeat 1.4s ease-in-out infinite 2.5s;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1)
    }

    15% {
        transform: scale(1.35)
    }

    30% {
        transform: scale(1)
    }

    45% {
        transform: scale(1.25)
    }
}

/* ===============================
   S8 – RIPPLE
   =============================== */
#s8 {
    background: var(--dark);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--rose);
    opacity: 0;
    width: 50px;
    height: 50px;
}

.ripple.go {
    animation: ripple-out 3s ease-out forwards;
}

.rp1.go {
    animation-delay: 0s;
}

.rp2.go {
    animation-delay: 0.5s;
    border-color: var(--gold);
}

.rp3.go {
    animation-delay: 1s;
    border-color: var(--purple);
}

.rp4.go {
    animation-delay: 1.5s;
    border-color: var(--pink);
}

@keyframes ripple-out {
    0% {
        transform: scale(0);
        opacity: 0.9;
    }

    100% {
        transform: scale(25);
        opacity: 0;
    }
}

/* ===============================
   S10 – MORPH SHAPES
   =============================== */
#s10 {
    background: var(--dark);
}

.morph-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(40px);
    opacity: 0;
}

.ms1 {
    width: 300px;
    height: 300px;
    background: rgba(233, 30, 99, 0.3);
}

.ms2 {
    width: 250px;
    height: 250px;
    background: rgba(106, 27, 154, 0.25);
}

.ms3 {
    width: 200px;
    height: 200px;
    background: rgba(255, 215, 0, 0.2);
}

.morph-shape.go {
    animation: morph 5s ease-in-out forwards;
}

.ms1.go {
    animation-delay: 0s;
}

.ms2.go {
    animation-delay: 0.8s;
}

.ms3.go {
    animation-delay: 1.6s;
}

@keyframes morph {
    0% {
        transform: translate(-50vw, 0) rotate(0deg);
        opacity: 0;
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        opacity: 0.8;
        border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
    }

    50% {
        border-radius: 20% 80% 50% 50% / 70% 30% 70% 30%;
    }

    75% {
        border-radius: 60% 40% 40% 60% / 40% 60% 60% 40%;
    }

    100% {
        transform: translate(50vw, 0) rotate(180deg);
        opacity: 0;
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* ===============================
   S11 – TIMELINE
   =============================== */
#s11 {
    background: linear-gradient(180deg, #050510, #120020, #050510);
    padding: 60px 20px;
}

.sec-title {
    font-family: var(--font-d);
    font-size: clamp(1.8rem, 7vw, 3.2rem);
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--gold), var(--rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.sec-title.show {
    opacity: 1;
    transform: translateY(0);
}

.tl {
    position: relative;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.tl-line {
    position: absolute;
    width: 4px;
    background: linear-gradient(180deg, var(--rose), var(--gold), var(--rose));
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.5);
    transform-origin: top;
    opacity: 0;
    transition: opacity 1s ease;
}

.tl-line.show {
    opacity: 1;
    animation: line-grow 2s ease-out forwards;
}

@keyframes line-grow {
    from {
        transform: translateX(-50%) scaleY(0)
    }

    to {
        transform: translateX(-50%) scaleY(1)
    }
}

.tl-ev {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tl-ev.show {
    opacity: 1;
    transform: translateY(0);
}

.tl-ev[data-side="right"] {
    flex-direction: row;
    justify-content: flex-start;
    padding-right: calc(50% + 35px);
}

.tl-ev[data-side="left"] {
    flex-direction: row-reverse;
    justify-content: flex-start;
    padding-left: calc(50% + 35px);
}

.tl-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--rose), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 0 25px rgba(233, 30, 99, 0.6);
    animation: dot-pulse 2.5s ease-in-out infinite;
}

@keyframes dot-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(233, 30, 99, 0.3)
    }

    50% {
        box-shadow: 0 0 45px rgba(233, 30, 99, 0.8)
    }
}

.tl-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px 32px;
    width: 100%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tl-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(233, 30, 99, 0.3);
}

.tl-card.featured {
    border: 2px solid var(--gold);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.3);
}

.tl-date {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.tl-card h3 {
    font-family: var(--font-d);
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    margin-bottom: 12px;
}

.tl-card p {
    font-size: clamp(0.85rem, 2.5vw, 1.05rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* ===============================
   S12 – LIGHT RAYS
   =============================== */
#s12 {
    background: var(--dark);
}

.light-ray {
    position: absolute;
    width: 4px;
    height: 0;
    opacity: 0;
    background: linear-gradient(to top, transparent, var(--gold), transparent);
    filter: blur(3px);
}

.lr1 {
    left: 10%;
    transform: rotate(-15deg);
}

.lr2 {
    left: 30%;
    transform: rotate(5deg);
}

.lr3 {
    left: 50%;
    transform: rotate(-5deg);
}

.lr4 {
    left: 70%;
    transform: rotate(10deg);
}

.lr5 {
    left: 90%;
    transform: rotate(-10deg);
}

.light-ray.go {
    animation: ray-shoot 2s ease-out forwards;
}

.lr1.go {
    animation-delay: 0s;
}

.lr2.go {
    animation-delay: 0.3s;
}

.lr3.go {
    animation-delay: 0.6s;
}

.lr4.go {
    animation-delay: 0.9s;
}

.lr5.go {
    animation-delay: 1.2s;
}

@keyframes ray-shoot {
    0% {
        height: 0;
        opacity: 0;
        bottom: 0;
    }

    40% {
        opacity: 1;
    }

    100% {
        height: 120vh;
        opacity: 0;
        bottom: 0;
    }
}

/* ===============================
   S13 – IMAGE
   =============================== */
#s13 {
    background: radial-gradient(ellipse at bottom, #1a0025, var(--dark));
    padding: 60px 20px;
}

.hint-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    margin-bottom: 25px;
}

.img-cmp {
    position: relative;
    width: 90%;
    max-width: 520px;
    aspect-ratio: 4/5;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(233, 30, 99, 0.4);
    cursor: ew-resize;
    touch-action: none;
}

.img-cmp img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-bw {
    filter: grayscale(100%);
    z-index: 1;
}

.img-clr {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.cmp-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #fff;
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.handle-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--rose), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 0 25px rgba(233, 30, 99, 0.7);
}

/* ===============================
   S14 – PARTICLE STORM (canvas)
   =============================== */
#s14 {
    background: var(--dark);
}

/* ===============================
   S15 – FINAL
   =============================== */
#s15 {
    background: radial-gradient(ellipse at center, #1a0028, var(--dark));
}

.fin-wrap {
    text-align: center;
    max-width: 90%;
}

.fin-hearts {
    font-size: clamp(2.5rem, 8vw, 4rem);
    animation: float 4s ease-in-out infinite;
    margin-bottom: 25px;
}

.fin-title {
    font-family: var(--font-d);
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    background: linear-gradient(135deg, var(--gold), var(--rose), var(--gold));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
    margin-bottom: 30px;
}

.fin-line {
    font-family: var(--font-p);
    font-size: clamp(1.1rem, 4vw, 1.6rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.fin-line.show {
    opacity: 1;
    transform: translateY(0);
}

.fin-sig {
    font-family: var(--font-p);
    font-size: clamp(1.3rem, 5vw, 2rem);
    color: var(--gold);
    margin-top: 35px;
    opacity: 0;
    transition: opacity 1.5s ease 1s;
}

.fin-sig.show {
    opacity: 1;
}

/* ===============================
   MUSIC BTN
   =============================== */
.m-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--purple));
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 0 25px rgba(233, 30, 99, 0.5);
    transition: transform 0.3s;
    display: none;
    align-items: center;
    justify-content: center;
}

.m-btn.show {
    display: flex;
}

.m-btn:hover {
    transform: scale(1.15);
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 768px) {
    .tl-line {
        left: 20px;
    }

    .tl-ev[data-side="right"],
    .tl-ev[data-side="left"] {
        flex-direction: column;
        padding-left: 55px;
        padding-right: 12px;
    }

    .tl-dot {
        left: 20px;
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .tl-card {
        padding: 20px;
    }

    .img-cmp {
        width: 95%;
    }

    .scene {
        padding: 25px 15px;
    }

    .names-wrap {
        gap: 8px;
    }
}

@media (max-width: 400px) {
    .s1-title {
        font-size: 2rem;
    }

    .nm {
        font-size: 2rem;
    }

    .nm-heart {
        font-size: 1.5rem;
    }
}