/* ============================================
   HHpoker Landing Page - Custom Styles
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --gradient-start: #4F46E5;
    --gradient-end: #7C3AED;
    --text-dark: #111827;
    --text-gray: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4F46E5, #7C3AED);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4338CA, #6D28D9);
}

/* ---------- Selection ---------- */
::selection {
    background-color: rgba(79, 70, 229, 0.2);
    color: #4F46E5;
}

/* ---------- Navbar Scroll State ---------- */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 20px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

#navbar.scrolled .nav-link {
    color: #374151;
}

#navbar.scrolled .nav-link:hover {
    color: #4F46E5;
}

#navbar.scrolled #logo-text {
    color: #1F2937;
}

/* ---------- Feature Card Hover ---------- */
.feature-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

/* ---------- Testimonial Card ---------- */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ---------- Stat Item ---------- */
.stat-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ---------- FAQ Accordion Styles ---------- */
.faq-item .faq-icon {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background-color: #4F46E5;
}

.faq-item.active .faq-icon i {
    color: #FFFFFF;
}

.faq-item .faq-body {
    display: none;
    animation: slideDown 0.3s ease forwards;
}

.faq-item.active .faq-body {
    display: block;
}

.faq-item .faq-toggle {
    transition: background-color 0.2s ease;
}

.faq-item .faq-toggle:hover {
    background-color: #F9FAFB;
}

.faq-item.active .faq-toggle {
    background-color: #EEF2FF;
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
    animation: slideDownMenu 0.3s ease forwards;
}

#mobile-menu.hidden {
    display: none;
}

/* ---------- Animations ---------- */

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 4s ease-in-out 1s infinite;
}

/* Slide Down */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

/* Slide Down Menu */
@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Pulse Glow */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(79, 70, 229, 0);
    }
}

/* Shimmer Effect for Cards */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

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

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children reveal delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---------- 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.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* ---------- Glass Effect ---------- */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---------- Custom Placeholder Card ---------- */
.placeholder-card {
    position: relative;
    overflow: hidden;
}

.placeholder-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(79, 70, 229, 0.1) 0%,
        rgba(124, 58, 237, 0.1) 50%,
        rgba(79, 70, 229, 0.05) 100%);
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
}

/* ---------- CTA Section Pattern Overlay ---------- */
.cta-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

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

    .testimonial-card:hover {
        transform: translateY(-4px);
    }

    .stat-item:hover {
        transform: translateY(-4px);
    }
}

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

/* ---------- Loading / Skeleton placeholder ---------- */
.skeleton {
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

/* ---------- Print Styles ---------- */
@media print {
    #navbar,
    #hero,
    footer {
        position: static;
    }

    .no-print {
        display: none;
    }
}
