/* ========================================
   HHpoker - Icelandic Frost Theme
   Glassmorphism + Frosted Glass Effects
   ======================================== */

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f8ff;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6bb5ed, #4898e0);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4898e0, #2563a0);
}

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

/* ---- Glassmorphism Base Classes ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(10, 142, 255, 0.08);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 40px rgba(10, 142, 255, 0.12);
    transform: translateY(-4px);
}

.glass-card-heavy {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 40px rgba(10, 142, 255, 0.1);
}

/* ---- Ice Gradient Texts ---- */
.ice-gradient-text {
    background: linear-gradient(135deg, #3aa8ff, #2563a0, #4898e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- Hero Section ---- */
.hero-overlay {
    background: linear-gradient(135deg,
        rgba(240, 248, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.7) 40%,
        rgba(224, 240, 255, 0.85) 100%);
}

.hero-bg-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* ---- Feature Cards ---- */
.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-icon-1 { background: linear-gradient(135deg, #e0f0ff, #b8dfff); color: #0070d6; }
.feature-icon-2 { background: linear-gradient(135deg, #e8f4fd, #cce5fa); color: #2e7dc6; }
.feature-icon-3 { background: linear-gradient(135deg, #f0f8ff, #9bcff5); color: #0058ad; }
.feature-icon-4 { background: linear-gradient(135deg, #f5fbff, #b8dfff); color: #004a8f; }
.feature-icon-5 { background: linear-gradient(135deg, #e0f0ff, #7cc5ff); color: #003e76; }
.feature-icon-6 { background: linear-gradient(135deg, #e8f4fd, #9bcff5); color: #2563a0; }

/* ---- Stats Section ---- */
.stat-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}
.stat-card:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(10, 142, 255, 0.1);
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}
.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(10, 142, 255, 0.12);
}
.testimonial-card::before {
    content: '\201C';
    font-size: 5rem;
    line-height: 1;
    position: absolute;
    top: 8px;
    left: 20px;
    color: rgba(10, 142, 255, 0.1);
    font-family: Georgia, serif;
}

/* ---- FAQ Accordion (CSS-only) ---- */
.faq-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.7);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #1e5080;
    user-select: none;
    transition: color 0.2s ease;
}
.faq-question:hover {
    color: #0070d6;
}
.faq-question .faq-icon {
    font-size: 0.875rem;
    color: #4898e0;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.7;
}
.faq-checkbox {
    display: none;
}
.faq-checkbox:checked + .faq-question .faq-icon {
    transform: rotate(180deg);
}
.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem 1.5rem;
}

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(135deg, #1a4269 0%, #1e5080 50%, #003e76 100%);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(58, 168, 255, 0.2), transparent 70%);
    border-radius: 50%;
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 181, 237, 0.2), transparent 70%);
    border-radius: 50%;
}

/* ---- Navbar scroll effect ---- */
#navbar.scrolled .backdrop-blur-xl {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 24px rgba(10, 142, 255, 0.08);
}

/* ---- IntersectionObserver Animation Classes ---- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }
.delay-700 { transition-delay: 700ms; }

/* ---- Counter Animation ---- */
.counter-value {
    font-variant-numeric: tabular-nums;
}

/* ---- Button Glow ---- */
.btn-glow {
    position: relative;
    overflow: hidden;
}
.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-glow:hover::after {
    opacity: 1;
}

/* ---- Ice Divider ---- */
.ice-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10, 142, 255, 0.3), transparent);
    margin: 2rem 0;
}

/* ---- Frost Badge ---- */
.frost-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2563a0;
}

/* ---- Pulse animation for CS button ---- */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(10, 142, 255, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(10, 142, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(10, 142, 255, 0); }
}
#cs-button a {
    animation: pulse-ring 2.5s infinite;
}

/* ---- Section spacing ---- */
.section-padding {
    padding: 5rem 1rem;
}
@media (min-width: 768px) {
    .section-padding {
        padding: 7rem 2rem;
    }
}

/* ---- Page Header (About/Contact) ---- */
.page-header {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: linear-gradient(180deg, #f0f8ff 0%, #ffffff 100%);
    text-align: center;
}

/* ---- Form Styles ---- */
.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    font-size: 0.9375rem;
    color: #1e5080;
    outline: none;
    transition: all 0.3s ease;
}
.form-input:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: #4898e0;
    box-shadow: 0 0 0 4px rgba(10, 142, 255, 0.08);
}
.form-input::placeholder {
    color: #94a3b8;
}

/* ---- Contact Info Cards ---- */
.contact-info-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}
.contact-info-card:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(10, 142, 255, 0.1);
}

/* ---- About Page Timeline ---- */
.timeline-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}
.timeline-card:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 16px 48px rgba(10, 142, 255, 0.1);
}
