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

/* ---------- Base & Reset ---------- */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(79, 70, 229, 0.4);
    color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0F0B2E;
}
::-webkit-scrollbar-thumb {
    background: #2D2963;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4F46E5;
}

/* ============================================
   NAVBAR
   ============================================ */

/* Glassmorphism effect on scroll */
#navbar.scrolled {
    background: rgba(15, 11, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 41, 99, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

/* Nav link active state */
.nav-link.active {
    color: #818cf8 !important;
}

/* ============================================
   HERO SECTION
   ============================================ */

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Button pulse */
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}
.btn-primary {
    position: relative;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: inherit;
    z-index: -1;
    animation: pulse-ring 2s ease-out infinite;
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.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(-6px);
    box-shadow: 0 30px 60px -12px rgba(79, 70, 229, 0.25);
}

/* Staggered fade in for cards */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.feature-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   STATS
   ============================================ */

.stat-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -12px rgba(79, 70, 229, 0.25);
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -12px rgba(79, 70, 229, 0.2);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-item {
    transition: border-color 0.3s ease;
}
.faq-item:hover {
    border-color: rgba(79, 70, 229, 0.4);
}

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}
.faq-answer.open {
    max-height: 500px;
    opacity: 1;
}

.faq-icon.rotated {
    transform: rotate(180deg);
}

/* ============================================
   BACK TO TOP
   ============================================ */

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Mobile */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem !important;
    }
    h2 {
        font-size: 1.75rem !important;
    }
    .feature-card {
        padding: 1.5rem;
    }
    .stat-item {
        padding: 1.25rem;
    }
    .stat-item .text-4xl,
    .stat-item .text-5xl {
        font-size: 1.75rem !important;
    }
}

/* Tablet */
@media (max-width: 1023px) {
    .animate-float {
        display: none;
    }
}

/* ============================================
   FADE-IN ANIMATION ON SCROLL
   ============================================ */

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   MOBILE MENU
   ============================================ */

#mobile-menu {
    transition: max-height 0.4s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    #navbar,
    #back-to-top,
    #mobile-menu {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
