/* ================================================
   Nokto Studio - animations.css
   Keyframes - entrance animations - hover states
   ================================================ */

/* ===== HERO ENTRANCE ===== */
.hero-label    { animation: fadeIn   0.6s ease 0s    both; }
.hero h1       { animation: fadeInUp 0.8s ease 0.1s  both; }
.hero-sub      { animation: fadeInUp 0.8s ease 0.25s both; }
.hero-ctas     { animation: fadeInUp 0.8s ease 0.4s  both; }
.hero-scarcity { animation: fadeIn   0.8s ease 0.55s both; }

/* ===== KEYFRAMES ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* ===== ACCENT DOT PULSE ===== */
.hero-label::before { animation: pulse 2.2s ease infinite; }

/* ===== HOVER LIFT ===== */
.card-hover { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(60,64,67,.18); }

/* ===== BUTTON SHEEN (primary CTA only) ===== */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-primary:hover::after { transform: translateX(100%); }

/* ===== BENEFIT ICON FLOAT ===== */
.benefit-card:hover .benefit-icon {
  transform: translateY(-4px) scale(1.05);
}
.benefit-icon { transition: transform 0.3s ease; }

/* ===== STEP NUMBER GLOW ON HOVER ===== */
.step:hover .step-num {
  box-shadow: 0 0 0 6px rgba(122,80,214,0.15);
  transform: scale(1.05);
}
.step-num { transition: box-shadow 0.3s ease, transform 0.3s ease; }

/* ===== PROJECT CARD TAG REVEAL ===== */
.project-card .project-tags { transition: opacity 0.3s ease, transform 0.3s ease; }

/* ===== LOGO BADGE GLOW ===== */
.logo-badge.is-link:hover {
  box-shadow: 0 2px 14px rgba(122,80,214,0.25);
}

/* ===== PAGE HERO ENTRANCE ===== */
.page-hero .section-label { animation: fadeIn 0.5s ease 0.05s both; }
.page-hero h1             { animation: fadeInUp 0.7s ease 0.1s both; }
.page-hero .section-subheading { animation: fadeInUp 0.7s ease 0.3s both; }

/* ===== UNDERLINE ANIMATION FOR NAV LINKS ===== */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--g-blue-deep);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: center;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* ===== FORM ERROR STATE ===== */
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--g-red) !important;
  box-shadow: 0 0 0 3px rgba(247,89,64,0.12);
}

/* ===== HAMBURGER TRANSFORM ===== */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== SCROLL-REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger helpers - add data-delay attribute */
.reveal[data-delay="100"] { transition-delay: 0.10s; }
.reveal[data-delay="150"] { transition-delay: 0.15s; }
.reveal[data-delay="200"] { transition-delay: 0.20s; }
.reveal[data-delay="300"] { transition-delay: 0.30s; }
.reveal[data-delay="400"] { transition-delay: 0.40s; }
.reveal[data-delay="500"] { transition-delay: 0.50s; }

/* Fade-only variant (no lift) */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.reveal-fade.visible { opacity: 1; }

/* Reduced motion: show everything immediately */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fade { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track { animation: none !important; }
  .hero-label, .hero h1, .hero-sub, .hero-ctas, .hero-scarcity { animation: none !important; }
}
