/* ============================================================
   مفاجأة Youssef & Esraa — ملف التنسيقات الخاص بينا
   (منفصل تمامًا عن ملفات الموقع الأصلية — قابلة للحذف بضغطة)
   - مفيش أي أنيميشن يدوي جديد: بنستخدم كلاسات وأنيميشن الموقع
     نفسه (transition-all / duration-1000 / opacity-0 / translate-y-8
     / line-reveal / gradient-shift / animate-pulse).
   ============================================================ */

/* ---------- 1) الشريط العلوي: الاسم بس ---------- */
header nav > div > :not(:first-child) { display: none !important; }
header nav > div > a { margin-inline: auto; }
header nav > div > a span {
  font-family: 'Great Vibes', cursive !important;
  font-size: 2.05rem !important;
  line-height: 1 !important;
  color: #f7c9df !important;
  letter-spacing: .5px !important;
  text-transform: none !important;
  font-weight: 400 !important;
}

/* ---------- 2) إخفاء كل محتوى الشركة ---------- */
/* كل الأقسام الأصلية (ما عدا الهيرو) + الفوتر + شريط الأرقام */
main > section:not(:first-of-type):not(.love-sect):not(.poem-sect):not(.bday-sect) { display: none !important; }
main > footer { display: none !important; }
main > section:first-of-type > div[class*="bottom-12"] { display: none !important; }

/* ---------- 3) العنوان: ترجمة كلمات الأغنية (بنفس نمط الكلمة الملونة) ---------- */
main > section:first-of-type h1 {
  direction: rtl !important;
  text-align: center !important;
  font-family: 'El Messiri', 'Cairo', 'Noto Kufi Arabic', sans-serif !important;
  font-size: clamp(1.55rem, 3.1vw, 3.3rem) !important;
  line-height: 1.75 !important;
  min-height: 3.6em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* السطر الأول فاضي بعد التعديل — نخفيه */
main > section:first-of-type h1 > span:empty { display: none !important; }
/* نسمح للأسطر الطويلة تلتف بدل ما تخرج عن الشاشة */
main > section:first-of-type h1 > span { white-space: normal !important; }
/* السطر المتغير: ملون ومتدرج بنفس أنيميشن الموقع */
main > section:first-of-type h1 > span > span[style*="inline-block"] {
  font-family: 'Lalezar', 'Noto Kufi Arabic', cursive !important;
  background: linear-gradient(45deg, #eca8d6 0%, #a78bfa 25%, #67e8f9 50%, #fbbf24 75%, #eca8d6 100%) 0 0/300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 1.5s infinite;
  padding-inline: .18em;
  padding-block: .06em;
}

/* ---------- 4) الاسمين فوق العنوان (خط مزخرف) ---------- */
main > section:first-of-type .mb-8 > span {
  font-family: 'Great Vibes', cursive !important;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem) !important;
  color: #f7c9df !important;
  letter-spacing: .5px !important;
  text-transform: none !important;
  font-weight: 400 !important;
}

/* ---------- 5) صورتنا يسار الشجرة والكلام جنبها ---------- */
main > section:first-of-type > div.relative.z-10 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
}
.us-photo {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  text-align: center;
}
.hero-text-col {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none !important;
  text-align: center;
}
.us-photo .photo-frame {
  display: inline-block;
  padding: 12px;
  border-radius: 32px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .17);
  box-shadow:
    0 40px 120px rgba(236, 168, 214, .22),
    0 10px 50px rgba(0, 0, 0, .55),
    inset 0 0 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(6px);
}
.us-photo img {
  display: block;
  width: clamp(230px, 24vw, 350px);
  height: auto;
  border-radius: 22px;
}
.us-photo .photo-heart {
  margin-top: 18px;
  font-size: 1.5rem;
  color: #ff8fb8;
  text-shadow: 0 0 34px rgba(255, 120, 170, .85);
  line-height: 1;
}
@media (max-width: 900px) {
  main > section:first-of-type > div.relative.z-10 {
    flex-direction: column;
    align-items: center;
    gap: 26px;
  }
  .us-photo img { width: min(56vw, 235px); }
  .us-photo .photo-frame { padding: 9px; border-radius: 26px; }
  /* الأسطر الطويلة بتلتف على سطرين على الموبايل — نحجز مكانها مسبقًا */
  main > section:first-of-type h1 { min-height: 4.1em; }
}

/* ---------- 5ب) صفحة عيد الميلاد — صفحة كاملة بنفس قياس الصفحة الأولى ---------- */
.bday-sect {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: #000;
}
.bday-card {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 42%;
  background: transparent;
  overflow: hidden;
}
.bday-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.bday-text {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bday-label {
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 26px;
}
.bday-title {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  line-height: 1.45;
  text-wrap: balance;
  margin: 0 0 26px;
}
.bday-p {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 2;
  color: rgba(255, 246, 250, .85);
  max-width: 36rem;
  margin: 0;
}
.bday-stat { margin-top: 40px; }
.bday-num {
  font-family: 'Instrument Sans', sans-serif;
  font-size: clamp(2.8rem, 4vw, 4rem);
  line-height: 1;
  color: #fff;
}
.bday-num-label {
  font-family: 'Cairo', sans-serif;
  font-size: .95rem;
  color: rgba(255, 255, 255, .5);
  margin-top: 12px;
}
.bday-img {
  position: relative;
  overflow: hidden;
}
.bday-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scaleX(-1);
}
.bday-img-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0) 45%);
}
@media (max-width: 900px) {
  .bday-card { grid-template-columns: 1fr; }
  .bday-img { display: none; }
  .bday-text { justify-content: center; }
  .bday-stat { margin-top: 34px; }
}

/* ---------- 6) قسم كلام الحب ---------- */.love-sect {
  position: relative;
  padding: 16vh 6vw 15vh;
  overflow: hidden;
  background:
    radial-gradient(60% 45% at 75% 8%, rgba(167, 139, 250, .10), transparent 62%),
    radial-gradient(55% 45% at 18% 46%, rgba(236, 168, 214, .11), transparent 65%),
    radial-gradient(45% 40% at 82% 88%, rgba(103, 232, 249, .07), transparent 65%),
    #05070d;
}
/* ظل الشجرة الرومانسي في خلفية القسم (نفس صورة الشجرة الأصلية) */
.love-sect::before {
  content: '';
  position: absolute;
  inset: auto 0 -4% 0;
  height: 62%;
  background: url('/media/tree-uAia6REvB137CQyHFCf0za3O6h2zKO.png') center bottom / contain no-repeat;
  opacity: .09;
  pointer-events: none;
}
.love-title {
  position: relative;
  font-family: 'Parisienne', cursive;
  font-size: clamp(3.6rem, 11vw, 8.5rem);
  line-height: 1.25;
  text-align: center;
  margin: 0 0 10vh;
}
.love-line {
  position: relative;
  max-width: 880px;
  margin: 0 auto 7.5vh;
  text-align: center;
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  line-height: 2.05;
  text-wrap: balance;
  color: rgba(255, 246, 250, .94);
  text-shadow: 0 2px 34px rgba(0, 0, 0, .55);
}
.love-line:last-child { margin-bottom: 0; }
/* تنويع الخطوط العربية على الجمل — كلها خطوط محلية */
.lf-amiri   { font-family: 'Amiri', serif; }
.lf-cairo   { font-family: 'Cairo', sans-serif; color: #f2e9ff; }
.lf-messiri { font-family: 'El Messiri', sans-serif; }
.lf-almarai { font-family: 'Almarai', sans-serif; color: #ffeef6; }
.lf-changa  { font-family: 'Changa', sans-serif; }
.lf-lalezar { font-family: 'Lalezar', cursive; font-size: clamp(1.5rem, 3vw, 2.4rem); color: #ffd7e9; }

/* ---------- 7) قسم الشعر — على الخلفية الطبيعية المضيئة ---------- */
.poem-sect {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14vh 6vw 16vh;
}
.poem-bg {
  position: absolute;
  inset: 0;
  background: url('/media/Upscaled%20Image%20(10)-UnDKstODkIENp5xqTYUEpt0Sm8tNOw.png') center / cover no-repeat;
  opacity: .55;
}
.poem-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(3, 6, 12, .94) 0%,
    rgba(3, 6, 12, .42) 30%,
    rgba(3, 6, 12, .5) 64%,
    rgba(3, 6, 12, .96) 100%);
}
.poem-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1050px;
  text-align: center;
}
.poem-line {
  font-family: 'Noto Kufi Arabic', 'Amiri', serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 3.3vw, 2.5rem);
  line-height: 2.4;
  color: #ffffff;
  text-shadow: 0 2px 44px rgba(0, 0, 0, .72);
  margin: 0;
  direction: rtl;
}
.poem-gap { height: 6vh; }
/* كشف الشعر بنفس أنيميشن line-reveal الأصلي لكن باتجاه عربي */
.line-reveal-rtl { clip-path: inset(0 0 0 100%); }
.line-reveal-rtl.run {
  animation: .9s cubic-bezier(.77, 0, .175, 1) forwards line-reveal;
}
.poem-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.2rem, 12vw, 9rem);
  line-height: 1.2;
  margin-top: 9vh;
}
.poem-heart {
  margin-top: 3vh;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #ff8fb8;
  text-shadow: 0 0 40px rgba(255, 120, 170, .9);
  line-height: 1;
}

/* ---------- 8) زر الموسيقى + بوابة البداية ---------- */
.music-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(12, 16, 26, .74);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  transition: background .3s ease, transform .3s ease;
}
.music-btn:hover { background: rgba(236, 168, 214, .20); transform: translateY(-2px); }
.music-btn svg { width: 22px; height: 22px; fill: #ffd7e9; }
.music-btn .icon-pause { display: none; }
.music-btn.playing .icon-note { display: none; }
.music-btn.playing .icon-pause { display: block; }

/* ---------- 8b) بوابة البداية ----------
   ملاحظة: ستايل البوابة نفسه (html.love-locked::before/::after)
   موجود جوه <head> في index.html عشان تظهر من أول بكسل
   حتى لو الملفات الخارجية اتأخرت. لو غيّرت الاسمين غيّرهم هناك. */
