/* ============================================================
   ESO GÜVENLİK TEKNOLOJİLERİ — Animasyonlar
   animations.css
   ============================================================ */

/* ============================================================
   1. TEMEL KEYFRAME ANİMASYONLARI
   ============================================================ */

/* Fade in */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Fade in + yukarıdan gel */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in + aşağıdan gel */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in + soldan gel */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade in + sağdan gel */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale in */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse - nabız efekti */
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Float - yüzme efekti */
@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* Spin - döndürme */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Shimmer - parlaklık efekti */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Typing cursor blink */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Glow efekti */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 10px rgba(6, 182, 212, 0.3); }
  50%       { box-shadow: 0 0 30px rgba(6, 182, 212, 0.8), 0 0 60px rgba(6, 182, 212, 0.3); }
}

/* Border rotate */
@keyframes borderRotate {
  from { --angle: 0deg; }
  to   { --angle: 360deg; }
}

/* Bounce */
@keyframes bounce {
  0%, 100% { transform: translateY(0); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50%       { transform: translateY(-20px); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

/* Shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-5px); }
  75%       { transform: translateX(5px); }
}

/* Ripple */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Count up (counter animasyon için) */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Gradient shift */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================================
   2. ANİMASYON YARDIMCI SINIFLARI
   ============================================================ */
.animate-fade-in     { animation: fadeIn 0.6s ease both; }
.animate-fade-in-up  { animation: fadeInUp 0.6s ease both; }
.animate-fade-in-down{ animation: fadeInDown 0.6s ease both; }
.animate-fade-in-left{ animation: fadeInLeft 0.6s ease both; }
.animate-fade-in-right{ animation: fadeInRight 0.6s ease both; }
.animate-scale-in    { animation: scaleIn 0.5s ease both; }
.animate-float       { animation: float 4s ease-in-out infinite; }
.animate-pulse       { animation: pulse 2s ease infinite; }
.animate-spin        { animation: spin 1s linear infinite; }
.animate-bounce      { animation: bounce 1s infinite; }
.animate-glow        { animation: glow 2s ease-in-out infinite; }

/* Gecikme sınıfları */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000{ animation-delay: 1.0s; }

/* Süre sınıfları */
.duration-300 { animation-duration: 0.3s; }
.duration-500 { animation-duration: 0.5s; }
.duration-700 { animation-duration: 0.7s; }
.duration-1000{ animation-duration: 1.0s; }

/* ============================================================
   3. HOVER ANİMASYONLARI
   ============================================================ */

/* Hover lift */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16);
}

/* Hover glow */
.hover-glow {
  transition: box-shadow 0.3s ease;
}
.hover-glow:hover {
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
}

/* Hover scale */
.hover-scale {
  transition: transform 0.3s ease;
}
.hover-scale:hover {
  transform: scale(1.03);
}

/* Hover rotate */
.hover-rotate {
  transition: transform 0.3s ease;
}
.hover-rotate:hover {
  transform: rotate(5deg) scale(1.05);
}

/* ============================================================
   4. RIPPLE BUTON EFEKTİ
   ============================================================ */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

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

/* ============================================================
   5. PARALLAX CONTAINER
   ============================================================ */
.parallax-container {
  overflow: hidden;
  position: relative;
}

.parallax-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* ============================================================
   6. TYPING EFFECT
   ============================================================ */
.typing-text {
  display: inline-block;
  position: relative;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: currentColor;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.9s step-end infinite;
}

/* ============================================================
   7. SHIMMER EFEKTİ (yükleme durumu için)
   ============================================================ */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.5) 50%,
    rgba(255,255,255,0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ============================================================
   8. GRADIENT ANİMASYON
   ============================================================ */
.gradient-animate {
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

/* ============================================================
   9. PARTICLE / ARKA PLAN EFEKT
   ============================================================ */
.particle-bg {
  position: relative;
}

.particle-bg::before,
.particle-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.particle-bg::before {
  width: 300px;
  height: 300px;
  top: -100px;
  right: 10%;
}

.particle-bg::after {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: 5%;
  animation-delay: -3s;
  animation-duration: 8s;
}

/* ============================================================
   10. CARD HOVER 3D EFEKTİ
   ============================================================ */
.card-3d {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

/* ============================================================
   11. ANA SAYFA HEROdaki arka plan animasyonu
   ============================================================ */
.hero-animated-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-animated-bg .circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.05);
  animation: float 8s ease-in-out infinite;
}

.hero-animated-bg .circle:nth-child(1) {
  width: 400px;
  height: 400px;
  top: -200px;
  right: 10%;
}

.hero-animated-bg .circle:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 5%;
  animation-delay: -3s;
  animation-duration: 6s;
}

.hero-animated-bg .circle:nth-child(3) {
  width: 100px;
  height: 100px;
  top: 30%;
  right: 30%;
  animation-delay: -1.5s;
  animation-duration: 10s;
}

/* ============================================================
   12. İSTATİSTİK SAYAÇ ANİMASYONU
   ============================================================ */
.stat-number.counting {
  animation: countUp 0.4s ease both;
}

/* ============================================================
   13. PROGRESS BAR ANİMASYONU
   ============================================================ */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(6, 182, 212, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #06B6D4 0%, #14B8A6 100%);
  border-radius: 999px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   14. GLASSMORPHISM KARTLAR
   ============================================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.glass-card-dark {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

/* ============================================================
   15. SMOOTH GEÇIŞ SINIFLARI
   ============================================================ */
.transition-fast   { transition: all 0.2s ease; }
.transition-base   { transition: all 0.3s ease; }
.transition-slow   { transition: all 0.5s ease; }
.transition-slower { transition: all 0.8s ease; }

/* ============================================================
   16. PREFERS REDUCED MOTION (Erişilebilirlik)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
