/* ═══════════════════════════════════════════════
   nextskills360 — Design System
   ═══════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --brand: #22C55E;
  --brand-hover: #16A34A;
  --brand-light: #dcfce7;
  --dark: #0a0e17;
  --dark-lighter: #131a2b;
  --surface: #f8fafc;
  --white: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --max-w: 1140px;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: var(--header-h); }
body { font-family: var(--font-body); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }

/* ── Utilities ── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--surface); }
.text-center { text-align: center; }
.section-tag { display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); background: var(--brand-light); padding: 6px 16px; border-radius: 100px; margin-bottom: 16px; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 12px; }
.section-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 48px; }
.text-gradient { background: linear-gradient(135deg, #f97316, #fbbf24, var(--brand)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-radius: var(--radius-sm); cursor: pointer; border: none; transition: all 0.2s var(--ease); font-size: 0.95rem; padding: 12px 24px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(34,197,94,0.3); }
.btn-secondary { background: var(--white); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-lighter); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; }

/* ── Header ── */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); height: var(--header-h); display: flex; align-items: center; }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; color: var(--text); }
.logo span { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav a:hover { color: var(--brand); }
.nav-cta { margin-left: 8px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger svg { width: 24px; height: 24px; color: var(--text); }

/* ── Hero ── */
.hero { padding: calc(var(--header-h) + 64px) 0 80px; background: var(--dark); color: #fff; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 40%, rgba(34,197,94,0.08) 0%, transparent 50%), radial-gradient(circle at 70% 60%, rgba(59,130,246,0.06) 0%, transparent 50%); pointer-events: none; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(34,197,94,0.12); color: var(--brand); font-size: 0.85rem; font-weight: 600; padding: 8px 20px; border-radius: 100px; margin-bottom: 24px; border: 1px solid rgba(34,197,94,0.2); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); font-weight: 800; margin-bottom: 20px; line-height: 1.1; }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 36px; }
.hero-form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; margin: 0 auto 48px; }
.hero-form-row { display: flex; gap: 12px; }
.hero-form input, .hero-form select { flex: 1; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); color: #fff; font-size: 0.95rem; }
.hero-form select option { background: var(--dark); color: #fff; }
.hero-form input::placeholder, .hero-form select:invalid { color: rgba(255,255,255,0.4); }
.hero-form input:focus, .hero-form select:focus { outline: none; border-color: var(--brand); background: rgba(255,255,255,0.12); }
.stats-bar { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-value { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--brand); }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* ── Filter Bar ── */
.filter-bar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn { padding: 8px 20px; border-radius: 100px; border: 1.5px solid var(--border); background: var(--white); font-size: 0.85rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.2s var(--ease); }
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── Program Cards ── */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: all 0.3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 24px; }
.card-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 4px; background: var(--brand-light); color: var(--brand-hover); margin-bottom: 12px; }
.card-badge.mentor { background: #ede9fe; color: #7c3aed; }
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.card-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.card-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; font-size: 0.82rem; color: var(--text-muted); }
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-meta svg { width: 14px; height: 14px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.card-tags span { font-size: 0.72rem; padding: 3px 8px; border-radius: 4px; background: var(--surface); color: var(--text-muted); font-weight: 500; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface); }
.card-price { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; color: var(--text); }
.card-price small { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }
.card-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.share-icon-btn { background: none; border: 1px solid var(--border); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s var(--ease); position: relative; color: var(--text-muted); }
.share-icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.share-icon-btn svg { width: 15px; height: 15px; }
.share-dropdown { position: absolute; top: 100%; right: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: 4px; min-width: 120px; z-index: 10; margin-top: 6px; }
.share-dropdown a { display: block; padding: 8px 12px; font-size: 0.82rem; font-weight: 600; color: var(--text); border-radius: 4px; text-decoration: none; }
.share-dropdown a:hover { background: var(--surface); color: var(--brand); }
.card-batch { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: 100px; margin-bottom: 14px; }
.card-batch svg { width: 13px; height: 13px; }
.card-batch.multi { background: #dbeafe; color: #1d4ed8; }
.card-batch.single { background: var(--brand-light); color: var(--brand-hover); }
.card-batch.flexible { background: #fef3c7; color: #92400e; }

/* ── Bundle Card ── */
.bundle-card { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%); color: #fff; border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.bundle-badge { display: inline-block; background: var(--brand); color: #fff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 4px 12px; border-radius: 4px; margin-bottom: 12px; }
.bundle-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.bundle-desc { color: rgba(255,255,255,0.7); margin-bottom: 20px; font-size: 0.95rem; }
.bundle-price { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.bundle-price .original { text-decoration: line-through; color: rgba(255,255,255,0.4); font-size: 1.1rem; font-weight: 400; margin-left: 8px; }
.bundle-save { color: var(--brand); font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; }
.bundle-courses { list-style: none; }
.bundle-courses li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: rgba(255,255,255,0.85); }
.bundle-courses li svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }

/* ── Services ── */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { background: var(--white); border-radius: var(--radius); padding: 32px 24px; text-align: center; border: 1px solid var(--border); transition: all 0.3s var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.service-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--brand-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.service-icon svg { width: 24px; height: 24px; color: var(--brand-hover); }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* ── Testimonials ── */
.testimonials-slider { overflow: hidden; position: relative; width: 100%; mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent); padding: 8px 0; }
.testimonials-track { display: flex; gap: 28px; width: max-content; animation: testimonialScroll 45s linear infinite; }
.testimonials-slider:hover .testimonials-track { animation-play-state: paused; }
@keyframes testimonialScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.testimonial-card { background: var(--white); border-radius: 20px; padding: 32px 28px 28px; min-width: 360px; max-width: 360px; flex-shrink: 0; position: relative; border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,0.04); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); overflow: hidden; }
.testimonial-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--brand), #3b82f6); border-radius: 20px 20px 0 0; }
.testimonial-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-lg); }
.testimonial-quote-icon { color: var(--brand); opacity: 0.15; margin-bottom: 4px; }
.testimonial-quote-icon svg { width: 36px; height: 36px; }
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.testimonial-stars svg { width: 16px; height: 16px; color: #f59e0b; fill: #f59e0b; }
.testimonial-quote { font-size: 0.95rem; color: var(--text); line-height: 1.7; margin-bottom: 24px; font-style: italic; position: relative; }
.testimonial-divider { width: 40px; height: 2px; background: var(--border); border-radius: 1px; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-light), #d1fae5); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--brand-hover); font-size: 1rem; flex-shrink: 0; border: 2px solid rgba(34,197,94,0.15); }
.testimonial-name { font-weight: 700; font-size: 0.92rem; color: var(--text); }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ── Community ── */
.community { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%); color: #fff; text-align: center; padding: 80px 0; }
.community .section-tag { background: rgba(34,197,94,0.15); color: var(--brand); }
.community h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.community p { color: rgba(255,255,255,0.65); max-width: 500px; margin: 0 auto 32px; }

/* ── Book Call ── */
.book-call-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.book-call-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.book-call-info p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; }
.book-call-features { list-style: none; }
.book-call-features li { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 0.92rem; color: var(--text); }
.book-call-features li svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }
.book-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.92rem; color: var(--text); background: var(--white); transition: border-color 0.2s; }
.form-input:focus { outline: none; border-color: var(--brand); }
.form-input::placeholder { color: var(--text-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; background: var(--white); }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; cursor: pointer; font-weight: 600; font-size: 0.95rem; background: none; border: none; width: 100%; text-align: left; color: var(--text); transition: color 0.2s; }
.faq-q:hover { color: var(--brand); }
.faq-q svg { width: 20px; height: 20px; color: var(--text-muted); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease), padding 0.3s; }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding: 0 20px 18px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ── Footer ── */
.footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 48px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.footer .logo { color: #fff; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom { text-align: center; font-size: 0.8rem; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); }

/* ── Enrollment Modal ── */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--white); border-radius: var(--radius); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 1.15rem; font-weight: 700; }
.modal-close { background: none; border: none; cursor: pointer; padding: 4px; color: var(--text-muted); }
.modal-close:hover { color: var(--text); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { padding: 24px; }
.modal-course-info { background: var(--surface); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 20px; }
.modal-course-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.modal-course-meta { display: flex; gap: 16px; font-size: 0.82rem; color: var(--text-muted); }
.payment-box { background: var(--surface); border-radius: var(--radius-sm); padding: 20px; margin-top: 16px; text-align: center; }
.payment-box .upi-id { font-family: monospace; font-size: 0.92rem; background: var(--white); padding: 8px 14px; border-radius: 4px; border: 1px dashed var(--border); display: inline-block; margin: 8px 0; user-select: all; }
.payment-box img { max-width: 160px; margin: 12px auto; }
.payment-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; }

/* ── Coupon Celebration ── */
.coupon-success { display: flex; flex-direction: column; gap: 2px; }
.coupon-check { display: flex; align-items: center; gap: 5px; color: var(--brand); font-weight: 700; }
.coupon-check svg { width: 15px; height: 15px; }
.coupon-saving { color: var(--brand-hover); font-weight: 600; font-size: 0.85rem; }
.price-original { text-decoration: line-through; color: var(--text-muted); font-weight: 400; font-size: 0.85rem; }
.price-final { color: var(--brand); font-weight: 800; font-size: 1.15rem; animation: pricePopIn 0.4s var(--ease); }
@keyframes pricePopIn { 0% { transform: scale(0.7); opacity: 0; } 50% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
.coupon-lottie-wrap { text-align: center; pointer-events: none; animation: fadeInOut 3s var(--ease) forwards; }
@keyframes fadeInOut { 0% { opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
.enroll-success { text-align: center; padding: 32px 24px; }
.enroll-success svg { width: 48px; height: 48px; color: var(--brand); margin-bottom: 16px; }
.enroll-success h3 { font-size: 1.2rem; margin-bottom: 8px; }
.enroll-success p { color: var(--text-muted); font-size: 0.92rem; }

/* ── Toast ── */
.toast { position: fixed; bottom: 24px; right: 24px; z-index: 300; background: var(--dark); color: #fff; padding: 14px 20px; border-radius: var(--radius-sm); font-size: 0.9rem; transform: translateY(120%); transition: transform 0.3s var(--ease); max-width: 360px; }
.toast.show { transform: translateY(0); }
.toast.success { border-left: 4px solid var(--brand); }
.toast.error { border-left: 4px solid var(--danger); }

/* ── Spinner ── */
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card { min-width: 320px; max-width: 320px; }
  .bundle-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--white); flex-direction: column; gap: 0; border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform 0.3s var(--ease); padding: 12px 0; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 24px; width: 100%; }
  .nav-cta { margin: 8px 24px 0; }
  .hamburger { display: block; }
  .programs-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonial-card { min-width: 290px; max-width: 290px; padding: 24px 22px 22px; }
  .book-call-grid { grid-template-columns: 1fr; }
  .hero-form-row { flex-direction: column; }
  .stats-bar { gap: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .bundle-card { padding: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .card-meta { gap: 8px; }
  .modal { margin: 12px; max-height: calc(100vh - 24px); }
}

