/* ======================================================= */
/* === UPDATED: MODERN VISUAL REFRESH 2.0 (PREMIUM LOOK) === */
/* ======================================================= */

/* Variables for Warm, Artistic Look (UPDATED MODERN PALETTE) */
:root {
    --color-cream: #f9f7f0;       /* רקע: לבן-שמנת רך */
    --color-blush: #e0b0b0;       /* צבע משני: ורוד-אפרפר/ורוד מאובק (Dusty Rose) */
    --color-emerald: #e0b0b0;     /* צבע ראשי: ירוק-יער עמוק ואלגנטי */
    --color-wood: #2c2c2c;        /* טקסט/עוגן: שחור רך */
    --color-contrast: #d55d49;    /* צבע הדגשה חדש לאינטראקציה (Terracotta/Brick Red) */
    --font-serif: 'Merriweather', serif; 
    --font-sans: 'Roboto', sans-serif;   
}

/* Global Reset and Base */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
}

body, html {
    background-color: var(--color-cream);
    color: var(--color-wood);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-weight: 300; 
}

/* --- HERO/ENTRANCE --- */
#hero-entrance {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--color-wood); 
    color: var(--color-cream);
}
.intro-content h1 {
    font-family: var(--font-serif);
    font-size: 5.5em; 
    color: var(--color-blush);
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.intro-content h2 {
    font-size: 2em;
    font-weight: 300;
    margin-top: 10px;
}
.cta-button {
    padding: 15px 40px;
    margin-top: 40px;
    background-color: var(--color-blush);
    color: var(--color-wood);
    border: 2px solid var(--color-blush);
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.cta-button:hover {
    transform: translateY(-5px);
    background-color: var(--color-contrast);
    color: var(--color-cream);
    border-color: var(--color-contrast);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* --- GENERAL SECTION STYLING --- */
.archive-section {
    min-height: 100vh;
    padding: 140px 5%;
    position: relative;
    background-color: var(--color-cream);
}
.section-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.archive-section h3 {
    font-family: var(--font-serif);
    font-size: 4em;
    margin-bottom: 10px;
    color: var(--color-emerald);
    font-weight: 700;
    letter-spacing: -0.5px;
}
.archive-section p {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #555;
    font-weight: 300;
}

/* --- FIXES: BACKGROUND IMAGE BASE STYLES --- */
.card-image, 
.couple-photo, 
.alma-crib-light, 
.floating-photo-frame, 
.pet-image {
    background-position: center;     
    background-repeat: no-repeat;    
    background-size: cover;          
}

/* --- NEW: DIGITAL PHOTO FRAME EFFECT --- */
.digital-frame {
    position: relative;
    border: 5px solid white;
    box-shadow: 0 0 0 1px #ccc, 0 1px 3px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.digital-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    pointer-events: none;
    transition: background 0.3s ease;
}
.child-card:hover .digital-frame::after,
.couple-card:hover .digital-frame::after {
    background: rgba(0, 0, 0, 0);
}

/* --- SECTION I: FAMILY TREE --- */
.child-cards-container {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    margin-top: 60px;
}
.child-card {
    width: 30%;
    background: white;
    padding: 30px;
    border: 2px solid var(--color-cream);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(50px);
    opacity: 0;
    cursor: pointer;
}
.child-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--color-blush);
}
.card-image {
    width: 100%;
    height: 300px;
    margin-bottom: 25px;
    border-radius: 10px;
}
.child-card h4 {
    color: var(--color-emerald);
    font-family: var(--font-serif);
    font-size: 1.8em;
    font-weight: 700;
}
.child-card p {
    font-size: 1em;
    color: #666;
}

/* --- SECTION II: HORIZONTAL SCROLL --- */
.horizontal-scroll-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-blush);
    overflow: hidden;
    position: relative;
}

.horizontal-spacer {
    height: 0;
    visibility: hidden;
}

.scroll-content {
    display: flex;
    flex-wrap: nowrap;
    height: 90vh;
    align-items: center;
    will-change: transform;
}

.scroll-panel {
    flex: 0 0 75vw;
    height: 90%;
    margin-right: 10vw;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px;

    transform: scale(0.9);
    opacity: 1;

    transition: transform 0.5s;
}


.scroll-panel:last-child {
    margin-right: 50vw;
}

.intro-panel-h {
    background-color: transparent;
    box-shadow: none;
    flex: 0 0 100vw;
}
.intro-panel-h h2 { 
    color: var(--color-wood); 
    font-size: 5em; 
    font-family: var(--font-serif); 
}
.intro-panel-h p { 
    color: var(--color-wood); 
    font-weight: 400; 
    font-size: 1.3em; 
}

.couple-photo { 
    width: 95%; 
    height: 60%;
    margin-bottom: 40px; 
    border-radius: 15px;
} 
.couple-text h3 {
    color: var(--color-emerald);
    font-family: var(--font-serif);
    font-size: 3em;
}

/* Alma's Light */
.alma-crib-light {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    margin-bottom: 20px;
    border: 7px solid var(--color-contrast);
}
.alma-reveal-scene h3 { color: var(--color-contrast); }
.highlight-text {
    font-size: 1.4em;
    color: var(--color-emerald);
    font-weight: 500;
}

/* --- SECTION III: KEEPER OF KEYS (ABE Scene) --- */
.keeper-of-keys-scene {
    background-color: var(--color-wood);
    color: var(--color-cream);
    flex-direction: row; 
    gap: 70px; 
    padding: 80px;
    flex: 0 0 80vw; 
    margin-right: 10vw;
}

.keeper-of-keys-scene h3 {
    color: var(--color-blush);
    font-family: var(--font-serif);
    font-size: 3.5em;
    text-align: left;
    font-weight: 700;
}
.love-message {
    width: 50%;
    text-align: left;
}
.love-message p {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
    font-weight: 300;
}

.floating-photo-frame {
    width: 380px;
    height: 480px;
    background: #ccc; 
    border: 10px solid var(--color-blush);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
    transform: translateZ(0) rotateY(0); 
    border-radius: 5px;
}

/* --- SECTION IV: COMFORT CREW --- */
.pet-section {
    display: flex;
    justify-content: center;
    gap: 40px; 
    margin-top: 60px;
}
.pet-card {
    width: 25%; 
    padding: 30px;
    background: white;
    border: 2px solid var(--color-cream);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}
.pet-card:hover {
    transform: translateY(-8px) scale(1.03); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--color-emerald);
}

.pet-card h4 {
    color: var(--color-wood);
    font-weight: 500;
    font-size: 1.5em;
    margin-bottom: 10px;
}
.pet-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 5px solid var(--color-blush);
    box-shadow: 0 0 0 2px white;
}

/* --- SECTION V: WISHING WALL --- */
#wishing-wall {
    background-color: var(--color-wood);
    color: var(--color-cream);
    padding: 150px 5%; 
}
#wishing-wall h3 { color: var(--color-contrast); font-size: 4em; }

#messages-container {
    height: 80vh;
    width: 100%;
    position: relative;
    perspective: 1200px;
    overflow: visible; 
    margin-top: 50px;
}

.message-capsule {
    position: absolute;
    padding: 15px 25px; 
    border-radius: 50px; 
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(224, 176, 176, 0.5); 
    transform-style: preserve-3d;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-style: italic;
    font-size: 1.1em; 
    text-align: center;
    color: var(--color-cream);
    white-space: normal; 
    max-width: 250px; 
    font-weight: 300;
}

.message-capsule:hover {
    background: var(--color-contrast);
    color: white;
    transform: translateZ(80px) scale(1.1);
    box-shadow: 0 0 30px rgba(213, 93, 73, 0.8);
}

/* --- FINAL SECTION --- */
.finale-panel {
    background-color: var(--color-emerald);
    color: var(--color-cream);
    text-align: center;
    padding: 180px 5%;
}
.finale-panel h3 { 
    color: var(--color-cream); 
    font-size: 5em;
    font-weight: 700;
    letter-spacing: -1px;
}
.final-message {
    font-size: 2.5em;
    font-family: var(--font-serif);
    margin-bottom: 30px;
    color: var(--color-cream);
}
.signature-line {
    font-size: 2em;
    font-style: italic;
    color: var(--color-blush);
    font-weight: 500;
}

/* ================================================= */
/* ========== ADDITION: VIDEO + MEMORY WALL ========= */
/* ================================================= */

/* VIDEO SECTION */
#video-blessing {
    background: linear-gradient(135deg, var(--color-cream), #fff);
}

.video-frame-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.video-frame {
    width: 75%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    background: black;
    transform: scale(0.85);
    opacity: 0;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
}

/* MEMORY WALL */
#memory-wall {
    background-color: var(--color-blush);
}

.memory-wall {
    position: relative;
    height: 80vh;
    margin-top: 60px;
    
}

/* Fix Memory Wall title contrast */
#memory-wall h3 {
    color: white;
}


.memory-photo {
    position: absolute;
    width: 180px;
    height: 220px;
    background-size: cover;
    background-position: center;
    border: 8px solid white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.memory-photo:hover {
    transform: scale(1.15) rotate(0deg);
    z-index: 10;
}

.main-photo {
    width: 320px;
    height: 400px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

/* POSITIONS & Z-INDEX */
.memory-photo {
    position: absolute;
    z-index: 2;
}

.memory-photo:hover {
    z-index: 3;
}

.main-photo {
    z-index: 10 !important;
    pointer-events: auto;
}

/* POPUP */
#image-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#image-popup img {
    max-width: 90%;
    max-height: 90%;
    border: 10px solid white;
}

.close-popup {
    position: absolute;
    top: 40px;
    right: 60px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}


/* ================================================= */
/* ========== HEARTBLOOM GAME (GLOW THREADS) ======= */
/* ================================================= */

#heartbloom-game {
    background: radial-gradient(circle at top, #ffffff, var(--color-cream));
}

.heartbloom-board {
    position: relative;
    margin: 40px auto 0;
    width: min(750px, 100%);
    aspect-ratio: 1 / 1;
    border-radius: 30px;

    background: radial-gradient(circle at 20% 0%, rgba(255,255,255,0.9), rgba(224,176,176,0.3));
    box-shadow: 0 25px 60px rgba(0,0,0,0.18);

    padding: 40px;
    overflow: visible;
    box-sizing: border-box;
}


/* Core heart-flower in the centre */
.heartbloom-core {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 55%;
    height: 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
}

.heart-shape {
    position: relative;
    width: 130px;
    height: 115px;
    background: radial-gradient(circle at 30% 30%, #ffefef, #d55d49);
    transform: rotate(-45deg);
    border-radius: 50% 50% 0 0;
    box-shadow: 0 0 25px rgba(213,93,73,0.6), 0 0 60px rgba(255,255,255,0.8);
}
.heart-shape::before,
.heart-shape::after {
    content: '';
    position: absolute;
    width: 130px;
    height: 115px;
    background: radial-gradient(circle at 30% 30%, #ffefef, #d55d49);
    border-radius: 50%;
}
.heart-shape::before {
    top: -60px;
    left: 0;
}
.heart-shape::after {
    left: 60px;
    top: 0;
}

.heartbloom-label {
    margin-top: 30px;
    font-size: 0.95em;
    color: #533;
    font-style: italic;
}

/* Slots around the heart (halos) */
.thread-slots {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.thread-slot {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.7);
    box-shadow: 0 0 30px rgba(255,255,255,0.5);
    background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(224,176,176,0.25));
    opacity: 0.8;
}

/* 8 נקודות מסודרות סביב מעגל */
.thread-slot[data-slot="1"] { top: 8%; left: 50%; transform: translate(-50%, 0); }
.thread-slot[data-slot="2"] { top: 20%; left: 82%; transform: translate(-50%, -50%); }
.thread-slot[data-slot="3"] { top: 50%; left: 92%; transform: translate(-50%, -50%); }
.thread-slot[data-slot="4"] { top: 80%; left: 82%; transform: translate(-50%, -50%); }
.thread-slot[data-slot="5"] { top: 92%; left: 50%; transform: translate(-50%, -50%); }
.thread-slot[data-slot="6"] { top: 80%; left: 18%; transform: translate(-50%, -50%); }
.thread-slot[data-slot="7"] { top: 50%; left: 8%;  transform: translate(-50%, -50%); }
.thread-slot[data-slot="8"] { top: 20%; left: 18%; transform: translate(-50%, -50%); }

/* Glowing draggable threads */
.threads-pool {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.thread-orb {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #fff, #ffe5dd 45%, #d55d49 80%);
    box-shadow:
        0 0 15px rgba(255,255,255,0.9),
        0 0 40px rgba(213,93,73,0.9),
        0 0 80px rgba(213,93,73,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    pointer-events: auto;
    border: 1px solid rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    user-select: none;
}

.thread-orb span {
    color: #3c1111;
    font-size: 0.8em;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 0 6px rgba(255,255,255,0.8);
}

/* מיקום התחלתי של 8 החוטים – מעין פרח שני */
.thread-orb[data-slot="1"] { top: 3%; left: 7%; }
.thread-orb[data-slot="2"] { top: 3%; right: 7%; }
.thread-orb[data-slot="3"] { top: 25%; right: -4%; }
.thread-orb[data-slot="4"] { top: 65%; right: -4%; }
.thread-orb[data-slot="5"] { bottom: 3%; right: 7%; }
.thread-orb[data-slot="6"] { bottom: 3%; left: 7%; }
.thread-orb[data-slot="7"] { top: 65%; left: -4%; }
.thread-orb[data-slot="8"] { top: 25%; left: -4%; }

.thread-orb.dragging {
    cursor: grabbing;
    box-shadow:
        0 0 18px rgba(255,255,255,1),
        0 0 60px rgba(213,93,73,1);
}

.thread-orb.locked {
    cursor: default;
    box-shadow:
        0 0 18px rgba(255,255,255,1),
        0 0 70px rgba(213,93,73,1);
}

/* Final message */
.heartbloom-message {
    position: absolute;
    left: 50%;
    bottom: 6%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 420px;
    padding: 14px 20px;
    background: rgba(44,44,44,0.85);
    color: #f9c6cf;
    border-radius: 999px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
}
.heartbloom-message h4 {
    font-family: var(--font-serif);
    color: #f9c6cf;
    font-size: 1.1em;
    margin-bottom: 4px;
}
.heartbloom-message p {
    font-size: 0.9em;
    color: #f9c6cf;
    margin-bottom: 0;
}

.heartbloom-heart {
    width: 230px;
    margin: 0 auto 20px;
}

.heartbloom-heart svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.15));
}



/* ================= MARK – STEADY FLAME SECTION ================= */

#mark-steady-flame {
    background: radial-gradient(circle at 10% 0%, rgba(224,176,176,0.25), transparent 60%),
                radial-gradient(circle at 90% 100%, rgba(213,93,73,0.18), transparent 55%),
                var(--color-cream);
}

#mark-steady-flame h3 {
    font-size: 3.4em;
}

#mark-steady-flame p {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

/* Layout */
.mark-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
}

/* LEFT COLUMN – special glowing portrait */
.mark-photo-column {
    flex: 0 0 320px;
    text-align: center;
}

.mark-photo-orbit {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto 18px;
}

.mark-photo-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(213,93,73,0.7), rgba(213,93,73,0));
    filter: blur(6px);
    opacity: 0.8;
    animation: markGlowPulse 3.5s ease-in-out infinite;
}

.mark-photo-frame {
    position: relative;
    width: 70%;
    height: 70%;
    margin: 15% auto 0;
    border-radius: 22px;
    background-size: cover;
    background-position: center;
    box-shadow:
        0 12px 40px rgba(0,0,0,0.35),
        0 0 25px rgba(255,255,255,0.7);
    transform: translateY(0);
    animation: markFloat 5s ease-in-out infinite;
}

/* small orbiting dots around the portrait */
.mark-orbit-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 15px rgba(255,255,255,0.8);
}

.mark-orbit-dot.dot-1 {
    top: 8%;
    left: 12%;
    animation: markDotOrbit1 8s linear infinite;
}

.mark-orbit-dot.dot-2 {
    top: 12%;
    right: 10%;
    animation: markDotOrbit2 10s linear infinite;
}

.mark-orbit-dot.dot-3 {
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    animation: markDotOrbit3 9s linear infinite;
}

.mark-photo-caption {
    font-size: 0.95em;
    color: #666;
    font-style: italic;
}

/* RIGHT COLUMN – text blocks */
.mark-text-column {
    flex: 1 1 360px;
    text-align: left;
}

.mark-text-column h4 {
    font-family: var(--font-serif);
    font-size: 1.8em;
    color: var(--color-emerald);
    margin-bottom: 20px;
}

.mark-qualities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 30px;
}

.mark-quality h5 {
    font-size: 1.1em;
    color: var(--color-contrast);
    margin-bottom: 6px;
    font-weight: 600;
}

.mark-quality p {
    font-size: 0.98em;
    margin-bottom: 0;
    color: #555;
}

/* Animations */
@keyframes markGlowPulse {
    0% { transform: scale(0.96); opacity: 0.7; }
    50% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(0.96); opacity: 0.7; }
}

@keyframes markFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes markDotOrbit1 {
    0%   { transform: translate(0,0); }
    25%  { transform: translate(18px, 10px); }
    50%  { transform: translate(0, 20px); }
    75%  { transform: translate(-18px, 10px); }
    100% { transform: translate(0,0); }
}

@keyframes markDotOrbit2 {
    0%   { transform: translate(0,0); }
    25%  { transform: translate(-15px, 12px); }
    50%  { transform: translate(0, 22px); }
    75%  { transform: translate(15px, 8px); }
    100% { transform: translate(0,0); }
}

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

/* Responsive tweaks */
@media (max-width: 768px) {
    #mark-steady-flame h3 {
        font-size: 2.4em;
    }

    .mark-layout {
        gap: 35px;
    }

    .mark-text-column {
        text-align: center;
    }

    .mark-qualities-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== FINAL IMAGE UNDER SIGNATURE ===== */

.final-image-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.final-image-wrapper img {
    max-width: 520px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}


/* ========== MARK SECTION — CENTERED LARGE VERSION ========== */

/* Wrapper */
.mark-photo-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

/* Orbit container */
.mark-orbit-container {
    position: relative;
    width: 865px;
    height: 688px;
    animation: markFloat 5s ease-in-out infinite;
}

/* Glow behind */
.mark-orbit-glow {
    position: absolute;
    inset: -60px;
    background: radial-gradient(circle, rgba(213,93,73,0.45), rgba(213,93,73,0) 70%);
    filter: blur(45px);
    z-index: 0;
    animation: markGlowPulse 4s ease-in-out infinite;
    border-radius: 40px;
}

/* Actual portrait, clear and sharp */
.mark-portrait-frame {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: 22px;
    box-shadow:
        0 12px 40px rgba(0,0,0,0.35),
        0 0 25px rgba(255,255,255,0.7);
    z-index: 2;
}

/* Floating dots */
.mark-orbit-dot {
    position: absolute;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255,255,255,1);
    z-index: 3;
}

.dot-1 {
    top: 2%;
    left: 2%;
    animation: markDotOrbit1 8s linear infinite;
}

.dot-2 {
    top: 10%;
    right: -25px;
    animation: markDotOrbit2 10s linear infinite;
}

.dot-3 {
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    animation: markDotOrbit3 9s linear infinite;
}

/* Animations (same as original) */
@keyframes markGlowPulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

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

@keyframes markDotOrbit1 {
    0%   { transform: translate(0,0); }
    25%  { transform: translate(20px, 12px); }
    50%  { transform: translate(0, 22px); }
    75%  { transform: translate(-20px, 10px); }
    100% { transform: translate(0,0); }
}

@keyframes markDotOrbit2 {
    0%   { transform: translate(0,0); }
    25%  { transform: translate(-18px, 15px); }
    50%  { transform: translate(0, 26px); }
    75%  { transform: translate(18px, 10px); }
    100% { transform: translate(0,0); }
}

@keyframes markDotOrbit3 {
    0%   { transform: translateX(-50%) translateY(0); }
    50%  { transform: translateX(-50%) translateY(-12px); }
    100% { transform: translateX(-50%) translateY(0); }
}



/* ================================================= */
/* ========== RESPONSIVE – MOBILE & TABLET ========= */
/* ================================================= */

@media (max-width: 768px) {

    /* GENERAL */
    .archive-section {
        padding: 80px 6%;
    }

    .archive-section h3 {
        font-size: 2.2em;
    }

    .archive-section p {
        font-size: 1em;
    }

    /* HERO */
    .intro-content h1 {
        font-size: 2.8em;
        letter-spacing: 1px;
    }

    .intro-content h2 {
        font-size: 1.3em;
    }

    /* FAMILY CARDS */
    .child-cards-container,
    .pet-section {
        flex-direction: column;
        gap: 30px;
    }

    .child-card,
    .pet-card {
        width: 100%;
    }

    /* VIDEO */
    .video-frame {
        width: 100%;
        border-radius: 15px;
    }

    /* MEMORY WALL */
    .memory-wall {
        height: auto;
        min-height: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        position: relative;
    }

    .memory-photo {
        position: relative;
        width: 45%;
        height: 180px;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }

    .main-photo {
        width: 100%;
        height: 260px;
        order: -1;
        margin-bottom: 20px;
        z-index: 5;
    }

    /* POPUP */
    #image-popup img {
        max-width: 95%;
        max-height: 80%;
    }

    /* HEARTBLOOM GAME – התאמות מובייל */
    .heartbloom-board {
        width: 100%;
        border-radius: 24px;
    }
    .thread-orb {
        width: 70px;
        height: 70px;
        font-size: 0.75em;
    }
}

@media (max-width: 480px) {

    .intro-content h1 {
        font-size: 2.2em;
    }

    .archive-section h3 {
        font-size: 1.9em;
    }

    .memory-photo {
        width: 100%;
        height: 200px;
    }

    .main-photo {
        height: 240px;
    }
}


