/* ============================================
   e-ŞEHIR SUNUM2 - ANIMATIONS
   Hover Effects + Scroll Animations + Transitions
   ============================================ */

/* ============================================
   HOVER EFFECTS - Hover Animasyonları
   ============================================ */

/* Float Effect */
.hover-float {
    transition: transform var(--transition-normal);
}

.hover-float:hover {
    transform: translateY(-10px);
}

/* Scale Effect */
.hover-scale {
    transition: transform var(--transition-normal);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Rotate Effect */
.hover-rotate {
    transition: transform var(--transition-normal);
}

.hover-rotate:hover {
    transform: rotate(5deg) scale(1.05);
}

/* Glow Effect */
.hover-glow {
    transition: all var(--transition-normal);
    position: relative;
}

.hover-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: all var(--transition-slow);
    pointer-events: none;
    z-index: -1;
}

.hover-glow:hover::after {
    width: 200%;
    height: 200%;
    opacity: 0.3;
}

/* Pulse Effect */
.hover-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.hover-pulse:hover {
    animation: pulse-fast 0.5s infinite;
}

@keyframes pulse-fast {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Shine Effect */
.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left var(--transition-slow);
}

.hover-shine:hover::before {
    left: 100%;
}

/* Tilt Effect */
.hover-tilt {
    transition: transform var(--transition-normal);
}

.hover-tilt:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Shadow Lift */
.hover-shadow-lift {
    transition: all var(--transition-normal);
}

.hover-shadow-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Border Grow */
.hover-border-grow {
    position: relative;
}

.hover-border-grow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--primary-color);
    border-radius: inherit;
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--transition-normal);
    pointer-events: none;
}

.hover-border-grow:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Gradient Shift */
.hover-gradient-shift {
    background-size: 200% 200%;
    background-position: 0% 50%;
    transition: background-position var(--transition-slow);
}

.hover-gradient-shift:hover {
    background-position: 100% 50%;
}

/* ============================================
   ENTRANCE ANIMATIONS - Giriş Animasyonları
   ============================================ */

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Fade In Down */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}

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

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

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

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

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

.animate-scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Rotate In */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

.animate-rotate-in {
    animation: rotateIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Slide In Up */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.animate-slide-in-up {
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   STAGGERED ANIMATIONS - Kademeli Animasyonlar
   ============================================ */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.7s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.8s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.9s; }
.stagger-children > *:nth-child(10) { animation-delay: 1s; }

/* ============================================
   LOADING ANIMATIONS - Yükleme Animasyonları
   ============================================ */

/* Spinner Variants */
.spinner-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.spinner-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: bounce 1.4s infinite ease-in-out both;
}

.spinner-dots span:nth-child(1) { animation-delay: -0.32s; }
.spinner-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Wave */
.loading-wave {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.loading-wave span {
    width: 6px;
    height: 30px;
    background: var(--gradient);
    border-radius: 3px;
    animation: wave 1.2s infinite ease-in-out;
}

.loading-wave span:nth-child(1) { animation-delay: 0s; }
.loading-wave span:nth-child(2) { animation-delay: 0.1s; }
.loading-wave span:nth-child(3) { animation-delay: 0.2s; }
.loading-wave span:nth-child(4) { animation-delay: 0.3s; }
.loading-wave span:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 40%, 100% {
        transform: scaleY(0.4);
    }
    20% {
        transform: scaleY(1);
    }
}

/* ============================================
   BACKGROUND ANIMATIONS - Arkaplan Animasyonları
   ============================================ */

/* Gradient Animation */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradientFlow 15s ease infinite;
}

/* Floating Particles */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(-10px) translateX(-10px);
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 6s infinite;
    pointer-events: none;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 1s; }
.particle:nth-child(3) { left: 50%; animation-delay: 2s; }
.particle:nth-child(4) { left: 70%; animation-delay: 3s; }
.particle:nth-child(5) { left: 90%; animation-delay: 4s; }

/* ============================================
   TEXT ANIMATIONS - Metin Animasyonları
   ============================================ */

/* Typewriter */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    animation: typewriter 4s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-color);
    }
}

/* Text Reveal */
@keyframes textReveal {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.text-reveal {
    animation: textReveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Glitch Effect */
@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

.text-glitch {
    position: relative;
}

.text-glitch:hover {
    animation: glitch 0.3s infinite;
}

/* ============================================
   UTILITY CLASSES - Yardımcı Sınıflar
   ============================================ */

/* Animation Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Animation Durations */
.duration-fast { animation-duration: 0.3s; }
.duration-normal { animation-duration: 0.6s; }
.duration-slow { animation-duration: 1s; }
.duration-slower { animation-duration: 2s; }

/* Transition Utilities */
.transition-all { transition: all var(--transition-normal); }
.transition-transform { transition: transform var(--transition-normal); }
.transition-opacity { transition: opacity var(--transition-normal); }
.transition-colors { transition: background-color var(--transition-normal), color var(--transition-normal); }

/* GPU Acceleration */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}
