/* Modern Animations - Zarif ve performanslı animasyonlar */

/* === FADE ANIMASYONLARI === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === SCALE ANIMASYONLARI === */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === ANIMASYON SINIFLARI === */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* Gecikmeli animasyonlar */
.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; }

/* === SCROLL ANIMASYONLARI === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* === HOVER EFEKTLERİ === */

/* Kart hover efekti */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Resim zoom efekti */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.5s ease;
}

.hover-zoom:hover img {
    transform: scale(1.08);
}

/* Overlay fade efekti */
.hover-overlay {
    position: relative;
    overflow: hidden;
}

.hover-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.hover-overlay:hover::before {
    opacity: 1;
}

/* Buton hover efektleri */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

/* === SLIDER ANIMASYONLARI === */
.slider-content {
    animation: fadeInUp 1s ease-out;
}

.carousel-item {
    transition: transform 0.8s ease-in-out;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Hero slider için subtil zoom efekti - site.css yapısını bozmadan */
.home-hero .carousel-item picture img {
    transition: transform 8s ease-out;
    transform: scale(1);
}

.home-hero .carousel-item.active picture img {
    transform: scale(1.05);
}

/* === PARALLAX EFEKTİ === */
.parallax-section {
    transition: transform 0.1s ease-out;
}

/* Arka plan resmi olan bölümler için */
.has-background-image,
.has-background-image-split {
    position: relative;
    isolation: isolate;
}

.has-background-image::before,
.has-background-image-split::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, var(--bg-opacity, 0.5)),
            rgba(255, 255, 255, var(--bg-opacity, 0.5))
        ),
        var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Düz layout: Parallax efekti */
.has-background-image::before {
    background-attachment: fixed;
}

/* Split layout: Normal attachment (daha iyi performans) */
.has-background-image-split::before {
    background-attachment: scroll;
}

/* Mobilde parallax devre dışı (performans ve uyumluluk) */
@media (max-width: 768px) {
    .has-background-image::before {
        background-attachment: scroll;
    }
}

/* === YUMUŞAK GEÇİŞLER === */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

a, button, .btn {
    transition: all 0.3s ease;
}

img {
    transition: transform 0.5s ease, opacity 0.3s ease;
}

/* === KART GÖLGELERİ === */
.shadow-soft {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.shadow-soft:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* === GRADIENT ANIMASYONLARI === */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* === PULSE ANIMASYONU === */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* === RESPONSIVE AYARLAR === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile için hafifletilmiş animasyonlar */
@media (max-width: 768px) {
    .animate-on-scroll {
        transform: translateY(15px);
    }

    .hover-lift:hover {
        transform: translateY(-4px);
    }

    .hover-zoom:hover img {
        transform: scale(1.04);
    }
}

/* === LOADING ANIMASYONU === */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}
