/* === Custom Styles for WakeUpVPN === */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0D0D11;
}
::-webkit-scrollbar-thumb {
    background: #1E1E2A;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2A2A3A;
}

/* Selection color */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(13, 13, 17, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 30, 42, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Popular card wrapper - gradient border effect */
.popular-card-wrapper {
    position: relative;
    z-index: 1;
}
.popular-card-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6, #A855F7, #6366F1);
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    z-index: -1;
    opacity: 0.8;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* FAQ accordion open state */
.faq-item.active {
    border-color: #2A2A3A;
    background: #18181F;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #6366F1;
}
.faq-content {
    animation: fadeSlideDown 0.3s ease-out;
}
@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Period toggle active state handled by JS adding inline styles */

/* Card hover glow */
.bg-\[\#13131A\]:hover {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.06), 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button press effect */
a:active {
    transform: scale(0.97) !important;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #6366F1;
    outline-offset: 2px;
    border-radius: 8px;
}

/* Responsive nav link hover underline */
@media (min-width: 1024px) {
    nav a:not([class*="rounded"]) {
        position: relative;
    }
    nav a:not([class*="rounded"])::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(to right, #6366F1, #A855F7);
        border-radius: 1px;
        transition: width 0.3s ease;
    }
    nav a:not([class*="rounded"]):hover::after {
        width: 100%;
    }
}

/* Pulse animation for status indicator */
.animate-pulse-green {
    animation: pulseGreen 2s ease-in-out infinite;
}
@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* Glow orb animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}
.animate-float-delayed {
    animation: float 6s ease-in-out 2s infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Glow animation for primary CTA */
.animate-glow {
    animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.15), 0 0 80px rgba(168, 85, 247, 0.08); }
    50% { box-shadow: 0 0 60px rgba(99, 102, 241, 0.3), 0 0 120px rgba(168, 85, 247, 0.18); }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}