/* =========================================================
   Sri Lanka Kite Trips – modern animation layer
   Load AFTER style.css. Pure add-on: remove this file and the
   site looks exactly as before.
   ========================================================= */

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
::selection { background: #ffcc00; color: #111; }

/* ---------- keyframes ---------- */
@keyframes slk-up    { from { opacity: 0; transform: translateY(40px); }  to { opacity: 1; transform: none; } }
@keyframes slk-left  { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes slk-right { from { opacity: 0; transform: translateX(60px); }  to { opacity: 1; transform: none; } }
@keyframes slk-zoom  { from { opacity: 0; transform: scale(.92); }        to { opacity: 1; transform: none; } }
@keyframes slk-kenburns {
    from { transform: translate(-50%, -50%) scale(1); }
    to   { transform: translate(-50%, -50%) scale(1.14); }
}
@keyframes slk-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
    70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes slk-bounce {
    0%, 100% { transform: translateY(0); opacity: .9; }
    50%      { transform: translateY(9px); opacity: .5; }
}
@keyframes slk-wheel {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ---------- hero entrance ---------- */
.hero-video { animation: slk-kenburns 24s ease-in-out infinite alternate; will-change: transform; }
.hero-location-badge { animation: slk-up .8s cubic-bezier(.2,.7,.2,1) .15s both; }
.hero h1             { animation: slk-up .9s cubic-bezier(.2,.7,.2,1) .35s both; }
.hero > p            { animation: slk-up .9s cubic-bezier(.2,.7,.2,1) .55s both; }
.hero-buttons        { animation: slk-up .9s cubic-bezier(.2,.7,.2,1) .75s both; }
.hero-stats-container{ animation: slk-zoom 1s cubic-bezier(.2,.7,.2,1) 1s both; }

/* glass stats */
.hero-stats-container {
    background: rgba(10, 10, 10, .45);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.stat-box .stat-number { letter-spacing: .5px; font-variant-numeric: tabular-nums; }

/* scroll cue (added by JS) */
.slk-scroll-cue {
    position: absolute; left: 50%; bottom: 14px; z-index: 4;
    width: 26px; height: 42px; margin-left: -13px;
    border: 2px solid rgba(255, 255, 255, .8); border-radius: 16px;
    animation: slk-up .8s ease 1.6s both;
}
.slk-scroll-cue span {
    position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
    background: #ffcc00; border-radius: 4px; animation: slk-wheel 1.6s ease-in-out infinite;
}

/* ---------- navbar ---------- */
.navbar { transition: padding .3s ease, box-shadow .3s ease, background-color .3s ease; }
.navbar.scrolled {
    padding-top: 8px; padding-bottom: 8px;
    background-color: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
}
.main-nav a { position: relative; }
.main-nav > ul > li > a::after {
    content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px;
    background: #ffcc00; transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.main-nav > ul > li > a:hover::after { transform: scaleX(1); }

/* ---------- scroll progress + back to top ---------- */
#slk-progress {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 1100;
    background: linear-gradient(90deg, #ffcc00, #ff9800);
    transform: scaleX(0); transform-origin: left; pointer-events: none;
}
.slk-top {
    position: fixed; left: 20px; bottom: 20px; z-index: 999;
    width: 46px; height: 46px; border: none; border-radius: 50%;
    background: #111; color: #ffcc00; font-size: 16px; cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
    opacity: 0; transform: translateY(20px); pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, background .2s, color .2s;
}
.slk-top.show { opacity: 1; transform: none; pointer-events: auto; }
.slk-top:hover { background: #ffcc00; color: #111; }

/* ---------- scroll reveal (classes added by animations.js) ---------- */
.slk-anim .reveal { opacity: 0; }
.slk-anim .reveal.is-visible       { animation: slk-up    .85s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
.slk-anim .reveal-left.is-visible  { animation-name: slk-left; }
.slk-anim .reveal-right.is-visible { animation-name: slk-right; }
.slk-anim .reveal-zoom.is-visible  { animation-name: slk-zoom; }

/* section title accent */
.section-header-center .section-title::after {
    content: ""; display: block; width: 64px; height: 4px; margin: 14px auto 0;
    background: #ffcc00; border-radius: 4px;
}

/* ---------- hover polish ---------- */
.package-card, .pricing-card, .spot-card, .kite-season-card, .faq-item {
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.package-card:hover, .pricing-card:hover, .spot-card:hover, .kite-season-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, .13);
}
.pricing-card:hover { border-color: #ffcc00; }
.faq-item:hover { border-color: #ffcc00; box-shadow: 0 8px 22px rgba(0, 0, 0, .07); }

.card-img-wrap { overflow: hidden; }
.card-img-wrap img, .about-img-box img, .resort-slide-item img {
    transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.package-card:hover .card-img-wrap img,
.spot-card:hover .card-img-wrap img,
.resort-slide-item:hover img,
.about-img-box:hover img { transform: scale(1.08); }

.price-row, .room-plan { transition: background .25s ease, padding-left .25s ease; }
.price-row:hover, .room-plan:hover { background: rgba(255, 204, 0, .12); padding-left: 8px; }
.equip-chip { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.equip-chip:hover { transform: translateY(-3px); border-color: #ffcc00; box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.map-spot-btn { transition: transform .25s ease, background .25s ease, color .25s ease; }
.map-spot-btn:hover { transform: translateX(6px); }

/* button shine */
.btn-book-hero, .btn-whatsapp-hero, .btn-enquire, .btn-enquire-full, .btn-submit-booking, .btn-yellow-action, .btn-book-nav {
    position: relative; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, background .3s ease, color .3s ease;
}
.btn-book-hero::after, .btn-whatsapp-hero::after, .btn-enquire::after, .btn-enquire-full::after,
.btn-submit-booking::after, .btn-yellow-action::after, .btn-book-nav::after {
    content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-20deg); transition: left .7s ease; pointer-events: none;
}
.btn-book-hero:hover::after, .btn-whatsapp-hero:hover::after, .btn-enquire:hover::after, .btn-enquire-full:hover::after,
.btn-submit-booking:hover::after, .btn-yellow-action:hover::after, .btn-book-nav:hover::after { left: 140%; }
.btn-book-hero:hover, .btn-enquire:hover, .btn-enquire-full:hover, .btn-submit-booking:hover, .btn-yellow-action:hover {
    transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}

/* floating buttons */
.float-wa { animation: slk-pulse 2.2s ease-out infinite; }
.float-btn { transition: transform .25s ease, box-shadow .25s ease; }
.float-btn:hover { transform: translateY(-4px) scale(1.08); }

/* ---------- accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .slk-anim .reveal { opacity: 1 !important; }
}
@media (max-width: 600px) {
    .slk-top { left: 14px; bottom: 14px; width: 42px; height: 42px; }
    .slk-scroll-cue { display: none; }
}
