/* Enhanced effects CSS */

/* Typing cursor animasyonu */
.typing-cursor {
  animation: blink 1s infinite;
  color: var(--accent);
  font-weight: normal;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Scroll animasyonları */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.tech-item:nth-child(1).animate-in { transition-delay: 0.1s; }
.tech-item:nth-child(2).animate-in { transition-delay: 0.2s; }
.tech-item:nth-child(3).animate-in { transition-delay: 0.3s; }
.tech-item:nth-child(4).animate-in { transition-delay: 0.4s; }
.tech-item:nth-child(5).animate-in { transition-delay: 0.5s; }

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

/* Parallax container */
.parallax-container {
  transform-style: preserve-3d;
}

/* Enhanced hover effects */
.tech-item {
  position: relative;
  overflow: visible; /* Hover efektinin görünmesi için */
  padding: 1rem; /* Hover alanını genişlet */
  margin: 0.5rem; /* Elementler arası boşluk */
  border-radius: 12px; /* Yumuşak köşeler */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  z-index: -1;
  border-radius: 50%;
}

.tech-item:hover::before {
  width: 120px;
  height: 120px;
  opacity: 0.1;
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* Glowing effect */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Loading animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Pulse effect for important elements */
.pulse-effect {
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  from {
    box-shadow: 0 0 5px var(--primary);
  }
  to {
    box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary);
  }
}

/* Text reveal animation */
.text-reveal {
  position: relative;
  overflow: hidden;
}

.text-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light);
  transform: translateX(-100%);
  animation: reveal 1.5s ease-in-out forwards;
  animation-delay: 0.5s;
}

@keyframes reveal {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* Floating animation for social links */
.social-link {
  animation: socialFloat 3s ease-in-out infinite;
}

.social-link:nth-child(1) { animation-delay: 0s; }
.social-link:nth-child(2) { animation-delay: 0.5s; }

@keyframes socialFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

/* Gradient text animation */
.gradient-text {
  background: linear-gradient(-45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

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

/* Performance optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}
