/* ============================================================
   Md Asifuzzaman | portfolio
   Dusk theme: charcoal-blue night, champagne gold, serif
   gravitas. Calm, senior, precise. No build step.
   Style rule: no en-dashes or em-dashes anywhere on the site.
   ============================================================ */

:root {
  --bg: #0f1318;
  --bg-alt: #131a22;
  --surface: #161d26;
  --text: #ece9e2;
  --text-soft: #a9b0ba;
  --text-faint: #6d7682;
  --accent: #c9a45c;          /* champagne gold */
  --accent-soft: rgba(201, 164, 92, 0.12);
  --ink: #10141a;
  --border: rgba(170, 180, 195, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.30);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 18px 44px rgba(0, 0, 0, 0.45);
  --radius: 10px;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(201, 164, 92, 0.30); color: #fff; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.16; letter-spacing: -0.01em; font-weight: 600; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Serif-italic gold accent (name, key words) */
.grad, .grad-text {
  background: none;
  color: var(--accent);
  font-style: italic;
}

/* ---------------- Nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 19, 24, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--text); }
.nav-logo span { color: var(--accent); font-style: italic; }
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 14px; }
.nav-links a { color: var(--text-soft); font-weight: 500; font-size: 0.86rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--accent); color: var(--ink) !important;
  padding: 9px 18px; border-radius: 6px; font-weight: 600 !important;
  transition: filter 0.2s;
}
.nav-cta:hover { filter: brightness(1.1); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* ---------------- Hero ---------------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(950px 420px at 68% 108%, rgba(201, 164, 92, 0.12), transparent 62%),
    radial-gradient(800px 420px at 10% -25%, rgba(96, 125, 165, 0.16), transparent 65%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.45fr 1fr; gap: 56px; align-items: center;
  position: relative; z-index: 1;
}
.eyebrow, .section-eyebrow {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 22px; }
.hero-sub { color: var(--text-soft); font-size: 1.06rem; max-width: 56ch; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions.center { justify-content: center; }
.hero-meta { margin-top: 20px; font-size: 0.87rem; color: var(--text-faint); }

.btn {
  display: inline-block; padding: 12px 24px; border-radius: 6px;
  font-weight: 600; font-size: 0.93rem; transition: all 0.2s; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 6px 22px rgba(201, 164, 92, 0.25); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(170, 180, 195, 0.35); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(201, 164, 92, 0.06); }
.btn-lg { padding: 15px 30px; font-size: 0.98rem; }

.hero-card {
  background: rgba(22, 29, 38, 0.88); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--accent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.monogram {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--accent);
  color: var(--accent); font-family: var(--font-head); font-weight: 600; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.hero-facts { list-style: none; }
.hero-facts li {
  display: flex; flex-direction: column; gap: 1px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.hero-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-facts strong { font-size: 0.95rem; font-weight: 600; }
.hero-facts span { font-size: 0.85rem; color: var(--text-soft); }

/* ---------------- Stats ---------------- */
.stats { border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding-block: 38px; text-align: center;
}
.stat-num {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: 2rem; color: var(--accent);
}
.stat-label { font-size: 0.82rem; color: var(--text-soft); letter-spacing: 0.02em; }

/* ---------------- Sections ---------------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 44px; max-width: 32ch; }
.section h2::after {
  content: ""; display: block; width: 56px; height: 2px;
  background: var(--accent); margin-top: 18px;
}
.contact h2::after { margin-inline: auto; }

/* ---------------- About ---------------- */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; }
.about-text p { color: var(--text-soft); margin-bottom: 18px; }
.about-text em { color: var(--text); }
.about-side {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); align-self: start;
}
.about-side h3 { font-size: 1.05rem; margin-bottom: 14px; }
.about-side ul { list-style: none; }
.about-side li { padding: 7px 0; font-size: 0.93rem; color: var(--text-soft); }

/* ---------------- Timeline ---------------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 1px; background: var(--border);
}
.t-item { position: relative; padding-bottom: 52px; }
.t-item:last-child { padding-bottom: 0; }
.t-dot {
  position: absolute; left: -30px; top: 7px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.section-alt .t-dot { box-shadow: 0 0 0 4px var(--bg-alt); }
.t-date { font-size: 0.78rem; font-weight: 600; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; }
.t-body h3 { font-size: 1.22rem; margin: 7px 0 10px; }
.t-org { color: var(--text-soft); font-weight: 500; font-style: italic; }
.t-body p { color: var(--text-soft); max-width: 72ch; }
.t-points { margin: 12px 0 0 18px; color: var(--text-soft); max-width: 70ch; }
.t-points li { margin-bottom: 6px; font-size: 0.94rem; }
.t-points em { font-style: normal; font-size: 0.84em; color: var(--text-faint); }

/* ---------------- Cards ---------------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: box-shadow 0.25s, border-color 0.25s;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: rgba(201, 164, 92, 0.4); }
.card-feature { grid-column: 1 / -1; border-top: 3px solid var(--accent); }
.card-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 0.95rem; }
.card-stack { margin-top: 14px; font-size: 0.81rem !important; color: var(--text-faint) !important; font-weight: 500; }

/* ---------------- Skills ---------------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skill-group {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.skill-group h3 { font-size: 1.02rem; margin-bottom: 10px; }
.skill-group p { font-size: 0.89rem; color: var(--text-soft); }

/* ---------------- Credentials ---------------- */
.cred-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.cred-col h3 { font-size: 1.08rem; margin-bottom: 18px; }
.cred-h-sub { margin-top: 30px; }
.cred-list { list-style: none; }
.cred-list li {
  padding: 13px 0; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2px;
}
.cred-list li:last-child { border-bottom: 0; }
.cred-list strong { font-size: 0.96rem; font-weight: 600; }
.cred-list span { font-size: 0.88rem; color: var(--text-soft); }
.cred-list em { font-size: 0.84rem; color: var(--text-faint); font-style: normal; margin-top: 3px; }
.cred-progress strong { color: var(--accent); }
.cred-compact li { padding: 8px 0; font-size: 0.92rem; color: var(--text-soft); }

/* ---------------- Testimonials ---------------- */
.quotes { grid-template-columns: repeat(2, 1fr); }
.quote {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px;
}
.quote blockquote {
  color: var(--text-soft); font-size: 0.97rem;
  font-family: var(--font-head); font-style: italic; line-height: 1.6;
}
.quote figcaption strong { display: block; font-size: 0.94rem; }
.quote figcaption span { font-size: 0.84rem; color: var(--text-faint); }
.quotes-foot { margin-top: 28px; text-align: center; color: var(--text-soft); font-size: 0.95rem; }

/* ---------------- Press ---------------- */
.press-card h3 { line-height: 1.35; }
.press-card h3 a { color: var(--text); }
.press-card h3 a:hover { color: var(--accent); text-decoration: none; }
.press-translit { font-size: 0.85em; font-weight: 500; color: var(--text-soft); }
.press-quote {
  margin: 14px 0 0; padding-left: 14px; border-left: 2px solid var(--accent);
  font-family: var(--font-head); font-style: italic; color: var(--text-soft); font-size: 0.95rem;
}
.press-byline { margin-top: 12px; font-size: 0.82rem !important; color: var(--text-faint) !important; }
.press-read { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 0.9rem; }

/* ---------------- Milestones ---------------- */
.m-year { margin-bottom: 36px; }
.m-year:last-child { margin-bottom: 0; }
.m-year h3 {
  font-size: 1.3rem; color: var(--text); margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.m-list { list-style: none; }
.m-list li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 9px 0; color: var(--text-soft); font-size: 0.95rem;
}
.m-date {
  flex: 0 0 84px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); white-space: nowrap;
}

/* ---------------- Services teaser (home) ---------------- */
.svc-teaser { padding: 56px 0; }
.svc-teaser-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 38px 42px;
}
.svc-teaser-inner h2 { margin-bottom: 10px; font-size: 1.45rem; }
.svc-teaser-inner h2::after { display: none; }
.svc-teaser-sub { color: var(--text-soft); font-size: 0.94rem; max-width: 52ch; }
.svc-teaser .btn { flex-shrink: 0; }

/* ---------------- Services page ---------------- */
.svc-hero { max-width: 760px; position: relative; z-index: 1; }
.svc-cards { grid-template-columns: repeat(2, 1fr); }
.svc-card { display: flex; flex-direction: column; align-items: flex-start; }
.svc-card .btn { margin-top: auto; }
.price {
  font-family: var(--font-head); font-size: 1.7rem; font-weight: 600;
  color: var(--accent); margin-bottom: 12px;
}
.price span { font-size: 0.78rem; font-weight: 600; font-family: var(--font-body); color: var(--text-faint); margin-left: 6px; }
.svc-points { margin: 14px 0 14px 18px; color: var(--text-soft); font-size: 0.91rem; }
.svc-points li { margin-bottom: 7px; }
.svc-note {
  font-size: 0.83rem !important; color: var(--accent) !important;
  font-weight: 600; margin-bottom: 18px;
}
.center-note { text-align: center; margin-top: 22px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--text-soft); }

.payment-inner { max-width: 680px; text-align: center; }
.payment-inner h2 { margin-left: auto; margin-right: auto; }
.payment-inner h2::after { margin-inline: auto; }
.pay-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); text-align: left;
}
.pay-number { font-size: 1.15rem; margin-bottom: 16px; }
.pay-number strong { font-family: var(--font-head); letter-spacing: 0.03em; color: var(--accent); }
.pay-type { display: block; font-size: 0.8rem; color: var(--text-faint); margin-top: 4px; }
.pay-steps { margin-left: 20px; color: var(--text-soft); font-size: 0.94rem; }
.pay-steps li { margin-bottom: 8px; }

/* ---------------- Contact ---------------- */
.contact { text-align: center; }
.contact-inner { max-width: 640px; }
.contact h2 { margin: 0 auto 18px; }
.contact p { color: var(--text-soft); }
.contact .hero-actions { margin-top: 30px; margin-bottom: 22px; }
.contact-links { font-size: 0.9rem; color: var(--text-faint); }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--border); padding: 30px 0; text-align: center; }
.footer p { font-size: 0.84rem; color: var(--text-faint); }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 18px 24px; gap: 16px; box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 900px) {
  .hero-grid, .about-grid, .cred-grid { grid-template-columns: 1fr; gap: 36px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .svc-teaser-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding: 64px 0; }
  .hero { padding: 60px 0 48px; }
  .cards, .quotes, .skills-grid, .steps, .svc-cards { grid-template-columns: 1fr; }
  .m-list li { flex-direction: column; gap: 2px; }
}
