/* Özel animasyon stilleri */
.animated-element {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animated-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form alanları için gelişmiş odaklanma efektleri */
input:focus, .file-upload:focus-within {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(147, 112, 219, 0.3);
}

/* Gelişmiş loading animasyonu */
.loading-spinner i {
  animation: spin 1s infinite linear;
}

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

/* Pulse efekti için gelişmiş animasyon */
.pulse-element {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(106, 13, 173, 0.4);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(106, 13, 173, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(106, 13, 173, 0);
  }
}

/* Gelişmiş form doğrulama stilleri */
.form-group.success input {
  border-color: #4CAF50;
}

.form-group.error input {
  border-color: #F44336;
}

.validation-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.form-group.success .validation-icon {
  color: #4CAF50;
}

.form-group.error .validation-icon {
  color: #F44336;
}

/* Gelişmiş scroll-to-top butonu */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3);
  z-index: 99;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(106, 13, 173, 0.4);
}

/* Gelişmiş form gönderim başarı animasyonu */
@keyframes successPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

.success-animation {
  animation: successPulse 2s infinite;
}

/* Gelişmiş sayfa geçişleri */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.page-transition.active {
  transform: translateY(0);
}

.page-transition.exit {
  transform: translateY(-100%);
}

/* Gelişmiş sayfa yükleme göstergesi */
.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 9999;
  transition: width 0.3s ease;
}

/* Başarı mesajı stilleri */
.success-message {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(106, 13, 173, 0.15);
  text-align: center;
  margin: 2rem auto;
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.success-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.success-icon {
  margin-bottom: 1.5rem;
}

.success-icon i {
  font-size: 4rem;
  color: #6A0DAD;
  animation: scaleIn 0.5s ease;
}

.success-title {
  color: #6A0DAD;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.success-text {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

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