/* ============================================================
   WSG Web Design — ce-animations.css
   ============================================================ */

/* Fade In Up */
@keyframes ce-fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ce-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ce-slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes ce-slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes ce-scaleIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes ce-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .5; }
}
@keyframes ce-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes ce-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes ce-gradMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes ce-blob {
  0%,100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25%      { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50%      { border-radius: 50% 60% 30% 60% / 30% 70% 60% 40%; }
  75%      { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}
@keyframes ce-counterUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ce-shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
@keyframes ce-borderGlow {
  0%,100% { box-shadow: 0 0 5px rgba(61,142,240,.3); }
  50%      { box-shadow: 0 0 20px rgba(61,142,240,.7); }
}
@keyframes ce-typeCursor {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Scroll-triggered animation base */
.ce-animate { opacity: 0; }
.ce-animate.ce-in { animation: ce-fadeInUp .7s ease forwards; }
.ce-animate-left { opacity: 0; }
.ce-animate-left.ce-in { animation: ce-slideInLeft .7s ease forwards; }
.ce-animate-right { opacity: 0; }
.ce-animate-right.ce-in { animation: ce-slideInRight .7s ease forwards; }
.ce-animate-scale { opacity: 0; }
.ce-animate-scale.ce-in { animation: ce-scaleIn .7s ease forwards; }
.ce-delay-1 { animation-delay: .1s; }
.ce-delay-2 { animation-delay: .2s; }
.ce-delay-3 { animation-delay: .3s; }
.ce-delay-4 { animation-delay: .4s; }
.ce-delay-5 { animation-delay: .5s; }
.ce-delay-6 { animation-delay: .6s; }

/* Hero floating blobs */
.ce-blob {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: ce-blob 8s ease-in-out infinite;
}
.ce-blob-2 { animation-delay: -3s; animation-duration: 10s; }
.ce-blob-3 { animation-delay: -6s; animation-duration: 12s; }

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

/* Animated gradient background */
.ce-anim-grad {
  background: linear-gradient(270deg, var(--ce-accent), var(--ce-accent-2), #7c6af7, var(--ce-accent));
  background-size: 400% 400%;
  animation: ce-gradMove 8s ease infinite;
}

/* Float utility */
.ce-float { animation: ce-float 4s ease-in-out infinite; }
.ce-float-slow { animation: ce-float 6s ease-in-out infinite; }

/* Spin */
.ce-spin-slow { animation: ce-spin 12s linear infinite; }

/* Glow border */
.ce-glow { animation: ce-borderGlow 2s ease-in-out infinite; }

/* Hover lift */
.ce-hover-lift { transition: transform var(--ce-transition); }
.ce-hover-lift:hover { transform: translateY(-6px); }

/* Hero text cursor */
.ce-cursor::after {
  content: '|';
  animation: ce-typeCursor .8s ease-in-out infinite;
  color: var(--ce-accent);
}

/* Comparison slider */
.ce-slider-wrap { position: relative; overflow: hidden; border-radius: var(--ce-radius-lg); cursor: ew-resize; user-select: none; }
.ce-slider-before, .ce-slider-after { position: absolute; inset: 0; }
.ce-slider-before { z-index: 2; clip-path: inset(0 50% 0 0); transition: clip-path .05s; }
.ce-slider-handle {
  position: absolute; top: 0; bottom: 0; z-index: 3;
  left: 50%; transform: translateX(-50%);
  width: 4px; background: white; cursor: ew-resize;
  transition: left .05s;
}
.ce-slider-handle-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 44px; height: 44px;
  background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ce-navy); font-size: .9rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

/* Portfolio filter */
.ce-filter-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--ce-muted);
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  font-size: .85rem;
  font-family: var(--ce-font-body);
  transition: all var(--ce-transition);
}
.ce-filter-btn.ce-active, .ce-filter-btn:hover {
  background: var(--ce-accent);
  border-color: var(--ce-accent);
  color: var(--ce-white);
}

/* Quiz */
.ce-quiz-step { display: none; }
.ce-quiz-step.ce-active { display: block; animation: ce-fadeIn .4s ease; }
.ce-quiz-option {
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--ce-radius);
  padding: 16px 20px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all var(--ce-transition);
  color: var(--ce-off);
  font-size: .95rem;
  text-align: left;
  width: 100%;
  font-family: var(--ce-font-body);
}
.ce-quiz-option:hover, .ce-quiz-option.ce-selected {
  border-color: var(--ce-accent);
  background: rgba(61,142,240,.1);
  color: var(--ce-white);
}
.ce-quiz-progress { height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; margin-bottom: 24px; }
.ce-quiz-progress-fill { height: 100%; background: var(--ce-accent); border-radius: 2px; transition: width var(--ce-transition); }
.ce-score-bar-wrap { background: rgba(255,255,255,.08); border-radius: 100px; height: 10px; margin: 8px 0 4px; overflow: hidden; }
.ce-score-bar { height: 100%; background: linear-gradient(90deg, var(--ce-accent), var(--ce-accent-2)); border-radius: 100px; transition: width 1s ease; }

/* Carousel */
.ce-carousel-track { display: flex; transition: transform .4s ease; }
.ce-carousel-item { flex-shrink: 0; }
.ce-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.ce-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.2); border: none; cursor: pointer; transition: all var(--ce-transition); }
.ce-carousel-dot.ce-active { background: var(--ce-accent); width: 24px; border-radius: 4px; }
