/* =========================================================
   Ahmed Ali — Portfolio Stylesheet
   Theme: Light / "Build Standards" — Frontend Dev,
   Webflow Expert, SEO Specialist & Vibe Coder.
   ========================================================= */

:root{
  /* Core palette — light theme (default) */
  --bg:#F7F8FA;
  --surface:#FFFFFF;
  --surface-2:#F1F3F7;
  --line:#E4E7EE;
  --ink:#14181F;
  --ink-soft:#5B6472;
  --muted:#8A93A6;

  /* Accents — deliberately two, mapped to meaning */
  --accent:#2F5FFF;        /* primary / interactive */
  --accent-soft:rgba(47,95,255,.08);
  --accent-2:#C2760A;      /* secondary / highlight, used sparingly */
  --accent-2-soft:rgba(194,118,10,.10);
  --vibe:#7C3AED;          /* vibe coding / AI accent */
  --vibe-soft:rgba(124,58,237,.10);
  --good:#0E9F6E;          /* positive / target metric only */
  --danger:#DC2626;

  --radius:14px;
  --radius-sm:8px;

  --font-display:'Space Grotesk', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-mono:'JetBrains Mono', monospace;

  --shadow-card: 0 20px 50px rgba(20,24,31,.10);
  --shadow-hover: 0 24px 48px rgba(20,24,31,.10);
  --shadow-nav: 0 10px 30px rgba(20,24,31,.08);
  --nav-glass: rgba(255,255,255,.8);
  --menu-glass: rgba(255,255,255,.97);
  --ring-track: rgba(20,24,31,.08);
  --cat-code-bg: rgba(20,24,31,.06);
  --cat-code-text: #374151;
}

/* ---- Dark theme — toggled via data-theme="dark" on <html> ---- */
[data-theme="dark"]{
  --bg:#0B0D12;
  --surface:#12151C;
  --surface-2:#171B24;
  --line:#232838;
  --ink:#ECEEF3;
  --ink-soft:#AAB2C5;
  --muted:#747C93;

  --accent:#5B7FFF;
  --accent-soft:rgba(91,127,255,.16);
  --accent-2:#FFB020;
  --accent-2-soft:rgba(255,176,32,.16);
  --vibe:#A78BFA;
  --vibe-soft:rgba(167,139,250,.18);
  --good:#34D399;
  --danger:#F87171;

  --shadow-card: 0 20px 60px rgba(0,0,0,.35);
  --shadow-hover: 0 26px 55px rgba(0,0,0,.4);
  --shadow-nav: 0 10px 30px rgba(0,0,0,.4);
  --nav-glass: rgba(18,21,28,.82);
  --menu-glass: rgba(18,21,28,.95);
  --ring-track: rgba(255,255,255,.08);
  --cat-code-bg: rgba(255,255,255,.06);
  --cat-code-text: #D1D5DB;
}

html{ transition: background-color .3s ease; }
body, .browser-bar, .mobile-menu, .audit-card, .stat-card, .expertise-card,
.project-card, .testimonial-card, .contact-box, .field input, .field textarea,
.bar-track, .tag, .expertise-tags span, .project-tags span{
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
}

*{margin:0; padding:0; box-sizing:border-box;}
html{scroll-behavior:smooth;}

body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  line-height:1.65;
  overflow-x:hidden;
}

::selection{background:var(--accent); color:#fff;}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
img{max-width:100%; display:block;}
button{font:inherit; cursor:pointer; border:none; background:none;}

:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
  border-radius:4px;
}

/* ============ LAYOUT HELPERS ============ */
.wrap{max-width:1080px;     margin: 0 auto 50px auto; padding:0 28px;}
section{padding:120px 0 0;}
@media (max-width:720px){ section{padding-top:76px;} }
@media (max-width:480px){ section{padding-top:56px;} }

/* Only the last section before the footer needs bottom breathing room —
   every other gap is handled once, by the next section's top padding,
   instead of stacking both sides at every boundary. */
section:last-of-type{padding-bottom:120px;}
@media (max-width:720px){ section:last-of-type{padding-bottom:76px;} }
@media (max-width:480px){ section:last-of-type{padding-bottom:56px;} }

.eyebrow{
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--accent);
  margin-bottom:14px;
  display:flex; align-items:center; gap:8px;
}
.eyebrow::before{content:"//"; color:var(--muted);}

h2.section-title{
  font-family:var(--font-display);
  font-size:clamp(28px,4vw,40px);
  font-weight:600;
  letter-spacing:-0.01em;
  margin-bottom:20px;
  max-width:640px;
}
.section-sub{
  color:var(--ink-soft);
  font-size:15.5px;
  max-width:560px;
  margin-bottom:48px;
}

.reveal{opacity:0; transform:translateY(28px); transition:opacity .7s ease,transform .7s ease;}
.reveal.in-view{opacity:1; transform:translateY(0);}
@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1; transform:none; transition:none;}
  html{scroll-behavior:auto;}
}

/* ============ NAV — floating browser chrome ============ */
header{
  position:fixed; top:16px; left:0; right:0; z-index:500;
  display:flex; flex-direction:column; align-items:center; padding:0 20px;
}
.browser-bar{
  width:100%; max-width:860px;
  background:var(--nav-glass);
  backdrop-filter:blur(14px);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:var(--shadow-nav);
  display:flex; align-items:center; gap:16px;
  padding:10px 16px;
}
.traffic{display:flex; gap:6px; flex-shrink:0;}
.traffic span{width:9px; height:9px; border-radius:50%; background:var(--line);}
.traffic span:nth-child(1){background:#FF5F57;}
.traffic span:nth-child(2){background:#FEBC2E;}
.traffic span:nth-child(3){background:#28C840;}

.address{
  flex:1; font-family:var(--font-mono); font-size:13px;
  color:var(--ink-soft); background:var(--bg);
  border-radius:8px; padding:6px 12px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.address b{color:var(--ink); font-weight:600;}

nav.tabs{display:flex; gap:20px; font-size:14px; font-weight:500;}
nav.tabs a{color:var(--ink-soft); transition:color .2s ease;}
nav.tabs a:hover{color:var(--accent);}
@media (max-width:680px){ nav.tabs{display:none;} }

.hamburger{
  display:none; flex-direction:column; gap:4px;
  width:20px; flex-shrink:0; cursor:pointer;
}
.hamburger span{ height:2px; width:100%; background:var(--ink-soft); border-radius:2px; transition:transform .25s ease, opacity .25s ease; }
@media (max-width:680px){ .hamburger{display:flex;} }
.hamburger.open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

.mobile-menu{
  width:100%; max-width:860px; margin:8px auto 0;
  background:var(--menu-glass); backdrop-filter:blur(14px);
  border:1px solid var(--line); border-radius:12px;
  display:none; flex-direction:column; overflow:hidden;
  box-shadow:var(--shadow-nav);
}
.mobile-menu.open{ display:flex; }
.mobile-menu a{
  padding:14px 20px; font-size:14.5px; color:var(--ink-soft);
  border-bottom:1px solid var(--line);
}
.mobile-menu a:last-child{ border-bottom:none; }
.mobile-menu a:hover{ color:var(--accent); }

/* ============ THEME TOGGLE ============ */
.theme-toggle{
  width:32px; height:32px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  border-radius:8px; color:var(--ink-soft);
  transition:background-color .2s ease, color .2s ease;
}
.theme-toggle:hover{ background:var(--bg); color:var(--accent); }
.theme-toggle svg{ width:17px; height:17px; }
.theme-toggle .icon-moon{ display:none; }
[data-theme="dark"] .theme-toggle .icon-sun{ display:none; }
[data-theme="dark"] .theme-toggle .icon-moon{ display:block; }

/* ============ WHATSAPP FLOATING BUTTON ============ */
.whatsapp-fab{
  position:fixed; right:24px; bottom:24px; z-index:400;
  width:56px; height:56px; border-radius:50%;
  background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 28px rgba(37,211,102,.4);
  transition:transform .25s ease, box-shadow .25s ease;
}
.whatsapp-fab:hover{ transform:translateY(-3px) scale(1.05); box-shadow:0 14px 34px rgba(37,211,102,.5); }
.whatsapp-fab svg{ width:28px; height:28px; }
.whatsapp-fab .ping{
  position:absolute; inset:0; border-radius:50%;
  background:#25D366; opacity:.55;
  animation:whatsapp-ping 2.6s ease-out infinite;
}
@keyframes whatsapp-ping{
  0%{ transform:scale(1); opacity:.55; }
  100%{ transform:scale(1.6); opacity:0; }
}
@media (prefers-reduced-motion:reduce){ .whatsapp-fab .ping{ animation:none; display:none; } }
@media (max-width:480px){
  .whatsapp-fab{ width:50px; height:50px; right:16px; bottom:16px; }
  .whatsapp-fab svg{ width:25px; height:25px; }
}

/* ============ CHATBOT WIDGET ============ */
.chatbot-widget{
  position:fixed; left:24px; bottom:24px; z-index:400;
  /* Fixed brand color for the whole chat widget — stays #5B7FFF in both
     light and dark mode, no gradients, no secondary/vibe/amber accents. */
  --chat-accent:#5B7FFF;
  --chat-accent-soft:rgba(91,127,255,.14);
}

.chatbot-toggle{
  width:58px; height:58px; border-radius:50%;
  background:var(--chat-accent);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 12px 30px -6px var(--chat-accent-soft), 0 4px 12px rgba(0,0,0,.15);
  transition:transform .25s ease, box-shadow .25s ease;
}
.chatbot-toggle:hover{ transform:translateY(-3px) scale(1.05); }
.chatbot-toggle svg{ width:24px; height:24px; }
.chatbot-toggle .icon-close{ display:none; }
.chatbot-widget.open .chatbot-toggle .icon-chat{ display:none; }
.chatbot-widget.open .chatbot-toggle .icon-close{ display:block; }

.chatbot-panel{
  position:absolute; left:0; bottom:76px;
  width:388px; max-width:calc(100vw - 48px);
  height:520px; max-height:72vh;
  background:var(--surface); border:1px solid var(--line); border-radius:18px;
  box-shadow:0 24px 60px -12px rgba(0,0,0,.28), 0 4px 20px rgba(0,0,0,.08);
  display:flex; flex-direction:column; overflow:hidden;
  opacity:0; transform:translateY(14px) scale(.96); pointer-events:none;
  transition:opacity .25s cubic-bezier(.2,.8,.2,1), transform .25s cubic-bezier(.2,.8,.2,1);
}
.chatbot-widget.open .chatbot-panel{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }

.chatbot-header{
  display:flex; align-items:center; gap:11px;
  padding:16px 16px; flex-shrink:0;
  background:var(--chat-accent);
  position:relative; overflow:hidden;
}
.chatbot-header::after{
  content:''; position:absolute; inset:0;
  background:radial-gradient(120px 80px at 90% -20%, rgba(255,255,255,.25), transparent 70%);
  pointer-events:none;
}
.chatbot-avatar{
  width:36px; height:36px; border-radius:50%; flex-shrink:0;
  background:rgba(255,255,255,.18); border:1.5px solid rgba(255,255,255,.35);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-weight:700; font-size:13px; color:#fff;
}
.chatbot-header-text{ flex:1; min-width:0; }
.chatbot-header-title{
  font-family:var(--font-display); font-size:14px; font-weight:600; color:#fff;
  line-height:1.25;
}
.chatbot-header-sub{
  display:flex; align-items:center; gap:5px;
  font-family:var(--font-mono); font-size:11px; color:rgba(255,255,255,.85);
  margin-top:2px;
}
.chatbot-dot{ width:6px; height:6px; border-radius:50%; background:#4ADE80; flex-shrink:0; box-shadow:0 0 0 3px rgba(74,222,128,.25); }
.chatbot-minimize{
  color:rgba(255,255,255,.85); font-size:20px; line-height:1;
  width:26px; height:26px; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition:background .2s ease, color .2s ease; flex-shrink:0; position:relative;
}
.chatbot-minimize:hover{ color:#fff; background:rgba(255,255,255,.15); }

.chatbot-messages{
  flex:1; overflow-y:auto; padding:16px;
  display:flex; flex-direction:column; gap:12px;
  background:
    radial-gradient(400px 200px at 100% 0%, var(--chat-accent-soft), transparent 60%),
    var(--bg);
}
.chatbot-msg{
  font-family:var(--font-body); font-size:13.5px; line-height:1.55;
  padding:10px 13px; border-radius:14px; max-width:92%;
  word-break:break-word;
}
.chatbot-msg.user{ white-space:pre-wrap; }
.chatbot-msg.bot{
  background:var(--surface); color:var(--ink); align-self:flex-start; border-bottom-left-radius:4px;
  border:1px solid var(--line);
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.chatbot-msg.bot p{ margin:0 0 8px; }
.chatbot-msg.bot p:last-child{ margin-bottom:0; }
.chatbot-msg.bot ul.chat-list{
  list-style:none; margin:2px 0 10px; padding:0;
  display:flex; flex-direction:column; gap:7px;
}
.chatbot-msg.bot ul.chat-list:last-child{ margin-bottom:0; }
.chatbot-msg.bot ul.chat-list li{
  position:relative; padding-left:16px; font-size:13.5px;
}
.chatbot-msg.bot ul.chat-list li::before{
  content:"›"; position:absolute; left:0; top:0; color:var(--chat-accent); font-weight:700;
}
.chatbot-msg.bot a.chat-link{
  display:inline-flex; align-items:center; gap:4px;
  background:var(--chat-accent-soft); color:var(--chat-accent);
  padding:2px 9px 2px 9px; border-radius:999px;
  font-family:var(--font-mono); font-size:12px;
  text-decoration:none; border:1px solid transparent;
  white-space:nowrap; max-width:100%; overflow:hidden; text-overflow:ellipsis;
  vertical-align:middle;
}
.chatbot-msg.bot a.chat-link:hover{ border-color:var(--chat-accent); }
.chatbot-msg.bot a.chat-link .chat-link-arrow{ font-size:10px; }
.chatbot-msg.user{
  background:var(--chat-accent);
  color:#fff; align-self:flex-end; border-bottom-right-radius:4px;
  box-shadow:0 4px 14px -4px var(--chat-accent-soft);
}
.chatbot-msg.error{ background:rgba(220,38,38,.08); color:var(--danger); align-self:flex-start; border:1px solid rgba(220,38,38,.18); }

.chatbot-msg.typing{ display:flex; gap:4px; align-items:center; padding:13px 15px; }
.chatbot-msg.typing span{
  width:6px; height:6px; border-radius:50%; background:var(--chat-accent);
  animation:chatbot-bounce 1.2s infinite ease-in-out;
}
.chatbot-msg.typing span:nth-child(2){ animation-delay:.15s; }
.chatbot-msg.typing span:nth-child(3){ animation-delay:.3s; }
@keyframes chatbot-bounce{ 0%,60%,100%{ transform:translateY(0); opacity:.4; } 30%{ transform:translateY(-4px); opacity:1; } }

/* ---- Suggestion chips (Skills / Projects / About / Rates / Contact) ----
   Rendered inside each bot reply (not a fixed bar) so they scroll away
   with the conversation instead of sitting permanently above the input.
   Flat, single-color outline style — no fill, no gradient — so they read
   as light suggestions, not bold buttons. */
.chat-suggestions{
  display:flex; flex-wrap:wrap; gap:6px; margin-top:12px;
}
.chatbot-chip{
  font-family:var(--font-body); font-size:11.5px; font-weight:500;
  color:var(--ink-soft); background:transparent;
  border:1px solid var(--line); border-radius:7px;
  padding:5px 10px; cursor:pointer; line-height:1.4;
  transition:color .15s ease, border-color .15s ease, background .15s ease;
}
.chatbot-chip:hover{ color:var(--chat-accent); border-color:var(--chat-accent); background:var(--chat-accent-soft); }
.chatbot-chip:disabled{ opacity:.5; cursor:not-allowed; }

/* ---- Slash-command menu — appears above the input when the visitor
   types "/", listing the same set of questions as the suggestion chips ---- */
.chatbot-input-wrap{ position:relative; flex-shrink:0; }
.chatbot-slash-menu{
  position:absolute; left:12px; right:12px; bottom:100%; margin-bottom:8px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm);
  box-shadow:var(--shadow-card); overflow:hidden; z-index:5;
}
.chatbot-slash-menu[hidden]{ display:none; }
.chat-slash-item{
  display:flex; align-items:baseline; gap:8px; width:100%; text-align:left;
  padding:9px 12px; background:none; border:none; border-bottom:1px solid var(--line);
  cursor:pointer; transition:background .15s ease;
}
.chat-slash-item:last-child{ border-bottom:none; }
.chat-slash-item:hover, .chat-slash-item.active{ background:var(--surface-2); }
.chat-slash-item .slash-cmd{ font-family:var(--font-mono); font-size:12px; font-weight:700; color:var(--chat-accent); }
.chat-slash-item .slash-label{ font-size:12.5px; color:var(--ink-soft); }

/* ---- Project cards rendered inside a bot bubble ---- */
.chat-project-list{ display:flex; flex-direction:column; gap:10px; }
.chat-project-card{
  background:var(--bg); border:1px solid var(--line); border-left:3px solid var(--chat-accent);
  border-radius:10px; padding:11px 13px;
  transition:border-color .2s ease, transform .15s ease;
}
.chat-project-card.cat-webflow{ border-left-color:var(--chat-accent); }
.chat-project-card.cat-vibe{ border-left-color:var(--chat-accent); }
.chat-project-head{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  margin-bottom:5px;
}
.chat-project-name{ font-family:var(--font-display); font-weight:600; font-size:13px; color:var(--ink); }
.chat-project-tag{
  font-family:var(--font-mono); font-size:10px; font-weight:600;
  color:var(--chat-accent); background:var(--chat-accent-soft);
  padding:2px 8px; border-radius:999px; white-space:nowrap; flex-shrink:0;
}
.cat-webflow .chat-project-tag{ color:var(--chat-accent); background:var(--chat-accent-soft); }
.cat-vibe .chat-project-tag{ color:var(--chat-accent); background:var(--chat-accent-soft); }
.chat-project-desc{ font-size:12.5px; color:var(--ink-soft); margin:0 0 9px; line-height:1.55; }
.chat-project-pills{ display:flex; flex-wrap:wrap; gap:5px; margin-bottom:10px; }
.chat-project-pills span{
  font-family:var(--font-mono); font-size:10px; color:var(--ink-soft);
  background:var(--surface-2); border:1px solid var(--line);
  padding:2px 8px; border-radius:999px;
}
.chat-project-link{
  display:inline-flex; align-items:center; gap:5px;
  font-size:12.5px; font-weight:600; color:#fff;
  background:var(--chat-accent);
  padding:7px 13px; border-radius:8px; text-decoration:none;
  transition:opacity .2s ease, transform .15s ease;
}
.chat-project-link:hover{ opacity:.9; transform:translateY(-1px); }
.chat-project-link .chat-link-arrow{ font-size:11px; }

/* ---- Skill / expertise pill groups rendered inside a bot bubble ---- */
.chat-skill-groups{ display:flex; flex-direction:column; gap:11px; margin-bottom:4px; }
.chat-skill-group{ padding-left:11px; border-left:2px solid var(--line); }
.chat-skill-group-title{
  font-family:var(--font-mono); font-size:11px; font-weight:700; letter-spacing:.03em;
  text-transform:uppercase; color:var(--chat-accent); margin-bottom:6px;
}
.chat-skill-pills{ display:flex; flex-wrap:wrap; gap:6px; }
.chat-skill-pills span{
  font-size:12px; color:var(--ink); background:var(--surface-2);
  border:1px solid var(--line); padding:4px 10px; border-radius:999px;
}
.chat-tools-row{ font-size:12px; color:var(--ink-soft); margin-top:10px; line-height:1.6; }


/* ---- Stats row rendered under the About answer ---- */
.chat-stats-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.chat-stats-row span{
  font-size:11.5px; color:var(--ink-soft); background:var(--surface-2);
  border:1px solid var(--line); padding:5px 10px; border-radius:8px;
}
.chat-stats-row b{ color:var(--chat-accent); }

/* ---- Pricing cards (rendered for the "rates" answer) ---- */
.chat-pricing-list{ display:flex; flex-direction:column; gap:10px; margin-bottom:2px; }
.chat-pricing-card{
  background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:14px 14px 12px;
  position:relative;
}
.chat-pricing-card.featured{ border-color:var(--chat-accent); box-shadow:0 0 0 1px var(--chat-accent) inset; }
.chat-pricing-badge{
  position:absolute; top:-9px; right:12px;
  font-family:var(--font-mono); font-size:10px; font-weight:700; letter-spacing:.03em; text-transform:uppercase;
  color:#fff; background:var(--chat-accent); padding:3px 9px; border-radius:999px;
}
.chat-pricing-head{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:2px; }
.chat-pricing-name{ font-family:var(--font-display); font-weight:600; font-size:13.5px; color:var(--ink); }
.chat-pricing-price{ font-family:var(--font-mono); font-weight:700; font-size:15px; color:var(--chat-accent); white-space:nowrap; }
.chat-pricing-tagline{ font-size:11px; font-weight:600; color:var(--chat-accent); text-transform:uppercase; letter-spacing:.02em; margin-bottom:6px; }
.chat-pricing-desc{ font-size:12px; color:var(--ink-soft); margin:0 0 9px; line-height:1.5; }
.chat-pricing-meta{
  display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px;
}
.chat-pricing-meta span{
  font-family:var(--font-mono); font-size:10.5px; color:var(--ink-soft);
  background:var(--surface-2); border:1px solid var(--line); padding:3px 8px; border-radius:999px;
}
.chat-pricing-features{ list-style:none; margin:0 0 11px; padding:0; display:flex; flex-direction:column; gap:5px; }
.chat-pricing-features li{ font-size:12px; color:var(--ink); padding-left:18px; position:relative; }
.chat-pricing-features li::before{ content:"✓"; position:absolute; left:0; color:var(--chat-accent); font-weight:700; }
.chat-pricing-delivery{ font-family:var(--font-mono); font-size:10.5px; color:var(--ink-soft); margin-bottom:9px; }

/* ---- Interactive price calculator (package + delivery speed → total) ---- */
.chat-calc{
  background:var(--surface); border:1px solid var(--line); border-radius:12px;
  padding:14px; margin-top:2px;
}
.chat-calc-title{
  font-family:var(--font-mono); font-size:10.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:var(--ink-soft); margin-bottom:10px;
}
.chat-calc-tabs{ display:flex; gap:6px; margin-bottom:12px; }
.chat-calc-tab{
  flex:1; font-family:var(--font-body); font-size:12px; font-weight:600;
  color:var(--ink-soft); background:var(--bg); border:1px solid var(--line); border-radius:8px;
  padding:7px 6px; cursor:pointer; transition:color .15s ease, border-color .15s ease, background .15s ease;
}
.chat-calc-tab.active{ color:#fff; background:var(--chat-accent); border-color:var(--chat-accent); }
.chat-calc-tab:not(.active):hover{ border-color:var(--chat-accent); color:var(--chat-accent); }
.chat-calc-delivery{ display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.chat-calc-option{
  display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--ink);
  cursor:pointer; padding:2px 0;
}
.chat-calc-option input{ accent-color:var(--chat-accent); width:15px; height:15px; flex-shrink:0; cursor:pointer; }
.chat-calc-total-row{
  display:flex; align-items:baseline; justify-content:space-between;
  padding-top:11px; margin-bottom:12px; border-top:1px dashed var(--line);
}
.chat-calc-total-label{ font-size:12px; color:var(--ink-soft); font-weight:600; }
.chat-calc-total-amount{ font-family:var(--font-mono); font-size:18px; font-weight:700; color:var(--chat-accent); }
.chat-calc-cta{ display:flex; justify-content:center; }

.chatbot-input-row{ display:flex; gap:8px; padding:12px 14px 14px; border-top:1px solid var(--line); flex-shrink:0; }
.chatbot-input-row input{
  flex:1; background:var(--surface-2); border:1px solid var(--line); border-radius:999px;
  padding:10px 16px; font-family:var(--font-body); font-size:13.5px; color:var(--ink); outline:none;
  transition:border-color .2s ease, background .2s ease;
}
.chatbot-input-row input:focus{ border-color:var(--chat-accent); background:var(--surface); }
.chatbot-input-row button{
  width:38px; height:38px; border-radius:50%;
  background:var(--chat-accent); color:#fff;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  transition:opacity .2s ease, transform .15s ease;
}
.chatbot-input-row button:hover:not(:disabled){ transform:scale(1.06); }
.chatbot-input-row button svg{ width:15px; height:15px; }
.chatbot-input-row button:disabled{ opacity:.5; }

@media (max-width:480px){
  .chatbot-widget{ left:16px; bottom:16px; }
  .chatbot-toggle{ width:52px; height:52px; }
  .chatbot-panel{ width:calc(100vw - 32px); left:0; height:70vh; }
}

/* ============ HERO ============ */
.hero{
  min-height:100vh;
  display:flex; align-items:center;
  padding-top:150px;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:56px;
  align-items:center;
  width:100%;
}
@media (max-width:900px){ .hero-grid{grid-template-columns:1fr;} }

.hero-eyebrow{
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--good);
  display:flex; align-items:center; gap:8px;
  margin-bottom:22px;
}
.hero-eyebrow .dot{
  width:7px; height:7px; border-radius:50%;
  background:var(--good);
  box-shadow:0 0 0 3px rgba(14,159,110,.16);
}

.hero-name{
  font-family:var(--font-display);
  font-size:clamp(38px,6vw,58px);
  font-weight:700;
  letter-spacing:-0.02em;
  margin-bottom:14px;
}

.hero-role{
  font-family:var(--font-mono);
  font-size:clamp(15px,2vw,18px);
  color:var(--accent);
  min-height:1.4em;
}
.hero-role .caret{
  display:inline-block; width:2px; height:1em;
  background:var(--accent); margin-left:2px; vertical-align:-3px;
  animation:blink 1s step-end infinite;
}
@keyframes blink{50%{opacity:0;}}

.hero-desc{
  color:var(--ink-soft);
  font-size:16px;
  max-width:480px;
  margin-top:22px;
}

.hero-cta{display:flex; gap:14px; margin-top:36px; flex-wrap:wrap;}
.btn{
  font-family:var(--font-body); font-weight:600; font-size:14.5px;
  padding:13px 24px; border-radius:9px;
  display:inline-flex; align-items:center; gap:8px;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  will-change:transform;
}
.btn-primary{ background:var(--accent); color:#fff; }
.btn-primary:hover{ box-shadow:0 12px 28px rgba(47,95,255,.28); }
.btn-ghost{ border:1px solid var(--line); color:var(--ink); background:var(--surface); }
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent); }

/* ---- Signature element: build-standards card ---- */
.audit-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-card);
  overflow:hidden;
}
.audit-tabbar{
  display:flex; align-items:center; gap:14px;
  padding:12px 16px; border-bottom:1px solid var(--line);
  background:var(--surface-2);
}
.audit-tabbar .address{background:var(--surface);}

.audit-body{padding:30px 26px 26px;}
.audit-label{
  font-family:var(--font-mono); font-size:11.5px;
  color:var(--muted); text-transform:uppercase; letter-spacing:.06em;
  margin-bottom:18px;
}

.rings-row{
  display:flex; justify-content:space-between;
  gap:10px; margin-bottom:28px; flex-wrap:wrap;
}
.ring-item{ text-align:center; flex:1; min-width:64px; }
.ring-item svg{ width:100%; max-width:74px; height:auto; }
.ring-track{ stroke:var(--ring-track); fill:none; }
.ring-fill{
  fill:none; stroke:var(--good); stroke-linecap:round;
  transition:stroke-dashoffset 1.4s cubic-bezier(.22,.9,.3,1);
}
.ring-num{
  font-family:var(--font-display); font-size:15px; font-weight:700;
  fill:var(--ink);
}
.ring-label{
  font-family:var(--font-mono); font-size:10.5px;
  color:var(--muted); margin-top:8px;
}
@media (max-width:380px){
  .ring-item{ flex:0 0 40%; }
}

.sparkline-box{
  border-top:1px solid var(--line);
  padding-top:20px;
  display:flex; align-items:center; gap:18px;
}
.sparkline-box svg{ width:110px; height:48px; flex-shrink:0; }
.spark-path{
  fill:none; stroke:var(--accent-2); stroke-width:2.5;
  stroke-linecap:round; stroke-linejoin:round;
}
.spark-caption{
  font-family:var(--font-mono); font-size:12px; color:var(--ink-soft);
  line-height:1.5;
}

/* ============ ABOUT ============ */
.about-grid{
  display:grid; grid-template-columns:1.3fr .9fr;
  gap:56px; align-items:start;
}
@media (max-width:820px){ .about-grid{grid-template-columns:1fr;} }

.about-text p{
  color:var(--ink-soft); font-size:16px;
  margin-bottom:18px; max-width:540px;
}
.about-text strong{color:var(--ink);}

.stat-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px 24px; margin-bottom:14px;
}
.stat-card .num{
  font-family:var(--font-display); font-size:30px; font-weight:700; color:var(--accent);
}
.stat-card .label{
  font-family:var(--font-mono); font-size:12px; color:var(--ink-soft); margin-top:4px;
}

/* ============ EXPERTISE (4 pillars) ============ */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

.expertise-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:30px 26px;
  transition:border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.expertise-card:hover{ border-color:var(--accent); transform:translateY(-4px); box-shadow:var(--shadow-hover); }

.expertise-glyph{
  width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
  border-radius:10px; background:var(--accent-soft); color:var(--accent);
  font-family:var(--font-mono); font-weight:600; font-size:16px;
  margin-bottom:20px;
}
.expertise-glyph.vibe{ background:var(--vibe-soft); color:var(--vibe); }
.expertise-card h3{
  font-family:var(--font-display); font-size:19px; font-weight:600; margin-bottom:10px;
}
.expertise-card p{ color:var(--ink-soft); font-size:14.5px; margin-bottom:18px; }
.expertise-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.expertise-tags span{
  font-family:var(--font-mono); font-size:11px; color:var(--ink-soft);
  background:var(--bg); border:1px solid var(--line);
  padding:5px 10px; border-radius:6px;
}

/* ============ SKILLS ============ */
.skills-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:40px;
}

.skill-group-title{
  font-family:var(--font-mono); font-size:12.5px; color:var(--accent);
  margin-bottom:20px; text-transform:uppercase; letter-spacing:.04em;
}
.skill-group-title.vibe{ color:var(--vibe); }
.skill-row{margin-bottom:18px;}
.skill-row:last-child{margin-bottom:0;}
.skill-top{
  display:flex; justify-content:space-between;
  font-family:var(--font-mono); font-size:12.5px; margin-bottom:8px; color:var(--ink-soft);
}
.skill-top b{color:var(--ink); font-family:var(--font-body); font-weight:600;}
.bar-track{height:6px; background:var(--surface-2); border:1px solid var(--line); border-radius:4px; overflow:hidden;}
.bar-fill{height:100%; width:0%; background:var(--accent); border-radius:4px; transition:width 1.1s cubic-bezier(.22,.9,.3,1);}
.bar-fill.vibe{ background:var(--vibe); }

/* ============ TOOLS SHOWCASE (hexagon grid) ============ */
.tools-showcase{
  margin-top:64px; padding-top:48px; border-top:1px solid var(--line);
  display:grid; grid-template-columns:.85fr 1.4fr; gap:48px; align-items:center;
}
@media (max-width:800px){ .tools-showcase{ grid-template-columns:1fr; gap:32px; } }

.tools-heading{
  font-family:var(--font-display); font-size:clamp(30px,4vw,42px); font-weight:700;
  letter-spacing:.02em; color:var(--ink); margin-bottom:14px;
}
.tools-showcase-text p{ color:var(--ink-soft); font-size:14.5px; max-width:320px; }

.tools-hex-grid{
  display:flex; flex-wrap:wrap; gap:14px 12px; justify-content:center;
  padding:10px 0;
}
.tool-hex{
  position:relative;
  width:92px; aspect-ratio:1/1.1;
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  background:var(--line);
  flex-shrink:0;
  transition:transform .25s ease;
}
.tool-hex:nth-child(even){ margin-top:38px; }
.tool-hex:hover{ transform:translateY(-4px); }
.tool-hex-inner{
  position:absolute; inset:2px;
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  background:var(--surface);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px;
  transition:background-color .2s ease;
}
.tool-hex:hover .tool-hex-inner{ background:var(--accent-soft); }
.tool-hex-inner svg{ width:24px; height:24px; }
.tool-hex-inner span{
  font-family:var(--font-mono); font-size:8.5px; color:var(--ink-soft);
  text-align:center; padding:0 6px; line-height:1.3;
}
@media (max-width:480px){
  .tool-hex{ width:78px; }
  .tool-hex:nth-child(even){ margin-top:30px; }
}

/* ============ PROJECTS ============ */
.projects-list{ display:flex; flex-direction:column; gap:32px; }
.project-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; transition:box-shadow .3s ease, transform .3s ease;
}
.project-card:hover{ box-shadow:var(--shadow-hover); transform:translateY(-4px); }

.project-chrome{
  display:flex; align-items:center; gap:14px;
  padding:12px 16px; border-bottom:1px solid var(--line); background:var(--surface-2);
  flex-wrap:wrap;
}
.project-url{
  font-family:var(--font-mono); font-size:12.5px; color:var(--ink-soft);
  background:var(--surface); border:1px solid var(--line);
  padding:4px 10px; border-radius:6px; flex:1; min-width:120px;
}
.project-category{
  font-family:var(--font-mono); font-size:11px; padding:4px 10px; border-radius:6px;
  white-space:nowrap;
}
.cat-webflow{ background:var(--accent-soft); color:var(--accent); }
.cat-vibe{ background:var(--vibe-soft); color:var(--vibe); }
.cat-code{ background:var(--cat-code-bg); color:var(--cat-code-text); }

.project-body{ display:grid; grid-template-columns:1fr 1.4fr; }
@media (max-width:760px){ .project-body{grid-template-columns:1fr;} }

.project-thumb{
  min-height:190px; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:15px; font-weight:600; color:#fff; padding:24px;
  text-align:center;
}
.thumb-webflow{ background:linear-gradient(135deg,#2447D6,#2F5FFF); }
.thumb-webflow-alt{ background:linear-gradient(135deg,#0E63A6,#22A6D9); }
.thumb-vibe{ background:linear-gradient(135deg,#5B21B6,#7C3AED); }
.thumb-code{ background:linear-gradient(135deg,#1F2937,#4B5563); }

.project-info{ padding:26px 30px; }
.project-info h3{ font-family:var(--font-display); font-size:20px; font-weight:600; margin-bottom:12px; }
.project-info p{ color:var(--ink-soft); font-size:14.5px; margin-bottom:10px; }

.project-tags{ display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 18px; }
.project-tags span{
  font-family:var(--font-mono); font-size:11.5px; color:var(--ink-soft);
  background:var(--bg); padding:4px 9px; border-radius:5px;
}
.project-links{ display:flex; gap:18px; font-size:14px; font-weight:600; flex-wrap:wrap; }
.project-links a{ color:var(--accent); border-bottom:1px solid transparent; transition:border-color .2s ease; }
.project-links a:hover{ border-color:var(--accent); }

/* ============ TESTIMONIALS ============ */
.testimonial-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
@media (max-width:760px){ .testimonial-grid{grid-template-columns:1fr;} }
.testimonial-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px 26px;
}
.testimonial-card .quote{
  font-size:15.5px; color:var(--ink); line-height:1.7; margin-bottom:18px;
}
.testimonial-card .quote::before{ content:"\201C"; color:var(--accent); font-size:22px; }
.testimonial-who{ font-family:var(--font-mono); font-size:12.5px; color:var(--ink-soft); }
.testimonial-who b{ color:var(--ink); font-family:var(--font-body); }

/* ============ CONTACT ============ */
.contact-box{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:46px; display:grid; grid-template-columns:1fr 1fr; gap:44px;
}
@media (max-width:760px){ .contact-box{grid-template-columns:1fr; padding:28px;} }

.contact-box h3{ font-family:var(--font-display); font-size:24px; margin-bottom:12px; }
.contact-box p{ color:var(--ink-soft); font-size:15px; margin-bottom:22px; }

.field{ margin-bottom:16px; }
.field label{
  font-family:var(--font-mono); font-size:12px; color:var(--ink-soft);
  display:block; margin-bottom:6px;
}
.field input, .field textarea{
  width:100%; background:var(--bg); border:1px solid var(--line); border-radius:8px;
  padding:11px 14px; font-family:var(--font-body); font-size:14px; color:var(--ink);
  outline:none; transition:border-color .2s ease;
}
.field input:focus, .field textarea:focus{ border-color:var(--accent); }
.field textarea{ resize:vertical; min-height:90px; }

.form-status{
  font-family:var(--font-mono); font-size:13px;
  margin-top:14px; min-height:1.4em;
}
.form-status.success{ color:var(--good); }
.form-status.error{ color:var(--danger); }

.btn:disabled{ opacity:.6; cursor:not-allowed; transform:none !important; }

.social-row{ display:flex; gap:14px; margin-top:26px; flex-wrap:wrap; }
.social-row a{
  width:38px; height:38px; border:1px solid var(--line); border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-size:11.5px; color:var(--ink-soft);
  transition:border-color .2s ease, color .2s ease;
}
.social-row a:hover{ border-color:var(--accent); color:var(--accent); }

/* ============ FOOTER ============ */
footer{ border-top:1px solid var(--line); padding:32px 0; }
.footer-row{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:12px;
  font-family:var(--font-mono); font-size:12px; color:var(--muted);
}
.footer-row a{ color:var(--ink-soft); transition:color .2s ease; }
.footer-row a:hover{ color:var(--accent); }

/* ============ SMALL-SCREEN POLISH ============ */
@media (max-width:480px){
  .hero-cta{ flex-direction:column; align-items:stretch; }
  .hero-cta .btn{ justify-content:center; }
  .audit-body{ padding:22px 18px 20px; }
  .rings-row{ gap:14px 8px; }
  .sparkline-box{ flex-direction:column; align-items:flex-start; gap:12px; }
}

/* ============ PAGE LOADER — matches the "browser chrome" theme ============ */
#page-loader{
  position:fixed; inset:0; z-index:9999;
  display:flex; align-items:center; justify-content:center;
  background:var(--bg);
  transition:opacity .5s ease, visibility .5s ease;
}
#page-loader .loader-card{
  display:flex; flex-direction:column; align-items:center; gap:18px;
}
#page-loader .loader-mark{
  width:56px; height:56px; border-radius:50%;
  background:var(--accent);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-weight:700; font-size:20px; color:#fff;
  box-shadow:var(--shadow-card);
  animation:loader-pulse 1.6s ease-in-out infinite;
}
#page-loader .loader-text{
  font-family:var(--font-mono); font-size:13px; color:var(--ink-soft);
  letter-spacing:.02em; display:flex; align-items:center;
}
#page-loader .loader-text .caret{
  display:inline-block; width:2px; height:1em;
  background:var(--accent); margin-left:2px; vertical-align:-2px;
  animation:blink 1s step-end infinite;
}
#page-loader .loader-track{
  width:140px; height:3px; border-radius:2px;
  background:var(--ring-track); overflow:hidden;
}
#page-loader .loader-bar{
  height:100%; width:40%; border-radius:2px;
  background:var(--accent);
  animation:loader-slide 1.3s ease-in-out infinite;
}

@keyframes loader-pulse{
  0%,100%{ transform:scale(1); opacity:1; }
  50%{ transform:scale(1.08); opacity:.85; }
}
@keyframes loader-slide{
  0%{ transform:translateX(-120%); }
  50%{ transform:translateX(60%); }
  100%{ transform:translateX(280%); }
}

/* Fade-out state, toggled by JS once the page has finished loading */
#page-loader.loader-hidden{
  opacity:0; visibility:hidden; pointer-events:none;
}

@media (prefers-reduced-motion:reduce){
  #page-loader .loader-mark{ animation:none; }
  #page-loader .loader-bar{ animation:none; width:100%; }
  #page-loader .loader-text .caret{ animation:none; }
}