/* =============================================================
   GOGA XPRESS — animations.css
   All keyframes, transitions, and scroll-driven animations
   ============================================================= */

/* ----------------------------------------
   KEYFRAMES
---------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.88);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 197, 24, 0);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(245, 197, 24, 0.15);
    }
}

@keyframes slideGridLine {
    from { transform: translateY(-100%); }
    to   { transform: translateY(100%); }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

@keyframes shimmer {
    from { background-position: -200% center; }
    to   { background-position:  200% center; }
}

@keyframes progressBar {
    from { width: 0; }
    to   { width: var(--progress); }
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    40%      { transform: translateY(-8px); }
    60%      { transform: translateY(-4px); }
}


/* ----------------------------------------
   AOS-LIKE SCROLL ANIMATION CLASSES
   (powered by IntersectionObserver in app.js)
---------------------------------------- */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="zoom-in"] {
    transform: scale(0.88);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: none;
}

/* Delay utilities */
[data-aos-delay="80"]  { transition-delay: 80ms; }
[data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos-delay="160"] { transition-delay: 160ms; }
[data-aos-delay="200"] { transition-delay: 200ms; }
[data-aos-delay="240"] { transition-delay: 240ms; }
[data-aos-delay="300"] { transition-delay: 300ms; }
[data-aos-delay="400"] { transition-delay: 400ms; }


/* ----------------------------------------
   HERO ENTRY ANIMATIONS
---------------------------------------- */
.hero__badge {
    animation: fadeInDown 0.6s ease 0.1s both;
}

.hero__heading {
    animation: fadeInUp 0.7s ease 0.2s both;
}

.hero__subtext {
    animation: fadeInUp 0.7s ease 0.35s both;
}

.hero__stats {
    animation: fadeInUp 0.7s ease 0.48s both;
}

.hero__actions {
    animation: fadeInUp 0.7s ease 0.6s both;
}

.hero__form-wrap {
    animation: fadeInRight 0.75s ease 0.25s both;
}


/* ----------------------------------------
   GRID LINE ANIMATION
---------------------------------------- */
.hero__bg-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(245, 197, 24, 0.25), transparent);
    animation: slideGridLine 4s linear infinite;
}

.hero__bg-line:nth-child(2)::after {
    animation-delay: 1.3s;
}

.hero__bg-line:nth-child(3)::after {
    animation-delay: 2.6s;
}


/* ----------------------------------------
   FLOATING BUTTON PULSE
---------------------------------------- */
.floating-btn--whatsapp {
    animation: pulseGold 2.5s ease infinite;
}


/* ----------------------------------------
   SHIMMER EFFECT (for skeleton loaders)
---------------------------------------- */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.04) 0%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0.04) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.8s linear infinite;
}


/* ----------------------------------------
   NUMBER COUNTER ANIMATION
---------------------------------------- */
.hero__stat-number.is-counting {
    animation: countUp 0.5s ease both;
}


/* ----------------------------------------
   NAVBAR SCROLL TRANSITION
---------------------------------------- */
.navbar {
    transition: background 0.35s ease, padding 0.3s ease, box-shadow 0.3s ease;
}


/* ----------------------------------------
   CARD HOVER LIFT (global)
---------------------------------------- */
.service-card,
.fleet-card,
.blog-card,
.review-card,
.dest-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}


/* ----------------------------------------
   BOOKING FORM FIELD FOCUS GLOW
---------------------------------------- */
.booking-form__input:focus,
.booking-form__select:focus {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


/* ----------------------------------------
   SECTION HEADER UNDERLINE REVEAL
---------------------------------------- */
.section__title {
    position: relative;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #f5c518 0%, #ff8c00 100%);
    transition: width 0.6s ease, left 0.6s ease;
    border-radius: 2px;
}

.section__title.is-visible::after {
    width: 60px;
    left: calc(50% - 30px);
}

/* Left-aligned section title underline */
.section--left .section__title::after {
    left: 0;
}

.section--left .section__title.is-visible::after {
    width: 60px;
    left: 0;
}


/* ----------------------------------------
   PAGE TRANSITION OVERLAY
---------------------------------------- */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--color-black);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.page-transition.is-leaving {
    opacity: 1;
    pointer-events: all;
}


/* ----------------------------------------
   TOAST NOTIFICATION
---------------------------------------- */
.toast {
    position: fixed;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--color-black-card);
    border: 1px solid rgba(245, 197, 24, 0.3);
    color: var(--color-white);
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;
    z-index: var(--z-toast);
    white-space: nowrap;
}

.toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast--success {
    border-color: rgba(37, 211, 102, 0.4);
    color: #25d366;
}

.toast--error {
    border-color: rgba(255, 80, 80, 0.4);
    color: #ff5050;
}


/* ----------------------------------------
   LOADING SPINNER
---------------------------------------- */
.spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spinSlow 0.8s linear infinite;
    display: inline-block;
}


/* ----------------------------------------
   REDUCE MOTION
---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
