/* ═══════════════════════════════════════════════
   SAMIR LANGUS — animations.css
   Scroll reveals, transitions, parallax
═══════════════════════════════════════════════ */

/* ─── REVEAL BASE ────────────────────────────── */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.reveal {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

/* ─── VISIBLE STATE ──────────────────────────── */
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ─── STAGGER DELAYS (for children in a group) ── */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* Music cards stagger */
.music__card:nth-child(1) { transition-delay: 0s; }
.music__card:nth-child(2) { transition-delay: 0.15s; }
.music__card:nth-child(3) { transition-delay: 0.3s; }

/* Press quotes stagger */
.press__quote:nth-child(1) { transition-delay: 0s; }
.press__quote:nth-child(2) { transition-delay: 0.15s; }
.press__quote:nth-child(3) { transition-delay: 0.3s; }

/* ─── HERO ENTRANCE ──────────────────────────── */
.hero__content {
  animation: heroEntrance 1.2s var(--ease-out) 0.3s both;
}

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

.hero__label {
  animation: heroEntrance 1s var(--ease-out) 0.5s both;
}

.hero__name {
  animation: heroEntrance 1s var(--ease-out) 0.6s both;
}

.hero__arabic {
  animation: heroEntrance 1s var(--ease-out) 0.75s both;
}

.hero .btn {
  animation: heroEntrance 1s var(--ease-out) 0.9s both;
}

.hero__scroll {
  animation: heroEntrance 1s var(--ease-out) 1.2s both;
}

/* ─── HERO IMAGE ZOOM ────────────────────────── */
.hero__img {
  animation: heroZoom 12s var(--ease-out) both;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* ─── NAV ENTRANCE ───────────────────────────── */
.nav {
  animation: navFadeIn 0.8s var(--ease-out) 0.2s both;
}

@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── BADGE HOVER ────────────────────────────── */
.badge {
  transition:
    border-color 0.25s,
    color 0.25s,
    transform 0.25s var(--ease-out);
}
.badge:hover { transform: translateY(-2px); }

/* ─── PHOTO LIGHTBOX (simple zoom) ──────────── */
.press__photo {
  transition: opacity 0.3s;
}
.press__photo.lightbox-open {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 6, 8, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

/* ─── SECTION DIVIDER ────────────────────────── */
.section + .section::before {
  content: '';
  display: block;
  height: 1px;
  background: var(--border);
  margin-bottom: 0;
}

/* ─── LINK UNDERLINE ANIMATION ───────────────── */
.press__quote cite,
.nav__links a,
.contact__socials a {
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}
.nav__links a:hover::after { width: 100%; }

/* ─── BUTTON PRESS ───────────────────────────── */
.btn:active {
  transform: translateY(0) scale(0.98);
}

/* ─── GOLD SHIMMER (for Grammy badge) ───────── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.badge:first-child {
  background: linear-gradient(
    90deg,
    transparent 30%,
    rgba(200, 150, 62, 0.15) 50%,
    transparent 70%
  ) 0 0 / 200% auto;
}
.badge:first-child:hover {
  animation: shimmer 1.5s linear infinite;
  border-color: var(--gold);
  color: var(--gold);
}
