
/* ============================================
   YADSTORE — ANIMATION ENHANCEMENT
   ============================================ */

/* ===== GLOBAL SMOOTH ===== */
* {
  -webkit-tap-highlight-color: transparent;
}
a, button, .btn {
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

/* ===== HERO TITLE ANIMATION ===== */
.hero-title {
  animation: heroReveal 1s ease-out both;
}
@keyframes heroReveal {
  0% { opacity: 0; transform: translateY(40px) scale(.95); filter: blur(10px); }
  60% { opacity: 1; transform: translateY(-5px) scale(1.02); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-sub {
  animation: heroReveal 1s ease-out .2s both;
}
.hero-buttons {
  animation: heroReveal 1s ease-out .4s both;
}

/* ===== GRADIENT TEXT SHINE ===== */
.gradient-text {
  background-size: 300% auto !important;
  animation: shineText 3s linear infinite, textGlow 2s ease-in-out infinite alternate;
}
@keyframes shineText {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}
@keyframes textGlow {
  0% { filter: drop-shadow(0 0 20px rgba(0,229,255,.3)); }
  100% { filter: drop-shadow(0 0 40px rgba(0,229,255,.6)); }
}

/* ===== BUTTON SHINE EFFECT ===== */
.btn {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transform: translateX(-100%);
  transition: transform .6s;
  pointer-events: none;
}
.btn:hover::after {
  transform: translateX(100%);
}
.btn-primary {
  background-size: 200% auto;
  animation: btnGradient 3s ease infinite;
}
@keyframes btnGradient {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 50px rgba(0,229,255,.7), 0 0 0 2px rgba(0,229,255,.3);
}
.btn-primary:active {
  transform: translateY(-1px) scale(.98);
}
.btn-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(0,229,255,.1);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0,229,255,.3);
}

/* ===== CARD HOVER ENHANCEMENT ===== */
.feature-card,
.lesson-card,
.gate-card,
.article-card {
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1), box-shadow .4s, border-color .3s;
}
.feature-card:hover,
.lesson-card:hover,
.gate-card:hover,
.article-card:hover {
  transform: translateY(-10px) rotateX(3deg) rotateY(-2deg) scale(1.02);
}

/* ===== FLOATING ELEMENTS ===== */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes floatRotate {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}
.float-anim { animation: floatY 3s ease-in-out infinite; }
.float-rotate { animation: floatRotate 4s ease-in-out infinite; }

/* ===== NAVBAR ENHANCEMENT ===== */
.navbar {
  transition: all .4s;
}
.navbar.scrolled {
  background: rgba(6,9,24,.95);
  box-shadow: 0 4px 30px rgba(0,0,0,.5), 0 1px 0 rgba(0,229,255,.2);
  padding: 10px 24px;
}
.nav-links a {
  position: relative;
  overflow: hidden;
}
.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00e5ff, #7c4dff);
  transition: all .3s;
  transform: translateX(-50%);
}
.nav-links a:hover::before,
.nav-links a.active::before {
  width: 60%;
}

/* ===== BRAND LOGO PULSE ===== */
.logo-svg {
  animation: logoPulse 2s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(0,229,255,.6)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 24px rgba(0,229,255,.9)); transform: scale(1.05); }
}

/* ===== LIVE DOT ===== */
.live-dot {
  animation: livePulse 1.5s infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,136,.7); opacity: 1; }
  50% { box-shadow: 0 0 0 8px rgba(0,255,136,0); opacity: .8; }
}

/* ===== STAT CARDS ENTRANCE ===== */
.stat-item,
.gate-stat {
  animation: statPop .6s cubic-bezier(.68,-.55,.27,1.55) both;
}
@keyframes statPop {
  0% { opacity: 0; transform: scale(.5) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.stat-item:nth-child(1) { animation-delay: .1s; }
.stat-item:nth-child(2) { animation-delay: .2s; }
.stat-item:nth-child(3) { animation-delay: .3s; }
.stat-item:nth-child(4) { animation-delay: .4s; }

/* ===== SECTION TITLE ===== */
.section-title {
  animation: sectionFade .8s ease both;
}
@keyframes sectionFade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== FEATURE ICON ANIMATION ===== */
.feature-icon-svg svg {
  transition: transform .4s;
}
.feature-card:hover .feature-icon-svg svg {
  animation: iconBounce .6s ease;
}
@keyframes iconBounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.15) rotate(-10deg); }
  60% { transform: scale(.95) rotate(5deg); }
}

/* ===== LOADER SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg,
    rgba(42,49,85,.4) 25%,
    rgba(42,49,85,.6) 50%,
    rgba(42,49,85,.4) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== MODAL ENHANCEMENT ===== */
.modal.open .modal-content {
  animation: modalIn .4s cubic-bezier(.68,-.55,.27,1.55);
}
@keyframes modalIn {
  0% { opacity: 0; transform: scale(.85) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== TOAST ===== */
.toast.show {
  animation: toastIn .5s cubic-bezier(.68,-.55,.27,1.55);
}
@keyframes toastIn {
  0% { transform: translateX(400px) scale(.8); }
  100% { transform: translateX(0) scale(1); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ACTIVITY FEED ITEM ===== */
.activity-item {
  transition: all .3s;
  border-radius: 10px;
}
.activity-item:hover {
  background: rgba(0,229,255,.05);
  transform: translateX(8px);
  padding-left: 16px;
}

/* ===== SCROLL PROGRESS BAR ===== */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #00e5ff, #7c4dff, #ff4081);
  z-index: 9999;
  width: 0%;
  transition: width .1s;
  box-shadow: 0 0 10px rgba(0,229,255,.6);
}

/* ===== RIPPLE ON CLICK ===== */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transform: scale(0);
  animation: rippleEffect .6s ease-out;
  pointer-events: none;
}
@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

/* ===== TYPING CURSOR ===== */
.typing::after {
  content: '|';
  color: var(--primary);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ===== CURSOR GLOW (desktop) ===== */
@media (min-width: 1024px) {
  body {
    cursor: none;
  }
  #customCursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform .1s, background .2s;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(0,229,255,.6);
  }
  #customCursor.hover {
    transform: translate(-50%, -50%) scale(1.8);
    background: rgba(0,229,255,.2);
  }
  a, button, .btn, .gate-card, .article-card, .feature-card, .lesson-card {
    cursor: none;
  }
}

/* ===== PARTICLE TEXT ===== */
.particle-text span {
  display: inline-block;
  animation: letterFloat 2s ease-in-out infinite;
}
@keyframes letterFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
  .feature-card:hover,
  .lesson-card:hover,
  .gate-card:hover,
  .article-card:hover {
    transform: translateY(-5px) scale(1.01);
  }
}
