/* ============================================
   HHPOKER Landing Page - Custom Styles
   Primary: #2563eb (Blue) | Accent: #84cc16 (Lime)
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #84cc16;
    --accent-dark: #65a30d;
    --navy: #0a1628;
    --transition-speed: 0.3s;
}

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

/* ---------- Navbar Scroll Shadow ---------- */
#navbar.scrolled {
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.12);
}

/* ---------- Mobile Menu Links ---------- */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}
.mobile-link:hover {
    transform: translateX(4px);
}

/* ---------- Hero Image ---------- */
.hero-image-wrapper {
    position: relative;
    display: inline-block;
}

.hero-main-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
}

.hero-image-glow {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, #2563eb, #84cc16);
    border-radius: 1rem;
    z-index: 1;
    opacity: 0.15;
    filter: blur(30px);
}

/* ---------- Feature Cards ---------- */
.feature-card {
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
}

/* Feature Icon Circles */
.feature-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .feature-icon-circle {
    transform: scale(1.1) rotate(-5deg);
}

/* ---------- Stat Cards ---------- */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -8px rgba(132, 204, 22, 0.2);
    border-color: #84cc16;
}

.stat-number {
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.testimonial-quote-mark {
    position: absolute;
    top: 16px;
    left: 28px;
    opacity: 0.15;
    font-size: 4rem;
    line-height: 1;
}

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

.faq-item.active {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.08);
    border-color: #2563eb;
}

.faq-question {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-question .fa-chevron-down {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question .fa-chevron-down.rotated {
    transform: rotate(180deg);
}

/* Expand/Collapse animation for FAQ answers */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding-top 0.3s ease, padding-bottom 0.3s ease;
}

.faq-answer.expanded {
    max-height: 500px;
    opacity: 1;
    padding-top: 0;
    padding-bottom: 1.5rem;
}

/* ---------- CTA Dot Pattern ---------- */
.cta-dot-pattern {
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* ---------- Social Icon Hover ---------- */
.social-icon {
    transition: all 0.25s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(132, 204, 22, 0.3);
}

/* ---------- Custom Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

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

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

/* ---------- Button Ripple Effect ---------- */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-ripple:active::after {
    opacity: 1;
    transition: opacity 0s;
}

/* ---------- Scroll to Top Button ---------- */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scroll-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
}

/* ---------- Lime accent highlight in text ---------- */
.text-accent-highlight {
    color: #84cc16;
    font-weight: 600;
}

/* ---------- Selection styling ---------- */
::selection {
    background: rgba(132, 204, 22, 0.3);
    color: inherit;
}

::-moz-selection {
    background: rgba(132, 204, 22, 0.3);
    color: inherit;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 768px) {
    .hero-main-image {
        max-width: 100%;
    }

    .hero-image-glow {
        left: 10px;
        right: -5px;
        bottom: -5px;
        filter: blur(20px);
    }

    .testimonial-quote-mark {
        font-size: 3rem;
    }
}

/* ---------- Focus visible for accessibility ---------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 4px;
}

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

    html {
        scroll-behavior: auto;
    }
}
