/* ============================================================
   DROP PLATFORM — GLOBAL ANIMATIONS & LIVELY EFFECTS
   Shared across all pages
   ============================================================ */

/* ---- Keyframe Definitions ---- */

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(5deg); }
    50%       { transform: translateY(-18px) rotate(3deg); }
}

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

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

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

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

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.3); }
    50%       { box-shadow: 0 0 45px rgba(37, 99, 235, 0.7), 0 0 80px rgba(37,99,235,0.15); }
}

@keyframes pulse-ring {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes dash-flow {
    to { stroke-dashoffset: -40; }
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(5px); }
}

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

@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes particle-float {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0.7; }
    33%  { transform: translateY(-20px) translateX(10px) scale(1.1); opacity: 1; }
    66%  { transform: translateY(-10px) translateX(-8px) scale(0.95); opacity: 0.8; }
    100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.7; }
}

@keyframes nav-underline {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

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

@keyframes typing-cursor {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ---- Utility Animation Classes ---- */
.animate-float          { animation: float 6s ease-in-out infinite; }
.animate-float-slow     { animation: float-slow 8s ease-in-out infinite; }
.animate-fade-in-up     { animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1) both; }
.animate-fade-in-left   { animation: fadeInLeft 0.7s cubic-bezier(0.4,0,0.2,1) both; }
.animate-fade-in-right  { animation: fadeInRight 0.7s cubic-bezier(0.4,0,0.2,1) both; }
.animate-scale-in       { animation: scaleIn 0.5s cubic-bezier(0.4,0,0.2,1) both; }
.animate-pulse-glow     { animation: pulse-glow 2.5s ease-in-out infinite; }
.animate-spin-slow      { animation: spin-slow 12s linear infinite; }
.animate-gradient       { animation: gradient-shift 5s ease infinite; background-size: 200% 200%; }

/* Stagger delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* ---- Enhanced Navigation Links ---- */
nav a.nav-link {
    position: relative;
}
nav a.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
nav a.nav-link:hover::after,
nav a.nav-link.active::after {
    transform: scaleX(1);
}

/* ---- Premium Button Enhancements ---- */
.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-animated::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}
.btn-animated:hover::before {
    width: 300px;
    height: 300px;
}
.btn-animated:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.5);
}
.btn-animated:active {
    transform: translateY(0) scale(0.97);
}

/* Arrow icon bounce on button hover */
.btn-animated:hover .arrow-icon {
    animation: bounce-arrow 0.5s ease infinite;
}

/* ---- Pulse Ring (for CTA circles / step numbers) ---- */
.pulse-ring-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pulse-ring-wrapper::before,
.pulse-ring-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.5);
    animation: pulse-ring 2s cubic-bezier(0.3,0,0.5,1) infinite;
}
.pulse-ring-wrapper::after {
    animation-delay: 1s;
}

/* ---- Animated Service Cards ---- */
.service-card-lively {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card-lively::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    transition: left 0.6s ease;
}
.service-card-lively:hover::before {
    left: 150%;
}
.service-card-lively:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px -12px rgba(37, 99, 235, 0.25);
}
.service-card-lively .card-icon-wrap {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card-lively:hover .card-icon-wrap {
    transform: scale(1.15) rotate(-5deg);
    background: #2563eb !important;
}
.service-card-lively:hover .card-icon-wrap i {
    color: white !important;
}

/* ---- Stat Counter Animation ---- */
.stat-card-lively {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.stat-card-lively::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    transition: width 0.4s ease;
    border-radius: 0 0 16px 16px;
}
.stat-card-lively:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.15) !important;
}
.stat-card-lively:hover::after {
    width: 100%;
}

/* ---- Community Pills hover ---- */
.community-pill {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.community-pill:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px -4px rgba(0,0,0,0.12);
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px; right: 24px;
    font-size: 80px;
    line-height: 1;
    color: rgba(37, 99, 235, 0.08);
    font-family: Georgia, serif;
    pointer-events: none;
}
.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 60px -12px rgba(37, 99, 235, 0.15);
}

/* ---- Investor Traction Numbers ---- */
.traction-number {
    background: linear-gradient(135deg, #60a5fa, #2563eb, #818cf8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

/* ---- Background Particle Orbs ---- */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    opacity: 0.18;
    animation: particle-float 12s ease-in-out infinite;
}
.orb-blue  { background: radial-gradient(circle, #3b82f6, transparent); }
.orb-indigo{ background: radial-gradient(circle, #6366f1, transparent); }
.orb-cyan  { background: radial-gradient(circle, #22d3ee, transparent); }

/* ---- Animated SVG wave path ---- */
.wave-path-animated {
    stroke-dasharray: 20 10;
    animation: dash-flow 3s linear infinite;
}

/* ---- Scroll Reveal (requires JS IntersectionObserver) ---- */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-36px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(36px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ---- Footer link hover with slide indicator ---- */
footer a {
    position: relative;
    display: inline-block;
    transition: color 0.25s ease, transform 0.25s ease;
}
footer a:hover {
    transform: translateX(4px);
}

/* ---- Icon spin on hover ---- */
.icon-spin-hover:hover i,
.icon-spin-hover:hover svg {
    animation: spin-slow 1s linear;
}

/* ---- Glow on hover for blue CTA buttons ---- */
.btn-glow {
    position: relative;
    overflow: hidden;
}
.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(59,130,246,0.5), rgba(99,102,241,0.5));
    z-index: -1;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.4s ease;
}
.btn-glow:hover::after {
    opacity: 1;
}

/* ---- Nav Scroll Shrink (JS adds .scrolled class) ---- */
nav.scrolled {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    box-shadow: 0 8px 32px -8px rgba(0,0,0,0.5);
}

/* ---- Lively section heading underline ---- */
.section-title-underline {
    position: relative;
    display: inline-block;
}
.section-title-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 99px;
    transition: width 0.5s ease;
}
.section-title-underline:hover::after {
    width: 100%;
}

/* ---- Smooth cursor/caret-style text blink ---- */
.typing-text::after {
    content: '|';
    animation: typing-cursor 1.1s ease infinite;
    margin-left: 2px;
    color: #3b82f6;
}

/* ---- Card border glow on hover ---- */
.card-border-glow {
    border: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.card-border-glow:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}
