/* ==========================================================================
   WORLD OF CREATION — WOW PREMIUM EFFECTS (Layer 2)
   ========================================================================== */

/* ==========================================================================
   PRELOADER / SPLASH SCREEN
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  background: #07080d;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: logoReveal 1s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.preloader-logo-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(135deg, #6366f1, #a855f7, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.7);
  animation: logoIconPulse 2s ease-in-out infinite;
}

.preloader-logo-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

.preloader-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.preloader-bar-wrap {
  width: 240px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
  animation: fadeInUp 0.8s 0.4s ease forwards;
  opacity: 0;
}

.preloader-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7, #06b6d4);
  border-radius: 99px;
  animation: preloaderBar 2s ease forwards;
  width: 0%;
}

.preloader-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeInUp 0.8s 0.6s ease forwards;
  opacity: 0;
}

@keyframes logoReveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logoIconPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(99, 102, 241, 0.6); }
  50% { box-shadow: 0 0 60px rgba(168, 85, 247, 0.9), 0 0 100px rgba(6, 182, 212, 0.4); }
}

@keyframes preloaderBar {
  0% { width: 0%; }
  60% { width: 75%; }
  100% { width: 100%; }
}

@keyframes fadeInUp {
  to { opacity: 1; }
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */

*, *::before, *::after {
  cursor: none !important;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: #6366f1;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  will-change: transform;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(99, 102, 241, 0.6);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  will-change: transform;
  backdrop-filter: invert(0.05);
}

.cursor-dot.hovering {
  width: 14px;
  height: 14px;
  background: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 1);
}

.cursor-ring.hovering {
  width: 56px;
  height: 56px;
  border-color: rgba(168, 85, 247, 0.5);
}

.cursor-dot.clicking {
  width: 6px;
  height: 6px;
  background: #06b6d4;
}

.cursor-ring.clicking {
  width: 28px;
  height: 28px;
  border-color: rgba(6, 182, 212, 0.8);
}

/* ==========================================================================
   MAGNETIC BUTTON EFFECT
   ========================================================================== */

.magnetic-btn {
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.reveal-left {
  transform: translateX(-50px);
}

.reveal.reveal-right {
  transform: translateX(50px);
}

.reveal.reveal-scale {
  transform: scale(0.88) translateY(20px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

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

/* ==========================================================================
   3D TILT CARD EFFECT
   ========================================================================== */

.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: box-shadow 0.3s ease;
}

.tilt-card-inner {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.tilt-card:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(99, 102, 241, 0.3) !important;
}

.tilt-card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tilt-card:hover .tilt-card-shine {
  opacity: 1;
}

/* ==========================================================================
   TYPEWRITER EFFECT
   ========================================================================== */

.typewriter-wrap {
  display: inline;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: linear-gradient(180deg, #6366f1, #06b6d4);
  border-radius: 2px;
  margin-left: 2px;
  vertical-align: middle;
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   ANIMATED COUNTER NUMBERS
   ========================================================================== */

.counter-value {
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

/* ==========================================================================
   ANIMATED GRADIENT BORDER GLOW CARDS
   ========================================================================== */

.glow-border-card {
  position: relative;
  border-radius: var(--radius-md, 18px);
  overflow: hidden;
}

.glow-border-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0deg,
    #6366f1 60deg,
    #a855f7 120deg,
    #06b6d4 180deg,
    transparent 240deg,
    transparent 360deg
  );
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: rotateBorder 4s linear infinite paused;
}

.glow-border-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}

.glow-border-card > * {
  position: relative;
  z-index: 1;
}

.glow-border-inner {
  background: var(--bg-glass-card, rgba(25, 32, 50, 0.55));
  border-radius: calc(var(--radius-md, 18px) - 2px);
  height: 100%;
  position: relative;
  z-index: 1;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateBorder {
  to { --angle: 360deg; }
}

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */

.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #a855f7, #06b6d4);
  z-index: 99995;
  transition: width 0.1s linear;
  transform-origin: left;
  width: 0%;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.7);
}

/* ==========================================================================
   HERO PARALLAX LAYERS
   ========================================================================== */

.hero-parallax-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.parallax-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  will-change: transform;
}

.parallax-shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: -100px;
  right: -80px;
}

.parallax-shape-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  bottom: -50px;
  left: 10%;
}

/* ==========================================================================
   SPOTLIGHT MOUSE GLOW
   ========================================================================== */

.spotlight {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* ==========================================================================
   ANIMATED STATS ROW
   ========================================================================== */

.hero-stats {
  position: relative;
}

.hero-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), rgba(6, 182, 212, 0.3), transparent);
}

.stat-item {
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-item:last-child::after {
  display: none;
}

/* ==========================================================================
   TEXT GLITCH EFFECT (for hero title)
   ========================================================================== */

.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glitch-text::before {
  background: linear-gradient(135deg, #6366f1, #a855f7, #06b6d4);
  -webkit-background-clip: text;
  animation: glitch1 5s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  transform: translateX(-3px);
  opacity: 0;
}

.glitch-text::after {
  background: linear-gradient(135deg, #06b6d4, #6366f1, #a855f7);
  -webkit-background-clip: text;
  animation: glitch2 5s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  transform: translateX(3px);
  opacity: 0;
}

@keyframes glitch1 {
  0%, 95%, 100% { opacity: 0; transform: translateX(0); }
  96% { opacity: 0.8; transform: translateX(-4px); }
  97% { opacity: 0.6; transform: translateX(4px); }
  98% { opacity: 0.8; transform: translateX(-2px); }
}

@keyframes glitch2 {
  0%, 95%, 100% { opacity: 0; transform: translateX(0); }
  96% { opacity: 0.8; transform: translateX(4px); }
  97% { opacity: 0.6; transform: translateX(-4px); }
  98% { opacity: 0.8; transform: translateX(2px); }
}

/* ==========================================================================
   BUTTON RIPPLE EFFECT
   ========================================================================== */

.btn-ripple {
  overflow: hidden;
}

.btn-ripple .ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleExpand 0.6s linear;
  pointer-events: none;
}

@keyframes rippleExpand {
  to { transform: scale(4); opacity: 0; }
}

/* ==========================================================================
   SECTION DIVIDERS (noise lines between sections)
   ========================================================================== */

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.25) 25%, rgba(6, 182, 212, 0.2) 75%, transparent 100%);
  margin: 0 auto;
  max-width: 800px;
}

/* ==========================================================================
   FLOATING PARTICLES EXTRA
   ========================================================================== */

.floating-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatParticle var(--dur, 6s) ease-in-out infinite alternate;
  opacity: var(--op, 0.5);
  background: var(--color, rgba(99, 102, 241, 0.6));
}

@keyframes floatParticle {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(var(--tx, 20px), var(--ty, -30px)) rotate(360deg); }
}

/* ==========================================================================
   ENHANCED GLASS CARD HOVER (replaces basic glass-card hover)
   ========================================================================== */

.glass-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease !important;
}

.glass-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 50px rgba(99, 102, 241, 0.2) !important;
}

/* ==========================================================================
   NEON BADGE PULSE
   ========================================================================== */

.neon-badge {
  animation: neonPulse 2s ease-in-out infinite alternate;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

@keyframes neonPulse {
  0% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.2); }
  100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.8), 0 0 40px rgba(6, 182, 212, 0.3), 0 0 60px rgba(99, 102, 241, 0.2); }
}

/* ==========================================================================
   SERVICE CARD ICON GLOW HOVER
   ========================================================================== */

.service-card:hover .service-icon-box {
  background: rgba(99, 102, 241, 0.3) !important;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
  transform: scale(1.1) rotate(-5deg);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   PROCESS STEP CONNECTOR LINE
   ========================================================================== */

@media (min-width: 769px) {
  .process-grid {
    position: relative;
  }
  .process-grid::after {
    content: '';
    position: absolute;
    top: 58px;
    left: 60px;
    right: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.3), transparent);
    pointer-events: none;
    z-index: 0;
  }
  .process-card {
    z-index: 1;
  }
}

/* ==========================================================================
   HERO BADGE FLOAT ENHANCED
   ========================================================================== */

.hero-badge-float {
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(99, 102, 241, 0.3);
}

/* ==========================================================================
   ACTIVE NAV LINK INDICATOR
   ========================================================================== */

.nav-link.active {
  color: #fff;
}

/* ==========================================================================
   PRICING CARD HOVER GLOW
   ========================================================================== */

.pricing-card:not(.featured):hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(99, 102, 241, 0.15);
  transform: translateY(-5px);
}

/* ==========================================================================
   TEXT SELECTION HIGHLIGHT
   ========================================================================== */

::selection {
  background: rgba(99, 102, 241, 0.5);
  color: #fff;
}

/* ==========================================================================
   FAQ ITEM ACTIVE GLOW
   ========================================================================== */

.faq-item.active {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

/* ==========================================================================
   FOOTER LOGO GLOW ON HOVER
   ========================================================================== */

.logo:hover .logo-icon {
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.8), 0 0 80px rgba(168, 85, 247, 0.4) !important;
  transform: scale(1.08) rotate(-3deg);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   REVIEW CARD QUOTE MARK
   ========================================================================== */

.review-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  color: rgba(99, 102, 241, 0.08);
  line-height: 1;
  pointer-events: none;
}

/* ==========================================================================
   MARQUEE PILLS HOVER HIGHLIGHT
   ========================================================================== */

.tech-pill {
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tech-pill:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   NOISE TEXTURE OVERLAY (very subtle grain)
   ========================================================================== */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 3;
}
