:root {
  --ink: #310d23;
  --wine: #5e1439;
  --berry: #941d51;
  --rose: #d95a82;
  --blush: #f8dce4;
  --cream: #fff9f4;
  --paper: #fffdf9;
  --muted: #866979;
  --shadow: 0 24px 70px rgba(65, 8, 39, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Tahoma, Arial, sans-serif;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.lock-screen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(231, 89, 139, .3), transparent 28%),
    radial-gradient(circle at 82% 80%, rgba(151, 61, 160, .28), transparent 32%),
    linear-gradient(145deg, #240719, #671238 47%, #361044);
  transition: opacity .9s ease, visibility .9s ease;
}
.lock-screen::before {
  content: ""; position: absolute; inset: 0; opacity: .26;
  background-image: radial-gradient(rgba(255,255,255,.6) .7px, transparent .7px);
  background-size: 18px 18px;
}
.lock-screen.unlocked { opacity: 0; visibility: hidden; pointer-events: none; }
.lock-card {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  padding: 36px 24px 28px;
  text-align: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  box-shadow: 0 28px 80px rgba(12, 0, 8, .42), inset 0 1px rgba(255,255,255,.2);
  backdrop-filter: blur(18px);
}
.lock-card.shake { animation: shake .48s ease; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(12px) rotate(1deg); }
  40% { transform: translateX(-10px) rotate(-1deg); }
  60% { transform: translateX(7px); }
  80% { transform: translateX(-4px); }
}
.glowing-heart {
  width: 76px; height: 76px; margin: -72px auto 22px;
  display: grid; place-items: center;
  color: #ff9fba; font-size: 60px; line-height: 1;
  filter: drop-shadow(0 0 15px rgba(255,103,154,.9));
  animation: heartbeat 1.35s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.2); }
  28% { transform: scale(1); }
  42% { transform: scale(1.12); }
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.lock-card .eyebrow { color: #ffb7ca; }
.lock-card h1 { margin: 0; font-size: clamp(1.45rem, 6vw, 2rem); line-height: 1.5; }
.lock-subtitle { margin: 8px 0 24px; color: rgba(255,255,255,.72); font-size: .94rem; }
#unlockForm { display: grid; gap: 12px; }
#passwordInput {
  width: 100%; min-height: 54px; border: 1px solid rgba(255,255,255,.22);
  border-radius: 15px; outline: none; padding: 0 18px;
  color: #fff; text-align: center;
  background: rgba(24, 4, 17, .3);
  transition: border-color .25s, box-shadow .25s;
}
#passwordInput::placeholder { color: rgba(255,255,255,.5); }
#passwordInput:focus { border-color: #ff9ab8; box-shadow: 0 0 0 4px rgba(255,123,163,.13); }
.hint { margin: -4px 0 3px; color: rgba(255,255,255,.6); font-size: .72rem; }
.primary-button {
  min-height: 54px; border: 0; border-radius: 15px; cursor: pointer;
  color: #57102f; font-weight: 800;
  background: linear-gradient(135deg, #fff0f4, #ffb7cc);
  box-shadow: 0 12px 30px rgba(226,72,125,.28);
  transition: transform .2s, box-shadow .2s;
}
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(226,72,125,.4); }
.lock-error { min-height: 20px; margin: 0; color: #ffd1de; font-size: .83rem; }
.floating-heart {
  position: absolute; bottom: -50px; color: rgba(255,182,203,.42);
  animation: floatUp linear infinite; pointer-events: none;
}
@keyframes floatUp {
  to { transform: translateY(-115vh) rotate(35deg); opacity: 0; }
}
.burst-heart {
  position: absolute; z-index: 5; left: 50%; top: 50%; color: #ff91b4;
  font-size: 25px; pointer-events: none;
  animation: burst .95s cubic-bezier(.17,.67,.4,1) forwards;
}
@keyframes burst {
  from { transform: translate(-50%,-50%) scale(.4); opacity: 1; }
  to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1.3); opacity: 0; }
}

.site-shell { opacity: 0; visibility: hidden; transition: opacity 1s ease .2s; }
.site-shell.visible { opacity: 1; visibility: visible; }
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; padding: 0 20px 28px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(34,6,23,.1), rgba(34,6,23,.78)),
    url("images/الصورة دى هى بتحبها.jpeg") center 36% / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,5,26,.35), transparent 65%); }
.hero-glow {
  position: absolute; width: 55vw; height: 55vw; top: -18vw; right: -15vw;
  border-radius: 50%; background: rgba(227,87,131,.22); filter: blur(60px);
}
.nav {
  position: relative; z-index: 2; width: min(100%, 1180px); margin: 0 auto;
  min-height: 82px; display: flex; align-items: center; justify-content: space-between;
}
.brand { direction: ltr; font: 700 1.25rem Georgia, serif; letter-spacing: .2em; }
.brand span { color: #ff8aac; }
.nav-links { display: flex; gap: 22px; font-size: .78rem; color: rgba(255,255,255,.74); }
.nav-links a:hover { color: #fff; }
.hero-content {
  position: relative; z-index: 2; width: min(100%, 1180px); margin: auto;
  padding: 60px 0 90px; max-width: 1180px;
}
.hero-kicker { margin: 0 0 18px; color: #ffc4d4; font-size: .75rem; font-weight: 700; letter-spacing: .07em; }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(2.7rem, 10vw, 6.6rem); line-height: 1.12; letter-spacing: -.04em; }
.hero h1 em { color: #ffb1c7; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-message { max-width: 540px; margin: 24px 0 30px; font-size: clamp(1rem, 2vw, 1.22rem); line-height: 2; color: rgba(255,255,255,.84); }
.scroll-link { display: inline-flex; align-items: center; gap: 12px; font-size: .82rem; font-weight: 700; }
.scroll-arrow { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; animation: bob 1.8s infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
.hero-signature { position: relative; z-index: 2; text-align: center; color: rgba(255,255,255,.54); font-size: .68rem; letter-spacing: .06em; }

.section { padding: 90px 20px; }
.intro { background: var(--cream); }
.section-heading { width: min(100%, 820px); margin: 0 auto; text-align: center; position: relative; }
.section-number { display: block; margin-bottom: 20px; color: #eabac8; font: italic 1rem Georgia, serif; }
.section-heading h2, .memories-head h2, .letter-wrap h2, .finale h2 {
  margin: 0; font-size: clamp(2rem, 7vw, 4.3rem); line-height: 1.25; letter-spacing: -.035em;
}
.section-heading > p:last-child { max-width: 570px; margin: 24px auto 0; color: var(--muted); line-height: 2; }
.memories { padding-top: 20px; background: #f7ecec; }
.memories-head {
  width: min(100%, 1180px); margin: 0 auto 38px;
  display: flex; align-items: end; justify-content: space-between; gap: 25px;
}
.memories-head h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
.tap-note { color: var(--muted); font-size: .75rem; }
.photo-grid { width: min(100%, 1180px); margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-card {
  position: relative; min-height: 230px; overflow: hidden; border: 0; padding: 0;
  border-radius: 4px; cursor: zoom-in; background: #ead7dc;
}
.photo-card:nth-child(5n + 1) { grid-column: 1 / -1; min-height: 390px; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s; }
.photo-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(31,4,20,.78)); opacity: .7; transition: opacity .3s; }
.photo-caption { position: absolute; z-index: 2; bottom: 0; right: 0; left: 0; padding: 18px 15px; color: #fff; text-align: right; font-size: .72rem; line-height: 1.6; transform: translateY(4px); transition: transform .3s; }
.photo-card:hover img { transform: scale(1.045); filter: saturate(1.06); }
.photo-card:hover .photo-caption { transform: none; }

.letter-section {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.5), transparent 20%),
    linear-gradient(135deg, #4b0f2e, #851e4a 58%, #49104d);
}
.letter-section::before, .letter-section::after {
  content: "♥"; position: absolute; color: rgba(255,255,255,.04); font: 30rem Georgia, serif;
}
.letter-section::before { top: -180px; right: -100px; transform: rotate(20deg); }
.letter-section::after { bottom: -250px; left: -130px; transform: rotate(-25deg); }
.letter-wrap {
  position: relative; z-index: 1; width: min(100%, 760px); margin: auto;
  padding: 48px 24px; border-radius: 4px; background: var(--paper);
  box-shadow: 0 35px 90px rgba(27,0,16,.38); transform: rotate(-.35deg);
}
.letter-wrap::before { content: ""; position: absolute; inset: 12px; border: 1px solid #efd9df; pointer-events: none; }
.letter-stamp {
  position: absolute; top: 24px; left: 24px; width: 62px; height: 62px;
  display: grid; place-items: center; border: 1px dashed #c98399; border-radius: 50%;
  color: var(--berry); font: bold .72rem Georgia, serif; text-align: center; transform: rotate(-12deg);
}
.letter-date { margin: 0 0 24px; color: var(--muted); font-size: .72rem; }
.letter-wrap h2 { font-family: Georgia, "Times New Roman", serif; color: var(--wine); }
.letter-copy { margin: 30px 0; color: #5c4451; font-size: 1rem; line-height: 2.15; }
.letter-copy p:first-child { color: var(--berry); font-size: 1.14rem; font-weight: 700; }
.letter-signature { margin: 28px 0 0; color: var(--wine); line-height: 1.7; }
.letter-signature strong { font: italic 1.8rem Georgia, serif; }

.finale {
  min-height: 75svh; display: grid; place-items: center; text-align: center; overflow: hidden;
  background: var(--cream);
}
.finale-inner { width: min(100%, 900px); }
.big-heart { display: block; margin: 0 auto 20px; color: var(--rose); font: 6rem Georgia, serif; filter: drop-shadow(0 12px 20px rgba(217,90,130,.25)); animation: heartbeat 1.35s infinite; }
.finale p { color: var(--muted); }
.finale h2 { margin: 15px auto 30px; }
.names { direction: ltr; color: var(--wine); font: italic 1.2rem Georgia, serif; letter-spacing: .08em; }
.names span { color: var(--rose); margin: 0 8px; }
footer { padding: 26px 20px; text-align: center; color: #a58694; border-top: 1px solid #eddde2; font-size: .72rem; }

.music-control {
  position: fixed; z-index: 90; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom));
  direction: ltr; align-items: center; gap: 9px; padding: 8px 10px;
  color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  background: rgba(57,10,37,.88); box-shadow: 0 10px 35px rgba(38,4,23,.28); backdrop-filter: blur(12px);
}
.music-control:not([hidden]) { display: flex; }
.music-control button {
  width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer;
  color: #fff; background: rgba(255,255,255,.1);
}
.music-label { direction: rtl; font-size: .7rem; }
.music-bars { height: 20px; display: flex; align-items: center; gap: 2px; }
.music-bars i { width: 2px; height: 5px; border-radius: 2px; background: #ffabc4; animation: bars .75s ease-in-out infinite alternate; animation-play-state: paused; }
.music-bars i:nth-child(2) { animation-delay: -.35s; }
.music-bars i:nth-child(3) { animation-delay: -.55s; }
.music-bars i:nth-child(4) { animation-delay: -.2s; }
.music-bars.playing i { animation-play-state: running; }
@keyframes bars { to { height: 18px; } }
.manual-music {
  position: fixed; z-index: 95; left: 50%; bottom: 28px; transform: translateX(-50%);
  border: 0; border-radius: 999px; padding: 13px 20px; cursor: pointer;
  color: #fff; background: var(--berry); box-shadow: var(--shadow);
}

.lightbox {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 48px 18px 25px;
  border: 0; color: #fff; background: rgba(25,3,17,.96);
}
.lightbox[open] { display: grid; grid-template-columns: 45px 1fr 45px; align-items: center; }
.lightbox::backdrop { background: rgba(25,3,17,.72); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; max-width: min(100%, 1000px); justify-self: center; text-align: center; }
.lightbox img { max-width: 100%; max-height: 76vh; margin: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 70px rgba(0,0,0,.5); }
.lightbox figcaption { min-height: 32px; padding-top: 15px; color: rgba(255,255,255,.75); font-size: .82rem; }
.lightbox-close, .lightbox-nav {
  border: 0; color: #fff; cursor: pointer; background: transparent;
}
.lightbox-close { position: absolute; top: 12px; left: 18px; font-size: 2rem; }
.lightbox-nav { font-size: 2.6rem; opacity: .75; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .85s ease, transform .85s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@media (min-width: 700px) {
  .lock-card { padding: 46px 40px 35px; }
  .hero { padding-inline: 40px; }
  .section { padding: 130px 40px; }
  .photo-grid { grid-template-columns: repeat(12, 1fr); gap: 14px; }
  .photo-card { grid-column: span 4; min-height: 330px; }
  .photo-card:nth-child(5n + 1) { grid-column: span 8; min-height: 500px; }
  .photo-card:nth-child(5n + 2) { grid-column: span 4; min-height: 500px; }
  .photo-card:nth-child(5n + 3), .photo-card:nth-child(5n + 4), .photo-card:nth-child(5n + 5) { grid-column: span 4; }
  .photo-caption { padding: 24px; font-size: .8rem; }
  .letter-wrap { padding: 75px 78px; }
  .letter-stamp { top: 42px; left: 48px; width: 78px; height: 78px; }
  .letter-copy { font-size: 1.07rem; }
}

@media (max-width: 480px) {
  .nav-links { gap: 12px; }
  .hero-content { padding-bottom: 60px; }
  .hero h1 { font-size: 2.75rem; }
  .memories-head { align-items: start; flex-direction: column; }
  .photo-card { min-height: 215px; }
  .photo-card:nth-child(5n + 1) { min-height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Romantic motion layer */
.ambient-hearts { position: fixed; z-index: 4; inset: 0; overflow: hidden; pointer-events: none; }
.ambient-heart { position: absolute; bottom: -45px; color: rgba(199,54,105,.22); font-family: Georgia,serif; filter: drop-shadow(0 3px 5px rgba(102,17,57,.12)); animation: ambientFloat var(--float-time,12s) linear forwards; }
@keyframes ambientFloat { 0% { transform: translate3d(0,0,0) rotate(0); opacity: 0; } 10% { opacity: .9; } 55% { transform: translate3d(var(--drift,25px),-55vh,0) rotate(18deg); } 100% { transform: translate3d(calc(var(--drift,25px) * -1),-115vh,0) rotate(-28deg); opacity: 0; } }
.photo-card { box-shadow: 0 12px 28px rgba(73,12,42,.08); transform-origin: center; transition: box-shadow .5s ease, translate .5s ease; }
.photo-card::before { content: ""; position: absolute; z-index: 3; inset: -45%; background: linear-gradient(115deg,transparent 35%,rgba(255,255,255,.42) 49%,transparent 63%); transform: translateX(75%) rotate(8deg); transition: transform .9s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.photo-card:hover { translate: 0 -7px; box-shadow: 0 22px 45px rgba(73,12,42,.18); }
.photo-card:hover::before { transform: translateX(-75%) rotate(8deg); }
.photo-card:hover img { transform: scale(1.065) rotate(.35deg); filter: saturate(1.1) contrast(1.03); }
.photo-card.reveal { opacity: 0; transform: translateY(55px) scale(.94) rotate(var(--entrance-rotate,0deg)); filter: blur(5px); transition: opacity .8s ease var(--reveal-delay,0ms), transform 1s cubic-bezier(.16,.78,.24,1) var(--reveal-delay,0ms), filter .75s ease var(--reveal-delay,0ms), box-shadow .5s ease, translate .5s ease; }
.photo-card.reveal:nth-child(even) { transform: translateY(45px) translateX(22px) scale(.94) rotate(var(--entrance-rotate,1.2deg)); }
.photo-card.reveal:nth-child(3n) { transform: translateY(45px) translateX(-22px) scale(.94) rotate(var(--entrance-rotate,-1.2deg)); }
.photo-card.reveal.in-view { opacity: 1; transform: none; filter: none; }
.pop-heart { position: fixed; z-index: 200; left: var(--pop-x); top: var(--pop-y); color: #f06f9a; font-family: Georgia,serif; pointer-events: none; animation: photoPop .85s cubic-bezier(.18,.7,.28,1) forwards; }
@keyframes photoPop { from { transform: translate(-50%,-50%) scale(.2) rotate(0); opacity: 1; } to { transform: translate(calc(-50% + var(--pop-dx)),calc(-50% + var(--pop-dy))) scale(1.25) rotate(var(--pop-r)); opacity: 0; } }
.big-heart { position: relative; }
.big-heart::after { content: "♡"; position: absolute; margin: -12px 0 0 -20px; color: #ef9ab6; font-size: 2.4rem; animation: orbitHeart 3.6s linear infinite; }
@keyframes orbitHeart { from { transform: rotate(0deg) translateX(45px) rotate(0deg); } to { transform: rotate(360deg) translateX(45px) rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .ambient-hearts,.photo-heart-pop { display: none; } }
/* Ranoooooooooon celebration */
.rano-moment { position: relative; isolation: isolate; overflow: hidden; padding: 80px 10px 100px; color: #fff; text-align: center; background: radial-gradient(circle at 50% 55%,rgba(240,107,151,.34),transparent 35%),linear-gradient(135deg,#3b0928,#7b1646 56%,#43124e); }
.rano-moment::before,.rano-moment::after { content: "♥"; position: absolute; z-index: -1; color: rgba(255,255,255,.055); font: 18rem Georgia,serif; animation: ranoBackdrop 7s ease-in-out infinite alternate; }
.rano-moment::before { top: -120px; right: -30px; transform: rotate(18deg); }
.rano-moment::after { bottom: -150px; left: -30px; transform: rotate(-18deg); animation-delay: -3s; }
.rano-moment p { margin: 0 0 22px; color: #ffc3d4; font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.rano-moment small { display: block; margin-top: 24px; color: rgba(255,255,255,.72); font-size: clamp(.8rem,2vw,1rem); letter-spacing: .08em; }
.rano-word { direction: ltr; display: flex; justify-content: center; align-items: baseline; white-space: nowrap; color: #ffd3df; font: italic 800 clamp(2rem,9.5vw,7.8rem) Georgia,"Times New Roman",serif; letter-spacing: -.08em; text-shadow: 0 0 14px rgba(255,151,185,.35),0 12px 35px rgba(20,0,13,.35); }
.rano-word.in-view span { display: inline-block; animation: ranoLetter 1.8s cubic-bezier(.2,.75,.25,1) infinite; animation-delay: calc(var(--letter) * 70ms); }
.rano-word span:nth-child(1) { --letter: 0; } .rano-word span:nth-child(2) { --letter: 1; } .rano-word span:nth-child(3) { --letter: 2; } .rano-word span:nth-child(4) { --letter: 3; } .rano-word span:nth-child(5) { --letter: 4; } .rano-word span:nth-child(6) { --letter: 5; } .rano-word span:nth-child(7) { --letter: 6; } .rano-word span:nth-child(8) { --letter: 7; } .rano-word span:nth-child(9) { --letter: 8; } .rano-word span:nth-child(10) { --letter: 9; } .rano-word span:nth-child(11) { --letter: 10; } .rano-word span:nth-child(12) { --letter: 11; } .rano-word span:nth-child(13) { --letter: 12; } .rano-word span:nth-child(14) { --letter: 13; }
@keyframes ranoLetter { 0%,65%,100% { transform: translateY(0) rotate(0); color: #ffd3df; } 24% { transform: translateY(-14px) rotate(-4deg) scale(1.08); color: #fff; } 42% { transform: translateY(3px) rotate(2deg); } }
@keyframes ranoBackdrop { to { transform: translateY(30px) rotate(-8deg) scale(1.08); } }