/* ============================================================
   HHPOKER Landing Page - Premium Violet/Dark Purple Theme
   Design 0019 - Luxury Gaming Platform
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --violet-400: #a78bfa;
    --violet-500: #8b5cf6;
    --violet-600: #7C3AED;
    --violet-700: #6d28d9;
    --violet-900: #4c1d95;
    --purple-950: #3b0764;
    --fuchsia-500: #d946ef;
    --dark-bg: #0a0015;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #7C3AED, #6d28d9, #4c1d95);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #8b5cf6, #7C3AED, #5b21b6);
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(124, 58, 237, 0.4);
    color: #ffffff;
}

/* ---------- Animated Gradient Background ---------- */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient-shift {
    background-size: 300% 300%;
    animation: gradient-shift 12s ease-in-out infinite;
}

/* ---------- Text Shimmer ---------- */
@keyframes text-shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-text-shimmer {
    background-size: 200% auto;
    animation: text-shimmer 4s ease-in-out infinite;
}

/* ---------- Floating Animations ---------- */
@keyframes floating-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(3deg); }
    66% { transform: translateY(-5px) rotate(-2deg); }
}

@keyframes floating-medium {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes floating-fast {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-10px) translateX(5px); }
    75% { transform: translateY(-5px) translateX(-5px); }
}

.floating-slow {
    animation: floating-slow 8s ease-in-out infinite;
}

.floating-medium {
    animation: floating-medium 6s ease-in-out infinite;
}

.floating-fast {
    animation: floating-fast 4s ease-in-out infinite;
}

/* ---------- Floating Icons in Hero ---------- */
@keyframes floating-icon-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.2; }
    50% { transform: translateY(-30px) rotate(10deg); opacity: 0.4; }
}

@keyframes floating-icon-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.2; }
    33% { transform: translateY(-25px) rotate(-5deg); opacity: 0.35; }
    66% { transform: translateY(-10px) rotate(8deg); opacity: 0.3; }
}

@keyframes floating-icon-fast {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.2; }
    50% { transform: translateY(-20px) scale(1.15); opacity: 0.4; }
}

.floating-icon-slow {
    animation: floating-icon-slow 7s ease-in-out infinite;
}

.floating-icon-medium {
    animation: floating-icon-medium 5s ease-in-out infinite;
}

.floating-icon-fast {
    animation: floating-icon-fast 4s ease-in-out infinite;
}

/* ---------- Bounce Slow ---------- */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.animate-bounce-slow {
    animation: bounce-slow 2.5s ease-in-out infinite;
}

/* ---------- Floating Phone ---------- */
@keyframes floating-phone {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-18px); }
}

.floating-phone {
    animation: floating-phone 5s ease-in-out infinite;
}

/* ---------- Navbar Scroll Effect ---------- */
#navbar.scrolled .backdrop-blur-xl {
    background: rgba(10, 0, 21, 0.92) !important;
    box-shadow: 0 4px 30px rgba(124, 58, 237, 0.15);
    border-bottom-color: rgba(139, 92, 246, 0.3) !important;
}

/* ---------- Nav Link Active ---------- */
.nav-link.active {
    color: #a78bfa !important;
}

/* ---------- Feature Card Glow Effect ---------- */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(124, 58, 237, 0.08),
        transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

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

.feature-card:hover {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.2),
                0 0 80px rgba(124, 58, 237, 0.08),
                0 20px 50px rgba(0, 0, 0, 0.4);
}

/* ---------- Stat Card ---------- */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #7C3AED, transparent);
    transition: width 0.5s ease;
}

.stat-card:hover::after {
    width: 80%;
}

/* ---------- Testimonial Card ---------- */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 5rem;
    line-height: 1;
    color: rgba(124, 58, 237, 0.1);
    font-family: Georgia, serif;
    pointer-events: none;
}

/* ---------- FAQ Accordion Styles ---------- */
.faq-item {
    transition: all 0.3s ease;
}

.faq-toggle {
    cursor: pointer;
}

.faq-toggle i.fa-chevron-down {
    transition: transform 0.3s ease;
}

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

.faq-item.active {
    border-color: rgba(139, 92, 246, 0.5) !important;
    background: rgba(124, 58, 237, 0.08) !important;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.1);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-content {
    display: block !important;
    max-height: 500px;
}

/* ---------- CTA Pulse ---------- */
@keyframes cta-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(124, 58, 237, 0);
    }
}

#cta a:first-child {
    animation: cta-pulse 3s ease-in-out infinite;
}

/* ---------- Glow Line Under Headings ---------- */
@keyframes glow-line {
    0%, 100% { width: 0%; opacity: 0; }
    50% { width: 60%; opacity: 0.6; }
}

/* ---------- Mobile Menu ---------- */
#mobileMenu {
    transition: all 0.3s ease;
}

#mobileMenu:not(.hidden) {
    animation: slideDown 0.3s ease forwards;
}

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

/* ---------- Counter Animation ---------- */
.counter {
    display: inline-block;
}

/* ---------- Hover Animations ---------- */
a:not(.no-anim),
button:not(.no-anim) {
    transition: all 0.3s ease;
}

img {
    transition: transform 0.5s ease;
}

/* ---------- Focus Styles ---------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Gradient Border Animation ---------- */
@keyframes border-glow {
    0%, 100% {
        border-color: rgba(139, 92, 246, 0.2);
    }
    50% {
        border-color: rgba(139, 92, 246, 0.5);
    }
}

.feature-card {
    animation: border-glow 4s ease-in-out infinite;
}

.feature-card:nth-child(2) { animation-delay: 0.5s; }
.feature-card:nth-child(3) { animation-delay: 1s; }
.feature-card:nth-child(4) { animation-delay: 1.5s; }
.feature-card:nth-child(5) { animation-delay: 2s; }
.feature-card:nth-child(6) { animation-delay: 2.5s; }

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 1024px) {
    .feature-card:hover {
        transform: translateY(-4px) !important;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    #hero .floating-phone {
        width: 220px;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .testimonial-card::before {
        font-size: 3.5rem;
        top: 5px;
        right: 15px;
    }

    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* ---------- Print Styles ---------- */
@media print {
    #navbar,
    #mobileMenu,
    footer,
    .faq-content,
    #cta {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}

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

/* ---------- Navbar Transparent -> Solid Transition ---------- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* ---------- Subtle hover glint on buttons ---------- */
@keyframes glint {
    0% { left: -100%; }
    100% { left: 200%; }
}

a[href="#cta"] {
    position: relative;
    overflow: hidden;
}

a[href="#cta"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    transition: none;
}

a[href="#cta"]:hover::after {
    animation: glint 0.8s ease forwards;
}
