/* =============================================
   SKB TECH - Airplanes (one tows the SKBTECH banner)
   Markup: views/partials/skb-plane.php. Used by the homepage hero
   (inside .sk3-sky) and the login / register brand panel (inside .sk-auth-sky).
   ============================================= */
.sk3-plane { position: absolute; left: 0; top: 2%; width: 110px; will-change: transform; animation: skp-fly 18s linear infinite; }
.sk3-plane svg { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); animation: skp-bob 3s ease-in-out infinite; }
/* Towed SKBTECH banner: rope from the tail, flag waving behind the plane */
.sk3-banner {
    position: absolute; right: 92%; top: 30%; display: flex; align-items: center;
    transform-origin: 100% 50%; animation: skp-tow 3s ease-in-out infinite;
}
.sk3-rope { display: block; width: 46px; height: 1.5px; background: rgba(226,232,240,.85); transform: rotate(-4deg); }
.sk3-flag {
    position: relative; display: block; padding: .32rem .9rem .32rem 1.1rem;
    font: 800 .95rem/1 'Plus Jakarta Sans', 'Inter', Arial, sans-serif; letter-spacing: .14em; white-space: nowrap;
    color: #071433; background: linear-gradient(180deg, #ffe08a, #fbbf24 55%, #f59e0b);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8% 50%);
    box-shadow: 0 6px 14px -6px rgba(0,0,0,.5);
    transform-origin: 100% 50%; animation: skp-wave 1.4s ease-in-out infinite;
}
.sk3-flag::after { /* ripple shading travelling along the cloth */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.45) 15%, rgba(0,0,0,.12) 30%, rgba(255,255,255,0) 45%);
    background-size: 200% 100%; animation: skp-ripple 1.4s linear infinite;
}
/* Fleet: plain planes with vapour trails at different heights, sizes and speeds */
.sk3-trail {
    position: absolute; right: 88%; top: 44%; width: 220px; height: 2.5px; border-radius: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5)); filter: blur(1px);
}
.sk3-plane-r svg { transform: scaleX(-1); }
.sk3-plane-r .sk3-trail { right: auto; left: 88%; background: linear-gradient(270deg, transparent, rgba(255,255,255,.5)); }
.sk3-plane-2 { top: 14%; width: 70px; opacity: .8; animation-name: skp-fly-back; animation-duration: 22s; animation-delay: -6s; }
.sk3-plane-3 { top: 26%; width: 52px; opacity: .6; animation-duration: 27s; animation-delay: -15s; }
.sk3-plane-4 { top: -2%; width: 40px; opacity: .45; animation-name: skp-fly-back; animation-duration: 34s; animation-delay: -24s; }
.sk3-plane-3 .sk3-trail, .sk3-plane-4 .sk3-trail { width: 140px; }
.sk3-plane .skp-red { animation: skp-blink 1.2s steps(2, jump-none) infinite; }
.sk3-plane .skp-strobe { animation: skp-strobe 1.6s linear infinite; }
@keyframes skp-fly {
    0%   { transform: translate(-25vw, 40px) rotate(-4deg); }
    1%   { transform: translate(-24vw, 40px) rotate(-4deg); }
    70%  { transform: translate(140vw, -10px) rotate(-2deg); }
    100% { transform: translate(140vw, -10px) rotate(-2deg); }
}
@keyframes skp-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes skp-fly-back {
    0%   { transform: translate(115vw, 10px) rotate(3deg); }
    100% { transform: translate(-30vw, 40px) rotate(3deg); }
}
@keyframes skp-tow { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(3px); } }
@keyframes skp-wave { 0%, 100% { transform: perspective(200px) rotateY(0deg) skewY(0deg); } 25% { transform: perspective(200px) rotateY(-10deg) skewY(-2deg); } 75% { transform: perspective(200px) rotateY(8deg) skewY(2deg); } }
@keyframes skp-ripple { from { background-position: 200% 0; } to { background-position: -100% 0; } }
@keyframes skp-strobe { 0%, 8% { opacity: 1; } 9%, 100% { opacity: 0; } }
@keyframes skp-blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* Login / register brand panel: one banner plane across the top (.sk-auth-sky) */
.sk-auth-sky { position: absolute; left: 0; right: 0; top: 0; height: 220px; z-index: 1; pointer-events: none; overflow: hidden; }
.sk-auth-sky .sk3-plane-1 { top: 70px; width: 96px; animation-duration: 14s; }

@media (max-width: 991px) {
    .sk3-flag { font-size: .78rem; padding: .28rem .7rem .28rem .9rem; }
    .sk3-rope { width: 32px; }
    .sk-auth-sky { height: 150px; }
    .sk-auth-sky .sk3-plane-1 { top: 58px; width: 72px; animation-duration: 11s; }
}
@media (prefers-reduced-motion: reduce) {
    .sk3-plane, .sk3-plane * { animation: none !important; }
    .sk3-plane { display: none; }
}
