/* ============================================================
   Jibran Haider Portfolio — static version enhancements
   Vanilla CSS animations replacing the GSAP layer.
   ============================================================ */

/* ---------- Hero entrance sequence ---------- */
@keyframes hero-fade-slide {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes hero-line-up {
  from { transform: translateY(115%); }
  to   { transform: translateY(0); }
}
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-clip {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0% 0); }
}
@keyframes hero-pop {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

[data-hero="eyebrow"]  { animation: hero-fade-slide 0.8s cubic-bezier(0.22,1,0.36,1) 0.1s both; }
[data-hero="line"]     { animation: hero-line-up 1.15s cubic-bezier(0.16,1,0.3,1) both; }
h1 span.block:nth-of-type(1) [data-hero="line"] { animation-delay: 0.5s; }
h1 span.block:nth-of-type(2) [data-hero="line"] { animation-delay: 0.64s; }
[data-hero="desc"]     { animation: hero-fade-up 0.9s cubic-bezier(0.22,1,0.36,1) 1.0s both; }
[data-hero="cta"]      { animation: hero-fade-up 0.7s cubic-bezier(0.22,1,0.36,1) both; }
[data-hero="cta"]:nth-of-type(1) { animation-delay: 1.2s; }
[data-hero="cta"]:nth-of-type(2) { animation-delay: 1.32s; }
[data-hero="label"]    { animation: hero-fade-up 0.7s cubic-bezier(0.22,1,0.36,1) 1.45s both; }
[data-hero="portrait"] { animation: hero-clip 1.4s cubic-bezier(0.16,1,0.3,1) 0.55s both; }
[data-hero="frame"]    { animation: hero-fade-up 1s cubic-bezier(0.22,1,0.36,1) 0.85s both; }
[data-hero="corner"]   { animation: hero-pop 0.7s cubic-bezier(0.22,1,0.36,1) 1.0s both; }
[data-hero="card"]     { animation: hero-fade-slide 0.8s cubic-bezier(0.22,1,0.36,1) 1.25s both; }
[data-hero="cue"]      { animation: hero-fade-up 0.8s ease 1.5s both; }

/* Navbar entrance */
header.fixed {
  animation: hero-fade-up 0.9s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}

/* ---------- Scroll reveals (added/toggled by script.js) ---------- */
.io-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1),
              transform 0.9s cubic-bezier(0.22,1,0.36,1);
  transition-delay: var(--reveal-delay, 0s);
}
.io-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Gold divider draw */
.draw-line {
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(0.16,1,0.3,1);
}
.draw-line.revealed {
  transform: scaleX(1);
}

/* ---------- Mobile menu height transition ---------- */
#mobile-menu {
  transition: height 0.45s cubic-bezier(0.22,1,0.36,1);
}

/* ---------- Reduced motion: everything visible, no animation ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-hero],
  header.fixed {
    animation: none !important;
  }
  .io-reveal,
  .draw-line {
    opacity: 1;
    transform: none;
    transition: none;
  }
  #mobile-menu {
    transition: none;
  }
}
