/* ============================================
   HHpoker Landing Page - Ocean Gradient Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
    --ocean-deep: #3B82F6;
    --ocean-mid: #06B6D4;
    --ocean-shallow: #2DD4BF;
    --ocean-light: #5EEAD4;
    --white-alpha-10: rgba(255, 255, 255, 0.1);
    --white-alpha-15: rgba(255, 255, 255, 0.15);
    --white-alpha-20: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Ocean Gradient Background --- */
.ocean-gradient {
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 40%, #2DD4BF 70%, #5EEAD4 100%);
    background-size: 400% 400%;
    animation: oceanShift 12s ease-in-out infinite;
}

@keyframes oceanShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

/* --- Text Gradient --- */
.text-gradient {
    background: linear-gradient(135deg, #3B82F6, #06B6D4, #2DD4BF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Glass Card (used on dark backgrounds) --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-base);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* --- Hero Section --- */
.hero-title {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* Floating orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.3);
    top: -50px;
    right: -80px;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: rgba(45, 212, 191, 0.4);
    bottom: 20%;
    left: -60px;
    animation-delay: -3s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(6, 182, 212, 0.35);
    top: 40%;
    right: 30%;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Hero stats float */
.animate-float {
    animation: badgeFloat 3s ease-in-out infinite;
}

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

/* --- Wave SVGs --- */
.wave-container {
    line-height: 0;
    z-index: 1;
}

.wave-container-flip {
    line-height: 0;
    z-index: 1;
    transform: rotate(180deg);
}

.wave-svg {
    width: 100%;
    height: 200px;
    display: block;
}

.wave-svg-sm {
    width: 100%;
    height: 100px;
    display: block;
}

.wave-path {
    transition: d 0.3s ease;
}

.wave-back {
    fill: rgba(255, 255, 255, 0.03);
}

.wave-mid {
    fill: rgba(255, 255, 255, 0.06);
}

.wave-front {
    fill: #ffffff;
}

.wave-path-sm {
    fill: rgba(255, 255, 255, 0.08);
}

.wave-path-light {
    fill: #ffffff;
}

/* --- Section Badge --- */
.section-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* --- Feature Cards --- */
.feature-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.5rem;
    padding: 2rem 1.75rem;
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3B82F6, #06B6D4, #2DD4BF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

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

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0 auto;
    transition: var(--transition-smooth);
}

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

/* --- Game Cards --- */
.game-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.25rem;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: default;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.game-card-inner {
    transition: var(--transition-base);
}

.game-card:hover .game-card-inner {
    transform: scale(1.02);
}

.game-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0 auto;
    transition: var(--transition-smooth);
}

.game-card:hover .game-icon-wrap {
    transform: rotate(-10deg) scale(1.1);
}

/* --- Phone Mockup --- */
.phone-mockup {
    perspective: 1000px;
}

.phone-frame {
    width: 280px;
    height: 540px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 36px;
    padding: 12px;
    position: relative;
    box-shadow:
        0 0 0 3px #334155,
        0 0 0 6px #1e293b,
        0 20px 60px rgba(0, 0, 0, 0.3);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-smooth);
}

.phone-frame:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #0f172a;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
    display: block;
}

.phone-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 20px;
    border-radius: 9999px;
    z-index: 1;
}

/* --- Advantage Cards --- */
.advantage-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.25rem;
    padding: 1.75rem;
    transition: var(--transition-smooth);
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    border-color: rgba(6, 182, 212, 0.25);
}

.advantage-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #06B6D4;
}

/* --- Stat Cards --- */
.stat-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

/* --- Testimonial Cards --- */
.testimonial-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.25rem;
    padding: 1.75rem;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

/* --- Bubbles decoration --- */
.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
}

.bubble-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 5%;
    animation: bubbleRise 6s ease-in-out infinite;
}

.bubble-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 8%;
    animation: bubbleRise 8s ease-in-out infinite 1s;
}

.bubble-3 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 15%;
    animation: bubbleRise 7s ease-in-out infinite 2s;
}

.bubble-4 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    right: 25%;
    animation: bubbleRise 5s ease-in-out infinite 3s;
}

@keyframes bubbleRise {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.08; }
    50% { transform: translateY(-30px) scale(1.15); opacity: 0.15; }
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* --- Fade-in Animation for Scroll --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Copy feedback toast */
.toast-copy {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    color: #fff;
    padding: 12px 28px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast-copy.show {
    transform: translateX(-50%) translateY(0);
}

/* --- Responsive Adjustments --- */
@media (max-width: 640px) {
    .wave-svg {
        height: 120px;
    }

    .wave-svg-sm {
        height: 60px;
    }

    .phone-frame {
        width: 220px;
        height: 430px;
        border-radius: 28px;
    }

    .phone-screen {
        border-radius: 20px;
    }

    .phone-notch {
        width: 70px;
        height: 18px;
        top: 10px;
        border-radius: 0 0 12px 12px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .stat-counter,
    .counter {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .orb-1 { width: 180px; height: 180px; }
    .orb-2 { width: 130px; height: 130px; }
    .orb-3 { width: 160px; height: 160px; }
}

@media (min-width: 1024px) {
    .phone-frame {
        width: 300px;
        height: 580px;
    }
}

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

/* Selection styling */
::selection {
    background: rgba(6, 182, 212, 0.3);
    color: #0f172a;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#3B82F6, #06B6D4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(#2563EB, #0891B2);
}
