/* ============================================================
   Kamara AI Solutions, styles.css
   Professional dark theme with light accent, fully responsive
   ============================================================ */

:root {
  --bg: #0b1220;
  --bg-alt: #0f1830;
  --surface: #131f3a;
  --surface-2: #182548;
  --border: #24345c;
  --text: #e8edf7;
  --text-dim: #9fb0cc;
  --text-mute: #6f82a3;
  --brand: #4f8cff;
  --brand-2: #22d3ee;
  --accent: #7c5cff;
  --grad: linear-gradient(120deg, #4f8cff 0%, #22d3ee 55%, #7c5cff 100%);
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.15; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); background: #3f7bf0; }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(11, 18, 32, 0.9); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; font-family: 'Sora', sans-serif; }
.brand-mark {
  position: relative; width: 34px; height: 34px; border-radius: 9px; overflow: hidden;
  flex: none; box-shadow: 0 6px 18px -6px rgba(79, 140, 255, 0.8);
}
.brand-mark-k {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--grad); color: #071022; font-weight: 800;
}
.brand-mark-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  background: #0b1220; padding: 3px;
}
.brand-accent { color: var(--brand-2); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: 0.96rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 10px 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border); color: var(--text) !important;
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.1); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 560px; pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(79, 140, 255, 0.07), transparent 62%);
}
.hero-inner { position: relative; text-align: center; max-width: 860px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-2);
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(34, 211, 238, 0.06); margin-bottom: 22px;
}
.hero-title { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; margin-bottom: 22px; }
.grad { color: var(--brand); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-dim); max-width: 640px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 64px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-family: 'Sora', sans-serif; font-size: 2.4rem; font-weight: 800; color: #fff; }
.stat-suffix { font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--brand); }
.stat-label { display: block; font-size: 0.86rem; color: var(--text-mute); margin-top: 4px; }

/* ---------- Trust bar ---------- */
.trustbar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); padding: 22px 0; }
.trust-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.trust-inner > span { color: var(--text-mute); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.trust-logos { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.trust-logos li { color: var(--text-dim); font-weight: 600; font-size: 1rem; opacity: 0.75; transition: opacity 0.2s; }
.trust-logos li:hover { opacity: 1; }
.trust-logos li.trust-more { color: var(--brand); font-style: italic; opacity: 0.9; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.section-lead { color: var(--text-dim); font-size: 1.05rem; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 22px; }
.cards { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: var(--shadow); }
.card-highlight { background: rgba(79, 140, 255, 0.05); border-color: var(--brand); }
.card-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 12px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border); margin-bottom: 18px; color: var(--brand-2);
}
.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon { border-color: var(--brand); background: rgba(79, 140, 255, 0.08); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.96rem; }

/* ---------- Work grid ---------- */
.work-grid { grid-template-columns: repeat(2, 1fr); }
.work-grid-3 { grid-template-columns: repeat(3, 1fr); }
.work-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 30px; position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.work-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.work-card:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: var(--shadow); }
.work-card:hover::before { transform: scaleX(1); }
.work-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-2); background: rgba(34,211,238,0.08); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.work-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.work-link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
.work-link:hover { color: var(--brand); border-bottom-color: var(--brand); }
.work-card p { color: var(--text-dim); margin-bottom: 20px; }
.work-metrics { display: flex; gap: 28px; border-top: 1px solid var(--border); padding-top: 18px; }
.work-metrics li { font-size: 0.86rem; color: var(--text-mute); }
.work-metrics strong { display: block; font-family: 'Sora', sans-serif; font-size: 1.5rem; color: var(--text); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.about-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 38px 32px; text-align: center; box-shadow: var(--shadow);
}
.about-avatar {
  position: relative; width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px;
  overflow: hidden; border: 2px solid var(--border);
  box-shadow: 0 12px 30px -10px rgba(79,140,255,0.7);
}
.about-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: 'Sora', sans-serif; font-size: 2.6rem; font-weight: 800; color: #071022; background: var(--grad);
}
.about-card h3 { font-size: 1.4rem; }
.about-role { color: var(--brand-2); font-weight: 600; margin-bottom: 16px; }
.about-bio { color: var(--text-dim); font-size: 0.96rem; margin-bottom: 20px; }
.about-contact { display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; color: var(--text-dim); }
.about-contact a { color: var(--brand); }
.about-contact a:hover { text-decoration: underline; }

.about-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 18px; }
.about-copy > p { color: var(--text-dim); margin-bottom: 16px; }
.about-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.value h4 { font-size: 1.02rem; margin-bottom: 6px; color: var(--text); }
.value h4::before { content: "→ "; color: var(--brand-2); }
.value p { font-size: 0.9rem; color: var(--text-mute); }

/* ---------- Credential chips ---------- */
.cred-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.cred-chips li {
  font-size: 0.82rem; font-weight: 600; color: var(--text-dim);
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.cred-chips li:hover { color: var(--text); border-color: var(--brand); }

/* ---------- Highlights (Why me) ---------- */
.highlights { display: grid; gap: 14px; margin-top: 26px; }
.highlights li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; transition: transform 0.3s var(--ease), border-color 0.3s;
}
.highlights li:hover { transform: translateX(4px); border-color: var(--brand); }
.hl-ico {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 11px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border); color: var(--brand-2);
}
.hl-ico svg { width: 22px; height: 22px; }
.highlights li:hover .hl-ico { border-color: var(--brand); background: rgba(79, 140, 255, 0.08); }

/* ---------- Inline icons (contact) ---------- */
.ic { flex: none; width: 16px; height: 16px; color: var(--brand-2); vertical-align: -3px; margin-right: 9px; }
.highlights strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.highlights p { font-size: 0.9rem; color: var(--text-mute); }

/* ---------- Accolade (diploma) ---------- */
.accolade.diploma { margin-top: 56px; text-align: center; }
.accolade.diploma img { max-width: 560px; width: 100%; border-radius: 10px; box-shadow: var(--shadow); display: block; margin: 0 auto; }
.accolade.diploma figcaption { margin-top: 16px; font-size: 0.9rem; color: var(--text-mute); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 34px; list-style: none; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--brand), var(--accent)); opacity: 0.5;
}
.timeline li { position: relative; padding: 0 0 34px 8px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -33px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg-alt); border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.12);
}
.tl-date {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--brand-2); margin-bottom: 6px;
}
.timeline h3 { font-size: 1.18rem; margin-bottom: 8px; }
.timeline p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Honors ---------- */
.honors { margin-top: 56px; max-width: 900px; margin-left: auto; margin-right: auto; }
.honors-title { text-align: center; font-size: 1.3rem; margin-bottom: 24px; }
.honors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.honors-grid li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px 20px; transition: transform 0.3s var(--ease), border-color 0.3s;
}
.honors-grid li:hover { transform: translateY(-4px); border-color: var(--brand); }
.honors-grid strong { display: block; font-size: 0.98rem; margin-bottom: 4px; }
.honors-grid span { font-size: 0.82rem; color: var(--text-mute); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; list-style: none; }
.process.steps { grid-template-columns: repeat(3, 1fr); max-width: 920px; margin: 0 auto; }
.process li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; position: relative; transition: transform 0.3s var(--ease), border-color 0.3s;
}
.process li:hover { transform: translateY(-6px); border-color: var(--brand); }
.step-num { font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--brand); display: block; margin-bottom: 14px; }
.process h3 { font-size: 1.15rem; margin-bottom: 8px; }
.process p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.contact-copy > p { color: var(--text-dim); margin-bottom: 26px; }
.contact-list { display: flex; flex-direction: column; gap: 12px; font-size: 1rem; color: var(--text-dim); }
.contact-list a { color: var(--brand); }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 7px; color: var(--text-dim); }
.field .opt { color: var(--text-mute); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 0.96rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field select { color-scheme: dark; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239fb0cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.18);
}
.field textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.form-note.ok { color: #34d399; }
.form-note.err { color: #f87171; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Sora', sans-serif; font-weight: 700; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--text-dim); font-size: 0.94rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }
.footer-legal { color: var(--text-mute); font-size: 0.86rem; }
.footer-legal a { color: var(--text-dim); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.footer-legal a:hover { color: var(--text); border-bottom-color: var(--border); }

/* ---------- Legal pages ---------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; }
.legal-back { display: inline-block; margin-bottom: 26px; color: var(--text-dim); font-size: 0.92rem; }
.legal-back:hover { color: var(--text); }
.legal-page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal-date { color: var(--text-mute); font-size: 0.9rem; margin-bottom: 34px; }
.legal-page h2 { font-size: 1.2rem; margin: 32px 0 10px; }
.legal-page p { color: var(--text-dim); margin-bottom: 14px; font-size: 0.98rem; }
.legal-page ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal-page li { color: var(--text-dim); margin-bottom: 7px; font-size: 0.98rem; }
.legal-page a { color: var(--brand); }
.legal-page a:hover { text-decoration: underline; }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process.steps { grid-template-columns: 1fr; max-width: 480px; }
  .work-grid-3 { grid-template-columns: 1fr; }
  .honors-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: rgba(11, 18, 32, 0.98); border-bottom: 1px solid var(--border);
    padding: 8px 0; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all 0.28s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 24px; }
  .nav-cta { margin: 8px 24px; text-align: center; }
  .hero-stats { gap: 30px; }
  .work-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .honors-grid { grid-template-columns: 1fr; }
  .section { padding: 66px 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
