/* ============================================================
   Monir Hossen Ornoy - Portfolio | Premium design system
   Dark (default) + light theme via CSS custom properties
   ============================================================ */
:root {
  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(99,102,241,.14), rgba(34,211,238,.10));
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 10px 40px rgba(2, 6, 23, .35);
  --container: 1180px;
  --nav-h: 72px;
}

html[data-theme="dark"] {
  --bg: #070b14;
  --bg-2: #0b1120;
  --surface: rgba(255, 255, 255, .045);
  --surface-solid: #0f172a;
  --border: rgba(148, 163, 184, .16);
  --border-strong: rgba(148, 163, 184, .3);
  --text: #e2e8f0;
  --text-strong: #f8fafc;
  --muted: #94a3b8;
  --primary: #818cf8;
  --primary-2: #a78bfa;
  --accent: #22d3ee;
  --glow: 0 0 44px rgba(129, 140, 248, .28);
  --orb-a: rgba(99, 102, 241, .34);
  --orb-b: rgba(34, 211, 238, .20);
  --orb-c: rgba(168, 85, 247, .26);
  --nav-bg: rgba(7, 11, 20, .78);
}

html[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, .85);
  --surface-solid: #ffffff;
  --border: rgba(15, 23, 42, .12);
  --border-strong: rgba(15, 23, 42, .22);
  --text: #1e293b;
  --text-strong: #0f172a;
  --muted: #64748b;
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --accent: #0891b2;
  --glow: 0 12px 34px rgba(79, 70, 229, .18);
  --orb-a: rgba(99, 102, 241, .20);
  --orb-b: rgba(34, 211, 238, .16);
  --orb-c: rgba(168, 85, 247, .16);
  --nav-bg: rgba(255, 255, 255, .82);
  --shadow-card: 0 10px 34px rgba(15, 23, 42, .09);
}

body.lang-bn { --font-body: "Noto Sans Bengali", "Inter", system-ui, sans-serif; }
body.lang-bn { --font-head: "Noto Sans Bengali", "Sora", system-ui, sans-serif; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
code { font-family: var(--font-mono); font-size: .88em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

.icon { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex-shrink: 0; }

/* ---------------- preloader ---------------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  transition: opacity .45s ease, visibility .45s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.preloader-box { text-align: center; }
.preloader-logo img { width: 64px; height: 64px; margin: 0 auto 18px; animation: pulse-logo 1.4s ease-in-out infinite; border-radius: 16px; }
@keyframes pulse-logo { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.88); opacity: .7; } }
.preloader-bar { width: 150px; height: 3px; background: var(--border); border-radius: 4px; overflow: hidden; margin: 0 auto; }
.preloader-bar span { display: block; height: 100%; width: 40%; background: var(--grad); border-radius: 4px; animation: load-bar 1.1s ease-in-out infinite; }
@keyframes load-bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(380%); } }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 10000;
  background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------------- header / nav ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(2, 6, 23, .25); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 40px; height: 40px; border-radius: 11px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--text-strong); white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 13px; border-radius: 10px; font-size: .93rem; font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text-strong); background: var(--surface); }
.nav-link.active { color: var(--primary); }
.nav-cta { margin-left: 10px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch { display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 3px 6px; }
.lang-btn { font-size: .78rem; font-weight: 700; color: var(--muted); padding: 3px 7px; border-radius: 7px; letter-spacing: .03em; }
.lang-btn.active { background: var(--grad); color: #fff; }
.lang-sep { width: 1px; height: 14px; background: var(--border-strong); }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease, border-color .2s;
}
.theme-toggle:hover { transform: rotate(15deg); border-color: var(--primary); }
.theme-toggle .icon { width: 18px; height: 18px; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-burger { display: none; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); align-items: center; justify-content: center; }
.nav-burger .icon { width: 19px; height: 19px; }
.nav-burger .close-ic { display: none; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: .95rem; border-radius: 12px; padding: 11px 22px;
  border: 1px solid transparent; transition: transform .22s ease, box-shadow .22s ease, background .2s, border-color .2s;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(99, 102, 241, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: .86rem; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

.social-btn {
  width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  transition: transform .22s ease, color .2s, border-color .2s, box-shadow .22s;
}
.social-btn:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--glow); }
.social-btn .icon { width: 19px; height: 19px; }

/* ---------------- hero ---------------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); animation: orb-float 12s ease-in-out infinite alternate; }
.orb-1 { width: 480px; height: 480px; background: var(--orb-a); top: -140px; left: -120px; }
.orb-2 { width: 380px; height: 380px; background: var(--orb-b); bottom: -100px; right: -60px; animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; background: var(--orb-c); top: 30%; left: 55%; animation-delay: -8s; }
@keyframes orb-float { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.12); } }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: .5;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; width: 100%; }
.availability-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--border-strong); background: var(--surface); font-size: .86rem; font-weight: 600; margin-bottom: 26px;
}
.avail-note { color: var(--muted); font-weight: 500; }
.chip-available .pulse-dot { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
.chip-busy .pulse-dot { background: #f59e0b; box-shadow: 0 0 0 0 rgba(245, 158, 11, .5); }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; animation: pulse-dot 1.8s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-hello { color: var(--primary); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; margin-bottom: 6px; }
.hero-name { font-family: var(--font-head); font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.08; color: var(--text-strong); font-weight: 800; margin-bottom: 14px; }
.hero-typed { font-family: var(--font-head); font-size: clamp(1.15rem, 2.6vw, 1.7rem); font-weight: 700; min-height: 1.7em; margin-bottom: 18px; color: var(--text); }
#typedText { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.typed-caret { display: inline-block; width: 3px; height: 1.15em; background: var(--accent); margin-left: 4px; vertical-align: -0.2em; animation: caret-blink 1s steps(1) infinite; border-radius: 2px; }
@keyframes caret-blink { 50% { opacity: 0; } }
.hero-intro { color: var(--muted); max-width: 560px; font-size: 1.05rem; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-social { display: flex; gap: 12px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.avatar-ring {
  position: relative; width: min(340px, 78vw); aspect-ratio: 1; border-radius: 50%;
  padding: 6px; background: var(--grad); box-shadow: var(--glow);
  animation: ring-glow 4s ease-in-out infinite alternate;
}
@keyframes ring-glow { from { box-shadow: 0 0 40px rgba(99,102,241,.3); } to { box-shadow: 0 0 68px rgba(34,211,238,.42); } }
.avatar-ring::before {
  content: ""; position: absolute; inset: -26px; border-radius: 50%;
  border: 1.5px dashed var(--border-strong); animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.float-badge {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 15px;
  background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 14px;
  font-size: .84rem; font-weight: 600; box-shadow: var(--shadow-card); animation: float-badge 5s ease-in-out infinite;
}
.float-badge .icon { color: var(--primary); }
.fb-1 { top: 6%; left: -6%; animation-delay: -1s; }
.fb-2 { bottom: 16%; right: -8%; animation-delay: -2.4s; }
.fb-3 { bottom: -4%; left: 12%; animation-delay: -3.8s; }
@keyframes float-badge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); opacity: .7; }
.mouse { display: block; width: 22px; height: 36px; border: 2px solid var(--muted); border-radius: 12px; position: relative; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--primary); animation: wheel 1.6s ease infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------------- sections ---------------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; text-align: left; }
.eyebrow {
  display: inline-flex; padding: 5px 14px; border-radius: 100px; font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--primary);
  background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 14px;
}
.section-head h2 { font-family: var(--font-head); font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--text-strong); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ---------------- about ---------------- */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.about-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-card); position: sticky; top: calc(var(--nav-h) + 20px);
}
.about-photo { width: 100%; border-radius: 14px; margin-bottom: 20px; aspect-ratio: 1; object-fit: cover; }
.about-info li { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: .93rem; }
.about-info li:last-child { border-bottom: 0; }
.about-info .icon { color: var(--primary); margin-top: 3px; }
.about-info strong { color: var(--text-strong); }
.avail-inline.ok { color: #22c55e; font-style: normal; font-weight: 600; }
.avail-inline { color: #f59e0b; font-style: normal; font-weight: 600; }
.about-bio { font-size: 1.08rem; color: var(--text-strong); font-weight: 500; margin-bottom: 16px; }
.about-para { color: var(--muted); margin-bottom: 26px; }
.about-blocks { display: grid; gap: 16px; }
.about-block {
  display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 20px; transition: border-color .2s, transform .2s;
}
.about-block:hover { border-color: var(--primary); transform: translateX(4px); }
.ab-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--grad-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.ab-icon .icon { width: 20px; height: 20px; }
.about-block h3 { font-family: var(--font-head); font-size: 1.02rem; color: var(--text-strong); margin-bottom: 5px; }
.about-block p { font-size: .93rem; color: var(--muted); }

/* ---------------- stats ---------------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.stat-card {
  text-align: center; padding: 30px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); transition: transform .25s ease, border-color .2s, box-shadow .25s;
}
.stat-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--glow); }
.stat-icon { color: var(--primary); margin-bottom: 12px; }
.stat-icon .icon { width: 26px; height: 26px; }
.stat-number { font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; color: var(--text-strong); line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.stat-suffix { color: var(--primary); font-weight: 700; margin-left: 3px; }

/* ---------------- skills ---------------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.chip {
  padding: 8px 18px; border-radius: 100px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--muted); font-size: .88rem; font-weight: 600;
  transition: all .2s ease;
}
.chip:hover { color: var(--primary); border-color: var(--primary); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(99,102,241,.3); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.skill-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px 22px; transition: transform .25s ease, border-color .2s, box-shadow .25s;
}
.skill-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--glow); }
.skill-top { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
.skill-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--grad-soft); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.skill-icon .icon { width: 21px; height: 21px; }
.skill-name { flex: 1; font-weight: 600; color: var(--text-strong); font-size: .98rem; }
.skill-name small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
.skill-pct { font-family: var(--font-mono); font-size: .86rem; color: var(--primary); font-weight: 600; }
.skill-bar { height: 8px; background: var(--border); border-radius: 100px; overflow: hidden; }
.skill-bar-fill { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 100px; transition: width 1.1s cubic-bezier(.25,1,.3,1); position: relative; }
.skill-bar-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: shimmer 2.2s ease infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(100%); } }

/* ---------------- services ---------------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.service-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; transition: transform .25s ease, border-color .2s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.service-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); opacity: 0; transition: opacity .25s; }
.service-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--glow); }
.service-card:hover::before { opacity: 1; }
.svc-paused { opacity: .82; }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(99,102,241,.35);
}
.service-icon .icon { width: 24px; height: 24px; }
.service-title { font-family: var(--font-head); font-size: 1.12rem; color: var(--text-strong); margin-bottom: 10px; }
.service-desc { color: var(--muted); font-size: .93rem; flex: 1; margin-bottom: 18px; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.service-price { display: flex; flex-direction: column; line-height: 1.3; }
.service-price small { color: var(--muted); font-size: .74rem; }
.service-price strong { color: var(--primary); font-size: 1.02rem; }
.service-price em { color: var(--muted); font-size: .76rem; font-style: normal; }
.status-chip {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 100px;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em;
}
.st-active, .st-completed { background: rgba(34,197,94,.14); color: #22c55e; border: 1px solid rgba(34,197,94,.3); }
.st-paused, .st-maintenance { background: rgba(245,158,11,.14); color: #f59e0b; border: 1px solid rgba(245,158,11,.3); }
.st-ongoing { background: rgba(34,211,238,.13); color: var(--accent); border: 1px solid rgba(34,211,238,.3); }
.st-archived { background: rgba(148,163,184,.14); color: var(--muted); border: 1px solid var(--border-strong); }

/* ---------------- projects ---------------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.project-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s ease, border-color .2s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--glow); }
.project-thumb-wrap { position: relative; display: block; overflow: hidden; }
.project-thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-thumb { transform: scale(1.05); }
.project-thumb-empty { display: flex; align-items: center; justify-content: center; background: var(--grad-soft); color: var(--primary); font-size: 2rem; }
.featured-badge {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--grad); color: #fff; font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 100px;
  box-shadow: 0 6px 16px rgba(99,102,241,.4);
}
.project-thumb-wrap .status-chip { position: absolute; top: 12px; right: 12px; background: var(--surface-solid); }
.project-body { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.project-cat { font-size: .76rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .07em; }
.project-title { font-family: var(--font-head); font-size: 1.14rem; }
.project-title a:hover { color: var(--primary); }
.project-desc { color: var(--muted); font-size: .92rem; flex: 1; }
.project-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag {
  font-size: .75rem; font-weight: 600; color: var(--primary); padding: 4px 11px;
  background: var(--grad-soft); border: 1px solid var(--border); border-radius: 100px;
}
.project-links { display: flex; flex-wrap: wrap; gap: 16px; border-top: 1px dashed var(--border); padding-top: 14px; margin-top: 4px; }
.link-btn { display: inline-flex; align-items: center; gap: 7px; font-size: .87rem; font-weight: 600; color: var(--muted); transition: color .2s, gap .2s; }
.link-btn:hover { color: var(--primary); gap: 10px; }
.link-btn .icon { width: 15px; height: 15px; }

/* projects page */
.page-hero { padding: calc(var(--nav-h) + 70px) 0 40px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--text-strong); margin-bottom: 8px; }
.page-hero p { color: var(--muted); }
.projects-page-section { background: var(--bg); border: 0; }
.projects-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.projects-toolbar .filter-chips { margin-bottom: 0; justify-content: flex-start; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 100px; padding: 10px 18px; min-width: 250px; }
.search-box .icon { color: var(--muted); }
.search-box input { background: transparent; border: 0; outline: none; color: var(--text); font-family: inherit; font-size: .92rem; width: 100%; }
.projects-count { color: var(--muted); font-size: .87rem; margin-bottom: 20px; }

/* project detail */
.project-detail, .post-detail { padding-bottom: 40px; }
.pd-head { padding: calc(var(--nav-h) + 60px) 0 30px; }
.pd-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.project-detail h1, .post-detail h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--text-strong); margin-bottom: 12px; }
.pd-sub { color: var(--muted); font-size: 1.04rem; max-width: 760px; margin-bottom: 22px; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-thumb { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); margin: 18px 0 30px; box-shadow: var(--shadow-card); }
.pd-body { color: var(--text); font-size: 1.02rem; line-height: 1.85; margin-bottom: 40px; }
.pd-facts { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-bottom: 60px; }
.pd-fact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px; }
.pd-fact h3 { font-family: var(--font-head); font-size: .95rem; color: var(--text-strong); margin-bottom: 12px; }
.pd-date { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.pd-more { margin-bottom: 30px; }
.pd-more h2 { font-family: var(--font-head); font-size: 1.5rem; color: var(--text-strong); margin-bottom: 22px; }

/* ---------------- reviews ---------------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.review-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 16px; transition: transform .25s, border-color .2s, box-shadow .3s;
}
.review-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--glow); }
.review-featured { border-color: var(--primary); background: var(--grad-soft); }
.review-top { display: flex; align-items: center; justify-content: space-between; }
.stars { display: inline-flex; gap: 2px; }
.star .icon { width: 17px; height: 17px; color: var(--border-strong); }
.star.on .icon { color: #fbbf24; fill: #fbbf24; }
.review-text { color: var(--text); font-size: .96rem; flex: 1; position: relative; padding-left: 6px; }
.review-quote-ic { color: var(--primary); opacity: .5; width: 22px; height: 22px; margin-bottom: 6px; }
.review-author { display: flex; align-items: center; gap: 14px; }
.review-avatar, .review-avatar-initials { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review-avatar-initials {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 1.1rem;
}
.review-meta strong { color: var(--text-strong); display: flex; flex-direction: column; font-size: .97rem; }
.review-designation { color: var(--muted); font-weight: 500; font-size: .8rem; }
.review-sub { color: var(--muted); font-size: .8rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.review-project { background: var(--grad-soft); border: 1px solid var(--border); padding: 2px 10px; border-radius: 100px; font-size: .74rem; color: var(--primary); font-style: normal; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }

/* ---------------- experience ---------------- */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.exp-col-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.15rem; color: var(--text-strong); margin-bottom: 26px; }
.exp-col-title .icon { color: var(--primary); }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--primary), var(--accent)); opacity: .5; }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -26px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad); border: 3px solid var(--bg); box-shadow: 0 0 0 3px rgba(99,102,241,.3);
}
.timeline-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px 22px; transition: border-color .2s, transform .2s;
}
.timeline-card:hover { border-color: var(--primary); transform: translateX(5px); }
.timeline-date { font-size: .78rem; font-weight: 700; color: var(--accent); font-family: var(--font-mono); }
.timeline-card h4 { font-family: var(--font-head); color: var(--text-strong); margin: 6px 0 3px; font-size: 1.03rem; }
.timeline-company { color: var(--primary); font-size: .88rem; font-weight: 600; }
.timeline-card p { color: var(--muted); font-size: .9rem; margin-top: 9px; }
.ach-list { display: flex; flex-direction: column; gap: 14px; }
.ach-card { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; transition: border-color .2s, transform .2s; }
.ach-card:hover { border-color: var(--primary); transform: translateX(5px); }
.ach-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ach-icon .icon { width: 21px; height: 21px; }
.ach-cat { font-size: .72rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .07em; }
.ach-body h4 { font-family: var(--font-head); color: var(--text-strong); margin: 4px 0; font-size: 1rem; }
.ach-body p { color: var(--muted); font-size: .88rem; }
.ach-date { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; margin-top: 5px; }

/* ---------------- blog ---------------- */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.posts-grid-wide { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .2s, box-shadow .3s; }
.post-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--glow); }
.post-thumb-wrap { display: block; overflow: hidden; }
.post-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-thumb { transform: scale(1.05); }
.post-thumb-empty { display: flex; align-items: center; justify-content: center; background: var(--grad-soft); color: var(--primary); font-size: 2rem; }
.post-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .82rem; }
.post-meta .icon { width: 14px; height: 14px; }
.post-title { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.4; }
.post-title a:hover { color: var(--primary); }
.post-excerpt { color: var(--muted); font-size: .92rem; flex: 1; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------- contact ---------------- */
.contact-banner { border-radius: var(--radius-sm); padding: 14px 20px; margin-bottom: 26px; font-weight: 600; }
.contact-banner.hidden, .hidden { display: none; }
.cb-ok { background: rgba(34,197,94,.13); border: 1px solid rgba(34,197,94,.4); color: #22c55e; }
.cb-err { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.4); color: #ef4444; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 20px; transition: border-color .2s, transform .2s;
}
a.contact-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.contact-card-wide { align-items: flex-start; }
.contact-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-ic .icon { width: 21px; height: 21px; }
.contact-card small { display: block; color: var(--muted); font-size: .8rem; }
.contact-card strong { color: var(--text-strong); font-size: .95rem; word-break: break-word; }
.contact-follow { flex: 1; }
.contact-follow .footer-social { margin-top: 10px; }
.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: .88rem; font-weight: 600; color: var(--text-strong); }
.form-field label em { color: #ef4444; font-style: normal; }
.form-field input, .form-field textarea {
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 11px;
  padding: 12px 16px; color: var(--text); font-family: inherit; font-size: .95rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.18); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { color: var(--muted); font-size: .8rem; text-align: center; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 56px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-text { color: var(--muted); font-size: .93rem; margin-bottom: 18px; max-width: 320px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-title { font-family: var(--font-head); color: var(--text-strong); font-size: 1rem; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--muted); font-size: .92rem; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .85rem;
}
.footer-built { opacity: .8; }

/* ---------------- back to top ---------------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 800; width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad); color: #fff; border: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .3s ease;
  box-shadow: 0 10px 26px rgba(99,102,241,.4);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------------- error pages ---------------- */
.err-page { padding: calc(var(--nav-h) + 100px) 0 80px; }
.center { text-align: center; }
.err-code { font-family: var(--font-head); font-size: clamp(4.5rem, 14vw, 8.5rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.err-icon { width: 90px; height: 90px; margin: 0 auto 24px; border-radius: 26px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; animation: pulse-logo 2s infinite; }
.err-icon .icon { width: 40px; height: 40px; }
.err-page h1 { font-family: var(--font-head); color: var(--text-strong); font-size: 1.8rem; margin-bottom: 10px; }
.muted { color: var(--muted); }
.center .btn { margin-top: 10px; }

/* ---------------- reveal animations ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.25,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero-text { order: 2; }
  .hero-visual { order: 1; }
  .hero-actions, .hero-social { justify-content: center; }
  .hero-intro { margin-left: auto; margin-right: auto; }
  .float-badge { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { position: static; max-width: 420px; margin: 0 auto; }
  .exp-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-facts { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav {
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 890;
    flex-direction: column; align-items: stretch; padding: 18px 24px 26px; gap: 6px;
    background: var(--nav-bg); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s ease;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link { padding: 12px 14px; font-size: 1rem; }
  .nav-cta { margin: 10px 0 0; justify-content: center; }
  .nav-burger { display: flex; }
  .nav-burger.open .open-ic { display: none; }
  .nav-burger.open .close-ic { display: block; }
  .lang-switch { display: none; }
  .section { padding: 70px 0; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .projects-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 0; }
  .brand-name { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-name { font-size: 2.2rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 13px 22px; }
  .contact-form { padding: 22px; }
  .back-to-top { right: 16px; bottom: 16px; }
}

/* ---------- tight desktop nav fix ---------- */
@media (max-width: 1560px) {
  .nav-link { padding: 8px 9px; font-size: .88rem; }
  .nav-cta { margin-left: 6px; }
}
@media (max-width: 1360px) {
  .brand-name { display: none; }
}
.main-nav { flex-wrap: nowrap; }
.nav-link { white-space: nowrap; }
