/* Makar Sankranti Kite Animation - Traditional SVG Style */
#kite-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    /* Behind Clouds (6+), Above Sky */
    pointer-events: none;
    overflow: hidden;
}

.kite-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
    /* Use CSS variables for animation control */
    animation-name: flyDiagonal;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: var(--duration, 20s);
    animation-delay: var(--delay, 0s);
    opacity: 0;
    width: 150px;
    /* Base size for the kite wrapper */
    height: 400px;
    /* Accommodate long tail */
    pointer-events: none;
    /* Disable click on full wrapper (tail area) */
}

/* Only the diamond body is interactable */
.kite-clickable-body {
    pointer-events: auto;
    cursor: grab;
    transition: transform 0.1s;
}

.kite-clickable-body:active {
    cursor: grabbing;
    transform: scale(1.05);
    /* Feedback */
}

/* Scaler handles size and sway, independent of path */
.kite-scaler {
    width: 100%;
    height: 100%;
    transform-origin: center 50px;
    /* Pivot near the kite body center */
    animation: sway 4s ease-in-out infinite alternate;
}

.kite-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Keyframes for diagonal flight with Perspective Scale */
@keyframes flyDiagonal {
    0% {
        transform: translate3d(var(--start-x), 110vh, 0) rotate(0deg) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: var(--opacity, 0.9);
    }

    90% {
        opacity: var(--opacity, 0.9);
    }

    100% {
        transform: translate3d(var(--end-x), -40vh, 0) rotate(10deg) scale(1.1);
        opacity: 0;
    }
}

@keyframes sway {
    0% {
        transform: rotate(-8deg) scale(var(--scale, 0.8));
    }

    100% {
        transform: rotate(8deg) scale(var(--scale, 0.8));
    }
}

/* Ensure login container is readable */
.loginContainer {
    position: relative;
    z-index: 10;
}