@import url('scroll-animations.css');

/**
 * ==============================================================================
 * Web3 Redesign - Global Design System & Component Stylesheet
 * File: css/redesign-style.css
 * Purpose: Reusable, modular styles for Web3, Blockchain & FinTech landing pages.
 * ==============================================================================
 */

/* ==============================================================================
   1. GLOBAL TYPOGRAPHY & RESET
   ============================================================================== */
html,
body {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button,
input,
select,
textarea,
label,
li,
ul,
ol {
    font-family: "Plus Jakarta Sans", sans-serif;
}

.font-display {
    font-family: "Plus Jakarta Sans", sans-serif !important;
}

/* ==============================================================================
   2. FONT AWESOME ICON SUITE PRESERVATION
   Ensures custom font overrides don't break Font Awesome 6 icons
   ============================================================================== */
.fa,
.fa-solid,
.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.fa-regular,
.far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.fa-brands,
.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* ==============================================================================
   3. SILVER METALLIC & FROSTED GLASS CARDS
   ============================================================================== */
.silver-metallic-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 45%, #e2e8f0 75%, #f8fafc 100%);
}

.silver-card-glass {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.silver-card-glass:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 15px 35px -5px rgba(124, 58, 237, 0.12), 0 5px 15px -3px rgba(37, 99, 235, 0.08);
}

/* ==============================================================================
   4. GRADIENT TEXT & BORDER UTILITIES
   ============================================================================== */
.gradient-text-purple-blue {
    background: linear-gradient(135deg, #7e22ce 0%, #9333ea 25%, #4f46e5 65%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-silver {
    background: linear-gradient(135deg, #1e293b 0%, #475569 50%, #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-border-mask {
    position: relative;
    background: #ffffff;
    border-radius: 1rem;
}

.gradient-border-mask::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, #a855f7, #6366f1, #38bdf8);
    z-index: -1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.gradient-border-mask:hover::before {
    opacity: 1;
}

/* ==============================================================================
   5. BUTTON COMPONENTS & HOVER EFFECTS
   ============================================================================== */
.gradient-btn-purple-blue {
    background: linear-gradient(135deg, #7e22ce 0%, #6366f1 50%, #2563eb 100%);
    transition: all 0.3s ease;
}

.gradient-btn-purple-blue:hover {
    background: linear-gradient(135deg, #6b21a8 0%, #4f46e5 50%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(126, 34, 206, 0.4);
}

/* Hero Action CTA Button with Gradient Border & Laser Shine */
.btn-hero-gradient {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1e1b4b;
    background: #ffffff;
    border: 2px solid transparent;
    background-image: linear-gradient(#ffffff, #ffffff),
        linear-gradient(135deg, #7e22ce 0%, #4f46e5 50%, #2563eb 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 8px 24px -6px rgba(124, 58, 237, 0.16);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-decoration: none;
    z-index: 1;
}

.btn-hero-gradient:hover {
    background: linear-gradient(135deg, #7e22ce 0%, #4f46e5 50%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 32px -6px rgba(124, 58, 237, 0.45), 0 8px 16px -4px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.btn-hero-gradient .btn-arrow-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
    background: linear-gradient(135deg, #7e22ce 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-hero-gradient:hover .btn-arrow-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateX(4px);
}

/* Laser Light Shine Animation on Hover */
.btn-hero-gradient::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -70%;
    width: 60%;
    height: 220%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 25%,
            rgba(255, 255, 255, 0.95) 50%,
            rgba(255, 255, 255, 0.3) 75%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.btn-hero-gradient:hover::after {
    animation: btn-shine-sweep 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes btn-shine-sweep {
    0% {
        left: -70%;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    100% {
        left: 150%;
        opacity: 0;
    }
}

/* ==============================================================================
   6. BADGES & MICRO-ANIMATIONS
   ============================================================================== */
@keyframes alert-badge-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.28), 0 2px 8px rgba(124, 58, 237, 0.12);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(147, 51, 234, 0), 0 4px 14px rgba(124, 58, 237, 0.22);
    }
}

.alert-badge-animated {
    animation: alert-badge-pulse 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* ==============================================================================
   7. TICKER & CONTINUOUS CAROUSEL ANIMATIONS
   ============================================================================== */
@keyframes commitmentVerticalTicker {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.commitment-ticker-track {
    animation: commitmentVerticalTicker 25s linear infinite;
    will-change: transform;
}

.commitment-ticker-container:hover .commitment-ticker-track {
    animation-play-state: paused !important;
}
.gradient-text {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: textGradient 4s linear infinite;
}

/* ==============================================================================
   8. ON-DEMAND CARDS - HOVER PURPLE-TO-TRANSPARENT GRADIENT OVERLAY
   ============================================================================== */
.ondemand-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(76, 29, 149, 0.98) 0%, 
        rgba(109, 40, 217, 0.88) 35%, 
        rgba(147, 51, 234, 0.45) 65%, 
        rgba(147, 51, 234, 0.10) 85%, 
        transparent 100%
    );
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 1.75rem;
    z-index: 20;
    pointer-events: none;
}

.group:hover .ondemand-card-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ondemand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.22);
    color: #f3e8ff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 0.65rem;
    width: fit-content;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.4s ease 0.05s, opacity 0.4s ease 0.05s;
}

.group:hover .ondemand-pill {
    transform: translateY(0);
    opacity: 1;
}

.ondemand-title {
    font-size: 1.35rem;
    font-weight: 800;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 0.35rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    transform: translateY(14px);
    opacity: 0;
    transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
}

@media (min-width: 640px) {
    .ondemand-title {
        font-size: 1.55rem;
    }
}

.group:hover .ondemand-title {
    transform: translateY(0);
    opacity: 1;
}

.ondemand-desc {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(243, 232, 255, 0.95);
    margin-bottom: 0.85rem;
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.4s ease 0.15s, opacity 0.4s ease 0.15s;
}

.group:hover .ondemand-desc {
    transform: translateY(0);
    opacity: 1;
}

.ondemand-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    transform: translateY(18px);
    opacity: 0;
    transition: transform 0.4s ease 0.2s, opacity 0.4s ease 0.2s, color 0.2s ease;
}

.group:hover .ondemand-cta {
    transform: translateY(0);
    opacity: 1;
}

.ondemand-cta:hover {
    color: #e9d5ff;
}

.group:hover .ondemand-cta i {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

/* ==============================================================================
   FLOATING ANIMATIONS
   ============================================================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(-1deg);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
    will-change: transform;
}

.animate-float-delayed {
    animation: float-delayed 5.5s ease-in-out -2.75s infinite;
    will-change: transform;
}

.animate-float:hover,
.animate-float-delayed:hover {
    animation-play-state: paused;
}

/* ==============================================================================
   NEWS TICKER SLIDER ANIMATION
   ============================================================================== */
@keyframes customTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-custom-ticker {
    display: flex;
    width: max-content;
    animation: customTicker 20s linear infinite;
}

.animate-custom-ticker:hover {
    animation-play-state: paused;
}