/* Laili Mohamed Translation - Modern "translator's workspace" theme
   Same palette as the original: forest green, cream and warm brown. */

:root {
  --cream: #f4f0e3;
  --cream-dark: #e8e2d0;
  --paper: #fbf9f2;
  --primary-color: #2d4a3e;
  --primary-light: #3d6354;
  --primary-dark: #1e332b;
  --accent-color: #8b7355;
  --accent-light: #a68b6a;
  --accent-ink: #7a6449; /* same hue, darker: passes AA for small text */
  --text-dark: #2d2d2d;
  --text-muted: #5a5a5a;
  --line: rgba(45, 74, 62, 0.14);
  --radius: 1.25rem;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

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

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.7;
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--primary-dark);
}

h5, h6 { color: var(--primary-dark); }
a { color: var(--primary-color); }

section { position: relative; }
.row.g-5 { --bs-gutter-x: 2rem; }
@media (min-width: 992px) { .row.g-5 { --bs-gutter-x: 3rem; } }
.section-pad { padding: 6rem 0; }

/* Bootstrap overrides kept in palette */
.btn-primary {
  --bs-btn-bg: var(--primary-color);
  --bs-btn-border-color: var(--primary-color);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
  --bs-btn-focus-shadow-rgb: 45, 74, 62;
}
.btn { border-radius: 999px; font-weight: 600; padding: 0.7rem 1.6rem; transition: all .25s ease; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-cream { background: var(--cream); color: var(--primary-dark); border: 1px solid var(--cream); }
.btn-cream:hover { background: #fff; color: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--primary-dark); border: 1.5px solid var(--primary-color); }
.btn-ghost:hover { background: var(--primary-color); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(45, 74, 62, .28); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--accent-color); }
.eyebrow.light { color: var(--accent-light); }
.eyebrow.light::before { background: var(--accent-light); }

.section-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; margin-bottom: 1rem; }
.section-title em, .hero-title em { font-style: italic; font-weight: 500; color: var(--accent-color); }
.section-lead { font-size: 1.1rem; color: var(--text-muted); max-width: 620px; }

/* ---------- Navbar ---------- */
.navbar-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 1030; padding: 0 12px; }
.navbar {
  max-width: 1140px;
  margin: 0 auto;
  background: rgba(251, 249, 242, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem .6rem .45rem 1.2rem;
  transition: box-shadow .3s ease;
}
.navbar.shadow { box-shadow: 0 10px 30px rgba(30, 51, 43, .12) !important; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-color); color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: -.04em;
}
.brand-text { font-family: var(--font-display); font-weight: 600; color: var(--primary-dark); font-size: 1.05rem; line-height: 1.1; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-color); }
.nav-link { font-weight: 500; font-size: .9rem; color: var(--text-dark) !important; padding: .45rem .85rem !important; border-radius: 999px; }
.nav-link:hover, .nav-link.active { background: var(--cream); color: var(--primary-color) !important; }
.navbar .btn { padding: .55rem 1.3rem; font-size: .9rem; }
@media (max-width: 991px) {
  .navbar { border-radius: 1.5rem; }
  .navbar-collapse { padding: .8rem 0 .4rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 9.5rem 0 5rem;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(139, 115, 85, .16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(45, 74, 62, .10), transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero-glyphs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-glyphs span {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-color);
  opacity: .05;
  user-select: none;
}
.hero-glyphs .g1 { font-size: 22rem; top: -4rem; right: -3rem; }
.hero-glyphs .g2 { font-size: 14rem; bottom: -4rem; left: 38%; }

.pair-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem 1rem .4rem .4rem; font-size: .85rem; font-weight: 600; color: var(--primary-dark);
  margin-bottom: 1.6rem;
}
.pair-pill .code { white-space: nowrap; background: var(--primary-color); color: var(--cream); border-radius: 999px; padding: .15rem .7rem; font-family: var(--font-mono); font-size: .75rem; }
.pair-pill i { color: var(--accent-color); }

.hero-title { font-size: clamp(2.5rem, 5.5vw, 4.4rem); line-height: 1.05; margin-bottom: 1.4rem; }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 540px; margin-bottom: 2rem; }
.hero-checks { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 2rem; font-size: .9rem; color: var(--primary-dark); font-weight: 500; }
.hero-checks i { color: var(--accent-color); margin-right: .35rem; }

/* CAT-tool style editor mock-up */
.editor { position: relative; }
.editor-window {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(30, 51, 43, .35);
  overflow: hidden;
  transform: rotate(1.2deg);
}
.editor-bar { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; background: var(--primary-dark); color: var(--cream); font-family: var(--font-mono); font-size: .72rem; }
.editor-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(244, 240, 227, .35); }
.editor-bar .title { margin-left: .6rem; opacity: .8; }
.editor-bar .lang { margin-left: auto; background: rgba(244, 240, 227, .14); border-radius: 999px; padding: .1rem .6rem; }
.seg { display: grid; grid-template-columns: 34px 1fr; border-bottom: 1px solid var(--line); }
.seg:last-child { border-bottom: 0; }
.seg-no { background: var(--paper); border-right: 1px solid var(--line); font-family: var(--font-mono); font-size: .7rem; color: var(--accent-color); display: grid; place-items: center; }
.seg-body { padding: .8rem 1rem; }
.seg-src { font-size: .82rem; color: var(--text-muted); margin: 0; line-height: 1.45; }
.seg-tgt { font-size: .95rem; color: var(--primary-dark); font-weight: 600; margin: .3rem 0 0; line-height: 1.45; }
.seg-meta { display: flex; gap: .4rem; margin-top: .5rem; flex-wrap: wrap; }
.tag { font-family: var(--font-mono); font-size: .64rem; border-radius: 6px; padding: .05rem .45rem; background: var(--cream); color: var(--primary-color); }
.tag.ok { background: var(--primary-color); color: var(--cream); }
.tag.warm { background: rgba(139, 115, 85, .18); color: #6a553a; }
.seg.active { background: rgba(244, 240, 227, .55); }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--accent-color); vertical-align: -.15em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.float-chip {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: .6rem .9rem; box-shadow: 0 14px 30px -12px rgba(30, 51, 43, .3);
  font-size: .78rem; display: flex; align-items: center; gap: .6rem; animation: float 6s ease-in-out infinite;
}
.float-chip i { font-size: 1.1rem; color: var(--accent-color); }
.float-chip b { display: block; color: var(--primary-dark); line-height: 1.2; }
.float-chip small { color: var(--text-muted); }
.float-chip.c1 { left: -28px; bottom: -38px; }
.float-chip.c2 { right: -14px; top: -58px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 991px) { .float-chip { display: none; } .editor-window { transform: none; } }

.stat-strip {
  margin-top: 4.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.stat { padding: 1.4rem 1.5rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; color: var(--primary-color); line-height: 1; }
.stat .lbl { font-size: .82rem; color: var(--text-muted); margin-top: .4rem; }
@media (max-width: 767px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--primary-color); color: var(--cream); overflow: hidden; padding: 1.1rem 0; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 2.5rem; animation: scroll 40s linear infinite; padding-left: 2.5rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; }
.marquee span.ms { font-style: normal; font-weight: 600; color: var(--accent-light); }
.marquee .sep { color: var(--accent-light); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Services (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.bento-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; position: relative; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
}
.bento-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -22px rgba(30, 51, 43, .35); }
.bento-card h3 { font-size: 1.35rem; margin: 1rem 0 .5rem; }
.bento-card p { color: var(--text-muted); margin: 0; font-size: .95rem; }
.bento-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--cream); color: var(--primary-color); display: grid; place-items: center; font-size: 1.35rem; }
.bento .b-lg { grid-column: span 3; }
.bento .b-md { grid-column: span 2; }
.bento .b-dark { background: var(--primary-color); border-color: var(--primary-color); }
.bento .b-dark h3 { color: var(--cream); }
.bento .b-dark p { color: rgba(244, 240, 227, .75); }
.bento .b-dark .bento-ico { background: rgba(244, 240, 227, .14); color: var(--cream); }
.bento .b-tan { background: var(--cream); }
.bento .b-tan .bento-ico { background: #fff; }
.bento-num { position: absolute; top: 1.2rem; right: 1.5rem; font-family: var(--font-mono); font-size: .75rem; color: var(--accent-color); }
.b-dark .bento-num { color: var(--accent-light); }
.mini-flow { display: flex; align-items: center; gap: .6rem; margin-top: 1.3rem; font-size: .8rem; flex-wrap: wrap; }
.mini-flow span { background: rgba(244, 240, 227, .14); border-radius: 999px; padding: .25rem .8rem; color: var(--cream); font-family: var(--font-mono); }
.mini-flow i { color: var(--accent-light); }
@media (max-width: 991px) { .bento .b-lg, .bento .b-md { grid-column: span 6; } }
@media (min-width: 768px) and (max-width: 991px) { .bento .b-md { grid-column: span 3; } .bento .b-md:last-child { grid-column: span 6; } }

/* ---------- Specialisation ---------- */
.spec-wrap { background: var(--cream); }
.spec-sticky { position: sticky; top: 110px; }
.domain-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 1.2rem; align-items: center;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line); transition: padding .3s ease;
}
.domain-row:first-child { border-top: 1px solid var(--line); }
.domain-row:hover { padding-left: .8rem; }
.domain-row .idx { font-family: var(--font-display); font-size: 1.7rem; color: var(--accent-color); font-style: italic; }
.domain-row h3 { font-size: 1.3rem; margin: 0 0 .2rem; }
.domain-row p { margin: 0; color: var(--text-muted); font-size: .92rem; }
.domain-row .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--primary-color); color: var(--cream); display: grid; place-items: center; font-size: 1.2rem; }
@media (max-width: 575px) { .domain-row { grid-template-columns: 40px 1fr; } .domain-row .ico { display: none; } }

/* ---------- Tools ---------- */
.tools { background: var(--primary-dark); color: var(--cream); overflow: hidden; }
.tools h2 { color: var(--cream); }
.tools .section-lead { color: rgba(244, 240, 227, .7); }
.tools-glyph { position: absolute; right: -2rem; top: -3rem; font-family: var(--font-display); font-size: 20rem; line-height: 1; color: var(--cream); opacity: .04; pointer-events: none; }
.tool-chip {
  display: inline-flex; align-items: center; gap: .6rem;
  border: 1px solid rgba(244, 240, 227, .25); border-radius: 999px;
  padding: .65rem 1.3rem; font-weight: 600; color: var(--cream); background: rgba(244, 240, 227, .06);
  transition: all .25s ease;
}
.tool-chip i { color: var(--accent-light); }
.tool-chip:hover { background: var(--cream); color: var(--primary-dark); }
.tool-chip:hover i { color: var(--primary-color); }
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 3.5rem; }
.pipe-card { border: 1px solid rgba(244, 240, 227, .16); border-radius: var(--radius); padding: 1.5rem; background: rgba(244, 240, 227, .04); }
.pipe-card i { font-size: 1.5rem; color: var(--accent-light); }
.pipe-card h3 { color: var(--cream); font-size: 1.1rem; margin: .9rem 0 .4rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.pipe-card p { margin: 0; font-size: .88rem; color: rgba(244, 240, 227, .65); }
@media (max-width: 991px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .pipeline { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.portrait { position: relative; max-width: 440px; margin: 0 auto; }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 220px 220px var(--radius) var(--radius);
  background: linear-gradient(160deg, var(--primary-light), var(--primary-dark));
  overflow: hidden; display: grid; place-items: center;
}
.portrait-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-fallback { font-family: var(--font-display); font-size: 7rem; color: var(--cream); opacity: .9; }
.portrait::before {
  content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--accent-color);
  border-radius: 220px 220px var(--radius) var(--radius); z-index: -1;
}
.portrait-badge {
  position: absolute; right: -10px; bottom: 36px; background: var(--cream); border: 1px solid var(--line);
  border-radius: 16px; padding: .8rem 1.1rem; box-shadow: 0 14px 30px -14px rgba(30, 51, 43, .4);
}
.portrait-badge b { font-family: var(--font-display); font-size: 1.8rem; color: var(--primary-color); line-height: 1; display: block; }
.portrait-badge small { color: var(--text-muted); font-size: .75rem; }
.speech {
  position: absolute; left: -14px; top: 40px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px; padding: .5rem .9rem; font-size: .85rem; font-weight: 600; color: var(--primary-dark);
  box-shadow: 0 12px 26px -14px rgba(30, 51, 43, .4);
}
.speech span { color: var(--accent-color); font-weight: 500; }
.about-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; }
.about-tags span { background: var(--cream); border-radius: 999px; padding: .3rem .95rem; font-size: .82rem; font-weight: 600; color: var(--primary-color); }

/* ---------- Experience ---------- */
.exp-wrap { background: var(--cream); }
.exp-list { position: relative; max-width: 860px; margin: 0 auto; }
.exp-list::before { content: ''; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 1.5px; background: var(--primary-color); opacity: .3; }
.exp-item { position: relative; padding-left: 3rem; margin-bottom: 1.1rem; }
.exp-item::before {
  content: ''; position: absolute; left: 3px; top: 1.7rem; width: 17px; height: 17px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--primary-color);
}
.exp-item.current::before { background: var(--accent-color); border-color: var(--accent-color); box-shadow: 0 0 0 5px rgba(139, 115, 85, .25); }
.exp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; transition: transform .3s ease, box-shadow .3s ease; }
.exp-card:hover { transform: translateX(6px); box-shadow: 0 18px 34px -22px rgba(30, 51, 43, .4); }
.exp-card h3 { font-size: 1.2rem; margin: 0; }
.exp-card .org { color: var(--accent-color); font-weight: 600; margin: .2rem 0 .5rem; font-size: .95rem; }
.exp-card .org span { color: var(--text-muted); font-weight: 400; }
.exp-card p.desc { margin: 0; color: var(--text-muted); font-size: .9rem; }
.dur { font-family: var(--font-mono); font-size: .72rem; background: var(--cream); color: var(--primary-color); border-radius: 999px; padding: .2rem .8rem; white-space: nowrap; }
.dur.now { background: var(--primary-color); color: var(--cream); }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; }
.review .stars { color: var(--accent-color); margin-bottom: 1rem; letter-spacing: .15rem; }
.review blockquote { flex: 1; margin: 0 0 1.2rem; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; line-height: 1.5; color: var(--text-dark); }
.review blockquote i { color: var(--primary-color); font-style: normal; }
.review figcaption b { display: block; font-size: .95rem; color: var(--primary-color); }
.review figcaption small { color: var(--text-muted); font-family: var(--font-mono); font-size: .72rem; }
@media (max-width: 991px) { .review-grid { grid-template-columns: 1fr; } }

/* ---------- Credentials ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.cred { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; transition: all .3s ease; }
.cred:hover { transform: translateY(-5px); border-color: var(--accent-color); box-shadow: 0 22px 40px -24px rgba(30, 51, 43, .4); }
.cred .seal {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--cream); color: var(--accent-color); border: 1.5px dashed var(--accent-color); margin-bottom: 1.1rem;
}
.cred.feat { background: var(--primary-color); border-color: var(--primary-color); }
.cred.feat h3, .cred.feat p { color: var(--cream); }
.cred.feat .seal { background: rgba(244, 240, 227, .12); color: var(--cream); border-color: var(--accent-light); }
.cred h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.cred p { color: var(--text-muted); font-size: .88rem; margin-bottom: .9rem; }
.cred .tag { font-size: .7rem; padding: .15rem .6rem; }
@media (max-width: 991px) { .cred-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .cred-grid { grid-template-columns: 1fr; } }

.network { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .9rem; padding: 1.4rem; border: 1px dashed var(--accent-color); border-radius: var(--radius); background: var(--paper); }
.network .label { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-color); margin-right: .6rem; }
.net-pill { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.2rem; font-weight: 600; font-size: .9rem; color: var(--primary-dark); text-decoration: none; transition: all .25s ease; }
.net-pill i { color: var(--accent-color); }
a.net-pill:hover { background: var(--primary-color); color: var(--cream); transform: translateY(-2px); }
a.net-pill:hover i { color: var(--cream); }

/* ---------- Why me ---------- */
.why { background: var(--cream); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.why-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.why-item .check { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-color); color: var(--cream); display: grid; place-items: center; margin-bottom: 1rem; }
.why-item h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.why-item p { margin: 0; color: var(--text-muted); font-size: .92rem; }
.why-quote { background: var(--primary-color); border-color: var(--primary-color); display: flex; flex-direction: column; justify-content: center; }
.why-quote p { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--cream); }
.why-quote small { color: var(--accent-light); margin-top: .8rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 991px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; counter-reset: step; }
.step { position: relative; padding: 1.8rem 1.5rem 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step .n { font-family: var(--font-display); font-size: 3.6rem; line-height: 1; font-style: italic; color: var(--accent-color); opacity: .55; }
.step h3 { font-size: 1.2rem; margin: .6rem 0 .4rem; }
.step p { margin: 0; color: var(--text-muted); font-size: .9rem; }
.step .src-tgt { margin-top: 1.1rem; display: flex; gap: .4rem; font-family: var(--font-mono); font-size: .65rem; }
.step .src-tgt span { background: var(--cream); border-radius: 6px; padding: .1rem .5rem; color: var(--primary-color); }
@media (min-width: 992px) {
  .step:not(:last-child)::after { content: '\F138'; font-family: 'bootstrap-icons'; position: absolute; right: -1.05rem; top: 2.4rem; z-index: 2; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; background: var(--primary-color); color: var(--cream); border-radius: 50%; font-size: .75rem; }
}
@media (max-width: 991px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-shell { display: grid; grid-template-columns: 5fr 7fr; background: #fff; border: 1px solid var(--line); border-radius: 2rem; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(30, 51, 43, .45); }
.contact-side { background: var(--primary-dark); color: var(--cream); padding: 3rem 2.5rem; position: relative; overflow: hidden; }
.contact-side h2 { color: var(--cream); font-size: 2.2rem; }
.contact-side p { color: rgba(244, 240, 227, .72); }
.contact-side .glyph { position: absolute; right: -1rem; bottom: -3rem; font-family: var(--font-display); font-size: 14rem; line-height: 1; opacity: .06; pointer-events: none; }
.contact-line { display: flex; align-items: center; gap: .9rem; color: var(--cream); text-decoration: none; margin-top: 1.1rem; font-size: .95rem; word-break: break-all; }
.contact-line i { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: rgba(244, 240, 227, .12); display: grid; place-items: center; color: var(--accent-light); }
a.contact-line:hover { color: #fff; }
.contact-form-pane { padding: 3rem 2.5rem; }
@media (max-width: 991px) { .contact-shell { grid-template-columns: 1fr; } .contact-side, .contact-form-pane { padding: 2rem 1.5rem; } }

.form-floating > .form-control, .form-floating > .form-select {
  height: calc(3.2rem + 2px); border-radius: .85rem; border: 1.5px solid var(--cream-dark); background-color: var(--paper); transition: all .2s ease;
}
.form-floating > textarea.form-control { height: 120px; }
.form-floating > .form-control:focus, .form-floating > .form-select:focus { border-color: var(--primary-color); background-color: #fff; box-shadow: 0 0 0 4px rgba(45, 74, 62, .1); }
.form-floating > label { padding: .85rem 1rem; color: var(--text-muted); font-size: .9rem; }
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label { transform: scale(.8) translateY(-.6rem) translateX(.15rem); color: var(--primary-color); font-weight: 500; }
#submitBtn { border-radius: 999px; }

.footer { background: var(--primary-dark); color: rgba(244, 240, 227, .65); padding: 3rem 0 2rem; }
.footer .brand-text { color: var(--cream); }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(244, 240, 227, .1); color: var(--cream); text-decoration: none; transition: all .25s ease; }
.footer-social-link:hover { background: var(--cream); color: var(--primary-dark); transform: translateY(-2px); }

/* ---------- Reveal animation (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

@media (max-width: 767px) { .section-pad { padding: 4rem 0; } .hero { padding-top: 8rem; } }

/* ==========================================================
   Enhancements: motion, micro-interactions, accessibility
   ========================================================== */

/* Small accent text gets the darker ink so it stays readable */
.eyebrow, .bento-num, .seg-no, .network .label, .review figcaption small { color: var(--accent-ink); }
.eyebrow::before { background: var(--accent-ink); }
.eyebrow.light { color: var(--accent-light); }
.eyebrow.light::before { background: var(--accent-light); }
.b-dark .bento-num { color: var(--accent-light); }

/* Accessibility */
.skip-link {
  position: fixed; top: 10px; left: 50%; z-index: 2000; transform: translate(-50%, -150%);
  background: var(--primary-dark); color: var(--cream); padding: .6rem 1.2rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; transition: transform .25s ease;
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--cream); }
:focus-visible { outline: 2.5px solid var(--accent-color); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }
section[id], header[id] { scroll-margin-top: 96px; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1040;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}

/* Navbar: hides while scrolling down, returns on scroll up */
.navbar-wrap { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.navbar-wrap.nav-hidden { transform: translateY(-140%); }
.nav-link { transition: background-color .25s ease, color .25s ease; }

/* Hero: drifting colour blobs + parallax glyphs */
.hero-blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-blobs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.hero-blobs .b1 { width: 420px; height: 420px; background: rgba(139, 115, 85, .28); top: -80px; right: 8%; animation: drift 18s ease-in-out infinite; }
.hero-blobs .b2 { width: 360px; height: 360px; background: rgba(45, 74, 62, .18); bottom: -120px; left: -60px; animation: drift 22s ease-in-out infinite reverse; }
@keyframes drift {
  33% { transform: translate(40px, 30px) scale(1.08); }
  66% { transform: translate(-30px, 20px) scale(.95); }
}
.hero-glyphs span { will-change: transform; }

/* Underline that sweeps in under the accent words once revealed */
/* (a background, not ::after, so it follows the text when it wraps onto two lines) */
em.ink {
  background: linear-gradient(rgba(139, 115, 85, .26), rgba(139, 115, 85, .26)) no-repeat 0 88% / 0% .16em;
  transition: background-size 1s cubic-bezier(.65, 0, .35, 1) .45s;
}
.in em.ink, html:not(.js) em.ink { background-size: 100% .16em; }

/* Buttons */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(244, 240, 227, .35), transparent);
  transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite 1.5s;
}
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn i { display: inline-block; transition: transform .25s ease; }
.btn:hover .bi-arrow-right { transform: translateX(4px); }
.btn-arrow:hover .bi-arrow-down { transform: translateY(3px); }
.btn:active { transform: translateY(0) scale(.98); }

/* Editor mock-up: gentle 3D tilt that follows the pointer (vars set by JS) */
.editor-window {
  transform: perspective(1200px) rotate(1.2deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
}
.editor-window.tilting { transition: transform .12s linear, box-shadow .5s ease; }
.editor-window:hover { box-shadow: 0 40px 70px -24px rgba(30, 51, 43, .42); }
.seg.active { position: relative; }
.seg.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent-color); animation: pulse-bar 2s ease-in-out infinite; }
@keyframes pulse-bar { 50% { opacity: .35; } }
#typeStatus { transition: background-color .3s ease, color .3s ease; }
#typeSrc { transition: opacity .3s ease; }
@media (max-width: 991px) { .editor-window { transform: none; } }

/* Stats */
.stat .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 575px) { .stat { padding: 1.2rem 1.1rem; } .stat .num { font-size: 1.75rem; } }
.stat .lbl { transition: color .3s ease; }
.stat:hover .lbl { color: var(--primary-color); }

/* Marquee: soft fade at both edges */
.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* Cursor spotlight on cards (position set by JS via --mx/--my) */
.spot { position: relative; isolation: isolate; overflow: hidden; }
.spot::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 115, 85, .14), transparent 65%);
  opacity: 0; transition: opacity .35s ease;
}
.spot:hover::before { opacity: 1; }
.b-dark.spot::before, .cred.feat.spot::before, .why-quote.spot::before, .pipe-card.spot::before {
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(244, 240, 227, .12), transparent 65%);
}

/* Springy icon motion shared by cards */
.bento-ico, .cred .seal, .why-item .check, .domain-row .ico, .pipe-card i {
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background-color .3s ease, color .3s ease;
}

/* Services */
.bento-card:hover .bento-ico { transform: rotate(-8deg) scale(1.1); }
.mini-flow span { transition: background-color .25s ease; }
.mini-flow span:hover { background: rgba(244, 240, 227, .26); }

/* Project types */
.domain-row { position: relative; }
.domain-row::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1.5px; width: 100%;
  background: var(--accent-color); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s ease;
}
.domain-row:hover::after { transform: scaleX(1); }
.domain-row:hover .ico { transform: rotate(-12deg) scale(1.08); background: var(--accent-color); }
.domain-row .idx { transition: color .3s ease; }
.domain-row:hover .idx { color: var(--primary-color); }

/* Tools: chips pop in one by one (--i set by JS) */
.tool-chip { cursor: default; }
.tool-chip:hover { transform: translateY(-3px); }
.js .reveal.stagger { opacity: 1; transform: none; }
.js .stagger > * {
  opacity: 0; transform: translateY(14px) scale(.96);
  transition: opacity .5s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1), background-color .25s ease, color .25s ease;
  transition-delay: calc(var(--i, 0) * 45ms);
}
.js .stagger.in > * { opacity: 1; transform: none; }
.js .stagger.in > *:hover { transform: translateY(-3px); transition-delay: 0s; }
.pipe-card { transition: transform .3s ease, border-color .3s ease, background-color .3s ease; }
.pipe-card:hover { transform: translateY(-5px); border-color: rgba(244, 240, 227, .35); background: rgba(244, 240, 227, .07); }
.pipe-card:hover i { transform: translateY(-3px) scale(1.12); }

/* About */
.speech { animation: float 6s ease-in-out infinite; }
.portrait-badge { animation: float 7s ease-in-out infinite -2s; }
.portrait-frame img { transition: transform .8s ease; }
.portrait:hover .portrait-frame img { transform: scale(1.04); }
.about-tags span { transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.about-tags span:hover { background: var(--primary-color); color: var(--cream); transform: translateY(-2px); }

/* Experience: timeline line fills as you scroll (--p set by JS) */
.exp-progress {
  position: absolute; left: 11px; top: 10px; bottom: 10px; width: 1.5px; z-index: 1;
  background: linear-gradient(var(--primary-color), var(--accent-color));
  transform-origin: 50% 0; transform: scaleY(var(--p, 0));
}
.exp-item::before { z-index: 2; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) .2s; }
.js .exp-item.reveal:not(.in)::before { transform: scale(0); }
.exp-item.current::before { animation: ping 2.4s ease-out infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(139, 115, 85, .45); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(139, 115, 85, 0); }
}

/* Reviews */
.review { position: relative; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.review::after {
  content: '\201C'; position: absolute; right: 1.2rem; top: .2rem; font-family: var(--font-display);
  font-size: 5rem; line-height: 1; color: var(--accent-color); opacity: .12; pointer-events: none;
}
.review:hover { transform: translateY(-5px); border-color: rgba(139, 115, 85, .4); box-shadow: 0 22px 40px -24px rgba(30, 51, 43, .4); }
.review .stars i { display: inline-block; }
.js .review.reveal:not(.in) .stars i { opacity: 0; transform: scale(.3) rotate(-30deg); }
.review .stars i { transition: opacity .4s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.review.in .stars i:nth-child(1) { transition-delay: .22s; }
.review.in .stars i:nth-child(2) { transition-delay: .3s; }
.review.in .stars i:nth-child(3) { transition-delay: .38s; }
.review.in .stars i:nth-child(4) { transition-delay: .46s; }
.review.in .stars i:nth-child(5) { transition-delay: .54s; }

/* Credentials */
.cred:hover .seal { transform: rotate(18deg) scale(1.08); }

/* Why me */
.why-item { transition: transform .3s ease, box-shadow .3s ease; }
.why-item:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -24px rgba(30, 51, 43, .4); }
.why-item:hover .check { transform: rotate(360deg); background: var(--accent-color); }

/* Process */
.step { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.step:hover { transform: translateY(-5px); border-color: rgba(139, 115, 85, .4); box-shadow: 0 22px 40px -24px rgba(30, 51, 43, .4); }
.step .n { display: inline-block; transition: opacity .3s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.step:hover .n { opacity: 1; transform: translateX(4px); }
@media (min-width: 992px) { .step:not(:last-child)::after { animation: nudge 2.4s ease-in-out infinite; } }
@keyframes nudge { 50% { transform: translateX(4px); } }

/* Contact */
.contact-side .glyph { animation: float 8s ease-in-out infinite; }
.contact-line i { transition: transform .3s ease, background-color .3s ease, color .3s ease; }
a.contact-line:hover i { transform: scale(1.1); background: var(--cream); color: var(--primary-dark); }
.form-floating > .form-control:hover, .form-floating > .form-select:hover { border-color: var(--accent-light); }
.success-check { width: 64px; height: 64px; margin: 0 auto 1rem; display: block; }
.success-check circle { fill: none; stroke: var(--primary-color); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .6s ease forwards; }
.success-check path { fill: none; stroke: var(--accent-color); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .4s ease .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Footer */
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid rgba(244, 240, 227, .12); }
.footer-nav a { color: rgba(244, 240, 227, .7); text-decoration: none; font-size: .85rem; transition: color .2s ease; }
.footer-nav a:hover { color: var(--cream); }

/* Back-to-top with scroll progress ring */
.to-top {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 1020;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-color); color: var(--cream); text-decoration: none; font-size: 1.1rem;
  box-shadow: 0 12px 26px -10px rgba(30, 51, 43, .5);
  opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1), background-color .25s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--primary-dark); color: var(--cream); }
.to-top i { transition: transform .25s ease; }
.to-top:hover i { transform: translateY(-2px); }
.to-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 2.5; }
.to-top .ring-bg { stroke: rgba(244, 240, 227, .18); }
.to-top .ring { stroke: var(--accent-light); stroke-linecap: round; stroke-dasharray: 125.7; stroke-dashoffset: calc(125.7 * (1 - var(--progress, 0))); }

/* Reveal variants */
.js .reveal { transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.from-left { transform: translateX(-36px); }
.js .reveal.from-right { transform: translateX(36px); }
.js .reveal.zoom { transform: translateY(20px) scale(.96); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 767px) { .to-top { right: 14px; width: 44px; height: 44px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .stagger > *, .js .review.reveal:not(.in) .stars i { opacity: 1; transform: none; }
  .js .exp-item.reveal:not(.in)::before { transform: none; }
  em.ink { background-size: 100% .16em; }
  .exp-progress, .scroll-progress { display: none; }
}

/* Language switch (EN / BM) */
.lang-switch {
  position: relative; display: inline-flex; padding: 3px; border-radius: 999px;
  background: var(--cream); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
}
.lang-switch a {
  position: relative; z-index: 1; padding: .3rem .7rem; border-radius: 999px; line-height: 1.2;
  color: var(--primary-color); text-decoration: none; transition: color .25s ease, background-color .25s ease;
}
.lang-switch a:not(.active):hover { background: rgba(45, 74, 62, .08); }
.lang-switch a.active { background: var(--primary-color); color: var(--cream); box-shadow: 0 4px 10px -4px rgba(30, 51, 43, .5); }
@media (max-width: 991px) { .lang-switch { margin: .5rem .85rem; } }
