/* ============================================
   NettoProfit Custom Styles
   Supplements Tailwind CSS
   ============================================ */

/* --- Smooth scroll --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

/* --- Focus ring --- */
*:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Hero grid background --- */
.hero-grid-bg {
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* --- Scroll-triggered fade-in animation --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navbar solid state --- */
#navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* --- FAQ accordion animation --- */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-content {
    max-height: 500px;
    display: block;
}
.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

/* --- Score circle animation --- */
.score-circle {
    stroke-dasharray: 0 340;
    animation: scoreReveal 1.5s ease forwards;
    animation-play-state: paused;
}
.score-circle.animate {
    animation-play-state: running;
}
@keyframes scoreReveal {
    to {
        stroke-dasharray: 280 340;
    }
}

/* --- Pricing card hover --- */
#pricing .flex.flex-col {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#pricing .flex.flex-col:hover {
    transform: translateY(-4px);
}

/* --- Reduced motion --- */
@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;
    }
    .fade-in-up {
        opacity: 1;
        transform: none;
    }
}

/* --- Custom scrollbar (webkit) --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* --- Selection color --- */
::selection {
    background-color: rgba(16, 185, 129, 0.3);
    color: #ffffff;
}

/* --- Language Switcher --- */
.lang-switcher-dropdown {
    animation: langDropIn 0.15s ease-out;
}
@keyframes langDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lang-switcher-dropdown a.active-lang {
    background-color: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-weight: 600;
}
.lang-switcher-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.04);
}
