/* =============================================
   HOME.CSS — Animations & Interactive Effects
   ============================================= */

/* ── Glassmorphism ── */
.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ── Text Gradient ── */
.text-gradient {
    background: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Blob Background ── */
@keyframes blob {
    0%   { transform: translate(0px, 0px) scale(1); }
    33%  { transform: translate(30px, -50px) scale(1.1); }
    66%  { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob { animation: blob 7s infinite; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

/* ── Float ── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-20px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

/* ── FadeInUp (static helper) ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.5s ease-out forwards; }

/* =============================================
   SCROLL REVEAL
   ============================================= */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
[data-reveal="left"] {
    transform: translateX(-50px);
}
[data-reveal="right"] {
    transform: translateX(50px);
}
[data-reveal="scale"] {
    transform: scale(0.9);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Stagger delays for grid children */
[data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-stagger].is-visible > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { opacity:1; transform:none; transition-delay: 100ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { opacity:1; transform:none; transition-delay: 200ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { opacity:1; transform:none; transition-delay: 300ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { opacity:1; transform:none; transition-delay: 400ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { opacity:1; transform:none; transition-delay: 500ms; }



/* =============================================
   TYPING CURSOR
   ============================================= */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #6C63FF;
    margin-left: 3px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}



/* =============================================
   SHIMMER BUTTON
   ============================================= */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.35) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0%   { left: -75%; }
    100% { left: 150%; }
}

/* =============================================
   COUNTERS
   ============================================= */
.stat-counter {
    font-variant-numeric: tabular-nums;
}

/* =============================================
   PRICING CARD GLOW (interactive)
   ============================================= */
.pricing-glow {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-glow:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(108,99,255,0.25);
}

/* =============================================
   HERO BADGE PULSE
   ============================================= */
@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(108,99,255,0.4); }
    50%       { box-shadow: 0 0 0 8px rgba(108,99,255,0); }
}
.badge-pulse {
    animation: pulse-badge 2.5s infinite;
}

/* =============================================
   GRADIENT BORDER (feature cards)
   ============================================= */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 1rem;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, #6C63FF22, #FF658422);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gradient-border:hover::before {
    opacity: 1;
}

/* =============================================
   MARQUEE / TESTIMONIAL TICKER
   ============================================= */
.marquee-container {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
.marquee-card {
    flex-shrink: 0;
    width: 340px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    transition: box-shadow 0.3s, transform 0.3s;
}
.marquee-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   MEDIA — Reduce motion for accessibility
   ============================================= */
/* =============================================
   URGENCY BOX
   ============================================= */
.urgency-box {
    position: relative;
    animation: urgency-glow 2s ease-in-out infinite;
}
@keyframes urgency-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.2), 0 0 60px rgba(245, 158, 11, 0.05); }
    50%      { box-shadow: 0 0 30px rgba(245, 158, 11, 0.4), 0 0 80px rgba(245, 158, 11, 0.15); }
}
.urgency-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(245,158,11,0.6), rgba(239,68,68,0.4), rgba(245,158,11,0.6));
    background-size: 300% 300%;
    animation: urgency-border 3s ease infinite;
    z-index: -1;
}
@keyframes urgency-border {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.urgency-icon {
    display: inline-block;
    animation: urgency-shake 0.5s ease-in-out infinite;
}
@keyframes urgency-shake {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(-8deg); }
    75%      { transform: rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal-stagger] > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .animate-blob,
    .animate-float,
    .btn-shimmer::after,
    .typing-cursor,
    .badge-pulse,
    .urgency-box,
    .urgency-box::before,
    .urgency-icon,
    .marquee-track {
        animation: none !important;
    }
    .urgency-box {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.2) !important;
    }
}