/* ===================================
   EMR BİLİŞİM - CUSTOM ANIMATIONS
   =================================== */

/* Enhanced Button Hover Effects */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 89, 232, 0.25);
}

.btn-text-one,
.btn-text-two {
  display: block;
  transition: all 0.3s ease-in-out;
}

.btn:hover .btn-text-one {
  transform: translateY(-100%);
  opacity: 0;
}

.btn:hover .btn-text-two {
  transform: translateY(0);
}

/* Service Card Animations */
.service_card_hover {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  transform: translateY(0);
  border-radius: 15px;
}

.service_card_hover:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 45px rgba(0, 89, 232, 0.15);
}

.service_card_hover img {
  transition: transform 0.4s ease-in-out;
}

.service_card_hover:hover img {
  transform: scale(1.1) rotate(2deg);
}

/* Process Icon Animation */
.process_icon_bg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 89, 232, 0.1) 0%, rgba(0, 89, 232, 0.05) 100%);
  transition: all 0.4s ease-in-out;
  position: relative;
}

.process_icon_bg:hover {
  transform: scale(1.15) rotate(10deg);
  background: linear-gradient(135deg, rgba(0, 89, 232, 0.2) 0%, rgba(0, 89, 232, 0.1) 100%);
}

.process_icon_num {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgb(0, 89, 232) 0%, rgb(188, 113, 65) 100%);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  bottom: -5px;
  right: -5px;
  box-shadow: 0 5px 15px rgba(0, 89, 232, 0.3);
}

/* Header Fixed Animation */
.header-fixed {
  animation: slideDown 0.4s ease-in-out !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Parallax & Scroll Effects */
.parallax {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* Text Animation */
.text-animate {
  animation: textPopUp 0.6s ease-out;
}

@keyframes textPopUp {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Number Counter Animation */
.number-counter {
  font-weight: 700;
  font-size: 2.5rem;
  color: rgb(0, 89, 232);
  animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Up Animation */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered Animation */
.stagger-item {
  animation: fadeInUp 0.8s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* Hover Lift Effect */
.hover-lift {
  transition: all 0.3s ease-in-out;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 89, 232, 0.2);
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Link Underline Animation */
a.link-animate {
  position: relative;
  text-decoration: none;
}

a.link-animate::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(to right, rgb(0, 89, 232), rgb(255, 153, 88));
  transition: width 0.3s ease-in-out;
}

a.link-animate:hover::after {
  width: 100%;
}

/* Swiper Slide Animation */
.swiper-slide {
  opacity: 0.5;
  transition: opacity 0.3s ease-in-out;
}

.swiper-slide-active {
  opacity: 1;
}

/* Mobile Menu Animation */
.navbar-toggler {
  transition: all 0.3s ease-in-out;
}

.navbar-toggler.open {
  transform: rotate(45deg);
}

.navbar-collapse {
  animation: slideDown 0.3s ease-in-out;
}

/* Loading Skeleton Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton-loading {
  animation: shimmer 2s infinite;
  background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
  background-size: 1000px 100%;
}

/* Tooltip Animation */
.tooltip.show {
  animation: fadeInUp 0.3s ease-in-out;
}

/* Form Input Focus Animation */
.form-control,
.form-select {
  transition: all 0.3s ease-in-out;
  border-color: rgba(0, 89, 232, 0.2);
}

.form-control:focus,
.form-select:focus {
  border-color: rgb(0, 89, 232);
  box-shadow: 0 0 0 0.2rem rgba(0, 89, 232, 0.25);
  transform: scale(1.01);
}

/* Badge Animation */
.badge {
  animation: pulse 2s ease-in-out infinite;
}

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

/* Smooth Transition for All */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark Mode Transitions */
body.dark {
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Gradient Text Animation */
.gradient-text {
  background: linear-gradient(135deg, rgb(0, 89, 232), rgb(255, 153, 88));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Image Lazy Load Animation */
img[loading="lazy"] {
  transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .btn,
  .header-section,
  .footer_section,
  .navbar-toggler {
    display: none;
  }
}
