/* ============================================
   SAMB KITE — Animations & Waves (Blue Premium)
   ============================================ */

/* ======== PAGE LOADER ======== */
.page-loader {
    position: fixed; inset: 0;
    background: var(--bg-dark);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.loaded {
    opacity: 0; visibility: hidden; pointer-events: none;
}
.loader-inner {
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.loader-inner .loader-text {
    color: rgba(255,255,255,0.7); font-weight: 600; font-size: 0.8rem;
    letter-spacing: 0.15em; text-transform: uppercase;
}
.loader-waves {
    width: 220px; height: 80px; overflow: hidden;
}

/* ======== WAVE SVG ANIMATION ======== */
.waves-svg { width: 100%; height: 100%; }

.wave-parallax > use {
    animation: waveMove 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.wave-parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.wave-parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.wave-parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.wave-parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }

@keyframes waveMove {
    0%   { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

/* ======== WAVE SECTION DIVIDER ======== */
.wave-divider {
    position: absolute; bottom: -2px; left: 0; width: 100%;
    overflow: hidden; line-height: 0; z-index: 5;
}
.wave-divider svg {
    position: relative; display: block;
    width: calc(100% + 1.3px); height: 70px;
}
.wave-divider .shape-fill { fill: var(--bg-body); }

/* ======== SCROLL REVEAL ======== */
.reveal {
    opacity: 0; transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0; transform: translateX(-35px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0; transform: translateX(35px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ======== HERO ENTRANCE ======== */
.hero-content .hero-badge { animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0s both; }
.hero-content h1    { animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.15s both; }
.hero-content .label { animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
.hero-content .subtitle { animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.3s both; }
.hero-btns           { animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.45s both; }
.hero-trust          { animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.6s both; }

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ======== LIGHTBOX ======== */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(10, 37, 64, 0.92);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.35s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: 90%; max-height: 85vh; border-radius: var(--radius-md);
    transform: scale(0.92); transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
    position: absolute; top: 24px; right: 32px; color: white;
    font-size: 2.5rem; cursor: pointer; transition: color 0.3s; line-height: 1;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,0.08);
}
.lightbox-close:hover { color: var(--accent); background: rgba(255,255,255,0.15); }

/* ======== HERO BOTTOM WAVE (full width) ======== */
.hero-wave {
    position: absolute; bottom: 0; left: 0; width: 100%;
    z-index: 3; line-height: 0;
}
.hero-wave .waves-svg {
    width: 100%; height: 80px;
}
