/* =========================================================
   Tahsin Tazwar — Personal site
   Palette: Bangladesh green + crimson (matches portrait),
   premium dark, photo-forward.
   ========================================================= */

:root {
  --bg:            #0a0f0d;
  --bg-2:          #0b1512;
  --surface:       rgba(255, 255, 255, 0.035);
  --surface-2:     rgba(255, 255, 255, 0.06);
  --border:        rgba(255, 255, 255, 0.09);
  --border-em:     rgba(46, 230, 166, 0.38);

  --text:          #eaf3ee;
  --muted:         #9fb0a8;
  --faint:         #6d7f76;

  --green:         #2ee6a6;
  --green-deep:    #0b6e4f;
  --green-glow:    rgba(46, 230, 166, 0.5);
  --red:           #ef4a5e;
  --red-soft:      rgba(239, 74, 94, 0.16);

  --grad: linear-gradient(115deg, #2ee6a6 0%, #7cf0c8 55%, #b9f5dd 100%);

  --radius:   18px;
  --radius-lg:26px;
  --maxw:     1140px;
  --shadow:   0 24px 60px -24px rgba(0, 0, 0, 0.75);

  --header-bg:       rgba(10, 15, 13, 0.6);
  --header-bg-solid: rgba(10, 15, 13, 0.85);
  --menu-bg:         rgba(10, 15, 13, 0.97);

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Light theme ---------- */
:root[data-theme="light"] {
  --bg:            #f5f8f6;
  --bg-2:          #e9f1ec;
  --surface:       rgba(6, 40, 28, 0.045);
  --surface-2:     rgba(6, 40, 28, 0.08);
  --border:        rgba(6, 30, 20, 0.13);
  --border-em:     rgba(11, 143, 110, 0.42);

  --text:          #0f1a15;
  --muted:         #4b5c54;
  --faint:         #78877f;

  --green:         #0b8f63;
  --green-deep:    #0a6f4d;
  --green-glow:    rgba(11, 143, 110, 0.3);
  --red:           #d63a4e;
  --red-soft:      rgba(214, 58, 78, 0.14);

  --grad: linear-gradient(115deg, #0aa06e 0%, #0b8f63 55%, #0a7d57 100%);
  --shadow: 0 24px 50px -26px rgba(20, 50, 40, 0.32);

  --header-bg:       rgba(245, 248, 246, 0.72);
  --header-bg-solid: rgba(245, 248, 246, 0.9);
  --menu-bg:         rgba(245, 248, 246, 0.98);
}
:root[data-theme="light"] .orb { opacity: 0.12; }
:root[data-theme="light"] body::before { background:
  radial-gradient(1100px 520px at 60% -10%, rgba(11,143,110,0.08), transparent 70%),
  linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
:root[data-theme="light"] .section-alt {
  background: linear-gradient(180deg, rgba(6,40,28,0.03), rgba(6,40,28,0));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; }
a { color: inherit; text-decoration: none; }

/* ---------- Ambient background ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.32; }
.orb-1 { width: 520px; height: 520px; background: #0d6b4d; top: -160px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: #7a1f2e; top: 26%; right: -170px; opacity: 0.22; }
.orb-3 { width: 420px; height: 420px; background: #0e5f47; bottom: -180px; left: 32%; opacity: 0.2; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 520px at 60% -10%, rgba(46,230,166,0.10), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: var(--header-bg-solid); }
.nav-inner { display: flex; align-items: center; gap: 12px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .5px;
  color: #06120d; background: var(--grad); box-shadow: 0 6px 20px -6px var(--green-glow);
}
.brand-text { font-family: var(--font-head); font-size: 16px; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  color: var(--green) !important; border: 1px solid var(--border-em); border-radius: 999px;
  padding: 8px 18px; transition: background .2s, color .2s !important;
}
.nav-cta:hover { background: var(--green); color: #06120d !important; }

/* Theme toggle */
.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--border-em); color: var(--green); background: var(--surface-2); }
.theme-toggle .ic { width: 18px; height: 18px; }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  font-family: var(--font-head); font-weight: 500; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s, box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #06120d; background: var(--grad); box-shadow: 0 14px 34px -12px var(--green-glow); }
.btn-primary:hover { box-shadow: 0 18px 46px -12px var(--green-glow); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-em); }

/* ---------- Hero ---------- */
.hero { padding: clamp(52px, 9vh, 104px) 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 24px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

.hero-title { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -0.035em; }
.hero-roles {
  font-family: var(--font-head); font-size: clamp(1rem, 2.2vw, 1.32rem); font-weight: 500;
  margin-top: 14px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-roles span { color: var(--faint); -webkit-text-fill-color: var(--faint); margin: 0 4px; }
.hero-lead { font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--muted); max-width: 560px; margin-top: 24px; }
.hero-lead strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 34px; }
.hero-tags li {
  font-size: 13.5px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px;
}
.hero-tags strong { color: var(--text); font-weight: 600; }

/* Photo */
.hero-photo-wrap { position: relative; display: grid; place-items: center; }
.hero-photo-wrap::before {
  content: ""; position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(46,230,166,0.35), rgba(239,74,94,0.18) 55%, transparent 72%);
  filter: blur(26px); z-index: 0;
}
.hero-photo {
  position: relative; z-index: 1; width: 100%; max-width: 420px; height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 24px 44px rgba(0,0,0,0.55));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Section shells ---------- */
.section { padding: clamp(64px, 10vh, 116px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0)); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.kicker {
  display: inline-block; font-family: var(--font-head); font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.85rem); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: start; }
.about-body p { color: var(--muted); font-size: 1.08rem; margin-bottom: 18px; }
.about-body strong { color: var(--text); }

.roles { display: grid; gap: 16px; }
.role-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 24px; transition: transform .3s, border-color .3s;
}
.role-card:hover { transform: translateY(-4px); border-color: var(--border-em); }
.role-label {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red); margin-bottom: 8px;
}
.role-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.role-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.role-card a { color: var(--green); font-size: 0.9rem; font-weight: 500; }
.role-card a:hover { text-decoration: underline; }

/* ---------- Mission ---------- */
.mission-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.mission-lead { color: var(--muted); font-size: 1.14rem; }
.mission-quote {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--green);
  border-radius: var(--radius); padding: 32px 32px; box-shadow: var(--shadow);
}
.mission-quote p { font-family: var(--font-head); font-size: 1.4rem; line-height: 1.42; letter-spacing: -0.01em; }
.mission-quote .hl { color: var(--green); }
.mission-quote footer { color: var(--red); margin-top: 18px; font-weight: 500; }

/* ---------- Expertise chips ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li {
  font-family: var(--font-head); font-size: 1rem; font-weight: 500; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 12px 22px; transition: transform .25s, border-color .25s, background .25s, color .25s;
}
.chips li:hover { transform: translateY(-3px); border-color: var(--border-em); background: var(--surface-2); }
.chips li:nth-child(3n)::before { content: "▹ "; color: var(--red); }
.chips li:nth-child(3n+1)::before { content: "▹ "; color: var(--green); }
.chips li:nth-child(3n+2)::before { content: "▹ "; color: var(--green); }

/* ---------- Beyond ---------- */
.beyond-text { max-width: 820px; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--text); line-height: 1.5; font-family: var(--font-head); font-weight: 400; letter-spacing: -0.01em; }
.beyond-text strong { color: var(--green); font-weight: 500; }

/* ---------- Book ---------- */
.book { text-align: center; }
.book-inner {
  max-width: 720px; margin: 0 auto;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(46,230,166,0.12), transparent 60%),
    var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 66px) 32px; box-shadow: var(--shadow);
}
.book h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin: 12px 0 16px; }
.book p { color: var(--muted); font-size: 1.08rem; max-width: 540px; margin: 0 auto; }
.book-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 30px 0 22px; }
.book-meta { color: var(--faint); font-size: 13.5px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 46px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; font-family: var(--font-head); }
.footer-brand span { color: var(--muted); font-size: 13.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--green); }
.footer-copy { color: var(--faint); font-size: 13px; width: 100%; padding-top: 22px; border-top: 1px solid var(--border); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--menu-bg); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); padding: 16px 24px 26px;
    transform: translateY(-120%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 12px 6px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-copy { order: 2; }
  .hero-photo-wrap { order: 1; }
  .hero-photo { max-width: 300px; }
  .eyebrow, .hero-actions, .hero-tags { justify-content: center; }
  .hero-lead { margin-inline: auto; }

  .about-grid, .mission-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .brand-text { display: none; }
  .hero-actions .btn, .book-actions .btn { flex: 1 1 auto; }
  .hero-roles span { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-photo { animation: none; }
  .btn:hover, .role-card:hover, .chips li:hover { transform: none; }
}
