/* ============================================
   HHPOKER Landing Page - Custom Styles
   ============================================ */

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

/* === Selection === */
::selection {
    background-color: rgba(0, 102, 255, 0.3);
    color: #fff;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0A0E27;
}
::-webkit-scrollbar-thumb {
    background: #111640;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0066FF;
}

/* === Navbar Glassmorphism Enhancement === */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* === Neon Glow Animation for Hero Code Blocks === */
@keyframes neonPulse {
    0%, 100% {
        text-shadow: 0 0 7px rgba(0, 229, 255, 0.3),
                     0 0 10px rgba(0, 229, 255, 0.2),
                     0 0 21px rgba(0, 229, 255, 0.1);
    }
    50% {
        text-shadow: 0 0 7px rgba(0, 229, 255, 0.6),
                     0 0 10px rgba(0, 229, 255, 0.4),
                     0 0 21px rgba(0, 229, 255, 0.2),
                     0 0 42px rgba(0, 229, 255, 0.1);
    }
}

.neon-text {
    animation: neonPulse 2s ease-in-out infinite;
}

/* === Terminal Cursor Blinking === */
@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: #00E5FF;
    animation: blinkCursor 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

/* === Hero Glowing Border Card === */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(0, 229, 255, 0.3);
        box-shadow: 0 0 20px rgba(0, 102, 255, 0.1), 0 0 40px rgba(0, 229, 255, 0.05);
    }
    50% {
        border-color: rgba(0, 229, 255, 0.6);
        box-shadow: 0 0 30px rgba(0, 102, 255, 0.2), 0 0 60px rgba(0, 229, 255, 0.1);
    }
}

.glow-border {
    animation: borderGlow 3s ease-in-out infinite;
}

/* === Gradient Text Animation === */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* === Floating Animation for Hero Elements === */
@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: floatUpDown 4s ease-in-out infinite;
}

/* === Feature Card Hover Gradient === */
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* === CTA Button Glow Pulse === */
@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 102, 255, 0.3), 0 0 40px rgba(0, 229, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 35px rgba(0, 102, 255, 0.5), 0 0 70px rgba(0, 229, 255, 0.3);
    }
}

.cta-glow-btn {
    animation: ctaPulse 2s ease-in-out infinite;
}

/* === FAQ Accordion Active State === */
.faq-item.active {
    border-color: rgba(0, 229, 255, 0.3);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background-color: rgba(0, 229, 255, 0.15);
    color: #00E5FF;
}

/* === Counter Number Style === */
.counter {
    font-variant-numeric: tabular-nums;
}

/* === Section Fade-in on Scroll === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* === Hero Terminal Window Styling === */
.terminal-window {
    position: relative;
    overflow: hidden;
}

.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5), transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { transform: translateY(0); }
    100% { transform: translateY(200px); }
}

/* === Syntax Highlight Colors === */
.code-keyword { color: #FF79C6; }
.code-string { color: #F1FA8C; }
.code-number { color: #BD93F9; }
.code-comment { color: #6272A4; }
.code-function { color: #50FA7B; }
.code-variable { color: #8BE9FD; }

/* === Mobile Menu Transition === */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.show {
    max-height: 500px;
    opacity: 1;
}

/* === About Page Timeline === */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #0066FF, #00E5FF, transparent);
    transform: translateX(-50%);
}

/* === Contact Form Input Focus === */
.contact-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2), 0 0 20px rgba(0, 102, 255, 0.1);
}

/* === Particle/Grid Background for Dark Sections === */
.bg-grid {
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* === Hero Particle Dots === */
@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

.twinkle {
    animation: twinkle 3s ease-in-out infinite;
}

.twinkle-delay-1 { animation-delay: 0.5s; }
.twinkle-delay-2 { animation-delay: 1.5s; }
.twinkle-delay-3 { animation-delay: 2.2s; }

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .terminal-window {
        font-size: 11px;
    }
}
