/* ===========================================
   GBE LOGISTICS - ENHANCED ANIMATIONS
   Make the website feel alive
   =========================================== */

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.scroll-reveal[data-delay="1"] { transition-delay: 0.1s; }
.scroll-reveal[data-delay="2"] { transition-delay: 0.2s; }
.scroll-reveal[data-delay="3"] { transition-delay: 0.3s; }
.scroll-reveal[data-delay="4"] { transition-delay: 0.4s; }
.scroll-reveal[data-delay="5"] { transition-delay: 0.5s; }

/* ============================================
   ANIMATED COUNTER
   ============================================ */
.counter-value {
    font-variant-numeric: tabular-nums;
    display: inline-block;
}

/* ============================================
   MARQUEE / TRUST TICKER
   ============================================ */
.trust-ticker {
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
    background: var(--gray-50, #f9fafb);
}

[data-theme="dark"] .trust-ticker {
    background: #1e293b !important;
}

.trust-ticker-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400, #9CA3AF);
    margin-bottom: 1.5rem;
}

.marquee-track {
    display: flex;
    gap: 4rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    color: var(--gray-500, #6B7280);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.marquee-item:hover {
    opacity: 1;
}

.marquee-item svg {
    width: 24px;
    height: 24px;
    color: var(--gbe-blue, #0047BA);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   HERO GRADIENT MESH BACKGROUND
   ============================================ */
.hero-mesh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: blobFloat 20s ease-in-out infinite;
}

.mesh-blob-1 {
    width: 600px;
    height: 600px;
    background: rgba(255, 210, 0, 0.15);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.mesh-blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(0, 71, 186, 0.2);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.mesh-blob-3 {
    width: 300px;
    height: 300px;
    background: rgba(255, 210, 0, 0.1);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* ============================================
   FLOATING PARTICLES (subtle)
   ============================================ */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 210, 0, 0.4);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

.hero-particle:nth-child(odd) {
    background: rgba(255, 255, 255, 0.2);
}

.hero-particle:nth-child(1) { left: 5%; animation-duration: 18s; animation-delay: 0s; }
.hero-particle:nth-child(2) { left: 15%; animation-duration: 22s; animation-delay: -2s; }
.hero-particle:nth-child(3) { left: 25%; animation-duration: 16s; animation-delay: -4s; }
.hero-particle:nth-child(4) { left: 35%; animation-duration: 20s; animation-delay: -6s; }
.hero-particle:nth-child(5) { left: 45%; animation-duration: 24s; animation-delay: -8s; }
.hero-particle:nth-child(6) { left: 55%; animation-duration: 17s; animation-delay: -10s; }
.hero-particle:nth-child(7) { left: 65%; animation-duration: 21s; animation-delay: -3s; }
.hero-particle:nth-child(8) { left: 75%; animation-duration: 19s; animation-delay: -7s; }
.hero-particle:nth-child(9) { left: 85%; animation-duration: 23s; animation-delay: -5s; }
.hero-particle:nth-child(10) { left: 95%; animation-duration: 15s; animation-delay: -9s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-particle,
    .mesh-blob,
    .marquee-track,
    .scroll-reveal,
    .scroll-reveal-left,
    .scroll-reveal-right,
    .scroll-reveal-scale {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   INTERACTIVE SERVICE CARDS
   ============================================ */
.service-card-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gbe-blue, #0047BA), var(--gbe-yellow, #FFD200));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card-animated:hover::before {
    transform: scaleX(1);
}

.service-card-animated:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 71, 186, 0.15);
}

.service-card-animated .icon {
    transition: all 0.4s ease;
}

.service-card-animated:hover .icon {
    transform: scale(1.1);
    background: var(--gbe-blue, #0047BA);
    color: #fff;
}

/* ============================================
   SHIMMER LOADING EFFECT
   ============================================ */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ============================================
   PULSE GLOW ON STAT CARDS
   ============================================ */
.stat-card-glow {
    position: relative;
}

.stat-card-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--gbe-blue, #0047BA), var(--gbe-yellow, #FFD200));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card-glow:hover::after {
    opacity: 0.5;
}

/* ============================================
   TYPEWRITER EFFECT (for hero text alternative)
   ============================================ */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--gbe-yellow, #FFD200);
    white-space: nowrap;
    animation: typewriter 3s steps(40) forwards, blinkCaret 0.75s step-end infinite;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCaret {
    50% { border-color: transparent; }
}

/* ============================================
   GRADIENT TEXT
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--gbe-blue, #0047BA), var(--gbe-yellow, #FFD200));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   TESTIMONIALS CAROUSEL
   ============================================ */
.testimonials-section {
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .testimonial-card {
        min-width: 50%;
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        min-width: 33.333%;
    }
}

.testimonial-inner {
    background: var(--white, #fff);
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius-xl, 16px);
    padding: 2rem;
    height: 100%;
}

[data-theme="dark"] .testimonial-inner {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.testimonial-stars {
    color: var(--gbe-yellow, #FFD200);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--gray-600, #4B5563);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

[data-theme="dark"] .testimonial-text {
    color: #94a3b8 !important;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gbe-blue, #0047BA), var(--gbe-blue-dark, #003494));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--gray-900, #111827);
    font-size: 0.9375rem;
}

[data-theme="dark"] .testimonial-name {
    color: #f1f5f9 !important;
}

.testimonial-role {
    font-size: 0.8125rem;
    color: var(--gray-500, #6B7280);
}

[data-theme="dark"] .testimonial-role {
    color: #64748b !important;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300, #D1D5DB);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--gbe-blue, #0047BA);
    width: 30px;
    border-radius: 5px;
}

[data-theme="dark"] .carousel-dot {
    background: #475569;
}

[data-theme="dark"] .carousel-dot.active {
    background: #0047BA;
}
