* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Allura', cursive;
    background: black;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none;
}

#login-screen {
    min-height: 100vh;
    background: #fff;
    color: #000;
    font-family: serif;
    padding: 20px;
}

#login-screen label,
#login-screen input,
#login-screen button {
    all: revert;
}

#login-screen * {
    cursor: auto !important;
}

#welcome-screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: black;
    position: relative;
}

.flower-img {
    position: absolute;
    width: 600px;
    height: auto;
    opacity: 0.5;
    z-index: 0;
    top: 20%;
    animation: fadeIn 1s ease-out;
}

.text-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-family: 'Unicorn Confetti', cursive;
    font-size: 3rem;
    color: white;
    margin: 0;
    animation: fadeInDown 1s ease-out;
}

.subtitle {
    font-family: 'Unicorn Confetti', cursive;
    font-size: 1.2rem;
    color: white;
    margin-top: 20px;
    animation: fadeIn 1s ease-out 0.5s backwards;
}

.scroll-indicator {
    font-size: 3rem;
    color: white;
    margin-top: 50px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.main-cursor {
    position: absolute;
    font-size: 24px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
}

.trail-heart {
    position: absolute;
    font-size: 20px;
    pointer-events: none;
    animation: fadeOut 1s ease-out forwards;
    transform: translate(-50%, -50%);
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.5);
    }
}

#scene-one {
    height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-top: 0;
    background: black;
    position: relative;
}

#scene-two {
    min-height: 115vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: black;
    position: relative;
    padding: 8vh 0;
}

#scene-three {
    min-height: 115vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: black;
    position: relative;
    padding: 8vh 0;
}

.scene-video {
    max-width: 600px;
    width: 90%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

#scene-three.visible .scene-video {
    opacity: 1;
    transform: translateY(0);
}

#scene-four {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: black;
    position: relative;
    padding-bottom: 100px;
}

#scene-one p {
    color: white;
    font-size: 1.15rem;
    text-align: right;
    max-width: 600px;
    margin: 0;
    padding-right: 50px;
    position: relative;
    z-index: 2;
    line-height: 1.4;
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease-out;
}

#scene-one.visible p {
    opacity: 1;
    transform: translateX(0);
}

#scene-four p {
    color: white;
    font-size: 1.15rem;
    text-align: left;
    max-width: 600px;
    margin: 40px 0;
    padding-left: 50px;
    position: relative;
    z-index: 2;
    line-height: 2.5;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease-out;
}

#scene-four.visible p {
    opacity: 1;
    transform: translateX(0);
}

#scene-one .flower-img,
#scene-two .flower-img,
#scene-four .flower-img {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

#scene-one .flower-img {
    position: absolute;
    width: 280px;
    height: auto;
    z-index: 0;
    top: 10%;
    left: 5%;
}

#scene-two .flower-img {
    position: absolute;
    width: 500px;
    height: auto;
    z-index: 0;
    top: 20%;
}

#scene-four .flower-img {
    position: absolute;
    width: 500px;
    height: auto;
    z-index: 0;
    top: 20%;
    right: 0;
    left: auto;
}

#scene-one.visible .flower-img,
#scene-two.visible .flower-img,
#scene-four.visible .flower-img {
    opacity: 0.5;
    transform: translateY(0);
}

.polaroid {
    background: white;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    max-width: 250px;
    position: relative;
    z-index: 1;
}

#scene-one.visible .polaroid {
    opacity: 1;
    color: white;
    text-align: right;
}
.s4text {
    margin-top: 420px;
    padding-left: 160px !important;
}
.polaroid-1 {
    align-self: flex-start;
    margin-left: 10%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.polaroid-2 {
    align-self: flex-end;
    margin-right: 15%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.polaroid-3 {
    align-self: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.polaroid-4 {
    align-self: flex-start;
    margin-left: 20%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.polaroid-5 {
    align-self: flex-end;
    margin-right: 10%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.polaroid-1.visible {
    opacity: 1;
    transform: translateY(0) rotate(3deg);
}

.polaroid-2.visible {
    opacity: 1;
    transform: translateY(0) rotate(-5deg);
}

.polaroid-3.visible {
    opacity: 1;
    transform: translateY(0) rotate(2deg);
}

.polaroid-4.visible {
    opacity: 1;
    transform: translateY(0) rotate(-4deg);
}

.polaroid-5.visible {
    opacity: 1;
    transform: translateY(0) rotate(6deg);
}

.polaroid-img {
    width: 100%;
    height: auto;
    display: block;
}

.polaroid-caption {
    margin-top: 15px;
    font-family: 'Allura', cursive;
    font-size: 1rem;
    color: #333;
    text-align: center;
}

.moment {
    max-width: 600px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: all 1s ease-out 0.3s;
    text-align: center;
}

#scene-two.visible .moment {
    opacity: 1;
}

.moment-title {
    font-size: 3rem;
    color: white;
    margin: 0;
    margin-bottom: 10px;
}

.moment-date {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.moment-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.moment-caption {
    font-size: 1.5rem;
    color: white;
    line-height: 1.6;
    font-style: italic;
}

#manchester-section {
    background: black;
    padding: 200px 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 100px;
    position: relative;
}

.manchester-flower {
    position: absolute;
    z-index: 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.manchester-flower-1 {
    width: 350px;
    top: 5%;
    right: 15%;
}

.manchester-flower-2 {
    width: 280px;
    top: 25%;
    left: 3%;
}

.manchester-flower-3 {
    width: 320px;
    top: 50%;
    right: 5%;
}

.manchester-flower-4 {
    width: 300px;
    top: 70%;
    left: 15%;
}

.manchester-flower-5 {
    width: 260px;
    top: 35%;
    right: 40%;
}

.manchester-flower-6 {
    width: 290px;
    top: 80%;
    right: 20%;
}

#manchester-section.visible .manchester-flower {
    opacity: 0.4;
    transform: translateY(0);
}

#travels-section {
    min-height: 100vh;
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 50px 420px;
}

#travels-section,
#travels-section .travels-text,
#travels-section .travels-corner-text,
#travels-section .gallery-next-btn {
    font-family: 'Allura', cursive;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
}

.section-tape {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 200px;
    height: auto;
    z-index: 10;
}

.paper-airplane {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 300px;
    height: auto;
    opacity: 0;
    transform: translateX(100px) rotate(10deg);
    transition: all 1.5s ease-out;
}

#travels-section.visible .paper-airplane {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
}

.travels-text {
    font-size: 1.15rem;
    color: #333;
    text-align: center;
    max-width: 700px;
    line-height: 1.6;
    margin-top: 340px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out 0.3s;
}

#travels-section.visible .travels-text {
    opacity: 1;
    transform: translateY(0);
}

.travels-video {
    max-width: 600px;
    width: 90%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-top: 72px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out 1s;
}

#travels-section.visible .travels-video {
    opacity: 1;
    transform: translateY(0);
}

.budapest-space {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin-top: 300px;
    margin-bottom: 150px;
    gap: 70px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out 1.2s;
}

#travels-section.visible .budapest-space {
    opacity: 1;
    transform: translateY(0);
}

.travels-tree-bg {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%) translateY(24px);
    width: min(52vw, 620px);
    height: auto;
    clip-path: inset(0 0 24% 0);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.55s ease-out 0.2s, transform 0.55s ease-out 0.2s;
}

#travels-section.visible .travels-tree-bg {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.budapest-drawing {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    width: min(30vw, 280px);
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.35s ease-out 0.4s, transform 0.35s ease-out 0.4s;
}

.travels-mid-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(24vw, 280px);
    height: auto;
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.32s ease-out 0.32s, transform 0.32s ease-out 0.32s;
}

.portugal-drawing {
    position: relative;
    z-index: 1;
    align-self: flex-end;
    width: min(32vw, 320px);
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    margin-top: 10px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.35s ease-out 0.48s, transform 0.35s ease-out 0.48s;
}

.budapest-space.visible .travels-mid-bg,
.budapest-space.visible .budapest-drawing,
.budapest-space.visible .portugal-drawing {
    opacity: 1;
}

.budapest-space.visible .travels-mid-bg {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1);
}

.budapest-space.visible .budapest-drawing,
.budapest-space.visible .portugal-drawing {
    transform: translateY(0);
}

.photo-gallery {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 30px 20px;
    margin-top: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 1.5s;
}

.photo-gallery::-webkit-scrollbar {
    height: 10px;
}

.photo-gallery::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.photo-gallery::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.photo-gallery::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#travels-section.visible .photo-gallery {
    opacity: 1;
    transform: translateY(0);
}

.gallery-next-btn {
    margin-top: 40px;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-next-btn:hover {
    background: #2b2b2b;
    transform: translateY(-1px);
}

.travels-corner-text {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    font-size: 1.2rem;
    color: #222;
    margin: 0;
    margin-top: 130px;
    margin-bottom: 36px;
    text-align: center;
    align-self: center;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.3s ease-out 0.52s, transform 0.3s ease-out 0.52s;
}

.travels-corner-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item {
    flex: 0 0 min(82vw, 380px);
    background: white;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .travels-text {
        margin-top: 220px;
    }

    .travels-video,
    .photo-gallery {
        margin-top: 40px;
    }

    .budapest-space {
        width: 100%;
        max-width: 100%;
        margin-top: 96px;
        margin-bottom: 96px;
        gap: 44px;
    }

    .budapest-drawing {
        width: min(62vw, 260px);
    }

    .portugal-drawing {
        width: min(66vw, 270px);
    }

    .travels-mid-bg {
        width: min(50vw, 230px);
    }

    .gallery-item {
        flex-basis: 88vw;
        padding: 14px;
    }

    .gallery-img {
        height: 320px;
    }

    .gallery-next-btn {
        margin-top: 150px;
    }

    .travels-corner-text {
        font-size: 1.05rem;
        margin-bottom: 50px;
    }
}

.string-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.9;
}

#singapore-section {
    min-height: 120vh;
    background: black;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 70px 56px;
    margin-top: 0;
    padding: 140px 60px;
    position: relative;
    z-index: 4;
}

.singapore-heading {
    width: 100%;
    color: #fff;
    font-family: 'La Sonnambula', cursive;
    font-size: clamp(1.15rem, 2.2vw, 1.8rem);
    text-align: left;
    margin: 180px 0 184px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

#singapore-section.visible .singapore-heading {
    opacity: 1;
    transform: translateY(0);
}

.singapore-polaroid {
    --rot: 0deg;
    width: clamp(190px, 22vw, 280px);
    background: #fffdf6;
    border-radius: 8px;
    padding: 14px 14px 40px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(55px) rotate(var(--rot));
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.singapore-polaroid.visible {
    opacity: 1;
    transform: translateY(0) rotate(var(--rot));
}

.singapore-polaroid-1 {
    --rot: -8deg;
}

.singapore-polaroid-2 {
    --rot: 5deg;
    margin-top: 40px;
}

.singapore-polaroid-3 {
    --rot: -4deg;
}

.singapore-polaroid-4 {
    --rot: 7deg;
    margin-top: 30px;
}

.singapore-polaroid-5 {
    --rot: -6deg;
}

.singapore-polaroid-6 {
    --rot: 4deg;
    margin-top: 24px;
}

.singapore-polaroid-7 {
    --rot: -7deg;
}

.singapore-polaroid-8 {
    --rot: 6deg;
    margin-top: 34px;
}

.singapore-polaroid-9 {
    --rot: -3deg;
}

.singapore-polaroid-10 {
    --rot: 8deg;
    margin-top: 28px;
}

.singapore-polaroid-11 {
    --rot: -5deg;
}

.singapore-polaroid-12 {
    --rot: 5deg;
    margin-top: 22px;
}

.singapore-polaroid-13 {
    --rot: -4deg;
}

.singapore-polaroid-14 {
    --rot: 6deg;
    margin-top: 26px;
}

.singapore-polaroid-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.singapore-polaroid-note {
    margin: 12px 2px 0;
    font-family: 'Allura', cursive;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.05;
    color: #222;
    text-align: center;
}

@media (max-width: 768px) {
    #singapore-section {
        min-height: 100vh;
        gap: 36px;
        padding: 90px 24px;
    }

    .singapore-heading {
        margin-bottom: 8px;
    }

    .singapore-polaroid {
        width: min(78vw, 290px);
        padding: 12px 12px 32px;
    }

    .singapore-polaroid-2,
    .singapore-polaroid-4,
    .singapore-polaroid-6,
    .singapore-polaroid-8,
    .singapore-polaroid-10,
    .singapore-polaroid-12,
    .singapore-polaroid-14 {
        margin-top: 0;
    }
}

#final-photo-section {
    min-height: 100vh;
    background: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 80px 20px 140px;
}

.present-btn {
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-family: 'Allura', cursive;
    font-size: 1.45rem;
    background: #ffffff;
    color: #111;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.present-btn:hover {
    background: #f2f2f2;
    transform: translateY(-2px);
}

.final-photo-stack {
    position: relative;
    width: min(82vw, 560px);
    aspect-ratio: 3 / 4;
}

.final-rotated-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    transform: rotate(-90deg);
    transition: opacity 0.3s ease;
}

.final-photo-base {
    opacity: 1;
}

.final-photo-hover {
    opacity: 0;
}

.final-photo-stack.revealed .final-photo-base {
    opacity: 0;
}

.final-photo-stack.revealed .final-photo-hover {
    opacity: 1;
}

.final-message {
    width: min(92vw, 900px);
    margin-top: 16px;
    color: #fff;
    text-align: center;
    font-size: clamp(1.05rem, 2.2vw, 1.5rem);
    line-height: 1.45;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.45s ease-out 0.28s, transform 0.45s ease-out 0.28s;
}

.final-extra-photo {
    width: min(88vw, 640px);
    height: auto;
    border-radius: 14px;
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.55);
    margin-top: 12px;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.45s ease-out 0.14s, transform 0.45s ease-out 0.14s;
}

.final-anyways {
    color: #fff;
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    margin: 6px 0 0;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.4s ease-out 0.2s, transform 0.4s ease-out 0.2s;
}

.final-extra-photo.visible,
.final-anyways.visible,
.final-message.visible {
    opacity: 1;
    transform: translateY(0);
}
