/* ─── Kapadokya Danışman - Animasyonlar ─── */

/* ─── GSAP ScrollTrigger Sınıfları ─── */
.gs-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gs-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Fade Animasyonları ─── */
@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(-20px);
    }

    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);
    }
}

/* ─── Pulse Animasyonu (WhatsApp) ─── */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-btn {
    animation: pulse 2s infinite;
}

/* ─── Altın Çizgi Büyümesi ─── */
.gold-line {
    position: relative;
}

.gold-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.4s ease;
}

.gold-line:hover::after {
    width: 100%;
}

/* ─── Buton Hover Slide Efekti ─── */
.btn-slide {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold-light);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-slide:hover::before {
    left: 0;
}

/* ─── Kart Hover Efektleri ─── */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ─── Overlay Transition ─── */
.overlay-transition {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ─── Clip Path Reveal ─── */
.clip-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.clip-reveal.revealed {
    clip-path: inset(0 0 0 0);
}

/* ─── Stagger Children ─── */
.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-children.revealed>*:nth-child(1) {
    animation: fadeInUp 0.5s ease 0.0s forwards;
}

.stagger-children.revealed>*:nth-child(2) {
    animation: fadeInUp 0.5s ease 0.1s forwards;
}

.stagger-children.revealed>*:nth-child(3) {
    animation: fadeInUp 0.5s ease 0.2s forwards;
}

.stagger-children.revealed>*:nth-child(4) {
    animation: fadeInUp 0.5s ease 0.3s forwards;
}

.stagger-children.revealed>*:nth-child(5) {
    animation: fadeInUp 0.5s ease 0.4s forwards;
}

.stagger-children.revealed>*:nth-child(6) {
    animation: fadeInUp 0.5s ease 0.5s forwards;
}

/* ─── Slider Geçişleri ─── */
.slide-enter {
    opacity: 0;
    transform: translateX(20px);
}

.slide-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s ease;
}

.slide-leave {
    opacity: 1;
    transform: translateX(0);
}

.slide-leave-active {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

/* ─── Hamburger Animasyonu ─── */
.hamburger span {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ─── Skeleton Loading ─── */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ─── Smooth Scroll Anchor Offset ─── */
[id] {
    scroll-margin-top: 80px;
}

/* ─── Prefers Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .gs-reveal {
        opacity: 1;
        transform: none;
    }

    .whatsapp-btn {
        animation: none;
    }
}