/* ============================================================
   NJ SORA Portal — Shared Styles
   ============================================================ */

/* --- Scrollbar Hide Utility --- */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Category Card Hover --- */
.category-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.category-card:hover {
    background-color: rgba(248, 250, 252, 0.8);
    border-color: #cbd5e1;
    transform: translateY(-4px);
}
.dark .category-card:hover {
    background-color: rgba(30, 41, 59, 0.8);
    border-color: #334155;
}

/* --- Image Card Hover --- */
.image-card img { transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.image-card:hover img { transform: scale(1.08); }

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.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; }

/* --- Fade-in-up for staggered children --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.5, 0, 0, 1) forwards;
    opacity: 0;
}

/* --- Pulse glow for CTA buttons --- */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
    50%      { box-shadow: 0 0 20px 6px rgba(234, 179, 8, 0.15); }
}
.pulse-glow { animation: pulseGlow 3s ease-in-out infinite; }

/* --- Counter number animation --- */
@keyframes countFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}
.counter-animate {
    animation: countFadeIn 0.5s ease-out forwards;
}

/* --- Gradient text utility --- */
.gradient-text {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Glassmorphic card base --- */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.dark .glass-card {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.08);
}

/* --- Timeline connector for how-it-works --- */
.timeline-step {
    position: relative;
}
.timeline-step::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 2.75rem;
    width: 2px;
    height: calc(100% - 1rem);
    background: linear-gradient(to bottom, #eab308, transparent);
}
.timeline-step:last-child::before {
    display: none;
}

/* --- Accordion for FAQ --- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}
.faq-answer.open {
    max-height: 500px;
}
.faq-chevron {
    transition: transform 0.3s ease;
}
.faq-chevron.open {
    transform: rotate(180deg);
}

/* --- Mobile menu slide-in --- */
.mobile-menu-enter {
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-enter.open {
    transform: translateX(0);
}

/* --- Testimonial card --- */
.testimonial-card {
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
}

/* --- Subtle parallax on hover for hero images --- */
.hero-parallax {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-parallax:hover {
    transform: scale(1.03);
}

/* --- Skip to content (accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: #0f172a;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    font-weight: 600;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}

/* --- Print styles --- */
@media print {
    nav, footer, .skip-link, #theme-toggle, #mobile-menu-btn { display: none !important; }
    body { color: #000 !important; background: #fff !important; }
    .dark { color: #000 !important; background: #fff !important; }
    a { color: #000 !important; text-decoration: underline !important; }
}
