/* ============ Theme tokens ============ */
/* Dark neon is the default; light mode is available from the toggle */
:root {
  --bg: #07070d;
  --bg-alt: #0b0b15;
  --surface: #11111c;
  --glass: rgba(255, 255, 255, 0.035);
  --text: #f3f3fa;
  --muted: #9b9cb5;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #a78bfa;
  --primary-2: #f472b6;
  --accent: #22d3ee;
  --primary-soft: rgba(167, 139, 250, 0.14);
  --success: #34d399;
  --error: #f87171;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --glow: 0 0 30px rgba(167, 139, 250, 0.35), 0 0 60px rgba(244, 114, 182, 0.18);
  --radius: 18px;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 55%, #f97316 100%);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f7f8fc; --bg-alt: #eef1f8; --surface: #ffffff; --glass: #ffffff; --text: #141824; --muted: #5b6275;
  --border: #e2e6ef; --primary: #6d4cf0; --primary-2: #e0457b; --accent: #0891b2; --primary-soft: rgba(109, 76, 240, 0.1);
  --success: #16a34a; --error: #dc2626; --shadow: 0 10px 30px rgba(20, 24, 36, 0.07); --glow: 0 8px 20px rgba(109, 76, 240, .25);
  --grad: linear-gradient(135deg, #6d4cf0, #e0457b);
  color-scheme: light;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Plus Jakarta Sans", "Hind Siliguri", system-ui, sans-serif;
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.bn { font-family: "Hind Siliguri", sans-serif; }
.icon { flex-shrink: 0; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn--ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn--block { width: 100%; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.link { display: inline-flex; align-items: center; gap: .35rem; color: var(--primary); font-weight: 600; font-size: .92rem; }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.logo span { color: var(--primary-2); }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { font-weight: 500; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: .6rem; }
.menu-btn { display: none; }
.theme-sun { display: none; }
:root[data-theme="light"] .theme-sun { display: block; }
:root[data-theme="light"] .theme-moon { display: none; }

/* ============ Hero ============ */
.hero { padding: 4rem 0 3rem; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto auto; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, var(--primary-soft), transparent 65%); z-index: -1; pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: .85rem; font-weight: 500; margin-bottom: 1.2rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(22, 163, 74, .2); }
.hero__hello { font-weight: 600; color: var(--muted); margin-bottom: .3rem; }
.hero__hello .bn { color: var(--primary); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .2em; }
.hero__role { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; min-height: 1.3em; }
.typed { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret { display: inline-block; width: 3px; height: 1.1em; background: var(--primary-2); margin-left: 4px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0; }
.socials { display: flex; gap: .6rem; flex-wrap: wrap; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface);
  border: 1px solid var(--border); color: var(--muted); transition: all .2s;
}
.socials a:hover { color: #fff; background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }

.avatar-wrap { position: relative; max-width: 400px; margin: 0 auto; }
.avatar { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 40% 60% 55% 45% / 45% 45% 55% 55%; background: var(--grad); box-shadow: var(--shadow); }
.floating-card {
  position: absolute; display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .82rem; line-height: 1.25;
  animation: float 5s ease-in-out infinite;
}
.floating-card strong { font-size: 1.7rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.floating-card .icon { color: var(--primary); }
.fc-1 { left: -8%; bottom: 12%; }
.fc-2 { right: -6%; top: 10%; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ============ Stats ============ */
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem 1rem;
}
.stat { text-align: center; padding: .5rem; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat strong { display: block; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; color: var(--primary); }
.stat > span { color: var(--muted); font-size: .9rem; }

/* ============ Sections ============ */
.section { padding: 6rem 0; }
.section--alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.eyebrow { color: var(--primary-2); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: .5rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; }
.sub-title { font-size: 1.2rem; margin: 1.6rem 0 1rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

/* About */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.about__grid .sub-title:first-child { margin-top: 0; }
.info-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.info-list li { display: flex; align-items: center; gap: .7rem; }
.info-list .icon { color: var(--primary); }
.info-list a:hover { color: var(--primary); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 1.8rem 1.6rem; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--primary);
}
.timeline__period { font-size: .8rem; font-weight: 700; color: var(--primary); }
.timeline h4 { margin: .2rem 0 .1rem; font-size: 1.05rem; }
.timeline__org { font-size: .9rem; font-weight: 600; margin-bottom: .4rem; }
.timeline .muted { margin: 0; font-size: .93rem; }

/* Services */
.service { transition: transform .25s, box-shadow .25s, border-color .25s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary); }
.service__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: var(--primary-soft); color: var(--primary);
}
.service h3 { font-size: 1.15rem; }
.service p { margin: 0; font-size: .95rem; }

/* Skills */
.skills__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.skills__grid .sub-title { margin-top: 0; }
.skill { margin-bottom: 1.1rem; }
.skill__head { display: flex; justify-content: space-between; font-size: .92rem; font-weight: 600; margin-bottom: .4rem; }
.skill__head span:last-child { color: var(--primary); }
.skill__bar { height: 8px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; }
.skill__bar span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.visible .skill__bar span { width: var(--w); }
.tools { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 2rem; }
.chip { padding: .45rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .88rem; font-weight: 500; }

/* Portfolio */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filter {
  padding: .55rem 1.2rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font-weight: 600; cursor: pointer; font-family: inherit; transition: all .2s;
}
.filter.active, .filter:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.project { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project.hidden { display: none; }
.project__img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project:hover .project__img img { transform: scale(1.06); }
.project__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.project__body .muted { font-size: .93rem; flex: 1; }
.project__cat { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-2); margin-bottom: .5rem; }

/* Training */
.course { display: flex; flex-direction: column; }
.course__top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 1rem; min-height: 1.6rem; }
.course__level { font-size: .75rem; font-weight: 700; padding: .3rem .8rem; border-radius: 99px; background: var(--primary-soft); color: var(--primary); }
.course__off { margin-left: auto; font-size: .75rem; font-weight: 800; padding: .3rem .7rem; border-radius: 99px; background: var(--primary-2); color: #fff; }
.course__price { display: flex; align-items: baseline; gap: .6rem; margin: -.3rem 0 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.course__price strong { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.course__price s { font-size: 1rem; }
[hidden] { display: none !important; }
.course__meta { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .9rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; flex: 1; }
.checks li { display: flex; gap: .5rem; align-items: center; font-size: .94rem; }
.checks .icon { color: var(--success); }

.course__rating { margin: -.3rem 0 .7rem; width: fit-content; }
.course__rating:hover strong { text-decoration: underline; }
.stars-empty { display: inline-flex; color: var(--border); }
.course__details { justify-content: center; margin-top: .8rem; font-size: .88rem; }
.course-page .back { display: flex; width: fit-content; margin-bottom: 1.5rem; }
.course-hero h1 { margin: .2rem 0 .6rem; }
.course-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; color: var(--muted); }
.course-hero__meta > span { display: inline-flex; align-items: center; gap: .4rem; }
.course-hero__meta .card-rating { margin: 0; }
.checks--grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.course-hero__buy { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px dashed var(--border); }
.course-hero__buy .course__price { margin: 0; padding: 0; border: 0; }

/* Testimonials */
.testimonial { margin: 0; display: flex; flex-direction: column; }
.stars { display: flex; gap: 2px; color: #f5a524; margin-bottom: 1rem; }
.testimonial blockquote { margin: 0 0 1.5rem; flex: 1; font-size: .98rem; }
.testimonial figcaption { display: flex; align-items: center; gap: .8rem; }
.testimonial figcaption span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.initial { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.contact-form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font: inherit; font-weight: 400; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.alert { padding: .8rem 1rem; border-radius: 12px; font-size: .92rem; font-weight: 500; }
.alert--success { background: rgba(22, 163, 74, .12); color: var(--success); }
.alert--error { background: rgba(220, 38, 38, .1); color: var(--error); }

/* Project page */
.project-page .back { margin-bottom: 2rem; }
.project-page .project__cat { display: block; }
.project-hero { margin: 2rem 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.2rem 0; border-block: 1px solid var(--border); }
.meta-grid div { display: flex; flex-direction: column; }
.results { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.results li { padding: 1rem 1.2rem; display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.results .icon { color: var(--success); }
.project-page .tools { justify-content: flex-start; margin-bottom: 2rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 3rem 0; }
.pager a { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.3rem; font-weight: 600; transition: border-color .2s; }
.pager a:hover { border-color: var(--primary); }
.pager a span { display: flex; flex-direction: column; }
.pager__next { justify-content: flex-end; text-align: right; }
.cta-box { text-align: center; background: var(--bg-alt); }

/* Reviews */
.reviews { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); display: grid; gap: 1rem; }
.reviews__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.reviews__head .sub-title { margin: 0; }
.reviews__summary { display: flex; align-items: center; gap: .5rem; }
.reviews__summary strong { font-size: 1.5rem; font-weight: 800; }
.stars { display: inline-flex; gap: 1px; margin: 0; }
.stars .on { color: #f5a524; }
.stars .off { color: var(--border); }
.review-form { display: grid; gap: 1rem; }
.review-form h4 { margin: 0; font-size: 1.05rem; }
.review-form label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; }
.review-form input:not([type="radio"]), .review-form textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font: inherit; font-weight: 400; resize: vertical;
}
.review-form input:focus, .review-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.review-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* clickable star rating (DOM order 5→1, shown 1→5) */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; border: 0; padding: 0; margin: 0; position: relative; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { display: block !important; cursor: pointer; color: var(--border); transition: color .15s, transform .15s; }
.star-input label:hover { transform: scale(1.15); }
.star-input input:checked ~ label { color: #f5a524; }
/* while hovering, preview the hovered rating instead of the chosen one */
.star-input:hover input:checked ~ label { color: var(--border); }
.star-input:hover input ~ label:hover,
.star-input:hover input ~ label:hover ~ label { color: #f5a524; }
.star-input input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 4px; }

.review header { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.review header > div { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.review > p { margin: 0; }
.review__reply { margin-top: 1rem; padding: .9rem 1.1rem; border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 0 10px 10px 0; }
.review__reply small { color: var(--primary); }
.review__reply p { margin: .3rem 0 0; }
.reviews__empty { text-align: center; padding: 1rem 0; margin: 0; }
.card-rating { display: flex; align-items: center; gap: .3rem; font-size: .88rem; margin: -.2rem 0 .6rem; color: #f5a524; }
.card-rating strong { color: var(--text); }
.card-rating .muted { flex: initial; font-size: .85rem; }

/* Checkout */
.small { font-size: .85rem; }
.checkout .back { display: flex; width: fit-content; margin-bottom: 1.5rem; }
label > .lbl { display: block; }
.checkout__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; margin-top: 1.5rem; }
.checkout__form { display: grid; gap: 1rem; }
.checkout__form h3 { margin: .5rem 0 0; font-size: 1.1rem; }
.checkout__form label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; }
.checkout__form input:not([type="radio"]):not([type="checkbox"]), .checkout__form textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font: inherit; font-weight: 400; resize: vertical;
}
.checkout__form input:focus, .checkout__form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.checkout__form .small { margin: 0; }
.wa-field { display: grid; gap: .5rem; }
.check-inline { display: flex !important; align-items: center; gap: .5rem; font-weight: 500 !important; font-size: .88rem; cursor: pointer; }
.check-inline input { width: 17px; height: 17px; accent-color: var(--primary-2); }
.checkout__form input[readonly] { opacity: .65; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .7rem; }
.pay-option { position: relative; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option__box { display: flex; flex-direction: column; gap: .15rem; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--border); transition: all .2s; height: 100%; }
.pay-option__box small { font-weight: 500; word-break: break-word; }
.pay-option:hover .pay-option__box { border-color: var(--primary); }
.pay-option input:checked + .pay-option__box { border-color: var(--primary-2); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }
.pay-option input:focus-visible + .pay-option__box { outline: 2px solid var(--primary); }
.pay-option__box strong { font-size: 1rem; }
.pay-logo { align-self: flex-start; padding: .15rem .6rem; border-radius: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .02em; margin-bottom: .35rem; background: var(--bg-alt); }
.pay-option--bkash .pay-logo { background: #e2136e; color: #fff; }
.pay-option--nagad .pay-logo { background: #f6921e; color: #fff; }
.pay-option--rocket .pay-logo { background: #8c3494; color: #fff; }
.pay-option--bkash input:checked + .pay-option__box { border-color: #e2136e; background: rgba(226, 19, 110, .1); box-shadow: 0 0 0 3px rgba(226, 19, 110, .18), 0 0 24px rgba(226, 19, 110, .25); }
.pay-option--nagad input:checked + .pay-option__box { border-color: #f6921e; background: rgba(246, 146, 30, .1); box-shadow: 0 0 0 3px rgba(246, 146, 30, .18), 0 0 24px rgba(246, 146, 30, .25); }
.pay-steps { display: grid; gap: .8rem; }
.pay-steps ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .35rem; font-size: .92rem; color: var(--muted); }
.pay-steps ol b { color: var(--text); }
.pay-number { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-radius: 12px; background: var(--bg-alt); border-left: 4px solid var(--primary); }
.pay-steps--bkash .pay-number { border-left-color: #e2136e; }
.pay-steps--nagad .pay-number { border-left-color: #f6921e; }
.pay-number > div { display: flex; flex-direction: column; min-width: 0; }
.pay-number strong { font-size: 1.15rem; letter-spacing: .03em; word-break: break-word; }
.copy-btn { flex-shrink: 0; padding: .5rem .9rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.copy-btn:hover { border-color: var(--primary); color: var(--primary); }
.copy-btn.copied { background: var(--success); border-color: var(--success); color: #fff; }
.pay-info { display: grid; gap: .8rem; padding: 1rem 1.1rem; border-radius: 12px; border: 1px dashed var(--border); }
.pay-info p { margin: 0; font-size: .92rem; }
.pay-amount strong { font-size: 1.15rem; color: var(--primary-2); }
.checkout__summary { position: sticky; top: 96px; }
.checkout__summary h3 { margin-bottom: .3rem; }
.checkout__summary .course__meta { gap: 1rem; flex-wrap: wrap; }
.checkout__summary .course__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.summary-lines { display: grid; gap: .5rem; padding-top: 1rem; border-top: 1px dashed var(--border); margin-bottom: 1rem; }
.summary-lines > div { display: flex; justify-content: space-between; align-items: baseline; }
.summary-total { padding-top: .6rem; border-top: 1px solid var(--border); font-weight: 700; }
.summary-total strong { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.discount { color: var(--success); font-weight: 600; }

/* Order confirmation */
.thanks { text-align: center; padding: 2.5rem 2rem; }
.thanks__icon { width: 76px; height: 76px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--glow); }
.thanks .lead { margin: 0 auto 1.5rem; }
.order-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 1.5rem; text-align: left; }
.order-box > div { background: var(--surface); padding: .9rem 1.1rem; display: flex; flex-direction: column; }
.center-row { justify-content: center; margin-bottom: 0; }
.status-pill { display: inline-block; padding: .2rem .75rem; border-radius: 99px; font-size: .82rem; font-weight: 700; }
.status-pill--pending { background: rgba(251, 191, 36, .15); color: #f59e0b; }
.status-pill--paid { background: rgba(34, 211, 238, .14); color: #06b6d4; }
.status-pill--completed { background: rgba(52, 211, 153, .15); color: var(--success); }
.status-pill--cancelled { background: rgba(248, 113, 113, .14); color: var(--error); }

/* Blog */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card__img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--grad); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__img img { transform: scale(1.06); }
.post-card__ph { display: grid; place-items: center; height: 100%; font-size: 4rem; font-weight: 800; color: rgba(255, 255, 255, .85); }
.post-card__cat { position: absolute; left: 12px; top: 12px; padding: .3rem .75rem; border-radius: 99px; font-size: .75rem; font-weight: 700; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(6px); }
.post-card__body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card__body h3 { font-size: 1.15rem; }
.post-card__body .muted { font-size: .93rem; flex: 1; }
.post-meta { font-size: .8rem; font-weight: 600; color: var(--primary-2); margin-bottom: .5rem; }
.blog-more { margin-top: 2.5rem; }
.blog-page .filters a { display: inline-block; }
.empty-state { text-align: center; padding: 3rem 1.5rem; max-width: 520px; margin: 0 auto; }

.post-page .back { display: flex; width: fit-content; margin-bottom: 2rem; }
.post-head .project__cat { display: inline-block; }
.post-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.15; }
.post-author { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 1.2rem 0 2rem; }
.post-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--grad); }
.post-author > div { display: flex; flex-direction: column; line-height: 1.3; }
.client-chip { margin-left: auto; padding: .4rem .9rem; border-radius: 99px; font-size: .82rem; font-weight: 700; background: var(--primary-soft); color: var(--primary); }
.post-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem; border: 1px solid var(--border); }
.post-cover img { width: 100%; max-height: 520px; object-fit: cover; }

.prose { font-size: 1.08rem; line-height: 1.85; }
.prose > * { margin: 0 0 1.25em; }
.prose h2 { font-size: 1.7rem; margin-top: 2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin-left: 0; padding: 1rem 1.4rem; border-left: 4px solid var(--primary-2); background: var(--primary-soft); border-radius: 0 12px 12px 0; font-style: italic; }
.prose figure { margin: 2em 0; }
.prose img { border-radius: 14px; margin: 0 auto; border: 1px solid var(--border); }
.prose figcaption { text-align: center; font-size: .88rem; color: var(--muted); margin-top: .6rem; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.post-tags { justify-content: flex-start; margin: 2rem 0 1.5rem; }
.share { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: 1.2rem 0; border-block: 1px solid var(--border); margin-bottom: 2.5rem; }
.share a, .copy-link { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: all .2s; }
.share a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.copy-link { width: auto; padding: 0 1rem; border-radius: 99px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.posts-grid--small { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.posts-grid--small .post-card__body .muted { display: none; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer__inner p { margin: .5rem 0 0; max-width: 420px; font-size: .92rem; }
.footer__bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .85rem; text-align: center; }

.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 25px rgba(37, 211, 102, .4);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .floating-card, .caret { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .checkout__grid { grid-template-columns: 1fr; }
  .checkout__summary { position: static; order: -1; }
  .hero__grid, .about__grid, .contact__grid, .skills__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { order: -1; }
  .avatar-wrap { max-width: 300px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.2rem; }
  .stat:nth-child(3) { border-left: none; }
  .section { padding: 4.5rem 0; }
  .menu-btn { display: grid; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--border); padding: .5rem 16px 1rem; display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: .8rem 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .hero { padding-top: 2.5rem; }
  .fc-1 { left: 0; } .fc-2 { right: 0; }
  .form-row, .meta-grid, .pager { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .client-chip { margin-left: 0; }
  .prose { font-size: 1rem; }
  .thanks { padding: 2rem 1.2rem; }
  .review header { flex-wrap: wrap; }
  .review header .stars { width: 100%; order: 3; }
  .projects, .cards { grid-template-columns: 1fr; }
  .card { padding: 1.4rem; }
  .project { padding: 0; }
}
