﻿/* ============================================
   XP BİLİŞİM - Animasyon Dosyası
   ============================================ */

/* ─── KEYFRAME ANIMATIONS ─────────────────── */

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.5); }
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float-card {
  0%, 100% { transform: translateY(0) rotateX(2deg) rotateY(-3deg); }
  50%       { transform: translateY(-18px) rotateX(-2deg) rotateY(3deg); }
}

@keyframes float-mini {
  0%, 100% { transform: translateY(0) translateZ(40px); }
  50%       { transform: translateY(-12px) translateZ(40px); }
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 8px rgba(109,40,217,0.4);
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

@keyframes rotating-border {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes wave-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes particle-drift {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-120vh) translateX(30px) rotate(360deg); opacity: 0; }
}

@keyframes slide-in-left {
  from { transform: translateX(-80px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right {
  from { transform: translateX(80px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-up {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes zoom-in {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes scroll-tech {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}

@keyframes bounce-in {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  80%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes ripple {
  0%   { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes text-reveal {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0% 0 0);
    opacity: 1;
  }
}

@keyframes morph-border {
  0%   { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25%  { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50%  { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75%  { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@keyframes scanner-line {
  0%   { top: 0%; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes counter-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(109,40,217,0.12); }
  50%       { box-shadow: 0 0 22px rgba(109,40,217,0.25), 0 0 40px rgba(109,40,217,0.1); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes typewriter {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes blink-caret {
  0%, 100% { border-right-color: var(--accent-cyan); }
  50%       { border-right-color: transparent; }
}

/* ─── ANIMATED ELEMENTS ───────────────────── */

/* Orb Background Blobs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: morph-border 10s ease-in-out infinite;
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(109,40,217,0.07), transparent 70%);
  top: -200px;
  left: -100px;
  animation-duration: 12s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.05), transparent 70%);
  bottom: -150px;
  right: -100px;
  animation-duration: 15s;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59,7,100,0.06), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 18s;
  animation-delay: -3s;
}

/* Spinning Ring */
.spin-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}

.spin-ring-1 {
  width: 400px;
  height: 400px;
  border-top-color: rgba(139,92,246,0.07);
  border-right-color: rgba(139,92,246,0.07);
  animation: spin-slow 20s linear infinite;
}

.spin-ring-2 {
  width: 300px;
  height: 300px;
  border-bottom-color: rgba(109,40,217,0.07);
  border-left-color: rgba(109,40,217,0.07);
  animation: spin-reverse 15s linear infinite;
}

/* Wave Rings */
.wave-ring {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(109,40,217,0.12);
  border-radius: 50%;
  animation: wave-pulse 2.5s ease-out infinite;
}

.wave-ring:nth-child(2) { animation-delay: 0.8s; }
.wave-ring:nth-child(3) { animation-delay: 1.6s; }

/* Shimmer Effect */
.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.06) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2.5s ease infinite;
}

/* Glowing Border Card */
.glow-card {
  position: relative;
  overflow: hidden;
}

.glow-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent 0deg,
    rgba(139,92,246,0.06) 60deg,
    transparent 120deg,
    rgba(109,40,217,0.06) 180deg,
    transparent 240deg,
    rgba(59,7,100,0.06) 300deg,
    transparent 360deg
  );
  animation: spin-slow 6s linear infinite;
}

.glow-card > * { position: relative; z-index: 1; }

/* Typing Effect Helper */
.typewriter-text {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--accent-cyan);
  animation:
    typewriter 3s steps(30) forwards,
    blink-caret 0.75s step-end infinite;
}

/* Neon Text */
.neon-text {
  animation: neon-flicker 5s linear infinite;
}

/* Loading Dots */
.loading-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  margin: 0 3px;
  animation: bounce-in 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Particle Background Dots */
.bg-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0;
  animation: particle-drift linear infinite;
}

/* Grid Overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Scanner Effect */
.scanner {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  animation: scanner-line 3s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.15;
}

/* Stagger Delay Utility Classes */
.delay-100 { transition-delay: 0.1s !important; animation-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s !important; animation-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s !important; animation-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s !important; animation-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s !important; animation-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s !important; animation-delay: 0.6s; }

/* Hover 3D Tilt Transition */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
}

.tilt-card-content {
  transform: translateZ(30px);
}
