/* ============================================================
   NejaTech Studio Pages — Shared Design System
   Ported faithfully from the homepage (index.html) so every new
   page matches the site's existing visual identity. The homepage
   itself is untouched — this file is additive, not a refactor.
   ============================================================ */

:root {
  --primary: #2563EB;
  --primary-dark: #1E40AF;
  --secondary: #06B6D4;
  --accent: #F43F5E;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --success-color: #10b981;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

a { color: inherit; }
img { max-width: 100%; }

/* ---------- NAV ---------- */
.nav-wrapper {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  transition: background 0.3s ease;
}

.nav {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.brand img { height: 48px; display: block; }

.nav-links { display: flex; align-items: center; }

.nav-links a {
  margin-left: 24px;
  text-decoration: none;
  font-weight: 500;
  color: var(--text-main);
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0; height: 2px;
  bottom: 0; left: 0;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

.nav-links .btn-nav {
  margin-left: 24px;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
}

.nav-links .btn-nav::after { display: none; }
.nav-links .btn-nav:hover { background: var(--primary-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 8px; border-radius: 8px;
  transition: background 0.2s;
}

.nav-toggle:hover { background: rgba(37, 99, 235, 0.08); }
.nav-toggle svg { width: 24px; height: 24px; color: var(--text-main); display: block; }

.mobile-menu {
  display: none;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 280px;
  background: #fff;
  z-index: 1100;
  padding: 80px 32px 32px;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu a {
  display: block; padding: 14px 16px;
  text-decoration: none; font-weight: 600; font-size: 1.05rem;
  color: var(--text-main); border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.mobile-menu a:hover { background: rgba(37, 99, 235, 0.08); color: var(--primary); }

.mobile-menu-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px; color: var(--text-main);
  transition: background 0.2s;
}

.mobile-menu-close:hover { background: rgba(0,0,0,0.06); }
.mobile-menu-close svg { width: 24px; height: 24px; display: block; }

.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-overlay.open { opacity: 1; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu, .mobile-overlay { display: flex; }
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px 8px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
  opacity: 0.85;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.breadcrumb::-webkit-scrollbar { display: none; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; opacity: 0.6; }

@media (max-width: 600px) {
  .breadcrumb { font-size: 0.7rem; padding: 10px 16px 6px; }
}

/* ---------- PAGE HERO (dark, matches homepage header) ---------- */
.page-hero {
  position: relative;
  background: var(--text-main);
  color: #fff;
  padding: 64px 20px 80px;
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
  z-index: -2;
}

.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 100%);
  z-index: -1;
}

.page-hero-inner { max-width: 900px; margin: 0 auto; text-align: center; }

.page-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93C5FD;
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin: 0 0 16px;
  line-height: 1.12;
}

.page-hero p.dek {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.page-hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn { padding: 12px 20px; border-radius: 12px; font-weight: 600; border: 0; cursor: pointer; text-decoration: none; display: inline-block; font-size: 0.95rem; transition: transform 0.2s, background 0.2s, box-shadow .2s; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(37,99,235,0.28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-on-dark.btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.btn-on-dark.btn-primary:hover { background: #f1f5f9; }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- SECTIONS ---------- */
section { padding: 80px 20px; position: relative; }
.container { max-width: 1100px; margin: auto; }
.container-narrow { max-width: 760px; margin: auto; }

.section-title { text-align: center; color: var(--primary); font-size: 1.6rem; margin: 0; }
.section-title::after { content: ""; display: block; width: 70px; height: 4px; margin: 16px auto; background: linear-gradient(90deg, var(--primary), #1BC6C6); border-radius: 4px; }
.section-title-left { text-align: left; margin-left: 0; }
.section-title-left::after { margin: 16px 0; }

.lead { text-align: center; color: var(--text-muted); max-width: 820px; margin: 10px auto 40px; }
.lead-left { text-align: left; margin: 10px 0 40px; }

.section-alt { background: var(--surface); }

/* ---------- CARDS ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }

.service-card { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 12px 30px rgba(0,0,0,.08); transition: .4s; }
.service-card:hover { transform: translateY(-10px); }
.service-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(46,85,199,.1); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-icon svg { width: 32px; height: 32px; color: var(--primary); }
.service-card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }

/* ---------- TAGS / CHIPS ---------- */
.tag { background: rgba(37, 99, 235, 0.08); color: var(--primary); border: 1px solid rgba(37, 99, 235, 0.2); padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }

.tech-stack-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tech-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; color: var(--text-main); box-shadow: 0 4px 12px rgba(0,0,0,0.04); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tech-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--chip-color, var(--primary)); flex-shrink: 0; }
.tech-chip:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(37,99,235,0.15); border-color: rgba(37,99,235,0.3); }

/* ---------- PROCESS TIMELINE ---------- */
.process-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; margin-top: 30px; }
.process-track::before { content: ''; position: absolute; top: 24px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(to right, var(--border) 0 8px, transparent 8px 16px); z-index: 0; }
.process-step { position: relative; z-index: 1; text-align: center; }
.process-num { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; margin: 0 auto 14px; box-shadow: 0 8px 20px rgba(37,99,235,0.35); }
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text-main); }
.process-step p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
@media (max-width: 900px) { .process-track { grid-template-columns: 1fr; gap: 32px; } .process-track::before { display: none; } }

/* ---------- FAQ ACCORDION ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; box-shadow: 0 6px 18px rgba(0,0,0,0.04); }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--text-main); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--primary); transition: transform .25s ease; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }

/* ---------- BADGES ---------- */
.availability-badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.35); color: #6EE7B7; padding: 7px 16px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; margin-bottom: 20px; }
.availability-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success-color); flex-shrink: 0; animation: availPulse 2s infinite; }
@keyframes availPulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

.verify-note { display: inline-flex; align-items: center; gap: 8px; background: rgba(244,63,94,0.07); border: 1px solid rgba(244,63,94,0.2); color: #9F1239; padding: 5px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }

/* ---------- SPEC / CAPABILITY LIST ---------- */
.spec-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.spec-list li { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; }
.spec-list li svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--success-color); margin-top: 2px; }

/* ---------- CASE STUDY CARD ---------- */
.cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.cs-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.08); transition: .3s; text-decoration: none; color: inherit; display: block; }
.cs-card:hover { transform: translateY(-6px); }
.cs-card-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--primary), var(--secondary)); position: relative; overflow: hidden; }
.cs-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-card-body { padding: 20px 22px; }
.cs-card-body .tag { margin-bottom: 10px; }
.cs-card-body h3 { margin: 6px 0 8px; font-size: 1.1rem; }
.cs-card-body p { color: var(--text-muted); font-size: 0.88rem; margin: 0; line-height: 1.5; }

/* ---------- FOOTER ---------- */
.footer-premium { background: #0f172a; padding: 80px 20px 40px; color: #94a3b8; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1100px; margin: auto; }
.footer-col h3 { color: #fff; margin-top: 0; }
.footer-col h4 { color: #fff; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #94a3b8; text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: var(--primary); }
.social-links { display: flex; gap: 15px; margin-bottom: 20px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #334155; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; }
.social-links a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-bottom { max-width: 1100px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid #1e293b; text-align: center; font-size: 0.85rem; }

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- TABLE (data comparisons) ---------- */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.06); }
.data-table th { text-align: left; background: var(--bg); padding: 12px 16px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.data-table td { padding: 14px 16px; border-top: 1px solid var(--border); font-size: 0.92rem; }

@media (max-width: 600px) {
  section { padding: 56px 16px; }
  .page-hero { padding: 48px 16px 56px; }
}
