/*
 * Media Toolz — Premium Animation System
 * Location: assets/css/animations.css
 * SaaS-level animations: particles, tilt, parallax, palette, carousel & more.
 * GPU-accelerated: only transform + opacity animated. Supports prefers-reduced-motion.
 */

/* ===========================================
   @property Declarations (Chromium + Safari)
   =========================================== */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ===========================================
   1. GPU Utility
   =========================================== */
.gpu {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ===========================================
   2. Scroll Progress Bar
   =========================================== */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #ff0000 0%, #ff5555 50%, #ff9999 100%);
  z-index: 10002;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px rgba(255,0,0,0.7), 0 0 20px rgba(255,0,0,0.3);
  transition: width 0.08s linear;
  transform-origin: left center;
}

/* ===========================================
   3. Page Transition Overlay
   =========================================== */
#page-transition-overlay {
  position: fixed;
  inset: 0;
  background: #080808;
  z-index: 10001;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
#page-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===========================================
   4. Hero — Canvas Particles
   =========================================== */
#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* ===========================================
   5. Hero — Mouse-Reactive Glow
   =========================================== */
#hero-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 30, 30, 0.13) 0%,
    rgba(255, 80, 80, 0.05) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  top: 0;
  left: 0;
  transform: translate(-280px, -280px);
  filter: blur(24px);
  will-change: transform;
  transition: opacity 0.4s ease;
}

/* ===========================================
   6. Hero — Floating Gradient Orbs
   =========================================== */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(72px);
  will-change: transform;
}

.hero-orb.orb-1 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255,0,0,0.13) 0%, rgba(255,60,60,0.04) 60%, transparent 80%);
  top: -130px;
  right: -80px;
  animation: orbFloat1 11s ease-in-out infinite;
}

.hero-orb.orb-2 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(0,212,255,0.07) 0%, transparent 70%);
  bottom: -80px;
  left: -60px;
  animation: orbFloat2 14s ease-in-out infinite;
}

.hero-orb.orb-3 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(180,0,255,0.05) 0%, transparent 70%);
  top: 35%;
  left: 8%;
  animation: orbFloat3 9s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%,100% { transform: translateY(0) translateX(0) scale(1); }
  33%      { transform: translateY(-28px) translateX(12px) scale(1.06); }
  66%      { transform: translateY(12px) translateX(-18px) scale(0.96); }
}
@keyframes orbFloat2 {
  0%,100% { transform: translateY(0) translateX(0) scale(1); }
  40%      { transform: translateY(-20px) translateX(22px) scale(1.05); }
  75%      { transform: translateY(9px) translateX(-12px) scale(0.96); }
}
@keyframes orbFloat3 {
  0%,100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50%      { transform: translateY(-22px) scale(1.12); opacity: 1; }
}

/* ===========================================
   7. Hero — Staggered Fade-In Sequence
   =========================================== */
.hero-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Override the existing hp-hero-inner auto-animation — children handle their own reveal */
.hp-hero-inner {
  animation: none !important;
}

/* ===========================================
   8. Hero — Badge Float + Glow Pulse
   =========================================== */
@keyframes badgeFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
@keyframes badgeGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,0,0,0.1); }
  50%      { box-shadow: 0 0 18px 4px rgba(255,0,0,0.12); }
}
.hp-badge {
  animation: badgeFloat 3.5s ease-in-out infinite,
             badgeGlow  3.5s ease-in-out infinite;
  will-change: transform;
}

/* ===========================================
   9. Navbar — Enhanced Glassmorphism
   =========================================== */
.navbar {
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  transition: background-color 0.4s ease,
              box-shadow 0.4s ease,
              height 0.35s ease,
              backdrop-filter 0.4s ease !important;
}
.navbar.scrolled {
  backdrop-filter: blur(26px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(200%) !important;
  background-color: rgba(8, 8, 8, 0.9) !important;
  border-bottom-color: rgba(255,255,255,0.05) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 8px 32px rgba(0,0,0,0.55) !important;
}

/* ===========================================
   10. Navbar — Animated Sliding Underline
   =========================================== */
.nav-underline {
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #ff0000, #ff6b6b);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transition: left   0.35s cubic-bezier(0.4, 0, 0.2, 1),
              width  0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease;
  box-shadow: 0 0 8px rgba(255,0,0,0.6);
  z-index: 1;
}
.nav-menu { position: relative; }

/* ===========================================
   11. Mobile Menu — Smooth Slide-Down
   =========================================== */
@media (max-width: 768px) {
  .nav-menu {
    right: 0 !important;
    top: var(--header-height) !important;
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.35s ease !important;
  }
  .nav-menu.active, .nav-menu.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .nav-menu .nav-link {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease !important;
  }
  .nav-menu.active .nav-link,
  .nav-menu.open  .nav-link { opacity: 1; transform: translateX(0) !important; }
  .nav-menu.active .nav-link:nth-child(1), .nav-menu.open .nav-link:nth-child(1) { transition-delay: 0.06s !important; }
  .nav-menu.active .nav-link:nth-child(2), .nav-menu.open .nav-link:nth-child(2) { transition-delay: 0.12s !important; }
  .nav-menu.active .nav-link:nth-child(3), .nav-menu.open .nav-link:nth-child(3) { transition-delay: 0.18s !important; }
  .nav-menu.active .nav-link:nth-child(4), .nav-menu.open .nav-link:nth-child(4) { transition-delay: 0.24s !important; }
  .nav-menu.active .nav-link:nth-child(5), .nav-menu.open .nav-link:nth-child(5) { transition-delay: 0.30s !important; }
}

/* ===========================================
   12. Tool Cards — Cursor-Following Glow
   =========================================== */
.card-cursor-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  filter: blur(44px);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  will-change: transform, opacity;
}
.hp-tool-card:hover .card-cursor-glow,
.at-card:hover .card-cursor-glow { opacity: 1; }

/* Platform glow colors */
.hp-tool-card          .card-cursor-glow { background: radial-gradient(circle, rgba(255,50,50,0.28)  0%, transparent 70%); }
.hp-tool-card.ig-card  .card-cursor-glow { background: radial-gradient(circle, rgba(225,48,108,0.28) 0%, transparent 70%); }
.hp-tool-card.tw-card  .card-cursor-glow { background: radial-gradient(circle, rgba(200,200,200,0.1) 0%, transparent 70%); }
.hp-tool-card.gen-card .card-cursor-glow { background: radial-gradient(circle, rgba(0,212,255,0.22)  0%, transparent 70%); }
.at-card.yt-glow       .card-cursor-glow { background: radial-gradient(circle, rgba(255,50,50,0.22)  0%, transparent 70%); }
.at-card.ig-glow       .card-cursor-glow { background: radial-gradient(circle, rgba(225,48,108,0.22) 0%, transparent 70%); }
.at-card.tw-glow       .card-cursor-glow { background: radial-gradient(circle, rgba(200,200,200,0.1) 0%, transparent 70%); }
.at-card.gen-glow      .card-cursor-glow { background: radial-gradient(circle, rgba(0,212,255,0.18)  0%, transparent 70%); }

/* ===========================================
   13. Tool Cards — Icon Bounce on Hover
   =========================================== */
@keyframes iconBounce {
  0%   { transform: scale(1)    translateY(0);   }
  28%  { transform: scale(1.2)  translateY(-6px); }
  55%  { transform: scale(0.93) translateY(3px);  }
  78%  { transform: scale(1.07) translateY(-2px); }
  100% { transform: scale(1)    translateY(0);   }
}
.hp-tool-card:hover .hp-card-icon,
.at-card:hover .at-card-icon {
  animation: iconBounce 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

/* ===========================================
   14. Tool Cards — Shimmer on Visibility
   =========================================== */
@keyframes shimmerSweep {
  0%   { transform: translateX(-120%) skewX(-15deg); }
  100% { transform: translateX(280%)  skewX(-15deg); }
}
.shimmer-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.055), transparent);
  pointer-events: none;
  z-index: 10;
  transform: translateX(-120%) skewX(-15deg);
  border-radius: inherit;
}
.shimmer-overlay.run {
  animation: shimmerSweep 0.95s ease forwards;
}

/* ===========================================
   15. Tool Cards — Animated Border Trace
   =========================================== */
/* Conic-gradient spinning border (Chrome/Edge/Safari 16.4+) */
@supports (background: conic-gradient(from 0deg, red, blue)) {
  .border-trace-wrapper {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: conic-gradient(from var(--angle), transparent 70%, rgba(255,0,0,0.65) 82%, transparent 92%);
    pointer-events: none;
  }
  .border-trace-wrapper.ig  { background: conic-gradient(from var(--angle), transparent 70%, rgba(225,48,108,0.7) 82%, transparent 92%); }
  .border-trace-wrapper.tw  { background: conic-gradient(from var(--angle), transparent 70%, rgba(200,200,200,0.4) 82%, transparent 92%); }
  .border-trace-wrapper.gen { background: conic-gradient(from var(--angle), transparent 70%, rgba(0,212,255,0.6)   82%, transparent 92%); }

  .hp-tool-card:hover .border-trace-wrapper,
  .at-card:hover      .border-trace-wrapper { opacity: 1; }

  @keyframes borderSpin { to { --angle: 360deg; } }
  .hp-tool-card:hover .border-trace-wrapper,
  .at-card:hover      .border-trace-wrapper {
    animation: borderSpin 2.8s linear infinite;
  }
}

/* ===========================================
   16. Buttons — Ripple Effect
   =========================================== */
@keyframes rippleAnim {
  0%   { transform: scale(0); opacity: 0.45; }
  100% { transform: scale(4.5); opacity: 0; }
}
.ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-left: -8px;
  pointer-events: none;
  animation: rippleAnim 0.65s linear forwards;
  z-index: 20;
}

/* ===========================================
   17. Buttons — Gradient Sweep on Hover
   =========================================== */
@keyframes sweepAnim {
  0%   { transform: translateX(-120%) skewX(-15deg); }
  100% { transform: translateX(320%)  skewX(-15deg); }
}
.hp-btn-primary,
.btn.btn-primary {
  position: relative;
  overflow: hidden;
}
.hp-btn-primary::after,
.btn.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-120%) skewX(-15deg);
  pointer-events: none;
  border-radius: inherit;
}
.hp-btn-primary:hover::after,
.btn.btn-primary:hover::after {
  animation: sweepAnim 0.62s ease forwards;
}

/* ===========================================
   18. Buttons — Glow Pulse
   =========================================== */
@keyframes btnGlowPulse {
  0%,100% { box-shadow: 0 4px 14px rgba(255,0,0,0.25); }
  50%      { box-shadow: 0 6px 28px rgba(255,0,0,0.52), 0 0 44px rgba(255,0,0,0.12); }
}
.hp-btn-primary {
  animation: btnGlowPulse 3.2s ease-in-out infinite;
}

/* ===========================================
   19. Search — Keyboard Shortcut Hint
   =========================================== */
.search-kbd-hint {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.search-kbd-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-family: inherit;
  color: #666;
  line-height: 1.5;
}

/* ===========================================
   20. Command Palette (Ctrl+K)
   =========================================== */
#cmd-palette {
  position: fixed;
  inset: 0;
  z-index: 9995;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
#cmd-palette.open {
  opacity: 1;
  pointer-events: all;
}
#cmd-palette-inner {
  width: calc(100% - 40px);
  max-width: 600px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 88px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.05);
  transform: translateY(-18px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1);
}
#cmd-palette.open #cmd-palette-inner {
  transform: translateY(0) scale(1);
}
.cmd-header {
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cmd-search-icon-wrap {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  font-size: 1rem;
  pointer-events: none;
}
#cmd-search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  padding: 19px 50px 19px 52px;
  outline: none;
  box-sizing: border-box;
}
#cmd-search-input::placeholder { color: #555; }
.cmd-esc-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  color: #666;
  font-size: 0.7rem;
  font-family: inherit;
  padding: 3px 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cmd-esc-btn:hover { background: rgba(255,255,255,0.1); color: #aaa; }
#cmd-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
#cmd-results::-webkit-scrollbar { width: 4px; }
#cmd-results::-webkit-scrollbar-track { background: transparent; }
#cmd-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
.cmd-group-label {
  padding: 8px 12px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  color: #ccc;
  outline: none;
}
.cmd-item:hover  { background: rgba(255,255,255,0.07); color: #fff; }
.cmd-item.sel    { background: rgba(255,0,0,0.1); color: #fff; }
.cmd-item-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.cmd-item-info  { flex: 1; min-width: 0; }
.cmd-item-name  { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-item-cat   { font-size: 0.74rem; color: #666; margin-top: 1px; }
.cmd-item-badge {
  font-size: 0.68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  flex-shrink: 0;
}
.cmd-footer {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.74rem; color: #555;
}
.cmd-footer-hint { display: flex; align-items: center; gap: 4px; }
.cmd-footer kbd {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px; padding: 1px 6px;
  font-size: 0.68rem; color: #888; font-family: inherit;
}
.cmd-empty {
  padding: 36px 20px; text-align: center;
  color: #555; font-size: 0.9rem;
}

/* ===========================================
   21. Scroll Reveal
   =========================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
              transform 0.75s cubic-bezier(0.16,1,0.3,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================
   22. Trending — Infinite Auto-Scroll Carousel
   =========================================== */
.trending-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 4px 0 8px;
}
.trending-carousel-wrapper::before,
.trending-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.trending-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #0a0a0a 0%, transparent 100%);
}
.trending-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #0a0a0a 0%, transparent 100%);
}
.trending-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: trendingScroll 32s linear infinite;
  will-change: transform;
}
.trending-track.paused {
  animation-play-state: paused;
}
@keyframes trendingScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.trending-track .trending-card {
  flex-shrink: 0;
  width: 268px;
}

/* ===========================================
   23. Animated Section Dividers
   =========================================== */
.section-divider {
  width: 100%;
  height: 1px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,0,0,0.25) 25%,
    rgba(0,212,255,0.25) 75%,
    transparent 100%
  );
}
.section-divider::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: dividerShine 4s ease-in-out infinite;
}
@keyframes dividerShine {
  0%   { left: -60%; }
  100% { left: 160%;  }
}

/* ===========================================
   24. Footer — Animated Gradient BG
   =========================================== */
.footer { position: relative; overflow: hidden; }
.footer::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(255,0,0,0.04) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 40%, rgba(0,212,255,0.03) 0%, transparent 55%);
  pointer-events: none;
  animation: footerPulse 14s ease-in-out infinite alternate;
  z-index: 0;
}
.footer .container { position: relative; z-index: 1; }
@keyframes footerPulse {
  0%   { opacity: 0.5; transform: scale(1);    }
  100% { opacity: 1;   transform: scale(1.06); }
}

/* Footer link slide-in arrow */
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  transition: color 0.25s ease, gap 0.25s ease;
}
.footer-link::before {
  content: '→';
  font-size: 0.72rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, margin 0.25s ease;
  margin-right: 0;
}
.footer-link:hover { gap: 2px; }
.footer-link:hover::before {
  opacity: 1;
  transform: translateX(0);
  margin-right: 5px;
}

/* Social icon enhanced hover */
.social-icon {
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              background-color 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease !important;
}
.social-icon:hover {
  transform: translateY(-4px) scale(1.12) !important;
  box-shadow: 0 8px 22px rgba(0,212,255,0.22) !important;
}

/* ===========================================
   25. Filter Pills — Smooth Transitions
   =========================================== */
.at-filter-btn {
  transition: background 0.3s cubic-bezier(0.4,0,0.2,1),
              color 0.3s ease,
              transform 0.22s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease !important;
}
.at-filter-btn:active { transform: scale(0.94) !important; }
.at-filter-btn.active-all,
.at-filter-btn.active-yt,
.at-filter-btn.active-ig,
.at-filter-btn.active-tw,
.at-filter-btn.active-gen { transform: scale(1.04) !important; }

.at-pill {
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.25s ease;
}
.at-pill:hover { transform: translateY(-2px) scale(1.04); }

/* ===========================================
   26. Stats Counter — Scale Pop
   =========================================== */
@keyframes counterPop {
  0%   { transform: scale(1); }
  55%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.counter-popped {
  animation: counterPop 0.42s cubic-bezier(0.34,1.56,0.64,1) forwards;
  display: inline-block;
}

/* ===========================================
   27. All-Tools Cards — Entrance Animation
   =========================================== */
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
.at-card.card-anim {
  animation: cardEntrance 0.55s cubic-bezier(0.16,1,0.3,1) both;
}

/* ===========================================
   28. Tab Content — Smooth Transition
   =========================================== */
@keyframes tabContentFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hp-tab-content.active {
  animation: tabContentFade 0.36s cubic-bezier(0.16,1,0.3,1) both;
}

/* ===========================================
   29. Reduced Motion Support
   =========================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-reveal    { opacity: 1 !important; transform: none !important; }
  .reveal-item    { opacity: 1 !important; transform: none !important; }
  .trending-track { animation: none !important; }
  #hero-particles { display: none; }
}

/* ===========================================
   30. Mobile Optimisations
   =========================================== */
@media (max-width: 768px) {
  .hero-orb { filter: blur(55px); }
  .hero-orb.orb-1 { width: 280px; height: 280px; }
  .hero-orb.orb-2 { width: 200px; height: 200px; }
  .hero-orb.orb-3 { display: none; }
  #hero-particles { opacity: 0.3; }
  #hero-glow      { width: 300px; height: 300px; }
  .trending-carousel-wrapper::before,
  .trending-carousel-wrapper::after { width: 50px; }
  #cmd-palette { padding-top: 8vh; }
  #cmd-palette-inner { width: calc(100% - 24px); border-radius: 14px; }
}
