/* ============================================================
   animations.css — Keyframes & Animation Utilities
   Maroof Ahmed Portfolio
   ============================================================ */

/* ── Pulse ring (available dot) ── */
@keyframes pulse-ring {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.5); }
}

/* ── Scroll cue drop ── */
@keyframes scroll-drop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  30%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  70%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── Marquee ── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Toast in/out ── */
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(8px); }
}

/* ── GSAP hero entrance classes ── */
/* These initial states are set by GSAP, we define post-animation states here */
.hero-status,
.hero-headline,
.hero-meta,
.hero-scroll {
  will-change: transform, opacity;
}

/* ── Hover lift ── */
.hover-lift {
  transition: transform 280ms cubic-bezier(0.4,0,0.2,1);
}
.hover-lift:hover {
  transform: translateY(-3px);
}

/* ── Focus ring ── */
:focus-visible {
  outline: 2px solid rgba(232,224,213,0.4);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Skip to content ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--accent);
  color: #0a0a0a;
  padding: 8px 16px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ── Hover arrow link ── */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all 250ms ease;
}

.arrow-link svg {
  width: 14px;
  height: 14px;
  transition: transform 250ms ease;
}

.arrow-link:hover {
  color: var(--text);
}

.arrow-link:hover svg {
  transform: translate(2px, -2px);
}

/* ── Divider line ── */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: var(--space-12) 0;
}

/* ── Text gradient ── */
.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Blur reveal for project images ── */
.img-reveal {
  transition: transform 600ms cubic-bezier(0.4,0,0.2,1),
              filter 400ms ease;
}

.img-reveal-wrap {
  overflow: hidden;
}

/* ── Magnetic button container ── */
.magnetic-wrap {
  display: inline-block;
  position: relative;
}
