/* ============================================================
   Developer portfolio — public stylesheet (mobile-first)
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --ink: #111827;
  --ink-soft: #4b5563;
  --muted: #6b7280;
  --accent: #4f46e5;
  --accent-dark: #4338ca;
  --accent-soft: #eef0ff;
  --border: #e5e7eb;
  --dark: #0f172a;
  --ok: #047857;
  --bad: #b91c1c;
  --radius: 10px;
  --header-h: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65; font-size: 1rem; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .6rem; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.08rem; font-weight: 650; }
p { margin: 0 0 1rem; }
.icon { flex: none; vertical-align: -.2em; }
:focus-visible { outline: 3px solid rgba(79,70,229,.4); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 2.5rem); }
.muted { color: var(--muted); }
.center { justify-content: center; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.35rem; border-radius: 8px; font: inherit; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; border-color: #cfd4dc; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: #e8ecf3; }
.btn-sm { padding: .5rem 1rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; flex: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: #fff; border-radius: 8px; cursor: pointer; color: var(--ink); place-items: center; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.site-nav { display: flex; align-items: center; gap: .15rem; }
.site-nav a:not(.btn) { color: var(--ink-soft); font-weight: 500; font-size: .95rem; padding: .5rem .8rem; border-radius: 6px; }
.site-nav a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.site-nav a.active:not(.btn) { color: var(--ink); font-weight: 650; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-cta { margin-left: .8rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.6rem, 7vw, 5.5rem) 0; background: var(--bg); border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: .3rem .8rem; border: 1px solid var(--border); border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 1.3rem; background: var(--bg-alt); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }
.hero-name { font-size: 1rem; font-weight: 650; color: var(--accent); margin-bottom: .5rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--ink-soft); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin: 2.2rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--border); }
.hero-stats div { margin: 0; }
.hero-stats dt { font-size: 2rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.hero-stats dd { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.profile-card { margin: 0; width: 100%; max-width: 380px; justify-self: end; text-align: center; }
.profile-card img, .photo-fallback { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-alt); box-shadow: 0 18px 40px rgba(15,23,42,.10); }
.photo-fallback { display: grid; place-items: center; font-size: 5rem; font-weight: 700; color: #94a3b8; }
.profile-card figcaption { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .15rem; }
.profile-card figcaption b { font-size: 1.2rem; letter-spacing: -.01em; }
.profile-card figcaption span { color: var(--muted); font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.8rem, 6vw, 4.8rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2rem; max-width: 640px; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 1.04rem; }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-hero { padding: clamp(2.4rem, 5vw, 3.6rem) 0 clamp(1.4rem, 3vw, 2rem); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .3rem; }
.page-hero .lead { margin: 0; }

.grid { display: grid; gap: 1.3rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; color: inherit; }
a.card { display: block; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
a.card:hover { border-color: #b8c0cc; box-shadow: 0 8px 24px rgba(15,23,42,.07); text-decoration: none; }
.card p { color: var(--ink-soft); }
.card-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 1rem; }
.card-icon.big { width: 54px; height: 54px; }
.service-card p { margin: 0; }
.service-card-wide { display: flex; gap: 1.2rem; align-items: flex-start; }
.service-card-wide .card-icon { margin: 0; }
.service-body p { margin-bottom: .7rem; }
.service-body p:last-child { margin-bottom: 0; }
.service-detail { color: var(--muted) !important; font-size: .95rem; }
.chip { display: inline-flex; align-items: center; padding: .2rem .7rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: .78rem; font-weight: 600; line-height: 1.5; font-family: inherit; border: 1px solid transparent; }
button.chip { cursor: pointer; background: #fff; border-color: var(--border); color: var(--ink-soft); padding: .4rem .95rem; font-size: .86rem; }
button.chip:hover { border-color: var(--ink); color: var(--ink); }
button.chip.active, a.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); text-decoration: none; }
.link-more { display: inline-flex; align-items: center; gap: .35rem; color: var(--accent); font-weight: 600; font-size: .92rem; }

/* ---------- Skills ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.skill { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.3rem; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; }
.skill-ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.skill h3 { margin: 0 0 .1rem; }
.skill p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* ---------- Projects ---------- */
.project-card { padding: 0; overflow: hidden; }
.project-card { transition: border-color .15s ease, box-shadow .15s ease; }
.project-card .card-img { transition: transform .35s ease; }
.project-card:hover .card-img { transform: scale(1.03); }
.project-card { overflow: hidden; }
.card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.card-img.wide { aspect-ratio: 1200 / 630; }
.card-img-ph { display: grid; place-items: center; font-size: 2.4rem; font-weight: 700; color: #94a3b8; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; }
.card-body .chip { margin-bottom: .6rem; }
.card-body p { margin-bottom: .5rem; }
.tech { color: var(--muted) !important; font-size: .84rem; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }

/* ---------- Testimonials ---------- */
.quote-card { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; }
.quote-card blockquote { margin: 0; color: var(--ink); font-size: 1rem; }
.quote-card figcaption { display: flex; flex-direction: column; font-size: .92rem; }
.quote-card figcaption span { color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band { background: var(--dark); color: #fff; padding: clamp(2.4rem, 5vw, 3.4rem) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: .3rem; }
.cta-inner p { margin: 0; color: #cbd5e1; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(1.6rem, 5vw, 4rem); align-items: start; }
.about-photo { position: sticky; top: calc(var(--header-h) + 1.5rem); justify-self: start; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Detail pages ---------- */
.detail { padding: clamp(2rem, 5vw, 3.2rem) 0 clamp(3rem, 7vw, 4.5rem); }
.breadcrumbs { color: var(--muted); font-size: .9rem; margin-bottom: 1.3rem; }
.detail h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: .6rem 0 1rem; }
.detail h2 { margin-top: 2.8rem; }
.detail-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin: 0 0 1.6rem; border: 1px solid var(--border); background: var(--bg-alt); }
.card-img-ph.detail-hero { font-size: 4rem; }
.post-meta { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .86rem; margin-bottom: .5rem; }
.post-meta.big { font-size: .94rem; }
.post-content { font-size: 1.08rem; }
.post-content p { margin-bottom: 1.3rem; color: #1f2937; }

/* ---------- Blog ---------- */
.search-bar { display: flex; gap: .6rem; margin-bottom: 1.4rem; max-width: 520px; }
.search-bar input { flex: 1; min-width: 0; margin: 0; }
.search-note { margin-bottom: 1rem; }
.post-list { display: grid; gap: 1.2rem; }
.post-card { padding: 0; overflow: hidden; }
.post-card.has-cover { display: grid !important; grid-template-columns: 300px 1fr; }
.post-cover { width: 100%; height: 100%; min-height: 170px; object-fit: cover; border-right: 1px solid var(--border); background: var(--bg-alt); }
.post-text { padding: 1.4rem 1.5rem; }
.post-card h2, .post-card h3 { font-size: 1.22rem; margin-bottom: .4rem; }
.post-card p { margin-bottom: .8rem; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2rem; }
.pagination .chip { min-width: 38px; justify-content: center; background: #fff; border-color: var(--border); color: var(--ink-soft); padding: .45rem .8rem; font-size: .9rem; }
.pagination .chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .chip.disabled { opacity: .4; pointer-events: none; }

/* ---------- Forms / contact ---------- */
input[type=text], input[type=email], input[type=search], textarea {
  width: 100%; padding: .75rem .95rem; border: 1px solid #cfd4dc; border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff; margin-top: .35rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
textarea { resize: vertical; min-height: 140px; }
label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 1rem; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
.contact-info { display: grid; gap: 1rem; }
.contact-item { display: flex; gap: 1rem; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; background: #fff; }
.contact-item .card-icon { margin: 0; }
.contact-item b { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; }
.contact-item p { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; font-weight: 600; min-height: 1.4rem; }
.form-status.ok { color: var(--ok); }
.form-status.bad { color: var(--bad); }
.notfound { text-align: center; padding: 3rem 0; }
.notfound .card-icon { margin-inline: auto; }

/* ---------- Footer (high contrast) ---------- */
.site-footer { background: var(--dark); color: #d5dbe7; padding-top: clamp(2.4rem, 5vw, 3.6rem); }
.site-footer a { color: #f1f5f9; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 2.4rem; padding-bottom: 2.2rem; }
.footer-brand { color: #fff !important; margin-bottom: .8rem; }
.footer-text { color: #d5dbe7; max-width: 38ch; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .95rem; color: #d5dbe7; }
.footer-links li { display: flex; align-items: flex-start; gap: .6rem; }
.footer-links .icon { margin-top: .3rem; color: #93a0b8; }
.socials { display: flex; gap: .6rem; margin-top: 1.1rem; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid #334155; color: #f1f5f9; }
.socials a:hover { background: #fff; color: var(--dark); border-color: #fff; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0 1.5rem; border-top: 1px solid #25314a; font-size: .88rem; color: #b6c0d3; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3, .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 280px 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .1rem; padding: .6rem 1.25rem 1.2rem;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 16px 28px rgba(15,23,42,.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .85rem .4rem; font-size: 1rem; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none !important; }
  .site-nav a.active:not(.btn) { color: var(--accent); }
  .nav-cta { margin: .9rem 0 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero .profile-card { order: -1; max-width: 260px; justify-self: start; text-align: left; }
  .hero .profile-card img, .hero .photo-fallback { aspect-ratio: 1; }
  .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 280px; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .post-card.has-cover { grid-template-columns: 220px 1fr; }
}
@media (max-width: 640px) {
  .container, .container.narrow { width: calc(100% - 2rem); }
  .grid-2, .grid-3, .skill-grid { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { gap: 1.2rem 2rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-inner .btn { width: 100%; }
  .service-card-wide { flex-direction: column; }
  .search-bar { flex-direction: column; max-width: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .post-card.has-cover { grid-template-columns: 1fr; }
  .post-cover { height: auto; aspect-ratio: 1200 / 630; min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }


/* ============================================================
   v3 polish: hero, sliders, galleries, stars, WhatsApp, forms
   ============================================================ */
body { background: #fff; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .45rem; }
.section-head h2 { position: relative; }
.btn { border-radius: 10px; }
.btn-primary { box-shadow: 0 6px 16px rgba(79,70,229,.28); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.site-header { background: rgba(255,255,255,.88); }
.nav-cta { box-shadow: none; }

/* Hero: tighter top spacing on desktop, smaller photo */
.hero { background: radial-gradient(700px 360px at 85% -10%, rgba(79,70,229,.10), transparent 70%), linear-gradient(180deg, #fafbff 0%, #fff 100%); padding: clamp(1.2rem, 2.6vw, 2.2rem) 0 clamp(2.4rem, 5vw, 4rem); }
.hero-inner { grid-template-columns: 1.4fr .6fr; gap: clamp(1.5rem, 5vw, 4rem); }
.hero .eyebrow { margin-bottom: 1rem; }
.profile-card.profile-sm { max-width: 250px; }
.profile-card.profile-sm img, .profile-card.profile-sm .photo-fallback { aspect-ratio: 1; border-radius: 22px; box-shadow: 0 14px 30px rgba(15,23,42,.12); }
.profile-card.profile-sm figcaption b { font-size: 1.05rem; }
.profile-card.profile-sm figcaption span { font-size: .88rem; }
.hero-stats { gap: 1rem 2.6rem; }
.hero-stats dt { color: var(--accent); }

/* Cards */
.card { border-radius: 14px; }
a.card:hover, .project-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,23,42,.10); }
a.card, .project-card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.service-card { transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,23,42,.08); }
.card-media { position: relative; overflow: hidden; }
.media-count { position: absolute; right: .7rem; bottom: .7rem; display: inline-flex; align-items: center; gap: .3rem; background: rgba(15,23,42,.78); color: #fff; font-size: .74rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; backdrop-filter: blur(4px); }
.card-body { display: flex; flex-direction: column; align-items: flex-start; }
.card-body h3, .card-body p { width: 100%; }
.card-btn { margin-top: .6rem; pointer-events: none; }
.project-card:hover .card-btn.btn-primary { background: var(--accent-dark); }
.project-card:hover .card-btn.btn-ghost { border-color: var(--accent); color: var(--accent); }
.center-link { text-align: center; margin: 1.8rem 0 0; }

/* Sliders */
.slider { position: relative; }
.slider-track { display: flex; gap: 1.3rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .3rem .15rem 1rem; margin: 0 -.15rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slider-track::-webkit-scrollbar { display: none; }
.slider .slide { flex: 0 0 calc((100% - 2.6rem) / 3); scroll-snap-align: start; min-width: 0; }
.slider-nav { display: flex; gap: .5rem; }
.sl-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: all .15s ease; }
.sl-btn:hover:not([disabled]) { background: var(--accent); border-color: var(--accent); color: #fff; }
.sl-btn[disabled] { opacity: .35; cursor: default; }
.slider-dots { display: flex; justify-content: center; gap: .45rem; margin-top: .4rem; }
.slider-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: #cbd5e1; cursor: pointer; transition: all .2s ease; }
.slider-dots button.on { width: 24px; background: var(--accent); }

/* Testimonials */
.quote-card { position: relative; padding: 1.7rem; gap: 1rem; justify-content: flex-start; background: linear-gradient(180deg, #fff, #fafbff); }
.quote-card::before { content: "\201C"; position: absolute; right: 1.3rem; top: .2rem; font-size: 4.5rem; line-height: 1; color: var(--accent-soft); font-family: Georgia, serif; font-weight: 700; }
.quote-card blockquote { flex: 1; line-height: 1.7; position: relative; }
.quote-card figcaption { flex-direction: row; align-items: center; gap: .8rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.who { display: flex; flex-direction: column; line-height: 1.35; }
.who span { font-size: .85rem; }
.stars { display: inline-flex; gap: 2px; }
.stars .on { color: #f59e0b; }
.stars .off { color: #d1d5db; }

/* Project gallery */
.detail-wrap { width: min(980px, 100% - 2.5rem); margin-inline: auto; }
.gallery { margin-bottom: 1.8rem; }
.gallery-main { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg-alt); cursor: zoom-in; }
.gallery-main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.gallery-main:hover img { transform: scale(1.02); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; margin-top: .7rem; }
.gthumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--bg-alt); opacity: .75; transition: all .15s ease; }
.gthumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gthumb:hover, .gthumb.active { opacity: 1; border-color: var(--accent); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,12,24,.94); display: none; align-items: center; justify-content: center; padding: 3.5rem 1rem 3rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1200px, 100%); max-height: 100%; object-fit: contain; border-radius: 8px; background: #fff; }
.lb-btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { top: .9rem; right: .9rem; } .lb-prev { left: .9rem; top: 50%; } .lb-next { right: .9rem; top: 50%; }
.lb-count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #cbd5e1; font-size: .88rem; }

/* Contact services */
.svc-field { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }
.svc-field legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: .6rem; }
.svc-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-chip { margin: 0; display: inline-block; cursor: pointer; }
.svc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.svc-chip span { display: inline-block; padding: .45rem .95rem; border: 1px solid #cfd4dc; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--ink-soft); background: #fff; transition: all .15s ease; }
.svc-chip:hover span { border-color: var(--accent); }
.svc-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.svc-chip input:focus-visible + span { outline: 3px solid rgba(79,70,229,.35); outline-offset: 2px; }
.svc-other { margin-top: .7rem !important; }
.contact-form { padding: clamp(1.2rem, 3vw, 2rem); box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.card-icon.wa { background: #dcfce7; color: #15803d; }

/* WhatsApp float + toast */
.wa-float { position: fixed; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.wa-btn { width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37,211,102,.45); transition: transform .15s ease; position: relative; }
.wa-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waPulse 2.4s ease-out infinite; }
.wa-btn:hover { transform: scale(1.07); text-decoration: none; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-toast { position: relative; width: min(260px, calc(100vw - 2.4rem)); background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: .9rem 2rem .9rem 1rem; box-shadow: 0 14px 34px rgba(15,23,42,.18); display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; color: var(--ink-soft); animation: waIn .35s ease; }
.wa-toast[hidden] { display: none; }
.wa-toast b { color: var(--ink); }
.wa-close { position: absolute; top: .35rem; right: .5rem; border: 0; background: transparent; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; }
@keyframes waIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Footer WhatsApp / misc */
.footer-links .icon { margin-top: .28rem; }

/* ---------- Responsive additions ---------- */
@media (max-width: 1024px) { .slider .slide { flex-basis: calc((100% - 1.3rem) / 2); } }
@media (max-width: 900px) {
  .hero { padding-top: 1.4rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.2rem; }
  /* compact round avatar on mobile */
  .hero .profile-card.profile-sm { order: -1; max-width: none; width: 100%; display: flex; align-items: center; gap: .9rem; text-align: left; justify-self: stretch; }
  .hero .profile-card.profile-sm img, .hero .profile-card.profile-sm .photo-fallback { width: 76px; height: 76px; aspect-ratio: 1; border-radius: 50%; flex: none; box-shadow: 0 6px 16px rgba(15,23,42,.15); }
  .hero .profile-card.profile-sm .photo-fallback { font-size: 2rem; }
  .hero .profile-card.profile-sm figcaption { margin: 0; }
  .hero .profile-card.profile-sm figcaption b { font-size: 1rem; }
}
@media (max-width: 640px) {
  .slider .slide { flex-basis: 86%; }
  .slider-track { gap: .9rem; }
  .slider-nav { display: none; }
  .section-head.split { align-items: flex-start; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; padding-top: 1.1rem; margin-top: 1.5rem; }
  .hero-stats dt { font-size: 1.45rem; }
  .hero-stats dd { font-size: .78rem; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .lb-prev, .lb-next { top: auto; bottom: .8rem; }
  .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); }
  .lb-count { bottom: 4.2rem; }
  .wa-btn { width: 54px; height: 54px; }
  .quote-card { padding: 1.4rem; }
  h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
}


/* ============================================================
   v4: bigger profile, contact btn colour, 3-up layouts, share, editor output
   ============================================================ */
/* Bigger profile photo (desktop) */
.hero-inner { grid-template-columns: 1.15fr .85fr; }
.profile-card.profile-sm { max-width: 360px; }
.profile-card.profile-sm figcaption b { font-size: 1.2rem; }
.profile-card.profile-sm figcaption span { font-size: .95rem; }

/* "Contact me" button: its own colour */
.btn-contact { background: #0f766e; color: #fff; border-color: #0f766e; box-shadow: 0 6px 16px rgba(15,118,110,.28); }
.btn-contact:hover { background: #115e59; border-color: #115e59; color: #fff; transform: translateY(-1px); text-decoration: none; }

/* 3 per row: flex on desktop, 1-column grid on mobile */
.flex-3 { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.flex-3 > * { flex: 1 1 calc((100% - 2.6rem) / 3); max-width: calc((100% - 2.6rem) / 3); min-width: 0; }
@media (max-width: 1024px) { .flex-3 > * { flex-basis: calc((100% - 1.3rem) / 2); max-width: calc((100% - 1.3rem) / 2); } }
@media (max-width: 700px) {
  .flex-3 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
  .flex-3 > * { max-width: none; }
}
.flex-3 > .card { display: flex; flex-direction: column; }
.flex-3 .card-body { flex: 1; }

/* Testimonials */
.avatar-img { object-fit: cover; width: 48px; height: 48px; background: var(--accent-soft); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.quote-card { height: auto; }

/* CTA band: distinct from the dark footer */
.cta-band { background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 100%); }
.cta-inner p { color: #e0e7ff; }
.cta-band .btn-light { color: #4338ca; font-weight: 700; }

/* Contact form */
.btn-wa { background: #25d366; color: #fff; border-color: #25d366; margin-top: .7rem; }
.btn-wa:hover { background: #1ebe5a; border-color: #1ebe5a; color: #fff; text-decoration: none; }
.btn-wa[disabled], .btn[disabled] { opacity: .65; cursor: progress; }
.form-note { margin: .7rem 0 0; font-size: .84rem; color: var(--muted); text-align: center; }
.svc-field.invalid .svc-list { outline: 2px solid var(--bad); outline-offset: 6px; border-radius: 12px; }
.svc-field.invalid legend { color: var(--bad); }

/* Share buttons */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.share-label { font-weight: 600; font-size: .9rem; color: var(--ink-soft); margin-right: .2rem; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: #fff; color: var(--ink-soft); cursor: pointer; transition: all .15s ease; padding: 0; }
.share-btn:hover { color: #fff; border-color: transparent; text-decoration: none; transform: translateY(-2px); }
.share-btn.wa:hover { background: #25d366; } .share-btn.fb:hover { background: #1877f2; } .share-btn.x:hover { background: #111827; }
.share-btn.in:hover { background: #0a66c2; } .share-btn.em:hover { background: #ea580c; } .share-btn.cp:hover { background: var(--accent); }
.share-ok { font-size: .85rem; color: var(--ok); font-weight: 600; }
.share-box { margin: 2.2rem 0 0; padding: 1.1rem 1.3rem; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-alt); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; }
.share-box > b { font-size: .98rem; }
.share-box .share-label { display: none; }
.more-head { margin-top: 2.8rem; margin-bottom: 1rem; }
.more-head h2 { margin: 0; }

/* Blog post body (rendered from the editor) */
.post-content { font-size: 1.1rem; line-height: 1.8; }
.post-content h2, .post-content h3, .post-content h4 { margin: 2rem 0 .7rem; }
.post-content h2 { font-size: 1.6rem; } .post-content h3 { font-size: 1.28rem; } .post-content h4 { font-size: 1.1rem; }
.post-content ul, .post-content ol { margin: 0 0 1.3rem; padding-left: 1.4rem; color: #1f2937; }
.post-content li { margin-bottom: .4rem; }
.post-content blockquote { margin: 1.6rem 0; padding: .6rem 1.2rem; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; color: var(--ink); font-style: italic; }
.post-content code { background: #f1f5f9; padding: .12rem .4rem; border-radius: 5px; font-size: .92em; }
.post-content pre { background: var(--dark); color: #e2e8f0; padding: 1rem 1.2rem; border-radius: 12px; overflow-x: auto; margin: 0 0 1.4rem; }
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: .5rem 0 1.3rem; }
.post-content a { text-decoration: underline; text-underline-offset: 3px; }
.detail .post-meta.big { margin-bottom: .8rem; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero .profile-card.profile-sm { max-width: none; }
  .hero .profile-card.profile-sm img, .hero .profile-card.profile-sm .photo-fallback { width: 88px; height: 88px; }
}

a.chip.filter:not(.active) { background: #fff; border-color: var(--border); color: var(--ink-soft); padding: .4rem .95rem; font-size: .86rem; }
a.chip.filter:not(.active):hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
