/* ShareMarket Front - Custom Styles */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #a3e635 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Neon glow effects */
.neon-glow {
    text-shadow: 0 0 20px rgba(163, 230, 53, 0.5);
}

.neon-box-glow {
    box-shadow: 0 0 30px rgba(163, 230, 53, 0.3);
}

/* Glass effect */
.glass-effect {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
}

/* Scroll reveal animations */
.scroll-reveal {
    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);
}

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

/* Staggered children */
.stagger-children > * {
    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);
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.40s; }
.stagger-children.revealed > *:nth-child(7) { transition-delay: 0.48s; }
.stagger-children.revealed > *:nth-child(8) { transition-delay: 0.56s; }

.stagger-children.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in up animation */
.fade-in-up {
    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);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in left/right */
.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Hero animation */
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-animate {
    animation: heroFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-animate-delay-1 {
    opacity: 0;
    animation: heroFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero-animate-delay-2 {
    opacity: 0;
    animation: heroFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-animate-delay-3 {
    opacity: 0;
    animation: heroFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-animate-delay-4 {
    opacity: 0;
    animation: heroFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

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

.hero-slide-in {
    opacity: 0;
    animation: heroSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* Card hover effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(163, 230, 53, 0.5);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Bar chart animation */
@keyframes growBar {
    from { height: 0; }
}

.chart-bar {
    animation: growBar 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chart-bar:nth-child(1) { animation-delay: 0.5s; }
.chart-bar:nth-child(2) { animation-delay: 0.55s; }
.chart-bar:nth-child(3) { animation-delay: 0.6s; }
.chart-bar:nth-child(4) { animation-delay: 0.65s; }
.chart-bar:nth-child(5) { animation-delay: 0.7s; }
.chart-bar:nth-child(6) { animation-delay: 0.75s; }
.chart-bar:nth-child(7) { animation-delay: 0.8s; }
.chart-bar:nth-child(8) { animation-delay: 0.85s; }
.chart-bar:nth-child(9) { animation-delay: 0.9s; }
.chart-bar:nth-child(10) { animation-delay: 0.95s; }
.chart-bar:nth-child(11) { animation-delay: 1.0s; }
.chart-bar:nth-child(12) { animation-delay: 1.05s; }

/* FAQ accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-chevron {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}
