/* ============================================================
   HHpoker Landing Page - Premium Purple Theme
   Primary: #9333EA (purple-600)
   ============================================================ */

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

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0a0f;
}
::-webkit-scrollbar-thumb {
    background: #9333ea44;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9333ea66;
}

/* ---- Selection ---- */
::selection {
    background: rgba(147, 51, 234, 0.3);
    color: #fff;
}

/* ---- Header Scroll Effect ---- */
#header.scrolled {
    background: rgba(18, 18, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(147, 51, 234, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ---- Mobile Menu Transition ---- */
#mobile-menu {
    transition: max-height 0.4s ease, opacity 0.3s ease;
}
#mobile-menu:not(.hidden) {
    display: block !important;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Feature Card Hover Glow ---- */
.feature-card {
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(147, 51, 234, 0.06), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.feature-card:hover::before {
    opacity: 1;
}

/* ---- Download Card Interactive ---- */
.download-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.download-card:hover {
    box-shadow: 0 20px 60px rgba(147, 51, 234, 0.15), 0 0 0 1px rgba(147, 51, 234, 0.15);
}

/* ---- Counter Animation ---- */
.counter {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ---- Pulse Glow Animation (for download buttons) ---- */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(147, 51, 234, 0.2), 0 10px 40px rgba(147, 51, 234, 0.15);
    }
    50% {
        box-shadow: 0 0 35px rgba(147, 51, 234, 0.4), 0 10px 50px rgba(147, 51, 234, 0.25);
    }
}
.animate-pulse-glow {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

/* ---- Float Animation Variants ---- */
.animate-float-delayed-1 {
    animation: float 6s ease-in-out 1s infinite;
}
.animate-float-delayed-2 {
    animation: float 6s ease-in-out 2s infinite;
}

/* ---- Gradient Text Utility ---- */
.gradient-text {
    background: linear-gradient(135deg, #c084fc, #a855f7, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Glass Card Effect ---- */
.glass-card {
    background: rgba(26, 26, 37, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---- Line Decoration ---- */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(147, 51, 234, 0.2), transparent);
}

/* ---- Badge Pulse ---- */
.badge-pulse {
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* ---- Active Nav Link ---- */
.nav-active {
    color: #a855f7 !important;
}
.nav-active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #a855f7;
    margin-top: 2px;
    border-radius: 1px;
}

/* ---- Smooth Fade-In on Scroll ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Button Ripple Effect ---- */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* ---- Back-to-Top Button ---- */
#back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 40;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(147, 51, 234, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 51, 234, 0.2);
    color: #a855f7;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#back-to-top:hover {
    background: rgba(147, 51, 234, 0.25);
    border-color: rgba(147, 51, 234, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.2);
}

/* ---- Stats Counter Glow ---- */
.counter.glow {
    text-shadow: 0 0 30px rgba(147, 51, 234, 0.3);
}

/* ---- Section Background Alternation ---- */
.section-dark {
    background: rgba(18, 18, 26, 0.3);
}

/* ---- Responsive Typography Tweaks ---- */
@media (max-width: 640px) {
    h1 { font-size: 2.25rem !important; }
    h2 { font-size: 1.875rem !important; }
}
