/* ============================================
   NiSkills — styles.css
   Dark navy EdTech theme (forked from SuSAMs)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
    --navy-950:  #0b1120;
    --navy-900:  #0f172a;
    --navy-800:  #1e293b;
    --navy-700:  #334155;
    --cyan-500:  #06b6d4;
    --cyan-400:  #22d3ee;
    --cyan-300:  #67e8f9;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --orange-500: #f97316;
    --orange-400: #fb923c;
    --pink-500:   #ec4899;
    --pink-400:   #f472b6;
    --emerald-500:#10b981;
    --emerald-400:#34d399;
    --violet-500: #8b5cf6;
    --violet-400: #a78bfa;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--navy-900);
    color: #f1f5f9;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.heading-font { font-family: 'Space Grotesk', sans-serif; }

/* ── Scroll Progress Bar ── */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--cyan-500), var(--cyan-300));
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ── Navbar ── */
.navbar {
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -4px; left: 0;
    background: var(--cyan-500);
    transition: width 0.3s ease;
    border-radius: 999px;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link.active { color: var(--cyan-400); }

/* ── Hero Section ── */
.hero-section {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -200px; right: -150px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 65%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -150px; left: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.hex-grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: radial-gradient(circle, rgba(6, 182, 212, 0.8) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* ── Stat Numbers ── */
.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--cyan-400);
    line-height: 1;
}

/* ── Badge / Pill ── */
.niche-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 9999px;
    padding: 5px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cyan-400);
}

/* ── Feature Cards ── */
.feature-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.1);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: -110%;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan-400), transparent);
    transition: left 0.55s ease;
}

.feature-card:hover::before { left: 110%; }

.feature-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2), 0 0 16px rgba(6, 182, 212, 0.06);
}

/* ── Pillar Cards ── */
.pillar-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.1);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0; left: -110%;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan-400), transparent);
    transition: left 0.55s ease;
}

.pillar-card:hover::before { left: 110%; }

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2), 0 0 16px rgba(6, 182, 212, 0.06);
}

.pillar-card.pillar-orange { border-color: rgba(249, 115, 22, 0.25); }
.pillar-card.pillar-orange:hover { border-color: rgba(249, 115, 22, 0.5); }
.pillar-card.pillar-orange::before { background: linear-gradient(90deg, transparent, var(--orange-400), transparent); }

.pillar-card.pillar-pink { border-color: rgba(236, 72, 153, 0.25); }
.pillar-card.pillar-pink:hover { border-color: rgba(236, 72, 153, 0.5); }
.pillar-card.pillar-pink::before { background: linear-gradient(90deg, transparent, var(--pink-400), transparent); }

.pillar-card.pillar-cyan { border-color: rgba(6, 182, 212, 0.25); }
.pillar-card.pillar-cyan:hover { border-color: rgba(6, 182, 212, 0.5); }

.pillar-card.pillar-emerald { border-color: rgba(16, 185, 129, 0.25); }
.pillar-card.pillar-emerald:hover { border-color: rgba(16, 185, 129, 0.5); }
.pillar-card.pillar-emerald::before { background: linear-gradient(90deg, transparent, var(--emerald-400), transparent); }

/* ── Pricing Cards ── */
.pricing-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.12);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(8px);
}

.pricing-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
    border-color: rgba(6, 182, 212, 0.4);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

/* ── Testimonial Cards ── */
.testimonial-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.1);
    transition: border-color 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(8px);
}

.testimonial-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-4px);
}

/* ── Step Cards ── */
.step-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.12);
    transition: border-color 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(8px);
    position: relative;
}

.step-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    transform: translateY(-4px);
}

.step-connector {
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 2rem;
    border-top: 2px dashed rgba(6, 182, 212, 0.3);
}

/* ── FAQ Details ── */
.faq-details {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(6, 182, 212, 0.08);
    border-radius: 1rem;
    transition: border-color 0.3s ease;
}

.faq-details[open] {
    border-color: rgba(6, 182, 212, 0.3);
}

.faq-details summary {
    cursor: pointer;
    list-style: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-details summary::-webkit-details-marker { display: none; }

.faq-details summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--cyan-400);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-details[open] summary::after {
    content: '-';
}

.faq-details .faq-body {
    padding: 0 1.5rem 1.25rem;
    color: #94a3b8;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ── Demo Modal ── */
.demo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.demo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.demo-modal {
    background: var(--navy-800);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 1.5rem;
    max-width: 32rem;
    width: 100%;
    margin: 1rem;
    padding: 2rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.demo-modal-overlay.active .demo-modal {
    transform: translateY(0);
}

/* ── Tech Tags ── */
.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: #a5f3fc;
    border-radius: 6px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
    cursor: default;
}

.tech-tag:hover {
    background: rgba(6, 182, 212, 0.16);
    border-color: rgba(6, 182, 212, 0.4);
    color: #cffafe;
}

/* ── Hero Floating Cards ── */
.hero-float-card {
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(6, 182, 212, 0.18);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* ── CTA / Contact Section ── */
.cta-section {
    background: linear-gradient(135deg,
        rgba(6, 182, 212, 0.08) 0%,
        rgba(6, 182, 212, 0.03) 100%);
    border-top: 1px solid rgba(6, 182, 212, 0.12);
}

/* ── Partner Badges ── */
.partner-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(6, 182, 212, 0.12);
    border-radius: 12px;
    padding: 14px 22px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 14px;
    transition: border-color 0.3s, color 0.3s;
}

.partner-badge:hover {
    border-color: rgba(6, 182, 212, 0.35);
    color: #e2e8f0;
}

/* ── Scroll Fade-up Animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Mobile Menu ── */
#mobileMenu {
    background: rgba(15, 23, 42, 0.97);
    border-top: 1px solid rgba(6, 182, 212, 0.12);
}

/* ── Form Inputs (dark theme) ── */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--cyan-500) !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* ── Hide reCAPTCHA badge ── */
.grecaptcha-badge { visibility: hidden; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-float-card { display: none; }
    .pricing-card.featured { transform: scale(1); }
    .pricing-card.featured:hover { transform: translateY(-4px); }
    .step-connector { display: none; }
}

@media (max-width: 768px) {
    .stat-number { font-size: 1.85rem; }
}
