/* ==========================================================================
   style.css — الثيم الكحلي/الوردي الرومانسي
   --------------------------------------------------------------------------
   1. المتغيرات (Variables)
   2. الأساسيات + الخلفية المتحركة
   3. النجوم (Sparkles)
   4. طبقة القلوب الطائرة
   5. شاشة البداية (Landing)
   6. الأزرار
   7. الأقسام + الكروت الزجاجية (Glassmorphism)
   8. القلب المتوهج
   9. كروت الذكريات + الكوميديا
   10. زرار "لسه زعلانة"
   11. المودال
   12. زرار الموسيقى
   13. Reveal عند التمرير
   14. الريسبونسيف + تقليل الحركة
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. المتغيرات
   -------------------------------------------------------------------------- */
:root {
  /* الألوان الأساسية */
  --bg: #07030c;
  --bg-2: #0e0518;
  --pink: #ff5c8a;
  --pink-soft: #ff9ec4;
  --red: #ff3d68;
  --purple: #a855f7;
  --violet: #6d28d9;
  --gold: #ffd6e8;

  /* النصوص */
  --text: #f7eef5;
  --text-soft: #cdb9d6;
  --text-dim: #9c88ae;

  /* التدرجات */
  --grad-main: linear-gradient(120deg, #ff3d68 0%, #ff5c8a 45%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 92, 138, 0.16), rgba(168, 85, 247, 0.16));

  /* الزجاج */
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: 18px;

  /* الظلال */
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.45);
  --glow-pink: 0 0 28px rgba(255, 92, 138, 0.45);
  --glow-purple: 0 0 34px rgba(168, 85, 247, 0.4);

  /* الخطوط */
  --font-head: 'Cairo', system-ui, sans-serif;
  --font-body: 'Tajawal', 'Cairo', system-ui, sans-serif;

  /* أبعاد */
  --radius: 26px;
  --max-w: 860px;
}

/* --------------------------------------------------------------------------
   2. الأساسيات + الخلفية المتحركة
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 2.05;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

/* منع تكبير الصفحة بالضغط المزدوج على الموبايل */
button,
a,
.fun-card,
.memory-card {
  touch-action: manipulation;
}

/* ومنع تحديد النص لما تدوس بسرعة على الأزرار */
.btn-primary,
.btn-secondary,
.music-btn {
  user-select: none;
  -webkit-user-select: none;
}

/* خلفية قاعدة غامقة + تدرجات متحركة */
.bg-gradient {
  position: fixed;
  inset: -20%;
  z-index: -3;
  background:
    radial-gradient(45vw 45vw at 78% 12%, rgba(255, 61, 104, 0.22), transparent 62%),
    radial-gradient(42vw 42vw at 16% 24%, rgba(168, 85, 247, 0.2), transparent 64%),
    radial-gradient(50vw 50vw at 50% 96%, rgba(109, 40, 217, 0.18), transparent 66%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
  filter: blur(6px);
  animation: bgMove 26s ease-in-out infinite alternate;
}

/* حركة الخلفية (بتقيلة وحلوة) */
@keyframes bgMove {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-2.5%, 2%, 0) scale(1.06);
  }
  100% {
    transform: translate3d(2.5%, -2%, 0) scale(1.03);
  }
}

/* نجمة صغيرة فوق الصفحة كلها */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.5;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1.1em;
}

strong {
  font-weight: 700;
  color: #fff;
  background: linear-gradient(100deg, var(--pink-soft), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   3. النجوم (Sparkles)
   -------------------------------------------------------------------------- */
.sparkles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 1px rgba(255, 255, 255, 0.65);
  opacity: 0;
  animation: twinkle var(--dur, 4s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.05; transform: scale(0.6); }
  50%      { opacity: 0.9;  transform: scale(1.5); }
}

/* --------------------------------------------------------------------------
   4. طبقة القلوب الطائرة
   -------------------------------------------------------------------------- */
.hearts-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.float-heart {
  position: absolute;
  bottom: -60px;
  font-size: var(--size, 20px);
  opacity: 0;
  animation: floatUp var(--dur, 12s) linear var(--delay, 0s) forwards;
  will-change: transform, opacity;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.6) rotate(0deg);
  }
  12%  { opacity: 0.9; }
  85%  { opacity: 0.55; }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 40px), -110vh, 0) scale(1.15) rotate(var(--spin, 220deg));
  }
}

/* قلوب بتطير لفوق بسرعة (لحظة الدخول) */
.heart-burst {
  position: absolute;
  font-size: var(--size, 26px);
  pointer-events: none;
  animation: burst var(--dur, 1400ms) cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

@keyframes burst {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.2); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.1); }
}

/* --------------------------------------------------------------------------
   5. شاشة البداية (Landing)
   -------------------------------------------------------------------------- */
.landing {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 20px;
  text-align: center;
}

/* الحالة اللي بتظهر بعد الضغط على زرار الدخول */
.landing.is-leaving {
  animation: landingOut 900ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes landingOut {
  0%   { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.12); filter: blur(14px); visibility: hidden; }
}

.landing-inner {
  max-width: 640px;
  animation: fadeUp 1s ease both;
}

.landing-eyebrow {
  color: var(--text-dim);
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  margin-bottom: 18px;
}

.landing-title {
  font-size: clamp(3rem, 13vw, 7.5rem);
  font-weight: 900;
  margin: 0 0 6px;
  background: var(--grad-main);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 92, 138, 0.45));
  animation: gradShift 7s ease-in-out infinite;
}

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

.landing-sub {
  font-size: clamp(1.15rem, 3.6vw, 1.7rem);
  color: var(--text-soft);
  font-weight: 300;
  margin-bottom: 40px;
}

.landing-hint {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* سهم صغيربتحت الصفحة */
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
}

.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--pink-soft);
  animation: cueDown 1.9s ease-in-out infinite;
}

@keyframes cueDown {
  0%   { opacity: 0; transform: translateY(0); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* --------------------------------------------------------------------------
   6. الأزرار
   -------------------------------------------------------------------------- */
.btn-primary,
.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 38px;
  border-radius: 999px;
  color: #fff;
  background: var(--grad-main);
  background-size: 200% auto;
  box-shadow: var(--glow-pink), var(--shadow-soft);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s ease, filter 0.28s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary::after {
  /* لمعة بتعدي على الزرار */
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.04);
  background-position: 100% 50%;
  box-shadow: 0 0 44px rgba(255, 92, 138, 0.6), var(--shadow-soft);
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.music-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.btn-glow {
  animation: softPulse 3.2s ease-in-out infinite;
}

@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 22px rgba(255, 92, 138, 0.4), var(--shadow-soft); }
  50%      { box-shadow: 0 0 46px rgba(168, 85, 247, 0.55), var(--shadow-soft); }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: var(--text-soft);
  box-shadow: none;
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.03);
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.btn-small {
  font-size: 0.95rem;
  padding: 13px 30px;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   7. الأقسام + الكروت الزجاجية
   -------------------------------------------------------------------------- */
.content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 20px 90px;
}

.content[hidden] {
  display: none;
}

.content.is-entering > .section:first-child {
  animation: fadeUp 1s 0.1s ease both;
}

.section {
  margin: 0 0 110px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.7rem, 5.4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 30px;
  background: var(--grad-main);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 22px rgba(255, 61, 104, 0.28));
}

.glass-card {
  position: relative;
  margin: 0 auto 26px;
  max-width: 720px;
  padding: 38px 30px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* لمعة علوية على الكارت */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 158, 196, 0.35);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55), var(--glow-pink);
}

.glass-card-accent {
  background: linear-gradient(160deg, rgba(255, 61, 104, 0.12), rgba(168, 85, 247, 0.1));
  border-color: rgba(255, 158, 196, 0.22);
}

.glass-card-big {
  max-width: 780px;
  padding: 52px 34px;
}

.card-title {
  font-size: clamp(1.55rem, 5vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 22px;
  background: var(--grad-main);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* الكلام المكتوب بخط اليد (شعر) */
.poem {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 3.1vw, 1.22rem);
  font-weight: 400;
  line-height: 2.25;
  color: var(--text-soft);
  margin: 0;
}

.poem + .poem {
  margin-top: 26px;
}

/* --------------------------------------------------------------------------
   8. القلب المتوهج
   -------------------------------------------------------------------------- */
.glowing-heart {
  position: relative;
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  margin: 46px auto 0;
}

.heart-shape {
  font-size: 4.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 18px rgba(255, 61, 104, 0.75));
  animation: beat 1.9s ease-in-out infinite;
  z-index: 1;
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  14%      { transform: scale(1.16); }
  28%      { transform: scale(0.97); }
  42%      { transform: scale(1.09); }
  70%      { transform: scale(1); }
}

.heart-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 61, 104, 0.42) 0%, transparent 68%);
  animation: haloPulse 2.6s ease-in-out infinite;
}

.heart-halo-2 {
  animation-delay: 1.3s;
}

@keyframes haloPulse {
  0%, 100% { transform: scale(0.72); opacity: 0.5; }
  50%      { transform: scale(1.22); opacity: 0.95; }
}

.glowing-heart-big {
  width: 200px;
  height: 200px;
  margin-top: 56px;
}

.glowing-heart-big .heart-shape {
  font-size: 6.4rem;
  filter: drop-shadow(0 0 30px rgba(255, 61, 104, 0.85));
}

/* --------------------------------------------------------------------------
   9. الكروت (كوميديا + ذكريات)
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  text-align: right;
}

.fun-card,
.memory-card {
  position: relative;
  padding: 30px 24px;
  border-radius: 22px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(28px);
}

.fun-card.is-in,
.memory-card.is-in {
  animation: cardIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms);
}

@keyframes cardIn {
  0%   { opacity: 0; transform: translateY(28px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.fun-card::after,
.memory-card::after {
  /* توهج بيوصل من جنب الكارت */
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.fun-card:hover,
.memory-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: rgba(255, 158, 196, 0.4);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.55), var(--glow-pink);
}

.fun-card:hover::after,
.memory-card:hover::after {
  opacity: 1;
}

.fun-icon,
.memory-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  font-size: 1.7rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fun-card:hover .fun-icon,
.memory-card:hover .memory-icon {
  transform: rotate(-10deg) scale(1.15);
}

.fun-card p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.9;
}

.memory-title {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--pink-soft);
}

.memory-text {
  margin: 0;
  font-size: 0.97rem;
  color: var(--text-dim);
  line-height: 1.95;
}

/* --------------------------------------------------------------------------
   10. زرار "لسه زعلانة" — الشقية
   -------------------------------------------------------------------------- */
.peace-area {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  /* مساحة كافية إن الزرار يهرب مكانه */
  min-height: 130px;
  margin: 10px auto 14px;
  max-width: 640px;
}

.btn-naughty {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease,
              color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.btn-naughty.is-tired {
  background: rgba(255, 61, 104, 0.16);
  border-color: rgba(255, 158, 196, 0.4);
  color: var(--pink-soft);
}

.peace-hint {
  color: var(--text-dim);
  font-size: 0.92rem;
  min-height: 26px;
  margin: 0;
  transition: opacity 0.3s ease;
}

/* --------------------------------------------------------------------------
   11. المودال
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 2, 10, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: overlayIn 0.4s ease both;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  position: relative;
  width: min(560px, 100%);
  padding: 46px 32px 38px;
  border-radius: 32px;
  text-align: center;
  background: linear-gradient(165deg, rgba(48, 12, 40, 0.92), rgba(18, 6, 28, 0.95));
  border: 1px solid rgba(255, 158, 196, 0.28);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), var(--glow-purple);
  overflow: hidden;
  animation: modalPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalPop {
  0%   { opacity: 0; transform: translateY(34px) scale(0.86); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-emoji {
  display: block;
  font-size: 3.6rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 22px rgba(255, 61, 104, 0.6));
  animation: beat 1.8s ease-in-out infinite;
}

.modal h2 {
  font-size: clamp(1.35rem, 4.6vw, 1.95rem);
  font-weight: 800;
  line-height: 1.7;
  background: var(--grad-main);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.modal-text {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 24px;
  font-weight: 500;
}

.modal-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* قلوب بتنزل جوّه المودال (احتفال) */
.confetti-heart {
  position: absolute;
  top: -40px;
  font-size: var(--size, 22px);
  animation: confettiFall var(--fall, 3.5s) linear var(--delay, 0s) forwards;
}

@keyframes confettiFall {
  0%   { opacity: 0; transform: translateY(-20px) rotate(0deg); }
  10%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--sway, 30px), 420px) rotate(var(--spin, 240deg)); }
}

/* رسالة صغيرة لو ملف الموسيقى مش موجود */
.toast {
  position: fixed;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  right: 50%;
  transform: translateX(50%) translateY(20px);
  z-index: 120;
  max-width: 88vw;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  text-align: center;
  color: var(--text);
  background: rgba(20, 8, 30, 0.92);
  border: 1px solid rgba(255, 158, 196, 0.28);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}

/* --------------------------------------------------------------------------
   12. زرار الموسيقى
   -------------------------------------------------------------------------- */
.music-btn {
  position: fixed;
  top: calc(18px + env(safe-area-inset-top, 0px));
  left: calc(18px + env(safe-area-inset-left, 0px));
  z-index: 90;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.music-btn:hover {
  transform: scale(1.12);
  color: var(--pink-soft);
  background: rgba(255, 92, 138, 0.14);
}

.music-btn.is-playing {
  color: #fff;
  background: var(--grad-main);
  box-shadow: var(--glow-pink);
}

/* نبضة الموسيقى */
.music-ripple {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 158, 196, 0.5);
  opacity: 0;
}

.music-btn.is-playing .music-ripple {
  animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
  0%   { opacity: 0.8; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* --------------------------------------------------------------------------
   13. Reveal عند التمرير
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--rd, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* --------------------------------------------------------------------------
   14. الريسبونسيف + تقليل الحركة
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   14. الموبايل
   -------------------------------------------------------------------------- */

/* الموبايل: الليستة عمود واحد، مسافات أهدأ، وحجم خط مناسب للعين */
@media (max-width: 700px) {
  body {
    font-size: 16.5px;
    line-height: 1.95;
  }

  .content {
    padding: 30px 16px 70px;
  }

  .section {
    margin-bottom: 76px;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .glass-card {
    padding: 28px 20px;
    border-radius: 22px;
    margin-bottom: 20px;
  }

  .glass-card-big {
    padding: 34px 20px;
  }

  .poem {
    line-height: 2.05;
  }

  .poem + .poem {
    margin-top: 20px;
  }

  .poem br {
    display: none; /* على الموبايل السطور تتلم بشكل طبيعي */
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fun-card,
  .memory-card {
    padding: 24px 20px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 15px 30px;
    font-size: 1.02rem;
    min-height: 52px; /* مساحة مناسبة لإصبع الموبايل */
  }

  .peace-area {
    flex-direction: column;
    min-height: 230px;
    gap: 14px;
  }

  .peace-area .btn-primary,
  .peace-area .btn-secondary {
    width: 100%;
    max-width: 300px;
  }

  .glowing-heart {
    width: 120px;
    height: 120px;
    margin-top: 38px;
  }

  .glowing-heart-big {
    width: 160px;
    height: 160px;
    margin-top: 42px;
  }

  .glowing-heart-big .heart-shape {
    font-size: 5rem;
  }

  .music-btn {
    width: 48px;
    height: 48px;
    top: calc(14px + env(safe-area-inset-top, 0px));
    left: calc(14px + env(safe-area-inset-left, 0px));
  }

  .modal {
    padding: 34px 22px 28px;
    border-radius: 26px;
  }

  .modal-emoji {
    font-size: 3rem;
  }

  .scroll-cue {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}

/* شاشات صغيرة جدًا (iPhone SE وأخواتها) */
@media (max-width: 380px) {
  body {
    font-size: 15.5px;
  }

  .landing-title {
    font-size: 3.1rem;
  }

  .content {
    padding: 26px 13px 60px;
  }

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

  .peace-area {
    min-height: 250px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 14px 22px;
  }
}

/* شاشات كبيرة جدًا */
@media (min-width: 1600px) {
  :root {
    --max-w: 980px;
  }

  body {
    font-size: 18px;
  }
}

/* الشاشات القصيرة (لاب توب أو موبايل أفقي) */
@media (max-height: 620px) and (orientation: landscape) {
  .landing {
    padding: 16px;
  }

  .landing-title {
    font-size: clamp(2.4rem, 8vh, 4rem);
  }

  .landing-sub {
    margin-bottom: 24px;
  }

  .scroll-cue {
    display: none;
  }
}

/* على الموبايل مفيش hover — فلازم تأثيرات الـ hover تتشال عشان متعلقش */
@media (hover: none) {
  .fun-card:hover,
  .memory-card:hover,
  .glass-card:hover {
    transform: none;
  }

  .fun-card:hover::after,
  .memory-card:hover::after {
    opacity: 0;
  }

  .fun-card:active,
  .memory-card:active {
    transform: scale(0.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .fun-card, .memory-card { opacity: 1; transform: none; }
}

