/**
 * BARBIE CNC - 3.6 Aşama: Özel CNC Üretim Animasyonları, Hero Slider & Sabit Sosyal Medya (animations.css)
 * Saf SVG + CSS Donanım Hızlandırmalı Endüstriyel Animasyon Motoru
 */

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

/* Pembe Lazer Kılavuz & LED Durum Nabzı */
@keyframes pink-status-glow {
  0%, 100% { opacity: 0.65; filter: drop-shadow(0 0 4px #E94B91); }
  50% { opacity: 1; filter: drop-shadow(0 0 14px #FF3D9A); }
}

/* Sağdan Sola ve Soldan Sağa Estetik Kayan CNC Ekipmanları (Hero Gliding Elements) */
@keyframes glide-left-right {
  0% {
    transform: translateX(-18px) translateY(0px);
    opacity: 0.78;
  }
  50% {
    transform: translateX(26px) translateY(-6px);
    opacity: 1;
  }
  100% {
    transform: translateX(-18px) translateY(0px);
    opacity: 0.78;
  }
}

@keyframes glide-right-left {
  0% {
    transform: translateX(18px) translateY(0px);
    opacity: 0.78;
  }
  50% {
    transform: translateX(-26px) translateY(6px);
    opacity: 1;
  }
  100% {
    transform: translateX(18px) translateY(0px);
    opacity: 0.78;
  }
}

/* Kesintisiz CNC Teknoloji Bandı (Marquee Ticker) */
@keyframes cnc-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* WhatsApp & Instagram Floating Buton Nabız Etkisi */
@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 8px 24px rgba(0, 0, 0, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 8px 24px rgba(0, 0, 0, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 8px 24px rgba(0, 0, 0, 0.45); }
}

@keyframes instagram-pulse {
  0% { box-shadow: 0 0 0 0 rgba(233, 75, 145, 0.65), 0 8px 24px rgba(0, 0, 0, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(233, 75, 145, 0), 0 8px 24px rgba(0, 0, 0, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(233, 75, 145, 0), 0 8px 24px rgba(0, 0, 0, 0.45); }
}

@keyframes directions-pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6), 0 8px 24px rgba(0, 0, 0, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(59, 130, 246, 0), 0 8px 24px rgba(0, 0, 0, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0), 0 8px 24px rgba(0, 0, 0, 0.45); }
}

/* ====================================================
   2. CNC ANİMASYON SAHNESİ (TORNA & FREZE)
==================================================== */

.cnc-interactive-stage {
  position: relative;
  background: radial-gradient(circle at 60% 40%, #24172B 0%, #12131C 100%);
  border: 1.5px solid rgba(233, 75, 145, 0.45);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65), 0 0 28px rgba(233, 75, 145, 0.18);
  width: 100%;
}

.cnc-interactive-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(rgba(233, 75, 145, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 75, 145, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
}

.cnc-stage-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 22px;
  background: rgba(16, 17, 24, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(233, 75, 145, 0.3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.cnc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FF7EB6;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.cnc-status-dot {
  width: 9px;
  height: 9px;
  background-color: #FF3D9A;
  border-radius: 50%;
  animation: pink-status-glow 2s infinite ease-in-out;
}

.cnc-dro-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-secondary);
}

.cnc-dro-item span {
  color: var(--text-dim);
  margin-right: 4px;
}

.cnc-dro-item strong {
  color: #FCE8F1;
  font-weight: 700;
}

.cnc-animation-svg {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
}

/* ====================================================
   3. HERO SLIDER & HAREKETLİ CNC ALANI
==================================================== */

.hero-cnc-slider-card {
  position: relative;
  background: linear-gradient(145deg, #1B1626 0%, #12131C 60%, #241426 100%);
  border: 1.5px solid rgba(233, 75, 145, 0.5);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 36px rgba(233, 75, 145, 0.25);
  overflow: hidden;
}

.hero-slider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(233, 75, 145, 0.28);
}

.hero-slider-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #FCE8F1;
}

.hero-slider-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hero-slider-tab {
  background: rgba(233, 75, 145, 0.12);
  border: 1px solid rgba(233, 75, 145, 0.3);
  color: #CBD0DB;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-slider-tab:hover,
.hero-slider-tab.active {
  background: linear-gradient(135deg, #FF4D9E 0%, #E94B91 100%);
  border-color: #FCE8F1;
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(233, 75, 145, 0.45);
}

/* Sağdan ve Soldan Kayan CNC Anahtar & Dişli Rozetleri */
.hero-gliding-stream {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 4px 8px;
  pointer-events: none;
}

.glide-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(20, 21, 31, 0.9);
  border: 1px solid rgba(233, 75, 145, 0.45);
  box-shadow: 0 6px 18px rgba(233, 75, 145, 0.22);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #FCE8F1;
}

.glide-left-to-right {
  animation: glide-left-right 5s ease-in-out infinite;
}

.glide-right-to-left {
  animation: glide-right-left 5.5s ease-in-out infinite;
}

.hero-cnc-slide {
  display: none;
  animation: fadeInSlide 400ms ease-out;
}

.hero-cnc-slide.active {
  display: block;
}

@keyframes fadeInSlide {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.hero-slide-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  background: rgba(12, 13, 20, 0.65);
  border: 1px solid rgba(233, 75, 145, 0.2);
}

.hero-slider-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(233, 75, 145, 0.25);
}

.hero-telemetry-item {
  background: rgba(233, 75, 145, 0.1);
  border: 1px solid rgba(233, 75, 145, 0.28);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}

.telemetry-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #FF7EB6;
  margin-bottom: 2px;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

/* Sağdan Sola Akan CNC Teknoloji Bandı (Marquee Strip) */
.cnc-marquee-strip {
  position: relative;
  background: linear-gradient(90deg, #171120 0%, #26142A 50%, #171120 100%);
  border-top: 1px solid rgba(233, 75, 145, 0.4);
  border-bottom: 1px solid rgba(233, 75, 145, 0.4);
  padding: 16px 0;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.cnc-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 36px;
  animation: cnc-marquee-scroll 32s linear infinite;
}

.cnc-marquee-strip:hover .cnc-marquee-track {
  animation-play-state: paused;
}

.cnc-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #FCE8F1;
  white-space: nowrap;
  padding: 6px 16px;
  background: rgba(233, 75, 145, 0.14);
  border: 1px solid rgba(233, 75, 145, 0.35);
  border-radius: var(--radius-full);
}

.cnc-marquee-item svg {
  color: #FF4D9E;
  flex-shrink: 0;
}

/* ====================================================
   4. SAĞ ALT SABİT INSTAGRAM + WHATSAPP BUTON YIĞINI
==================================================== */

.floating-social-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.float-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.directions-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 55%, #1D4ED8 100%);
  border: 2px solid #DBEAFE;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
  animation: directions-pulse 3.2s infinite;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
}

.directions-float-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.75);
  color: #FFFFFF;
}

.instagram-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF3D9A 0%, #E94B91 50%, #9E1F56 100%);
  border: 2px solid #FCE8F1;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(233, 75, 145, 0.5);
  animation: instagram-pulse 3s infinite;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
}

.instagram-float-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 61, 154, 0.7);
  color: #FFFFFF;
}

.whatsapp-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  animation: whatsapp-pulse 2.8s infinite;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
  color: #FFFFFF;
}

.whatsapp-float-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 20px;
  height: 20px;
  background-color: #FF3D9A;
  border: 2px solid #101116;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #FFFFFF;
}

.float-action-tooltip {
  background: rgba(20, 21, 31, 0.96);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(233, 75, 145, 0.55);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all var(--transition-fast);
}

.float-action-row:hover .float-action-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ====================================================
   5. ETKİLEŞİM & PEMBE MİKRO ANİMASYON GELİŞTİRMELERİ
==================================================== */

.btn-primary {
  background: linear-gradient(135deg, #FF4D9E 0%, #E94B91 55%, #B92E69 100%);
  border-color: rgba(252, 232, 241, 0.5);
  box-shadow: 0 6px 20px rgba(233, 75, 145, 0.35);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.28) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 600ms ease;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(233, 75, 145, 0.55);
}

.btn-outline-accent {
  border-color: #E94B91;
  color: #FCE8F1;
  background: rgba(233, 75, 145, 0.14);
}

.btn-outline-accent:hover {
  background: linear-gradient(135deg, #FF4D9E 0%, #E94B91 100%);
  color: #FFFFFF;
  border-color: #FCE8F1;
  box-shadow: 0 8px 24px rgba(233, 75, 145, 0.45);
}

/* Hizmet ve Proje Kartları Görsel Zoom & Pembe Border Glow */
.service-card,
.project-card,
.blog-card {
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover,
.project-card:hover,
.blog-card:hover {
  transform: translateY(-5px);
  border-color: #FF4D9E;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(233, 75, 145, 0.3);
}

.service-card-thumb img,
.project-thumb img,
.blog-thumb img {
  transition: transform var(--transition-smooth);
}

.service-card:hover .service-card-thumb img,
.project-card:hover .project-thumb img,
.blog-card:hover .blog-thumb img {
  transform: scale(1.05);
}

/* ====================================================
   6. MOBİL & ERİŞİLEBİLİRLİK
==================================================== */

@media (max-width: 768px) {
  .floating-social-stack {
    bottom: 18px;
    right: 18px;
    gap: 10px;
  }
  .directions-float-btn {
    width: 46px;
    height: 46px;
  }
  .instagram-float-btn {
    width: 48px;
    height: 48px;
  }
  .whatsapp-float-btn {
    width: 52px;
    height: 52px;
  }
  .float-action-tooltip {
    display: none;
  }
  .hero-gliding-stream {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-slider-bottom {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glide-left-to-right,
  .glide-right-to-left,
  .cnc-marquee-track,
  .directions-float-btn,
  .instagram-float-btn,
  .whatsapp-float-btn {
    animation: none !important;
  }
}
