/* ============================================
   HHpoker&#20840;&#32852;&#30431; - Glacier Blue Theme
   Color: Glacier Blue (#0369a1) + Snow White (#f0f9ff)
   ============================================ */

/* ---- Base & Scroll ---- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
}

/* ---- Selection ---- */
::selection {
    background: rgba(3, 105, 161, 0.2);
    color: #0369a1;
}

/* ---- Navbar Scroll Effect ---- */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(3, 105, 161, 0.10);
    background: rgba(255, 255, 255, 0.97);
}

/* ---- Floating Ice Blocks (Hero) ---- */
.floating-ice {
    position: absolute;
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(186,230,253,0.4));
    border-radius: 15% 20% 30% 18%;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 32px rgba(3, 105, 161, 0.08), inset 0 0 20px rgba(255,255,255,0.5);
    animation: floatIce 8s ease-in-out infinite;
    pointer-events: none;
}

.ice-1 {
    width: 80px;
    height: 60px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.ice-2 {
    width: 60px;
    height: 45px;
    top: 25%;
    right: 12%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.ice-3 {
    width: 100px;
    height: 70px;
    top: 60%;
    left: 8%;
    animation-delay: 4s;
    animation-duration: 8s;
}

.ice-4 {
    width: 70px;
    height: 50px;
    top: 55%;
    right: 10%;
    animation-delay: 1s;
    animation-duration: 10s;
}

.ice-5 {
    width: 50px;
    height: 35px;
    top: 35%;
    left: 20%;
    animation-delay: 3.5s;
    animation-duration: 7.5s;
}

.ice-6 {
    width: 90px;
    height: 55px;
    top: 70%;
    right: 18%;
    animation-delay: 5s;
    animation-duration: 8.5s;
}

/* Ice hover/glow effect on ice blocks */
.floating-ice::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 40%;
    height: 30%;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    filter: blur(4px);
}

@keyframes floatIce {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-30px) rotate(3deg) scale(1.05);
        opacity: 0.85;
    }
    50% {
        transform: translateY(-15px) rotate(-2deg) scale(0.95);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-40px) rotate(1deg) scale(1.03);
        opacity: 0.8;
    }
}

/* ---- Glassmorphism Cards (Features) ---- */
.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(240,249,255,0.5));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(3, 105, 161, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    overflow: hidden;
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4) 0%, transparent 50%);
    pointer-events: none;
    transition: opacity 0.4s;
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(3, 105, 161, 0.12);
    border-color: rgba(186,230,253,0.8);
}

.glass-card:hover::before {
    opacity: 0.8;
}

.glass-card-inner {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.feature-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(3,105,161,0.1), rgba(56,189,248,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.4s;
}

.glass-card:hover .feature-icon-wrap {
    background: linear-gradient(135deg, rgba(3,105,161,0.2), rgba(56,189,248,0.2));
    transform: scale(1.05);
}

/* ---- Stats Section ---- */
.stat-number {
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ice-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    animation: iceDrift 12s linear infinite;
}

.ice-particle:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.ice-particle:nth-child(2) { top: 50%; left: 45%; animation-delay: 3s; animation-duration: 14s; }
.ice-particle:nth-child(3) { top: 75%; left: 75%; animation-delay: 6s; animation-duration: 10s; }

@keyframes iceDrift {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.4; }
    100% { transform: translateY(-200px) translateX(40px); opacity: 0; }
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 16px rgba(3, 105, 161, 0.04);
    border: 1px solid rgba(186, 230, 253, 0.3);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 12px 32px rgba(3, 105, 161, 0.08);
    border-color: rgba(186, 230, 253, 0.6);
    transform: translateY(-4px);
}

/* ---- FAQ Accordion ---- */
.faq-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(186, 230, 253, 0.3);
    transition: all 0.3s;
    background: #fff;
}

.faq-item.active {
    border-color: rgba(3, 105, 161, 0.15);
    box-shadow: 0 4px 20px rgba(3, 105, 161, 0.06);
}

.faq-trigger {
    cursor: pointer;
    transition: all 0.3s;
}

.faq-trigger:hover {
    background: #f0f9ff !important;
}

.faq-icon.rotated {
    transform: rotate(180deg);
}

/* Ice-layer expand animation */
.faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content.open {
    grid-template-rows: 1fr;
}

.faq-content > div {
    overflow: hidden;
}

/* Ice-crackle visual on expand */
.faq-item.active .faq-content > div {
    animation: iceCrackle 0.6s ease-out;
}

@keyframes iceCrackle {
    0% {
        opacity: 0;
        transform: translateY(-8px);
        filter: blur(2px);
    }
    40% {
        opacity: 0.7;
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ---- Frost Pattern (CTA) ---- */
.frost-pattern {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255,255,255,0.08) 0%, transparent 40%);
}

/* ---- Smooth Fade In on Scroll ---- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive Tweaks ---- */
@media (max-width: 768px) {
    .floating-ice {
        display: none;
    }
    .glass-card-inner {
        padding: 1.5rem;
    }
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f0f9ff;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0369a1, #38bdf8);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0369a1;
}

/* ---- Button Ripple Effect ---- */
a[href="#cta"] .bg-glacier-700,
a[href="#cta"] .bg-white {
    position: relative;
    overflow: hidden;
}
