/* ===== Design tokens ===== */
:root {
  --black: #0A0A0A;
  --charcoal: #161616;
  --charcoal-2: #1c1c1c;
  --accent: #E8B4BC;
  --accent-soft: rgba(232, 180, 188, 0.35);
  --cream: #F5F2ED;
  --cream-dim: rgba(245, 242, 237, 0.72);
  --cream-faint: rgba(245, 242, 237, 0.45);

  --font-display: 'Aref Ruqaa', serif;
  --font-body: 'Tajawal', sans-serif;
  --font-fun: 'Lalezar', cursive;

  --section-pad: clamp(4.5rem, 12vw, 7rem) 1.25rem;
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

img, video { max-width: 100%; display: block; }

/* ===== Grain overlay ===== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* ===== Shared layout ===== */
.section {
  position: relative;
  padding: var(--section-pad);
}

.section__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.section__inner--wide {
  max-width: 900px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  color: var(--cream);
  margin: 0 0 1.5rem;
}

.accent-word {
  font-family: var(--font-fun);
  color: var(--accent);
  font-weight: 400;
  font-size: 1.05em;
}

.section__text {
  font-size: clamp(1rem, 3.6vw, 1.125rem);
  color: var(--cream-dim);
  max-width: 34rem;
  margin: 0 auto;
}

.divider {
  width: 64px;
  height: 1px;
  margin: 1.75rem auto;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
.icon--sm { width: 15px; height: 15px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, var(--charcoal-2) 0%, var(--black) 65%);
  overflow: hidden;
  padding: 1.5rem;
}

.hero__glow {
  position: absolute;
  top: -10%;
  right: 50%;
  transform: translateX(50%);
  width: min(90vw, 620px);
  height: min(90vw, 620px);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  filter: blur(10px);
  opacity: 0.5;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

/* ---- Portrait: circular video + rotating ring + floating hearts ---- */
.hero__portrait-wrap {
  position: relative;
  width: clamp(150px, 42vw, 210px);
  aspect-ratio: 1 / 1;
  margin: 0.5rem auto 1.75rem;
}

.hero__portrait-wrap::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 72%);
  filter: blur(6px);
  z-index: 0;
  animation: pulseGlow 3.8s ease-in-out infinite;
}

.hero__portrait-ring {
  position: absolute;
  inset: -13px;
  border-radius: 50%;
  border: 1px dashed rgba(232, 180, 188, 0.4);
  z-index: 1;
  animation: spinRing 22s linear infinite;
}

.hero__portrait {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--charcoal);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(232, 180, 188, 0.08), 0 24px 48px -18px rgba(232, 180, 188, 0.55);
}

.hero__portrait-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__hearts {
  position: absolute;
  inset: -48px;
  z-index: 3;
  pointer-events: none;
}

.floating-heart {
  position: absolute;
  width: 16px;
  height: 16px;
  color: var(--accent);
  opacity: 0.7;
  filter: drop-shadow(0 2px 8px rgba(232, 180, 188, 0.45));
  animation: floatHeart 4.2s ease-in-out infinite;
}

.fh-1 { top: 2%;   left: 6%;   width: 14px; animation-duration: 4.1s; animation-delay: 0s; }
.fh-2 { top: 8%;   right: 2%;  width: 20px; animation-duration: 5s;   animation-delay: 0.6s; }
.fh-3 { top: 56%;  left: -6%;  width: 12px; animation-duration: 3.6s; animation-delay: 1.1s; }
.fh-4 { bottom: 8%;right: 8%;  width: 16px; animation-duration: 4.6s; animation-delay: 0.3s; }
.fh-5 { bottom: -4%;left: 22%; width: 13px; animation-duration: 3.8s; animation-delay: 1.4s; }
.fh-6 { top: 40%;  right: -8%; width: 18px; opacity: 0.5; animation-duration: 5.4s; animation-delay: 0.8s; }

@keyframes pulseGlow {
  0%, 100% { transform: scale(0.92); opacity: 0.55; }
  50%      { transform: scale(1.06); opacity: 0.9; }
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

@keyframes floatHeart {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.55; }
  50%      { transform: translateY(-14px) scale(1.15); opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__portrait-wrap::before,
  .hero__portrait-ring,
  .floating-heart {
    animation: none;
  }
}

/* ---- 3D bow accent above the name ---- */
.hero__bow {
  position: absolute;
  top: 5%;
  right: 3%;
  width: clamp(34px, 9vw, 52px);
  z-index: 5;
  transform: rotate(-8deg);
}

.hero__bow-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(232, 180, 188, 0.35)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.hero__bow-sway {
  transform-origin: 50% 8%;
  animation: bowSway 4.6s ease-in-out infinite;
}

@keyframes bowSway {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bow-sway { animation: none; }
}

.hero__name {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  line-height: 0;
  margin: 0.6rem 0 0;
}

.hero__logo {
  display: block;
  height: clamp(4.5rem, 26vw, 8.5rem);
  width: auto;
  color: var(--cream);
  overflow: visible;
  filter: drop-shadow(0 0 40px var(--accent-soft));
}

.hero__tagline {
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  color: var(--cream-dim);
  margin: 2rem 0 0;
  font-weight: 400;
}

.scroll-cue {
  position: absolute;
  bottom: clamp(1.5rem, 5vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--cream-faint);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  animation: bob 2.6s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue { animation: none; }
}

/* ===== Traits grid ===== */
.traits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 620px) {
  .traits-grid { grid-template-columns: 1fr 1fr; }
}

@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.trait-card {
  position: relative;
  --border-angle: 0deg;
  border-radius: 18px;
  border: 1.5px solid transparent;
  padding: 1.75rem 1.5rem;
  text-align: right;
  background:
    linear-gradient(160deg, var(--charcoal-2), var(--charcoal)) padding-box,
    conic-gradient(from var(--border-angle), rgba(232, 180, 188, 0.14), rgba(232, 180, 188, 0.14)) border-box;
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}

.trait-card:hover,
.trait-card:active {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -12px var(--accent-soft);
  background:
    linear-gradient(160deg, var(--charcoal-2), var(--charcoal)) padding-box,
    conic-gradient(
      from var(--border-angle),
      rgba(232, 180, 188, 0.16) 0%,
      rgba(255, 255, 255, 0.75) 4%,
      var(--accent) 12%,
      rgba(232, 180, 188, 0.16) 24%,
      rgba(232, 180, 188, 0.16) 50%,
      rgba(255, 255, 255, 0.75) 54%,
      var(--accent) 62%,
      rgba(232, 180, 188, 0.16) 74%,
      rgba(232, 180, 188, 0.16) 100%
    ) border-box;
  animation: borderSparkle 7s linear infinite;
}

@keyframes borderSparkle {
  to { --border-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .trait-card:hover,
  .trait-card:active {
    animation: none;
  }
}

.trait-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(232, 180, 188, 0.08);
  margin: 0 0 1rem auto;
}

.trait-card__icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.trait-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--cream);
}

.trait-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cream-dim);
  line-height: 1.75;
}

/* ===== Style tags ===== */
.style-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.style-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 180, 188, 0.25);
  color: var(--cream-dim);
  font-size: 0.9rem;
  background: rgba(232, 180, 188, 0.04);
}

/* ===== Moments gallery ===== */
.section--moments { padding-left: 0; padding-right: 0; }

.moments-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 1.25rem 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.moments-scroller::-webkit-scrollbar { display: none; }

.moment-card {
  position: relative;
  flex: 0 0 auto;
  width: 60vw;
  max-width: 230px;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--charcoal);
  border: 1px solid rgba(232, 180, 188, 0.15);
}

.moment-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moment-card__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
  border: none;
  cursor: pointer;
  padding: 0;
}

.moment-card__play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.55);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.6), 0 0 0 5px rgba(232, 180, 188, 0.1);
  backdrop-filter: blur(2px);
  transition: transform 0.3s var(--ease-soft), background 0.3s var(--ease-soft);
}

.moment-card__play-circle svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  transform: translateX(2px);
}

.moment-card__play:hover .moment-card__play-circle,
.moment-card__play:active .moment-card__play-circle {
  transform: scale(1.1);
  background: rgba(10, 10, 10, 0.75);
}

/* ===== Closing ===== */
.closing__text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  color: var(--cream);
  line-height: 1.7;
  margin: 0;
}

.footer {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--cream-faint);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.footer__dot { color: var(--accent); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-soft), visibility 0.35s;
  padding: 1.5rem;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__player {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.lightbox__video {
  width: 100%;
  max-width: 100%;
  max-height: 78vh;
  border-radius: 16px;
  aspect-ratio: 9/16;
  background: var(--charcoal);
  display: block;
}

.lightbox__center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(2px);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.lightbox__center-play.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__center-play svg { width: 28px; height: 28px; }

.lightbox__controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(245, 242, 237, 0.05);
  border: 1px solid rgba(232, 180, 188, 0.18);
}

.lightbox__ctrl-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox__ctrl-btn svg { width: 18px; height: 18px; }

.lightbox__time {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  color: var(--cream-faint);
  min-width: 2.6em;
  text-align: center;
}

.lightbox__seek {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(245, 242, 237, 0.15);
  accent-color: var(--accent);
  cursor: pointer;
}

.lightbox__seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 180, 188, 0.25);
  cursor: pointer;
}

.lightbox__seek::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 180, 188, 0.25);
  cursor: pointer;
}

.lightbox__seek::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(245, 242, 237, 0.15);
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(245, 242, 237, 0.08);
  border: 1px solid rgba(245, 242, 237, 0.15);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox__close svg { width: 20px; height: 20px; }

/* ===== Scroll reveal base state (JS adds .is-visible / GSAP controls) ===== */
[data-reveal] {
  will-change: transform, opacity;
}
