/* ============================================================
   SoftWebLogic — Animations Stylesheet
   ============================================================ */

/* --- Keyframes --- */
@keyframes swl-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

@keyframes swl-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes swl-fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes swl-fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes swl-fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes swl-zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes swl-gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes swl-rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes swl-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes swl-orb {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.05); }
  66%  { transform: translate(-20px, 20px) scale(0.97); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes swl-lineGrow {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}

@keyframes swl-blinkCursor {
  0%, 100% { border-right-color: var(--swl-accent); }
  50%       { border-right-color: transparent; }
}

@keyframes swl-countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes swl-ripple {
  0%   { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

/* --- Hero Canvas Orbs --- */
.swl-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: swl-orb 12s ease-in-out infinite;
}
.swl-hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #1d5cff, transparent);
  top: -200px; right: -100px;
  animation-delay: 0s;
}
.swl-hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #00c9a7, transparent);
  bottom: -100px; left: -50px;
  animation-delay: -4s;
}
.swl-hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  top: 40%; left: 30%;
  animation-delay: -8s;
}

/* --- Grid Pattern Overlay --- */
.swl-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* --- Scroll-triggered Animations --- */
.swl-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.swl-reveal.swl-revealed {
  opacity: 1;
  transform: translateY(0);
}
.swl-reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.swl-reveal-left.swl-revealed {
  opacity: 1;
  transform: translateX(0);
}
.swl-reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.swl-reveal-right.swl-revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.swl-delay-1 { transition-delay: 0.1s; }
.swl-delay-2 { transition-delay: 0.2s; }
.swl-delay-3 { transition-delay: 0.3s; }
.swl-delay-4 { transition-delay: 0.4s; }
.swl-delay-5 { transition-delay: 0.5s; }
.swl-delay-6 { transition-delay: 0.6s; }

/* --- Floating Badge Animation --- */
.swl-float { animation: swl-float 4s ease-in-out infinite; }
.swl-float-2 { animation: swl-float 5.5s ease-in-out infinite; animation-delay: -1.5s; }
.swl-float-3 { animation: swl-float 6s ease-in-out infinite; animation-delay: -3s; }

/* --- Gradient Text Animation --- */
.swl-animated-gradient-text {
  background: linear-gradient(270deg, #1d5cff, #00c9a7, #8b5cf6, #1d5cff);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: swl-gradientShift 5s ease infinite;
}

/* --- Shimmer Effect --- */
.swl-shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.08) 50%,
    transparent 100%
  );
  background-size: 200% auto;
  animation: swl-shimmer 2.5s linear infinite;
}

/* --- Rotating Ring --- */
.swl-rotate-ring {
  animation: swl-rotateSlow 20s linear infinite;
}

/* --- Typewriter cursor --- */
.swl-typewriter {
  border-right: 3px solid var(--swl-accent);
  animation: swl-blinkCursor 0.8s infinite;
  padding-right: 2px;
  display: inline;
}

/* --- SVG Line Draw --- */
.swl-draw-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: swl-lineGrow 2.5s ease forwards;
}

/* --- Hover Lift --- */
.swl-hover-lift {
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease;
}
.swl-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(13,13,18,0.14);
}

/* --- Hover Scale --- */
.swl-hover-scale {
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.swl-hover-scale:hover { transform: scale(1.04); }

/* --- Button ripple --- */
.swl-ripple-btn {
  position: relative;
  overflow: hidden;
}
.swl-ripple-btn .swl-ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  width: 40px; height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  animation: swl-ripple 0.6s linear;
  pointer-events: none;
}

/* --- Loading Spinner --- */
.swl-spinner {
  width: 24px; height: 24px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: swl-rotateSlow 0.7s linear infinite;
  display: none;
}

/* --- Page Transition --- */
.swl-page-fade-in {
  animation: swl-fadeInUp 0.5s ease both;
}

/* --- Hero SVG circuit lines --- */
.swl-circuit-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
}
.swl-circuit-path {
  stroke: #1d5cff;
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: swl-lineGrow 4s ease forwards;
}
.swl-circuit-path:nth-child(2) { animation-delay: 0.5s; stroke: #00c9a7; }
.swl-circuit-path:nth-child(3) { animation-delay: 1s; }
.swl-circuit-path:nth-child(4) { animation-delay: 1.5s; stroke: #8b5cf6; }

/* --- Node dots on circuit --- */
.swl-circuit-dot {
  fill: #1d5cff;
  animation: swl-pulse 3s infinite;
}
.swl-circuit-dot:nth-child(2) { animation-delay: 1s; fill: #00c9a7; }
.swl-circuit-dot:nth-child(3) { animation-delay: 2s; fill: #8b5cf6; }

/* --- Scrolling ticker --- */
.swl-ticker-wrap {
  overflow: hidden;
  background: var(--swl-accent);
  padding: 0.5rem 0;
}
.swl-ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: swl-tickerScroll 25s linear infinite;
}
.swl-ticker-item {
  font-family: var(--swl-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.swl-ticker-item i { font-size: 0.7rem; }
@keyframes swl-tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
