﻿/* ======================================================
   KiteFlyPro – Animations
   ====================================================== */

/* ─── Keyframes ──────────────────────────────────────── */
@keyframes floatKite {

    0%,
    100% {
        transform: translateY(0px) rotate(-3deg);
    }

    50% {
        transform: translateY(-18px) rotate(3deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes loaderBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes windFlow {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kiteTail {

    0%,
    100% {
        d: path('M 100 200 Q 120 220 100 240');
    }

    50% {
        d: path('M 100 200 Q 80 220 100 240');
    }
}

@keyframes windLine {
    0% {
        opacity: 0;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* ─── AOS-style Scroll Animations ───────────────────── */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="left"] {
    transform: translateX(-30px);
}

[data-animate="left"].animated {
    transform: translateX(0);
}

[data-animate="right"] {
    transform: translateX(30px);
}

[data-animate="right"].animated {
    transform: translateX(0);
}

[data-animate="scale"] {
    transform: scale(0.85);
}

[data-animate="scale"].animated {
    transform: scale(1);
}

[data-delay="100"] {
    transition-delay: 0.1s;
}

[data-delay="200"] {
    transition-delay: 0.2s;
}

[data-delay="300"] {
    transition-delay: 0.3s;
}

[data-delay="400"] {
    transition-delay: 0.4s;
}

[data-delay="500"] {
    transition-delay: 0.5s;
}

[data-delay="600"] {
    transition-delay: 0.6s;
}

/* ─── Wind Lines (Hero Decoration) ──────────────────── */
.wind-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.wind-line {
    position: absolute;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: windFlow 3s ease-in-out infinite;
}

.wind-line:nth-child(1) {
    top: 20%;
    width: 200px;
    animation-delay: 0s;
}

.wind-line:nth-child(2) {
    top: 35%;
    width: 150px;
    animation-delay: 0.5s;
}

.wind-line:nth-child(3) {
    top: 50%;
    width: 250px;
    animation-delay: 1s;
}

.wind-line:nth-child(4) {
    top: 65%;
    width: 120px;
    animation-delay: 1.5s;
}

.wind-line:nth-child(5) {
    top: 80%;
    width: 180px;
    animation-delay: 0.8s;
}

/* ─── Hover Glow ─────────────────────────────────────── */
.glow-on-hover {
    transition: var(--transition);
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(249, 168, 38, 0.4), 0 8px 32px rgba(11, 47, 158, 0.15);
}

/* ─── Kite SVG Animations ────────────────────────────── */
.kite-float {
    animation: floatKite 4s ease-in-out infinite;
}

.kite-float-slow {
    animation: floatKite 6s ease-in-out infinite;
}

.kite-float-fast {
    animation: floatKite 2.5s ease-in-out infinite;
}

/* ─── Number Counter ─────────────────────────────────── */
.counter-value {
    animation: countUp 0.8s ease forwards;
}

/* ─── Skeleton Loader ────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--gray-light) 25%, #f0f0f0 50%, var(--gray-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* ─── Pulse Dot ──────────────────────────────────────── */
.pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
}

/* ─── Transition Classes ─────────────────────────────── */
.transition-all {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* ─── Spinning Loader ────────────────────────────────── */
.spinner-kite {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(11, 47, 158, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}