/* ============================================================
   ANIMATIONS – ADIN MEHMEDOVIC
   Alle Keyframe-Animationen für die Website
   ============================================================ */

/* ── Orb Floating ─────────────────────────────────────────── */
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-30px, 20px) scale(1.05); }
  66%       { transform: translate(20px, -15px) scale(0.96); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(25px, -20px) scale(1.08); }
  70%       { transform: translate(-15px, 10px) scale(0.95); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-20px, 15px) scale(1.1); }
}

/* ── Device Mockup Floating ───────────────────────────────── */
@keyframes deviceFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(0.5deg); }
}

/* ── Floating Cards ───────────────────────────────────────── */
@keyframes floatCard1 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50%       { transform: translateY(-10px) translateX(4px); }
}

@keyframes floatCard2 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50%       { transform: translateY(10px) translateX(-4px); }
}

@keyframes floatCard3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-8px) rotate(1deg); }
}

/* ── Pulse (Badge Dot) ────────────────────────────────────── */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(67, 233, 123, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(67, 233, 123, 0);
    transform: scale(1.1);
  }
}

/* ── Scroll Indicator ─────────────────────────────────────── */
@keyframes scrollPulse {
  0%, 100% { opacity: 0.8; transform: scaleY(1); }
  50%       { opacity: 0.3; transform: scaleY(0.6); }
}

/* ── Gradient Shift (Hero Background) ────────────────────── */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Shimmer (Skeleton / Loading) ────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* ── Spin ─────────────────────────────────────────────────── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Bounce In ────────────────────────────────────────────── */
@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.8); }
  60%  { opacity: 1; transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ── Slide Up ─────────────────────────────────────────────── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ── Slide In Left ────────────────────────────────────────── */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Slide In Right ───────────────────────────────────────── */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Hero Content Entry ───────────────────────────────────── */
.hero-badge    { animation: slideUp 0.6s 0.2s both; }
.hero-title    { animation: slideUp 0.7s 0.35s both; }
.hero-subtitle { animation: slideUp 0.7s 0.5s both; }
.hero-cta-group{ animation: slideUp 0.7s 0.65s both; }
.hero-stats    { animation: slideUp 0.7s 0.8s both; }
.hero-visual   { animation: slideInRight 0.8s 0.4s both; }

/* ── Trust Bar Entry ──────────────────────────────────────── */
.trust-bar { animation: fadeIn 0.8s 0.2s both; }

/* ── Button Loading State ─────────────────────────────────── */
.btn.loading {
  opacity: 0.7;
  pointer-events: none;
}
.btn.loading::after {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

/* ── Gradient Border on Hover (Service Cards) ─────────────── */
@keyframes borderFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Typewriter Effect ────────────────────────────────────── */
.typewriter-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--color-primary);
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Counter Number Increment ─────────────────────────────── */
.stat-number {
  transition: all 0.1s ease;
}

/* ── Pricing Card Pop ─────────────────────────────────────── */
.pricing-card {
  animation: fadeIn 0.5s both;
}
.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }

/* ── Social Link Hover Glow ───────────────────────────────── */
.social-link:hover svg {
  filter: drop-shadow(0 0 6px rgba(102,126,234,0.6));
}

/* ── Language Switcher Slide ──────────────────────────────── */
.lang-btn {
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.lang-btn:hover { transform: scale(1.08); }
.lang-btn.active { transform: scale(1.05); }

/* ── Portfolio Filter Transition ──────────────────────────── */
.portfolio-card {
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
}
.portfolio-card.hiding {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}
.portfolio-card.showing {
  animation: bounceIn 0.4s both;
}

/* ── Service Card Icon Bounce on Hover ────────────────────── */
.service-card:hover .service-icon-wrap {
  animation: floatCard1 1.5s ease-in-out infinite;
}

/* ── Form Input Focus Ring ────────────────────────────────── */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  animation: focusPulse 0.3s ease;
}
@keyframes focusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(102,126,234,0.3); }
  100% { box-shadow: 0 0 0 3px rgba(102,126,234,0.12); }
}

/* ── Back to Top Button Spin ──────────────────────────────── */
.back-to-top:hover svg {
  animation: bounceIn 0.3s ease;
}

/* ── Testimonial Card Tilt ────────────────────────────────── */
.testimonial-card {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* ── Number Counter Pop ───────────────────────────────────── */
@keyframes countPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.stat-number.pop { animation: countPop 0.3s ease; }
