/* =====================================================
   TROVEXA LLC - Animations & Effects CSS
   ===================================================== */

/* ---- Cursor Glow Effect ---- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.04) 0%, transparent 70%);
  transition: left 0.08s, top 0.08s;
}

/* ---- Loading Screen ---- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--clr-bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar-track {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 99px;
  animation: loaderBar 1.8s ease-in-out forwards;
}

@keyframes loaderBar {
  0%   { width: 0%; }
  100% { width: 100%; }
}

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

/* ---- Typewriter ---- */
.typewriter {
  display: inline;
  border-right: 3px solid var(--clr-cyan);
  padding-right: 4px;
  animation: blink-cursor 0.9s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { border-color: var(--clr-cyan); }
  50%       { border-color: transparent; }
}

/* ---- Glassmorphism Blob ---- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.35;
  animation: float 8s ease-in-out infinite;
}

.blob-1 {
  width: 500px; height: 500px;
  top: -150px; right: -150px;
  background: radial-gradient(circle, #7c3aed, transparent);
  animation-delay: 0s;
}

.blob-2 {
  width: 400px; height: 400px;
  bottom: -100px; left: -100px;
  background: radial-gradient(circle, #00d4ff, transparent);
  animation-delay: 3s;
}

.blob-3 {
  width: 300px; height: 300px;
  top: 30%; right: 20%;
  background: radial-gradient(circle, #ec4899, transparent);
  animation-delay: 6s;
  opacity: 0.2;
}

/* ---- Floating Card on Hero ---- */
.hero-floating-card {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  animation: float 6s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
}

.hfc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.hfc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green  { background: #10b981; box-shadow: 0 0 8px #10b981; }
.dot-cyan   { background: #00d4ff; box-shadow: 0 0 8px #00d4ff; }
.dot-purple { background: #a855f7; box-shadow: 0 0 8px #a855f7; }
