/* =========================================
   VARIABLES & GLOBAL STYLES (Soft Kawaii)
   ========================================= */
:root {
    /* Main Layout */
    --site-bg: #ECE4DF;
    /* arka plan */
    --paper-bg: #FFFaf7;
    /* kağıt / ana kutu */

    /* Typography */
    --heading-color: #B87486;
    /* başlık rengi */
    --text-main: #5E514E;
    /* ana metin */
    --text-muted: #A28E8A;
    /* ikincil metin / küçük yazılar */

    /* Accents & Decorations */
    --accent-color: #D9A7B4;
    /* kalp / küçük detaylar */
    --border-color: #E3D4CF;
    /* çizgi / border */

    /* Shadows */
    --shadow-soft: 0 8px 30px rgba(83, 61, 58, 0.10);
    /* shadow */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--site-bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: var(--site-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 20px;
    border: 4px solid var(--site-bg);
    /* padding illusion */
}

::-webkit-scrollbar-thumb:hover {
    background: #c29595;
}

/* Background Sparkles/Polka dots */
.background-decorations::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(var(--border-color) 2px, transparent 2px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

/* Floating Elements Container (Hearts/Stars) */
#floating-elements-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    opacity: 0;
    animation: floatUp linear forwards;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

/* =========================================
   SNAP SCROLL ARCHITECTURE
   ========================================= */
.snap-container {
    width: 100%;
    position: relative;
}

.snap-section {
    width: 100%;
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Changed from center to allow natural flow */
    padding: 60px 0;
    /* Added padding for top/bottom space */
    position: relative;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

/* Hide future sections initially */
.hidden-section {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Progress Indicator */
#progress-indicator {
    position: fixed;
    top: 40px;
    right: 40px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: var(--text-muted);
    z-index: 1000;
    padding: 8px 16px;
    background: rgba(255, 248, 245, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    /* Will fade in with heartbeat click */
    transition: opacity 1s ease;
}

/* Continue Button */
.continue-btn {
    position: relative;
    margin: 40px auto 20px auto;
    /* Centering with margin */
    display: block;
    /* Ensure it's a block-level element for margin: auto */
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--heading-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: gentlePulse 3s infinite alternate;
}

.continue-btn:hover {
    background: rgba(230, 189, 196, 0.1);
    transform: translateY(3px);
}

/* Adjustments for sections inside scrapbook */
.memory-section-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Changed from center */
    padding-bottom: 20px;
    /* Space before button */
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1,
h2,
h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: 15px;
    mix-blend-mode: normal;
    /* Removing multiply so true colors show */
}

h1 {
    font-weight: 600;
    /* Main titles slightly bolder */
}

p {
    line-height: 1.8;
    font-size: 1.1rem;
    font-weight: 500;
    mix-blend-mode: multiply;
    /* Authentic print feeling */
}

/* =========================================
   THE PAPER SHEET (Torn Edge Effect)
   ========================================= */
.paper-sheet {
    width: 90%;
    max-width: 900px;
    margin: 50px auto;
    padding: 80px 40px;
    position: relative;
    z-index: 2;
    /* Adding a secondary, harder shadow behind the SVG filter for contrast */
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4), var(--shadow-soft);
    border-radius: 4px;
    /* Slight rounding before the rip filter takes over */
    background: rgba(255, 255, 255, 0.05);
    min-height: calc(100vh - 100px);
    /* Let it expand naturally */
}

.paper-sheet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--paper-bg);
    z-index: -1;
    filter: url('#torn-paper-edge');
}

.paper-texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
    z-index: -1;
    filter: url('#torn-paper-edge');
}

/* DECORATIVE HANDWRITTEN NOTES */
.decorative-note {
    position: absolute;
    font-family: 'Dancing Script', cursive;
    color: var(--accent-color);
    font-size: 1.8rem;
    transform: rotate(-10deg);
    opacity: 0.6;
    pointer-events: none;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.note-1 {
    top: 15%;
    right: -20px;
    transform: rotate(15deg);
}

.note-2 {
    bottom: 25%;
    left: -10px;
    transform: rotate(-12deg);
}

/* =========================================
   PEEKING BEARS
   ========================================= */
.peeking-bear {
    position: absolute;
    width: 200px;
    z-index: 0;
    filter: drop-shadow(2px 5px 8px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.peeking-bear:hover {
    /* Softened hover effect */
    transform: scale(1.03) rotate(-5deg) !important;
}

.bear-top-left {
    top: -80px;
    left: -70px;
    transform: rotate(-15deg);
}

.bear-bottom-right {
    bottom: -80px;
    right: -70px;
    transform: rotate(10deg);
}

.bear-bottom-right:hover {
    transform: scale(1.03) rotate(5deg) !important;
}

/* =========================================
   HEADER / HERO
   ========================================= */
.music-prompt {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: 0.95rem;
    animation: floating 3s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    /* Custom cursor defined inline in HTML */
}

.music-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: transform 0.3s;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(255, 183, 197, 0.3);
}

.music-prompt:hover .music-icon {
    transform: scale(1.1) rotate(5deg);
    background: #fff;
    box-shadow: 0 6px 15px rgba(255, 183, 197, 0.5);
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero-section {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    letter-spacing: 2px;
    margin-bottom: 20px;

    /* Typewriter effect setup */
    display: inline-block;
    overflow: hidden;
    /* Hide overflow to mimic typing */
    white-space: nowrap;
    /* Don't wrap text */
    border-right: 3px solid var(--accent-color);
    /* The blinking cursor */
    width: 0;
    /* Starts hidden */
    max-width: 100%;
}

/* Pause the AOS fade down to let typing handle visibility better */
.hero-section[data-aos] {
    opacity: 1;
    transform: none;
    transition: none;
}

.hero-section h1.start-typing {
    /* Triggered by JS after splash ends. Removed initial 2s delay. */
    animation: typing 3s steps(30, end) forwards,
        blink-caret .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
        max-width: max-content;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--accent-color);
    }
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-top: 20px;
    line-height: 1.8;
    max-width: 85%;
    opacity: 0;
}

.hero-section.start-typing .subtitle {
    animation: fadeInSubtitle 2s ease forwards 3s;
}

@keyframes fadeInSubtitle {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   MEMORY TIMELINE & DOODLES
   ========================================= */
.memory-timeline {
    display: flex;
    flex-direction: column;
    gap: 90px;
    margin-bottom: 80px;
    position: relative;
}

/* Scrapbook connector lines (dashed doodles) */
.timeline-doodle {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.doodle-1 {
    top: 15%;
    left: 45%;
    width: 100px;
}

.doodle-2 {
    top: 45%;
    right: 45%;
    width: 80px;
    transform: scaleX(-1);
}

.doodle-3 {
    bottom: 25%;
    left: 48%;
    width: 60px;
}

.memory-block {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    /* Added to handle narrow containers gracefully */
    justify-content: center;
}

.memory-block.center {
    justify-content: center;
}

.highlight-box {
    text-align: center;
    padding: 30px 40px;
    position: relative;
    transition: transform 0.3s ease;
}

.highlight-box:hover {
    transform: scale(1.02);
}

/* Soft highlight rather than rigid box */
.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(230, 189, 196, 0.1);
    border-radius: 20px;
    z-index: -1;
    transform: skew(-2deg);
    transition: all 0.3s;
}

.highlight-box:hover::before {
    background: rgba(230, 189, 196, 0.2);
    transform: skew(-1deg);
}

.pulse-glow {
    animation: gentlePulse 3s infinite alternate;
}

@keyframes gentlePulse {
    from {
        filter: drop-shadow(0 0 5px rgba(230, 189, 196, 0.2));
    }

    to {
        filter: drop-shadow(0 0 15px rgba(230, 189, 196, 0.6));
    }
}

.memory-text {
    flex: 1;
}

/* =========================================
   POLAROIDS & TAPE
   ========================================= */
.polaroid {
    position: relative;
    flex-shrink: 0;
    width: 250px;
}

.polaroid-wrapper {
    background: var(--paper-bg);
    padding: 15px 15px 45px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    position: relative;
    border-radius: 2px;
}

/* Washi Tape Effect */
.polaroid::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    width: 80px;
    height: 25px;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 2;
}

.memory-block.left .polaroid-wrapper {
    transform: rotate(-4deg);
}

.memory-block.right .polaroid::after {
    transform: translateX(-50%) rotate(4deg);
    background-color: var(--accent-color);
    /* Subtle pink tape */
}

.memory-block.right .polaroid-wrapper {
    transform: rotate(3deg);
}

.polaroid:hover .polaroid-wrapper {
    transform: scale(1.02) rotate(0deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.polaroid:hover .polaroid-img img {
    filter: sepia(0) saturate(1.1) contrast(1.05);
    /* Restore perfect color */
    transform: scale(1.01);
}

.polaroid-img {
    width: 100%;
    height: 220px;
    background-color: var(--border-color);
    /* Soft base for loading */
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.polaroid-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: sepia(0.3) saturate(0.8) contrast(0.9);
    /* Vintage scrapbook feel */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.polaroid-caption {
    display: none;
    /* User requested removal */
}

/* =========================================
   FOOTER / GIFT BOXES
   ========================================= */
.gifts-section {
    text-align: center;
    padding-top: 50px;
    position: relative;
}

.gifts-section h3 {
    font-size: 2rem;
}

.gift-boxes {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.gift-box {
    width: 110px;
    height: 110px;
    background: var(--paper-bg);
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(230, 189, 196, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid var(--border-color);
    overflow: visible;
    /* Allowing the lid to pop out */
}

/* Ribbon/Lid visual detail on boxes */
.gift-lid {
    position: absolute;
    top: -5px;
    width: 110%;
    height: 20px;
    background: var(--accent-color);
    border-radius: 10px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.pulse-gift {
    animation: pulseGiftBox 2s infinite;
}

@keyframes pulseGiftBox {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(230, 189, 196, 0.4);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 12px 25px rgba(230, 189, 196, 0.7);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(230, 189, 196, 0.4);
    }
}

.gift-box:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(230, 189, 196, 0.6);
    border-color: var(--accent-color);
    animation: none;
    /* Stop pulsing on hover */
}

.gift-box:hover .gift-lid {
    transform: translateY(-5px) rotate(2deg);
}

.gift-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 0;
    margin-top: 15px;
    /* adjust for the lid */
}

.gift-message {
    position: absolute;
    width: 100%;
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--accent-color);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.gift-box.opened {
    animation: none;
    /* Ensure no pulsing once opened */
    transform: scale(1.05);
}

.gift-box.opened .gift-lid {
    transform: translateY(-30px) rotate(-15deg);
    opacity: 0;
}

.gift-box.opened .gift-icon {
    opacity: 0;
    transform: scale(0.5);
}

.gift-box.opened .gift-message {
    opacity: 1;
    transform: scale(1);
    top: 50%;
    margin-top: -15px;
    /* Center it */
    padding-bottom: 20px;
    /* Adjust for doodles */
}

/* =========================================
   EASTER EGGS & HIDDEN DETAILS
   ========================================= */
.easter-egg-element {
    cursor: pointer;
    transition: all 0.5s ease;
    user-select: none;
    pointer-events: auto;
    /* Ensure individual elements are clickable */
}

/* Hidden Star */
#star-easter-egg {
    position: fixed;
    top: 25px;
    left: 25px;
    font-size: 18px;
    color: var(--text-main);
    opacity: 0.35;
    cursor: pointer;
    z-index: 100;
    transition: opacity 0.5s, transform 0.3s;
}

#star-easter-egg:hover {
    opacity: 0.6;
    transform: scale(1.1);
}

.star-message {
    position: fixed;
    top: 50px;
    left: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--text-main);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.star-message.show {
    opacity: 1;
}

/* Hidden Dates and Icons Containers */
.hidden-dates-secondary,
.secret-bottom-text {
    pointer-events: none;
    /* Containers should not block clicks */
}

.hidden-dates-secondary {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 100;
}

/* Scattered Dates */
#date-egg-1003 {
    position: fixed;
    top: 15px;
    right: 25px;
    z-index: 50;
    font-size: 0.65rem;
    opacity: 0.4;
}

#date-egg-1103 {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 50;
    font-size: 0.65rem;
    opacity: 0.4;
}

#date-egg-1003:hover,
#date-egg-1103:hover {
    opacity: 0.3;
}

.hidden-dates-secondary {
    position: fixed;
    bottom: 40px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
    /* Lower but still on top */
}

.date-egg {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.45;
    position: relative;
    display: inline-block;
    transition: opacity 0.3s;
}

.date-egg:hover {
    opacity: 0.6;
}

/* Common tooltip for tiny eggs */
.date-egg::after,
.tiny-icon-egg::after,
.hidden-respect::after,
.hidden-dates-secondary span::after {
    content: attr(data-note);
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 252, 250, 0.99);
    color: var(--text-main);
    padding: 12px 18px;
    border-radius: 16px;
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    width: 240px;
    text-align: center;
    box-shadow: 0 15px 45px rgba(184, 116, 134, 0.15);
    border: 1px solid rgba(227, 212, 207, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
}

/* Adjust tooltip for top-positioned elements to show below */
#date-egg-1003::after,
#eye-egg::after {
    bottom: auto;
    top: 140%;
    transform: translateX(-50%) translateY(-10px);
}

/* Fix for elements on the right edge */
#date-egg-1003::after,
#date-egg-1103::after,
#hug-egg::after,
#notification-egg::after {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(10px);
}

#date-egg-1003:hover::after,
#date-egg-1103:hover::after,
#hug-egg:hover::after,
#notification-egg:hover::after,
#date-egg-1003.show-tooltip::after,
#date-egg-1103.show-tooltip::after,
#hug-egg.show-tooltip::after,
#notification-egg.show-tooltip::after {
    transform: translateX(0) translateY(0);
}

/* Adjust top-right specific case */
#date-egg-1003::after {
    transform: translateX(0) translateY(-10px);
}

#date-egg-1003:hover::after,
#date-egg-1003.show-tooltip::after {
    transform: translateX(0) translateY(0);
}

/* Fix for elements on the left edge */
#eye-egg::after,
.hidden-dates-secondary .date-egg::after {
    left: 0;
    transform: translateX(0) translateY(10px);
}

#eye-egg:hover::after,
.hidden-dates-secondary .date-egg:hover::after,
#eye-egg.show-tooltip::after,
.hidden-dates-secondary .date-egg.show-tooltip::after {
    transform: translateX(0) translateY(0);
}

/* Adjust top-left specific case */
#eye-egg::after {
    transform: translateX(0) translateY(-10px);
}

#eye-egg:hover::after,
#eye-egg.show-tooltip::after {
    transform: translateX(0) translateY(0);
}

.date-egg.show-tooltip::after,
.date-egg:hover::after,
.tiny-icon-egg.show-tooltip::after,
.tiny-icon-egg:hover::after,
.hidden-respect.show-tooltip::after,
.hidden-respect:hover::after {
    opacity: 1;
}

/* Tiny Icons positioning */
.tiny-icon-egg {
    position: fixed;
    z-index: 100;
    opacity: 0.4;
    color: var(--text-muted);
}

.tiny-icon-egg:hover {
    opacity: 0.5;
}

#notification-egg {
    bottom: 40px;
    right: 30px;
}

#eye-egg {
    top: 40px;
    left: 40px;
}

.tiny-sparkle {
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px #fff, 0 0 10px #fff;
    animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
    from {
        opacity: 0.2;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1.2);
    }
}

#hug-egg {
    top: 75%;
    right: 15px;
}

/* Opening sub */
.opening-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: -10px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-style: italic;
    font-family: 'Inter', sans-serif;
}

/* Inter-notes between pages */
.inter-note {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    color: var(--text-muted);
    opacity: 0.55;
    margin-top: 30px;
    font-style: italic;
    text-align: center;
    width: 100%;
}

/* Respect hidden in text */
.hidden-respect {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.4;
    margin-top: 10px;
    cursor: help;
}

.hidden-respect:hover {
    opacity: 0.4;
}

/* Final lines */
.final-emotional-line {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--heading-color);
    margin-top: 40px;
    text-align: right;
    font-style: italic;
    opacity: 0.8;
}

.final-silent-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.45;
    margin-top: 50px;
    transition: opacity 2s ease;
    pointer-events: auto;
}

.final-silent-note:hover {
    opacity: 0.6;
}

/* Revisit note - Restored and Refined */
#revisit-note {
    background: rgba(217, 167, 180, 0.03);
    padding: 12px 20px;
    border-radius: 15px;
    margin: 20px auto;
    font-style: italic;
    color: var(--heading-color);
    border: 1px dashed var(--accent-color);
    font-size: 0.9rem;
    max-width: fit-content;
    animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyboard Easter Egg Popup */
#keyboard-egg-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--paper-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(184, 116, 134, 0.12);
    z-index: 5000;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 420px;
    border: 1px solid rgba(227, 212, 207, 0.8);
}

#keyboard-egg-popup::before {
    content: '❤';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--paper-bg);
    padding: 5px 10px;
    color: var(--accent-color);
    font-size: 1.2rem;
}

#keyboard-egg-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

#keyboard-egg-popup p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* Do Not Press Button */
.do-not-press-container {
    text-align: center;
    margin: 60px 0 40px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#do-not-press-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

#do-not-press-btn:hover {
    border-color: rgba(216, 171, 171, 0.9);
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.6);
}

/* Notes */
.easter-note {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--text-main);
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.easter-note.hidden {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

#do-not-press-msg {
    margin-top: 10px;
}

#audio-easter-note {
    margin-bottom: 5px;
}

/* Secret Bottom Text */
.secret-bottom-text {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.35;
    margin-top: 60px;
    padding-bottom: 20px;
    transition: opacity 0.8s;
    line-height: 1.8;
}

.secret-bottom-text:hover {
    opacity: 0.8;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .paper-sheet {
        padding: 40px 20px;
        margin: 20px 10px;
        width: 95%;
    }

    /* Shrink the huge typewriter text so it doesn't break horizontal scroll */
    .hero-section h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    /* Polaroids and Memory Blocks */
    .memory-block {
        flex-direction: column !important;
        text-align: center;
        gap: 20px;
    }

    .polaroid {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .memory-block.left .polaroid-wrapper,
    .memory-block.right .polaroid-wrapper {
        transform: rotate(0) !important;
    }

    .polaroid::after {
        transform: translateX(-50%) rotate(0deg) !important;
    }

    .decorative-note {
        display: none;
        /* Hide extreme decorations on small screens for cleanliness */
    }

    /* Resize the peeking bears for mobile to prevent layout shift */
    .peeking-bear {
        width: 130px;
    }

    .bear-top-left {
        top: -40px;
        left: -30px;
    }

    .bear-bottom-right {
        bottom: -40px;
        right: -30px;
    }

    /* Splash Screen Scaling */
    .splash-content {
        padding: 30px;
    }

    .splash-title {
        font-size: 3.5rem;
    }

    .splash-subtitle {
        font-size: 1.8rem;
    }

    .cute-btn {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    /* Secret bottom text adjustments */
    .secret-bottom-text {
        font-size: 0.75rem;
    }

    /* Hidden dates for mobile */
    .hidden-dates-secondary {
        top: 70px;
        right: 20px;
        gap: 15px;
        /* Tighter gap on mobile */
    }

    .date-egg {
        font-size: 12px;
        opacity: 0.55;
        /* Higher contrast on mobile */
    }

    .date-egg::after {
        left: 50% !important;
        right: auto !important;
        top: 150% !important;
        bottom: auto !important;
        transform: translateX(-50%) scale(0.9) !important;
        width: 80vw;
        max-width: 280px;
        white-space: normal;
        text-align: center;
        position: fixed;
        /* Center on screen for mobile */
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.9) !important;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    }

    .date-egg:hover::after,
    .date-egg.show-tooltip::after {
        transform: translate(-50%, -50%) scale(1) !important;
    }

    /* Apply same fixed center logic for all easter egg tooltips on mobile */
    .tiny-icon-egg::after,
    .hidden-respect::after {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.9) !important;
        width: 80vw;
        max-width: 280px;
        bottom: auto !important;
        right: auto !important;
    }

    .tiny-icon-egg:hover::after,
    .tiny-icon-egg.show-tooltip::after,
    .hidden-respect:hover::after,
    .hidden-respect.show-tooltip::after {
        transform: translate(-50%, -50%) scale(1) !important;
    }
}

/* =========================================
   INTRO / SPLASH SCREEN
   ========================================= */
.no-scroll {
    overflow: hidden !important;
}

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #faefef 0%, #ecd0d0 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 2s ease-in-out, visibility 2s ease-in-out;
}

.splash-content {
    text-align: center;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.splash-title {
    font-size: 5rem;
    color: var(--deep-pink);
    margin-bottom: 0px;
    animation: fadeInDown 2s ease-out forwards;
    opacity: 0;
}

.splash-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--text-dark);
    animation: fadeInUp 2s ease-out 1s forwards;
    opacity: 0;
}

.cute-btn {
    margin-top: 20px;
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    color: #fff;
    background: var(--sakura-pink);
    border: none;
    border-radius: 50%;
    box-shadow: 0 5px 25px rgba(255, 183, 197, 0.8);
    transition: transform 0.3s, background 0.3s;
    animation: heartbeat 1.5s infinite, popIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.5s forwards;
    opacity: 0;
    transform: scale(0);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cute-btn:hover {
    background: var(--deep-pink);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 25px rgba(255, 183, 197, 0.8);
    }

    15% {
        transform: scale(1.15);
        box-shadow: 0 10px 35px rgba(255, 143, 163, 0.9);
    }

    30% {
        transform: scale(1);
        box-shadow: 0 5px 25px rgba(255, 183, 197, 0.8);
    }

    45% {
        transform: scale(1.15);
        box-shadow: 0 10px 35px rgba(255, 143, 163, 0.9);
    }

    60% {
        transform: scale(1);
        box-shadow: 0 5px 25px rgba(255, 183, 197, 0.8);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 5px 25px rgba(255, 183, 197, 0.8);
    }
}

/* Ripple effect on click */
.splash-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    animation: rippleExpand 1.5s ease-out forwards;
    pointer-events: none;
    z-index: 10000;
}

@keyframes rippleExpand {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(150);
        opacity: 0;
    }
}

.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
}