/* ===== Custom Styles for HHpoker ===== */

/* === Base & Scrollbar === */
html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
}

/* === Selection === */
::selection {
    background: rgba(124, 58, 237, 0.3);
    color: #fff;
}

/* === Phone Mockup Animations === */
.phone-mockup {
    animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: floatBubble 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatBubble 5s ease-in-out 1s infinite;
}

@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(5deg);
    }
}

/* === Feature Card Hover === */
.feature-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover {
    transform: translateY(-8px);
}

.phone-frame-small .relative {
    transition: all 0.4s ease;
}

.feature-card:hover .phone-frame-small .relative {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.15);
}

/* === Navbar Scroll Transitions === */
#navbar {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #7c3aed;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 60%;
}

/* === Purple Glow Effects === */
.glow-purple {
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3), 0 0 60px rgba(124, 58, 237, 0.1);
}

.glow-purple-sm {
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}

.glow-purple-text {
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

/* === Counter Animation (triggered by JS) === */
.counter {
    display: inline-block;
}

/* === FAQ Accordion Styles === */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(124, 58, 237, 0.2);
}

.faq-toggle i {
    transition: transform 0.3s ease;
}

.faq-toggle.active i {
    transform: rotate(45deg);
}

.faq-content {
    animation: fadeSlideDown 0.3s ease;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Testimonial Card === */
.bg-gradient-to-br.from-purple-600.to-purple-800 {
    background-image: linear-gradient(to bottom right, #7c3aed, #5b21b6);
}

/* === CTA Banner Pattern === */
section.bg-gradient-to-r.from-purple-700 {
    position: relative;
}

/* === Scroll Reveal Animation === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Pulse Ring for Stats === */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(124, 58, 237, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

/* === Mobile Menu === */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Smooth transition for all interactive elements === */
a, button, .transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Form focus glow === */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
}

/* === Gradient border animation for featured cards === */
@keyframes border-glow {
    0%, 100% {
        border-color: rgba(124, 58, 237, 0.1);
    }
    50% {
        border-color: rgba(124, 58, 237, 0.4);
    }
}

/* === Responsive adjustments === */
@media (max-width: 640px) {
    .phone-mockup {
        max-width: 240px;
    }
}

/* === Loading / spinner (if needed) === */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === Purple overlay gradient utility === */
.purple-overlay {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.02));
}

/* === Card lift effect === */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}
