/* ============================================================
   GamingComputer — gc-animations.css
   Animation definitions — all prefixed with gc-
   ============================================================ */

/* ── Keyframes ── */
@keyframes gc-fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gc-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes gc-slideRight {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes gc-scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes gc-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes gc-pulse-ring {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2);   opacity: 0; }
}
@keyframes gc-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes gc-spin {
  to { transform: rotate(360deg); }
}
@keyframes gc-hero-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes gc-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes gc-bar-grow {
  from { width: 0; }
}
@keyframes gc-count-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gc-particle-drift {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-80vh) translateX(40px) rotate(360deg); opacity: 0; }
}
@keyframes gc-glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,212,255,0.2); }
  50%       { box-shadow: 0 0 40px rgba(0,212,255,0.4); }
}
@keyframes gc-border-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Scroll-triggered reveal ── */
.gc-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.gc-reveal.gc-revealed {
  opacity: 1;
  transform: translateY(0);
}
.gc-reveal-delay-1 { transition-delay: 0.1s; }
.gc-reveal-delay-2 { transition-delay: 0.2s; }
.gc-reveal-delay-3 { transition-delay: 0.3s; }
.gc-reveal-delay-4 { transition-delay: 0.4s; }
.gc-reveal-delay-5 { transition-delay: 0.5s; }
.gc-reveal-delay-6 { transition-delay: 0.6s; }

.gc-reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.gc-reveal-left.gc-revealed {
  opacity: 1;
  transform: translateX(0);
}
.gc-reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.gc-reveal-right.gc-revealed {
  opacity: 1;
  transform: translateX(0);
}
.gc-reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.gc-reveal-scale.gc-revealed {
  opacity: 1;
  transform: scale(1);
}

/* ── Hero entrance ── */
.gc-hero-eyebrow   { animation: gc-fadeUp 0.6s ease both; animation-delay: 0.1s; }
.gc-hero-title     { animation: gc-fadeUp 0.7s ease both; animation-delay: 0.2s; }
.gc-hero-desc      { animation: gc-fadeUp 0.7s ease both; animation-delay: 0.35s; }
.gc-hero-actions   { animation: gc-fadeUp 0.7s ease both; animation-delay: 0.5s; }
.gc-hero-stats     { animation: gc-fadeUp 0.7s ease both; animation-delay: 0.65s; }
.gc-hero-image-block { animation: gc-scaleIn 0.8s ease both; animation-delay: 0.3s; }

/* ── Float animation for hero badge ── */
.gc-hero-img-badge { animation: gc-float 4s ease-in-out infinite; }
.gc-hero-img-tag   { animation: gc-float 5s ease-in-out infinite; animation-delay: 0.5s; }

/* ── Glow pulse on accent elements ── */
.gc-builder-total     { animation: gc-glow-pulse 3s ease-in-out infinite; }
.gc-quiz-result-tier  { animation: gc-glow-pulse 2.5s ease-in-out infinite; }

/* ── Shimmer loading skeleton ── */
.gc-skeleton {
  background: linear-gradient(
    90deg,
    var(--gc-surface) 25%,
    var(--gc-surface-2) 50%,
    var(--gc-surface) 75%
  );
  background-size: 800px 100%;
  animation: gc-shimmer 1.5s linear infinite;
  border-radius: var(--gc-radius);
}

/* ── Micro interactions ── */
.gc-hover-lift {
  transition: transform var(--gc-transition), box-shadow var(--gc-transition);
}
.gc-hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--gc-shadow-lg);
}

.gc-hover-glow {
  transition: box-shadow var(--gc-transition);
}
.gc-hover-glow:hover {
  box-shadow: var(--gc-glow);
}

/* ── Typing cursor ── */
.gc-cursor-blink::after {
  content: '|';
  animation: gc-blink 1s step-start infinite;
  color: var(--gc-accent);
}

/* ── Spinner ── */
.gc-spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--gc-border);
  border-top-color: var(--gc-accent);
  border-radius: 50%;
  animation: gc-spin 0.7s linear infinite;
  display: inline-block;
}

/* ── Notification toast ── */
.gc-toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--gc-surface);
  border: 1px solid var(--gc-border-2);
  border-radius: var(--gc-radius);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--gc-shadow-lg);
  z-index: 8000;
  font-size: 0.9375rem;
  animation: gc-slideRight 0.3s ease;
  max-width: 360px;
}
.gc-toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.gc-toast-success .gc-toast-icon { color: var(--gc-green); }
.gc-toast-error   .gc-toast-icon { color: var(--gc-red); }

/* ── Animated gradient hero background ── */
.gc-hero-bg-animated {
  background: linear-gradient(-45deg, #060810, #0a0c18, #060f18, #0a0814);
  background-size: 400% 400%;
  animation: gc-hero-gradient-shift 15s ease infinite;
}

/* ── Counter animation ── */
.gc-counter-animated {
  animation: gc-count-up 0.6s ease both;
}

/* ── Smooth section transitions ── */
.gc-section { position: relative; }

/* ── Product card hover glow ── */
.gc-product-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--gc-radius-xl);
  background: linear-gradient(135deg, var(--gc-accent), var(--gc-accent-2));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}
.gc-product-card { position: relative; }
.gc-product-card:hover::after { opacity: 0.15; }

/* ── Review card entrance ── */
.gc-reviews-grid .gc-review-card:nth-child(1) { animation-delay: 0.1s; }
.gc-reviews-grid .gc-review-card:nth-child(2) { animation-delay: 0.2s; }
.gc-reviews-grid .gc-review-card:nth-child(3) { animation-delay: 0.3s; }

/* ── Team card gradient border on hover ── */
.gc-team-card {
  position: relative;
  overflow: hidden;
}
.gc-team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--gc-radius-xl);
  background: linear-gradient(135deg, var(--gc-accent), var(--gc-accent-2), var(--gc-accent-3));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.gc-team-card > * { position: relative; z-index: 1; }
.gc-team-card:hover::before { opacity: 0.08; }

/* ── Navbar link underline effect ── */
.gc-nav-link {
  position: relative;
  overflow: hidden;
}
.gc-nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 1.5px;
  background: var(--gc-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.gc-nav-link:hover::after,
.gc-nav-link.gc-active::after { transform: scaleX(1); }

/* ── Progress bar entrance ── */
.gc-bar-fill.gc-animated {
  animation: gc-bar-grow 1s ease both;
}

/* ── FAQ chevron ── */
.gc-faq-icon i {
  transition: transform 0.3s ease;
}

/* ── Comparison bar animation ── */
.gc-comparison-stat { overflow: hidden; }

/* ── Scroll-based parallax hint ── */
.gc-parallax {
  will-change: transform;
}
