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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   STAGE 1: LANDING PAGE
   ============================================ */

.stage-1 {
    min-height: 100vh;
    background: linear-gradient(135deg, #FFBADE 0%, #FFC7D7 25%, #FFD5CF 50%, #FFE2C8 75%, #FFEFC0 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Background Elements */
.floating-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    animation: float 20s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.circle-3 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

.circle-4 {
    width: 180px;
    height: 180px;
    top: 30%;
    right: 30%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
        opacity: 0.5;
    }
}

/* Landing Container */
.landing-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.landing-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

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

.birthday-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

/* Open Wish Button */
.open-wish-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.open-wish-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.open-wish-btn:hover::before {
    left: 100%;
}

.open-wish-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.35);
}

.open-wish-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.open-wish-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Stage 1 Exit Animation */
.stage-1.fade-out {
    animation: zoomOut 0.8s ease-in forwards;
}

@keyframes zoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* ============================================
   STAGE 2: SCROLLABLE JOURNEY
   ============================================ */

.stage-2 {
    min-height: 100vh;
    background: linear-gradient(180deg, #FFBADE 0%, #FFC7D7 20%, #FFD5CF 40%, #FFE2C8 60%, #FFEFC0 80%, #FFBADE 100%);
    background-size: 100% 300%;
    position: relative;
}

/* Confetti Particles */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.confetti {
    position: absolute;
    font-size: 18px;
    color: #FF4B7D;
    animation: confettiFall linear infinite;
    opacity: 0.9;
    pointer-events: none;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Journey Container */
.journey-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
}

.journey-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.journey-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    text-align: center;
    width: 100%;
    padding: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.poetic-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Memory Cards */
.memory-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.memory-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.4);
}

.memory-card:active {
    transform: translateY(-5px) scale(1.02);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

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

.memory-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
}

.memory-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Photo Placeholder */
.photo-placeholder {
    margin: 20px 0;
}

.photo-frame {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 60px 40px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.memory-photo {
    max-width: 100%;
    max-height: 260px;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

.photo-frame p {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.photo-frame small {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Grand Finale */
.finale-section {
    min-height: 100vh;
    padding: 100px 0;
}

.finale-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    animation: scaleUp 1s ease-out;
}

.finale-heart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.finale-heart {
    font-size: clamp(4rem, 12vw, 7rem);
    color: #ff4b7d;
    text-shadow: 0 4px 18px rgba(255, 75, 125, 0.6);
    cursor: pointer;
    transition: transform 0.3s ease, text-shadow 0.3s ease, filter 0.3s ease;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.finale-heart:hover {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 0 18px rgba(255, 75, 125, 0.8));
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.2);
    }
    45% {
        transform: scale(1);
    }
    60% {
        transform: scale(1.15);
    }
}

.finale-text-hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
}

.finale-text-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.age-number {
    display: inline-block;
    animation: elasticPop 1.2s ease-out 0.3s both;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes elasticPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Sign-off Section */
.signoff-section {
    min-height: 50vh;
    padding: 80px 0;
}

.signoff-text {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.signature {
    display: block;
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 1);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: rotate(90deg);
}

.modal-body {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
}

.modal-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #FFBADE;
}

.modal-body img {
    width: 100%;
    border-radius: 15px;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .birthday-heading {
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    .open-wish-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .journey-section {
        min-height: auto;
        padding: 40px 0;
    }

    .section-content {
        padding: 30px 20px;
    }

    .memory-card {
        padding: 30px 20px;
    }

    .card-icon {
        font-size: 3rem;
    }

    .photo-frame {
        padding: 40px 20px;
        min-height: 220px;
    }

    .memory-photo {
        max-height: 200px;
    }

    .finale-section {
        padding: 60px 0;
    }

    .finale-heart {
        font-size: clamp(3.2rem, 16vw, 5rem);
    }

    .modal-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .floating-circle {
        display: none;
    }

    .birthday-heading {
        font-size: 2.3rem;
    }

    .section-content {
        padding: 24px 16px;
    }

    .memory-card {
        padding: 24px 16px;
    }

    .photo-frame {
        padding: 30px 16px;
        min-height: 200px;
    }

    .memory-photo {
        max-height: 180px;
    }

    .finale-text {
        font-size: 2.2rem;
        text-align: center;
    }

    .signoff-text {
        font-size: 2rem;
    }
}