/* ========================================
   Valentine Website - Core Styles v3
   With Snap Scroll & Real Watermark 💕
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap');

:root {
    --deep-rose: #FF1E56;
    --soft-pink: #FFBCD9;
    --romantic-red: #C41E3A;
    --gold-shimmer: #FFD700;
    --deep-purple: #1a0a1a;
    --darker-purple: #0d050d;
    --cream-white: #FFF8E7;
    --blush: #FF6B8A;
    --lavender: #E8D5E8;

    --gradient-romantic: linear-gradient(135deg, #FF1E56 0%, #FF6B8A 50%, #FFB6C1 100%);
    --gradient-dark: linear-gradient(180deg, #0d050d 0%, #1a0a1a 50%, #2D132C 100%);

    --font-display: 'Great Vibes', cursive;
    --font-body: 'Cormorant Garamond', serif;
    --font-modern: 'Poppins', sans-serif;
    --font-emoji: 'Noto Color Emoji', sans-serif;

    --transition-normal: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide scrollbar but enable snap scroll */
html {
    font-size: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: y proximity;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    touch-action: pan-y;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: var(--font-modern);
    background: var(--darker-purple);
    color: var(--cream-white);
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-y;
}

body::-webkit-scrollbar {
    display: none;
}

.emoji,
[class*="emoji"] {
    font-family: 'Noto Color Emoji', sans-serif;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* ========================================
   REAL Moving Watermark with JavaScript
   ======================================== */
.watermark-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.watermark-text {
    position: absolute;
    white-space: nowrap;
    font-family: var(--font-modern);
    font-size: 1rem;
    font-weight: 600;
    color: var(--soft-pink);
    opacity: 0.04;
    pointer-events: none;
    transform: rotate(-15deg);
}

/* ========================================
   Loading Screen
   ======================================== */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--darker-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease, visibility 1s ease;
}

.loading-content {
    text-align: center;
}

.loading-heart {
    font-family: 'Noto Color Emoji', sans-serif;
    font-size: 4rem;
    animation: heartPulse 1s ease-in-out infinite;
}

@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.loading-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--soft-pink);
    margin: 2rem 0;
    text-shadow: 0 2px 10px rgba(255, 30, 86, 0.3);
}

.loading-bar {
    width: 250px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: var(--gradient-romantic);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.loading-percent {
    font-family: var(--font-modern);
    font-size: 0.9rem;
    color: var(--blush);
    margin-top: 1rem;
}

/* ========================================
   Particles
   ======================================== */
#particles-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    pointer-events: none;
    font-family: 'Noto Color Emoji', sans-serif;
}

/* ========================================
   Sections - Snap Scroll
   ======================================== */
.section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    background: transparent;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    touch-action: pan-y;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
}

.video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(13, 5, 13, 0.5) 0%,
            rgba(26, 10, 26, 0.4) 40%,
            rgba(26, 10, 26, 0.7) 80%,
            rgba(13, 5, 13, 1) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    pointer-events: none;
}

.hero-title,
.hero-subtitle,
.scroll-indicator {
    pointer-events: auto;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 18vw, 12rem);
    color: var(--cream-white);
    text-shadow:
        0 0 30px rgba(255, 30, 86, 0.6),
        0 0 60px rgba(255, 30, 86, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.hero-title .letter-animate {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) scale(0.5);
    animation: letterReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-title .letter-animate:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-title .letter-animate:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-title .letter-animate:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-title .letter-animate:nth-child(4) {
    animation-delay: 0.4s;
}

.hero-title .letter-animate:nth-child(5) {
    animation-delay: 0.5s;
}

.hero-title .letter-animate:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes letterReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-style: italic;
    color: var(--soft-pink);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 1s ease forwards 1s;
    margin-bottom: 0;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Centered Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    animation: fadeSlideUp 1s ease forwards 2s;
    z-index: 10;
    pointer-events: auto;
}

.scroll-text-main {
    font-family: var(--font-modern);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--cream-white);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    color: var(--deep-rose);
    animation: bounceDown 1.5s ease-in-out infinite;
    margin: 0.3rem 0;
}

.scroll-text-sub {
    font-family: var(--font-modern);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--blush);
    opacity: 0.8;
    margin-top: 0.3rem;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* ========================================
   Message Section - Envelope
   ======================================== */
.message-section {
    background: transparent;
    padding: 4rem 2rem;
}

.message-container {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.envelope-wrapper {
    perspective: 1000px;
    width: 100%;
}

.envelope {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform var(--transition-normal);
}

.envelope:hover {
    transform: translateY(-5px);
}

.envelope-back {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #2a1f3d 0%, #1a1528 100%);
    border-radius: 12px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 30, 86, 0.1);
}

.envelope-front {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    overflow: hidden;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(180deg, #3d2f5a 0%, #2a1f3d 100%);
    clip-path: polygon(0 0, 50% 70%, 100% 0);
    transform-origin: top center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.heart-seal {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Noto Color Emoji', sans-serif;
    font-size: 2.5rem;
    z-index: 20;
    transition: all 0.5s ease;
}

.letter {
    position: absolute;
    top: 15%;
    left: 8%;
    right: 8%;
    bottom: 8%;
    background: linear-gradient(180deg, #fefefe 0%, #f5f0eb 100%);
    border-radius: 8px;
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    z-index: 5;
}

.letter-content {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--deep-purple);
}

.letter-greeting {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--romantic-red);
    margin-bottom: 1rem;
}

.chat-bubble {
    background: linear-gradient(135deg, #FF6B8A 0%, #FF1E56 100%);
    border-radius: 20px 20px 20px 4px;
    padding: 12px 16px;
    box-shadow: 0 4px 15px rgba(255, 30, 86, 0.3);
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.chat-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    bottom: 8px;
    border: 8px solid transparent;
    border-right-color: #FF1E56;
    border-left: 0;
}

.chat-message {
    font-family: var(--font-modern);
    font-size: 0.95rem;
    line-height: 1.6;
    color: white;
    font-weight: 500;
}

.letter-signature {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--deep-rose);
    text-align: right;
    margin-top: auto;
}

.envelope.opened .envelope-flap {
    transform: rotateX(-180deg);
}

.envelope.opened .heart-seal {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.envelope.opened .letter {
    transform: translateY(-60%);
}

.envelope-hint {
    font-family: var(--font-modern);
    font-size: 0.9rem;
    color: var(--soft-pink);
    text-align: center;
    margin-top: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.envelope-hint.hidden {
    opacity: 0;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ========================================
   Photo Memory Section (4:3 Aspect Ratio)
   ======================================== */
.photo-section {
    position: relative;
    z-index: 2;
    touch-action: pan-y;
}

.photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 440px;
    padding: 1rem;
    margin: 0 auto;
}

.photo-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 15px 35px rgba(255, 30, 86, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 188, 217, 0.4);
    background: rgba(26, 10, 26, 0.8);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-frame:hover {
    transform: scale(1.02);
    box-shadow:
        0 20px 40px rgba(255, 30, 86, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.6);
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 17px;
}

.photo-caption {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
    font-style: italic;
    color: var(--soft-pink);
    margin-top: 1.2rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Question Section
   ======================================== */
.question-section {
    background: transparent;
}

.question-container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.heartbeat-container {
    margin-bottom: 2rem;
}

.heartbeat {
    font-family: 'Noto Color Emoji', sans-serif;
    font-size: 4rem;
    display: inline-block;
    animation: heartbeat 1.2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 30, 86, 0.5));
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.15);
    }

    20% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.2);
    }

    40% {
        transform: scale(1);
    }
}

.question-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 3.5rem);
    line-height: 1.4;
    margin-bottom: 3rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.question-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    animation: wordReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.question-word:nth-child(1) {
    animation-delay: 0.1s;
}

.question-word:nth-child(2) {
    animation-delay: 0.2s;
}

.question-word:nth-child(3) {
    animation-delay: 0.3s;
}

.question-word:nth-child(4) {
    animation-delay: 0.4s;
}

.question-word:nth-child(5) {
    animation-delay: 0.5s;
}

.question-word:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.question-word.highlight {
    color: var(--deep-rose);
}

.question-word.name {
    color: var(--gold-shimmer);
}

/* Buttons */
.buttons-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 80px;
}

.answer-btn {
    font-family: var(--font-modern);
    font-size: 1.3rem;
    font-weight: 600;
    padding: 14px 36px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
    transform-origin: center;
}

.answer-btn .emoji {
    font-family: 'Noto Color Emoji', sans-serif;
    font-size: 1.2rem;
}

.yes-btn {
    background: linear-gradient(135deg, #FF1E56 0%, #FF6B8A 50%, #FF1E56 100%);
    background-size: 200% 200%;
    color: white;
    box-shadow:
        0 8px 30px rgba(255, 30, 86, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.2);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.yes-btn:hover {
    transform: scale(1.08);
}

.no-btn {
    background: linear-gradient(135deg, #4a4a5a 0%, #2d2d3d 100%);
    color: #aaa;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Tease Bubble */
.tease-bubble {
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all var(--transition-normal);
    pointer-events: none;
}

.tease-bubble.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tease-message {
    font-family: var(--font-modern);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--deep-purple);
    background: linear-gradient(135deg, #fff 0%, #f8f5f0 100%);
    padding: 12px 24px;
    border-radius: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: inline-block;
    position: relative;
}

.tease-message::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #f8f5f0;
}

/* ========================================
   Celebration
   ======================================== */
.celebration-section {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--darker-purple);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.celebration-section.visible {
    opacity: 1;
    visibility: visible;
}

#confetti-container,
#fireworks-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.celebration-content {
    text-align: center;
    z-index: 10;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.celebration-title {
    font-family: 'Poppins', 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 6.5vw, 3.5rem);
    line-height: 1.35;
    color: var(--cream-white);
    text-shadow:
        0 0 25px rgba(255, 30, 86, 0.9),
        0 0 50px rgba(255, 30, 86, 0.5),
        0 4px 15px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    max-width: 650px;
    opacity: 0;
    transform: scale(0.85);
    animation: celebratePop 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes celebratePop {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.celebration-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 5vw, 2.4rem);
    font-weight: 600;
    font-style: italic;
    color: var(--gold-shimmer);
    text-shadow:
        0 0 15px rgba(255, 215, 0, 0.7),
        0 2px 10px rgba(0, 0, 0, 0.6);
    max-width: 500px;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 1s ease forwards 0.5s;
}

.celebration-heart {
    font-family: 'Noto Color Emoji', sans-serif;
    font-size: 4rem;
    margin-top: 3rem;
    animation: heartbeat 1s ease-in-out infinite;
}

/* Fullscreen Yes */
.yes-btn.fullscreen {
    position: fixed !important;
    inset: 0 !important;
    border-radius: 0 !important;
    z-index: 100 !important;
    font-size: clamp(2rem, 6vw, 4rem) !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    white-space: normal !important;
}

.yes-btn.fullscreen small {
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    opacity: 0.8;
    font-weight: 400;
}

.fullscreen-tease-msg {
    font-size: 10px !important;
    line-height: 1.3 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: var(--font-modern) !important;
    font-weight: 400 !important;
    margin-bottom: 8px !important;
    padding: 0 10px !important;
    max-width: 220px !important;
    width: 100% !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
    opacity: 0.9 !important;
    text-shadow: none !important;
    animation: popIn 0.5s ease forwards !important;
}

.fullscreen-yes-text {
    font-size: clamp(2.5rem, 8vw, 4rem) !important;
    font-weight: 700 !important;
}