/* Custom Styles for WiiM Web3 Solutions */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #fbbf24, #fcd34d);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #fcd34d, #fef08a);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

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

/* Animated Background */
.animate-pulse {
    animation: pulse-glow 4s ease-in-out infinite;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Glassmorphism Effect */
.backdrop-blur-lg {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Service Cards Hover Effect */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Code Block Styling */
pre {
    background: #1e293b;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    line-height: 1.6;
}

code {
    color: #e2e8f0;
}

/* Gradient Text Animation */
@keyframes gradient-text {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.bg-gradient-to-r {
    background-size: 200% 200%;
}

/* Button Hover Effects */
button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

/* Card Hover Lift Effect */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Gradient Border Animation */
@keyframes border-glow {
    0%, 100% {
        border-color: rgba(251, 191, 36, 0.3);
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
    }
    50% {
        border-color: rgba(252, 211, 77, 0.3);
        box-shadow: 0 0 20px rgba(252, 211, 77, 0.2);
    }
}

/* Navigation Backdrop */
nav {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Section Spacing */
section {
    position: relative;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* Loading Animation for Background Blobs */
.animate-pulse {
    animation: pulse-glow 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth Transitions */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Custom Focus States */
button:focus,
a:focus {
    outline: none;
}

/* Focus visible for keyboard navigation only */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Pricing Card Glow */
.pricing-card-featured {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.3);
}

/* Footer Links Hover */
footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(to right, #fbbf24, #fcd34d);
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Navbar Scroll Effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Animation */
@media (max-width: 768px) {
    .mobile-menu {
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .mobile-menu.active {
        transform: translateY(0);
    }
}

/* Chain Logo Hover */
.chain-logo {
    transition: all 0.3s ease;
}

.chain-logo:hover {
    transform: translateY(-5px);
}

.chain-logo:hover img {
    filter: drop-shadow(0 5px 15px rgba(251, 191, 36, 0.4));
}

/* Text Selection */
::selection {
    background: rgba(251, 191, 36, 0.4);
    color: black;
}

::-moz-selection {
    background: rgba(251, 191, 36, 0.4);
    color: black;
}

/* Stat Counter Animation */
.stat-number {
    display: inline-block;
}

/* Hero Background Pattern */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(251, 191, 36, 0.1) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Feature Icon Pulse */
.feature-icon {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient Text Shimmer */
.text-shimmer {
    background: linear-gradient(90deg, #fbbf24, #fcd34d, #fbbf24);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

/* Chains Slider Animation - Multi Row */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

.chains-row-1 {
    animation: scroll-left 30s linear infinite;
}

.chains-row-2 {
    animation: scroll-right 35s linear infinite;
}

.chains-row-3 {
    animation: scroll-left 32s linear infinite;
}

.chains-row-1:hover,
.chains-row-2:hover,
.chains-row-3:hover {
    animation-play-state: paused;
}

.chain-logo {
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.chain-logo:hover {
    transform: scale(1.05);
}
