/* ==========================================================================
   akathiriya.in — Design System & Components
   Author: Ashish Kathiriya
   Loaded after Bootstrap so custom tokens win the cascade.
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Brand */
  --primary:        #7c5cfc;
  --primary-600:    #6a48f0;
  --secondary:      #00d4ff;
  --accent:         #ff7a59;
  --success:        #22c55e;
  --warning:        #f59e0b;
  --danger:         #ef4444;

  --grad: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
  --grad-soft: linear-gradient(120deg, rgba(124,92,252,.16), rgba(0,212,255,.16));

  /* Typography */
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Modular type scale (1.25) */
  --fs-xs:  .8rem;
  --fs-sm:  .9rem;
  --fs-base: 1rem;
  --fs-md:  1.15rem;
  --fs-lg:  clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  --fs-xl:  clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --fs-2xl: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --fs-3xl: clamp(2.8rem, 1.9rem + 4.2vw, 5rem);

  /* Spacing scale */
  --sp-1:.25rem; --sp-2:.5rem; --sp-3:.75rem; --sp-4:1rem; --sp-5:1.5rem;
  --sp-6:2rem;   --sp-7:3rem;  --sp-8:4rem;   --sp-9:6rem;  --sp-10:8rem;

  /* Radius */
  --r-sm:8px; --r-md:14px; --r-lg:22px; --r-xl:30px; --r-pill:999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(0,0,0,.18);
  --sh-md: 0 8px 24px rgba(0,0,0,.22);
  --sh-lg: 0 20px 50px rgba(0,0,0,.32);
  --sh-glow: 0 0 0 1px rgba(124,92,252,.4), 0 12px 40px rgba(124,92,252,.30);

  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Dark (default) */
:root, [data-theme="dark"] {
  --bg:        #0a0a0f;
  --bg-2:      #0e0e15;
  --surface:   #14141d;
  --surface-2: #1b1b27;
  --border:    rgba(255,255,255,.09);
  --border-2:  rgba(255,255,255,.14);
  --text:      #f3f4f8;
  --text-2:    #b6bcc8;
  --text-3:    #7e8597;
  --glass:     rgba(20,20,29,.6);
  color-scheme: dark;
}

/* Light */
[data-theme="light"] {
  --bg:        #eef1f8;   /* soft cool page so white cards pop */
  --bg-2:      #e6eaf4;
  --surface:   #ffffff;
  --surface-2: #eef1f8;
  --border:    rgba(18,22,45,.10);
  --border-2:  rgba(18,22,45,.18);
  --text:      #0f1426;
  --text-2:    #3d4459;
  --text-3:    #6b7384;
  --glass:     rgba(255,255,255,.72);
  /* softer, bluish elevation shadows for a clean light UI */
  --sh-sm: 0 1px 3px rgba(20,25,60,.07);
  --sh-md: 0 10px 30px rgba(20,25,60,.10);
  --sh-lg: 0 24px 60px rgba(20,25,60,.14);
  --sh-glow: 0 0 0 1px rgba(124,92,252,.3), 0 14px 40px rgba(124,92,252,.22);
  color-scheme: light;
}

/* -------------------------------------------------------------------------
   2. BASE
   ------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: transparent;            /* aurora layer (.bg-fx) shows through, html paints --bg */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: color .4s var(--ease);
}
html { background: var(--bg); transition: background .4s var(--ease); }
section[id] { scroll-margin-top: 88px; }   /* keep anchored sections clear of the fixed header */

h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: var(--text); margin: 0 0 var(--sp-4); }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
p  { margin: 0 0 var(--sp-4); color: var(--text-2); }
a  { color: var(--secondary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
img,svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--primary); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }

/* Accessibility */
.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 2000;
  background: var(--primary); color:#fff; padding:.6rem 1rem; border-radius: var(--r-sm);
  transition: top .25s;
}
.skip-link:focus { top: 12px; color:#fff; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; border-radius: 4px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* -------------------------------------------------------------------------
   3. SECTION SCAFFOLD
   ------------------------------------------------------------------------- */
section { position: relative; padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section-head { max-width: 680px; margin: 0 auto var(--sp-7); text-align: center; }
.eyebrow {
  display:inline-flex; align-items:center; gap:.5rem;
  font: 600 var(--fs-sm)/1 var(--font-mono);
  letter-spacing:.14em; text-transform:uppercase;
  color: var(--secondary); margin-bottom: var(--sp-4);
}
.eyebrow::before { content:""; width:24px; height:2px; background: var(--grad); border-radius:2px; }
.section-head.center .eyebrow { justify-content:center; }
.lead { font-size: var(--fs-md); color: var(--text-2); }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* -------------------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
  --b-pad: .8rem 1.5rem;
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  padding: var(--b-pad);
  font: 600 var(--fs-sm)/1 var(--font-body);
  border-radius: var(--r-pill); border:1px solid transparent; cursor:pointer;
  text-decoration:none; white-space:nowrap;
  transition: transform .2s var(--ease), box-shadow .25s, background .25s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { padding:.55rem 1rem; font-size: var(--fs-xs); }
.btn-lg { padding:1rem 2rem; font-size: var(--fs-base); }
.btn-primary { background: var(--grad); color:#fff; box-shadow: var(--sh-md); }
.btn-primary:hover { color:#fff; transform: translateY(-2px); box-shadow: var(--sh-glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--primary); background: var(--grad-soft); }
.btn-outline { background:transparent; color: var(--secondary); border-color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color:#04121a; }

/* -------------------------------------------------------------------------
   5. HEADER / NAV
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  display:flex; align-items:center;
  transition: background .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--glass); backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border); box-shadow: var(--sh-sm);
}
.nav-wrap { display:flex; align-items:center; justify-content:space-between; gap: var(--sp-4); width:100%; }
.brand { display:inline-flex; align-items:center; gap:.6rem; color: var(--text); font-weight:700; }
.brand:hover { color: var(--text); }
.brand-mark {
  width:38px; height:38px; display:grid; place-items:center;
  font: 800 .95rem/1 var(--font-head); color:#fff;
  background: var(--grad); border-radius: 11px; box-shadow: var(--sh-md);
}
.brand-text { font-family: var(--font-head); font-size: 1.05rem; letter-spacing:-.01em; }
.brand-text strong { color: var(--secondary); }

/* Minimal underline nav — clean, no box; gradient underline grows on hover/active */
.primary-nav { display:flex; align-items:center; }
.primary-nav ul { display:flex; gap: clamp(.5rem, 1.4vw, 1.5rem); }
.primary-nav a {
  position:relative; color: var(--text-2); font-weight:600; font-size: var(--fs-sm);
  padding:.45rem .15rem; letter-spacing:.005em; transition: color .25s var(--ease);
}
.primary-nav a::after {
  content:""; position:absolute; left:0; right:0; bottom:-3px; height:2px;
  background: var(--grad); border-radius:2px;
  transform: scaleX(0); transform-origin:center;
  transition: transform .32s var(--ease);
  box-shadow: 0 1px 8px -1px var(--primary);
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after { transform: scaleX(1); }
.primary-nav a.active { color: var(--text); }
.primary-nav a.active::after { transform: scaleX(1); }
.nav-indicator { display:none; }   /* superseded by the underline style */

.nav-actions { display:flex; align-items:center; gap:.6rem; }
.theme-toggle {
  width:40px; height:40px; display:grid; place-items:center; cursor:pointer;
  border:1px solid var(--border-2); border-radius:50%; background: var(--surface);
  color: var(--text); transition: transform .3s, border-color .2s, color .2s;
}
.theme-toggle:hover { transform: rotate(18deg); border-color: var(--primary); color: var(--primary); }
.theme-toggle .ic-moon { display:none; }
[data-theme="light"] .theme-toggle .ic-sun  { display:none; }
[data-theme="light"] .theme-toggle .ic-moon { display:block; }

.nav-burger { display:none; flex-direction:column; gap:5px; width:42px; height:42px; align-items:center; justify-content:center; background:var(--surface); border:1px solid var(--border-2); border-radius: var(--r-sm); cursor:pointer; }
.nav-burger span { width:20px; height:2px; background: var(--text); border-radius:2px; transition: transform .3s, opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 999;
  background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom:1px solid var(--border);
  transform: translateY(-120%); transition: transform .4s var(--ease);
  padding: var(--sp-4) var(--sp-5) var(--sp-6);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav ul { display:flex; flex-direction:column; gap:.25rem; }
.mobile-nav a { display:block; padding:.85rem 1rem; border-radius: var(--r-md); color: var(--text); font-weight:600; font-family: var(--font-head); }
.mobile-nav a:hover { background: var(--surface-2); color: var(--primary); }

.scroll-progress { position:absolute; left:0; bottom:-1px; height:2px; width:0; background: var(--grad); transition: width .1s linear; }

/* -------------------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------------------- */
.hero { position:relative; padding-top: calc(var(--header-h) + 3rem); padding-bottom: var(--sp-9); min-height: 100vh; display:flex; align-items:center; overflow:hidden; }
.hero::after { /* gentle readability veil behind hero text */
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(70% 60% at 30% 45%, var(--bg) 0%, rgba(0,0,0,0) 70%);
  opacity:.7;
}
.hero .container { position:relative; z-index:2; }
.hero-grid { display:grid; grid-template-columns: 1.25fr .9fr; gap: var(--sp-8); align-items:center; }

.hero-badge {
  display:inline-flex; align-items:center; gap:.5rem; padding:.4rem .9rem;
  background: var(--glass); border:1px solid var(--border-2); border-radius: var(--r-pill);
  font-size: var(--fs-xs); color: var(--text-2); margin-bottom: var(--sp-5);
  backdrop-filter: blur(8px);
}
.hero-badge .dot { width:8px; height:8px; border-radius:50%; background: var(--success); box-shadow:0 0 0 4px rgba(34,197,94,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50%{ box-shadow:0 0 0 7px rgba(34,197,94,0);} }

.hero h1 { margin-bottom: var(--sp-4); }
.hero .rotator { color: var(--secondary); }
.hero .rotator::after { content:"▌"; color: var(--primary); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50%{ opacity:0; } }
.hero-sub { font-size: var(--fs-md); color: var(--text-2); max-width: 46ch; margin-bottom: var(--sp-6); }
.hero-cta { display:flex; flex-wrap:wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.hero-meta { display:flex; flex-wrap:wrap; gap: var(--sp-5); color: var(--text-3); font-size: var(--fs-sm); }
.hero-meta strong { color: var(--text); }

/* Hero portrait */
.hero-portrait { position:relative; justify-self:center; }
.portrait-ring {
  width: clamp(220px, 26vw, 340px); aspect-ratio:1; border-radius: 50%;
  padding: 4px; background: conic-gradient(from 180deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  animation: spin 14s linear infinite; box-shadow: var(--sh-lg);
}
@keyframes spin { to { transform: rotate(360deg);} }
.portrait-inner {
  width:100%; height:100%; border-radius:50%; overflow:hidden;
  background: radial-gradient(circle at 50% 30%, var(--surface-2), var(--surface));
  display:grid; place-items:center; animation: spin 14s linear infinite reverse;
  position:relative; border:6px solid var(--bg);
}
.portrait-inner .avatar-fallback { font: 800 4rem/1 var(--font-head); background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.portrait-inner img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.float-card {
  position:absolute; background: var(--glass); backdrop-filter: blur(12px);
  border:1px solid var(--border-2); border-radius: var(--r-md); padding:.6rem .9rem;
  box-shadow: var(--sh-md); font-size: var(--fs-xs); animation: floaty 5s ease-in-out infinite;
}
.float-card .fc-num { font: 800 1.2rem/1 var(--font-head); color: var(--secondary); }
.float-card.fc-1 { top:8%; left:-8%; } .float-card.fc-2 { bottom:10%; right:-10%; animation-delay:1.5s; }
@keyframes floaty { 50%{ transform: translateY(-12px);} }

/* Marquee of client logos / tech */
.marquee { overflow:hidden; -webkit-mask:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent); mask:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent); }
.marquee-track { display:flex; gap: var(--sp-7); width:max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 600 1.05rem/1 var(--font-head); color: var(--text-3); white-space:nowrap; }
@keyframes marquee { to { transform: translateX(-50%);} }

/* -------------------------------------------------------------------------
   7. STATS
   ------------------------------------------------------------------------- */
.stats-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); }
.stat { text-align:center; padding: var(--sp-5); background: var(--surface); border:1px solid var(--border); border-radius: var(--r-lg); }
.stat .num { font: 800 var(--fs-2xl)/1 var(--font-head); background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat .lbl { color: var(--text-3); font-size: var(--fs-sm); margin-top:.4rem; }

/* -------------------------------------------------------------------------
   8. CARDS (generic glass card)
   ------------------------------------------------------------------------- */
.card-glass {
  background: var(--surface); border:1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-5); height:100%;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s, background .3s;
  position:relative; overflow:hidden;
}
.card-glass::before { content:""; position:absolute; inset:0; border-radius:inherit; padding:1px; background: var(--grad); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; opacity:0; transition:opacity .3s; }
.card-glass:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.card-glass:hover::before { opacity:.7; }

/* Services */
.svc-icon { width:52px; height:52px; display:grid; place-items:center; border-radius: var(--r-md); background: var(--grad-soft); color: var(--secondary); margin-bottom: var(--sp-4); }
.svc-icon svg { width:26px; height:26px; }
.card-glass h3 { font-size: var(--fs-lg); margin-bottom:.5rem; }
.tag-row { display:flex; flex-wrap:wrap; gap:.4rem; margin-top: var(--sp-4); }
.tag { font: 500 var(--fs-xs)/1 var(--font-mono); padding:.35rem .6rem; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-2); border:1px solid var(--border); }

/* -------------------------------------------------------------------------
   9. SKILLS
   ------------------------------------------------------------------------- */
.skills-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); }
.skill-group h3 { font-size: var(--fs-md); display:flex; align-items:center; gap:.5rem; }
.skill-group h3::before { content:""; width:10px; height:10px; border-radius:3px; background: var(--grad); }
.skill { margin-bottom: var(--sp-4); }
.skill-top { display:flex; justify-content:space-between; font-size: var(--fs-sm); margin-bottom:.35rem; color: var(--text-2); }
.skill-bar { height:8px; background: var(--surface-2); border-radius: var(--r-pill); overflow:hidden; }
.skill-fill { height:100%; width:0; background: var(--grad); border-radius: inherit; transition: width 1.2s var(--ease); }

/* -------------------------------------------------------------------------
   10. PROJECTS
   ------------------------------------------------------------------------- */
.filter-bar { display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin-bottom: var(--sp-6); }
.filter-btn { padding:.5rem 1.1rem; border-radius: var(--r-pill); border:1px solid var(--border-2); background:transparent; color: var(--text-2); font-weight:600; font-size: var(--fs-sm); cursor:pointer; transition: all .25s; }
.filter-btn:hover { color: var(--text); border-color: var(--primary); }
.filter-btn.active { background: var(--grad); color:#fff; border-color:transparent; }
.search-wrap { max-width:360px; margin:0 auto var(--sp-6); position:relative; }
.search-wrap input { width:100%; padding:.8rem 1rem .8rem 2.6rem; border-radius: var(--r-pill); border:1px solid var(--border-2); background: var(--surface); color: var(--text); font-family:inherit; }
.search-wrap svg { position:absolute; left:1rem; top:50%; transform:translateY(-50%); color: var(--text-3); }

.projects-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); }
.project { display:block; }
.project-card { padding:0; }
.project-thumb { aspect-ratio: 16/10; position:relative; overflow:hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--grad-soft); display:grid; place-items:center; }
.project-thumb .ptitle { font: 800 1.4rem/1.1 var(--font-head); color: var(--text); padding: var(--sp-4); text-align:center; opacity:.85; }
.project-thumb .platform-badge { position:absolute; top:.8rem; left:.8rem; font: 600 var(--fs-xs)/1 var(--font-mono); padding:.35rem .6rem; border-radius: var(--r-pill); background: var(--glass); border:1px solid var(--border-2); color: var(--text); backdrop-filter: blur(6px); }
.project-thumb .view-overlay { position:absolute; inset:0; display:grid; place-items:center; background: linear-gradient(0deg, rgba(124,92,252,.85), rgba(0,212,255,.7)); color:#fff; font-weight:700; opacity:0; transition: opacity .3s; }
.project-card:hover .view-overlay { opacity:1; }
.project-body { padding: var(--sp-5); }
.project-body h3 { font-size: var(--fs-md); margin-bottom:.4rem; }
.project-body p { font-size: var(--fs-sm); margin-bottom: var(--sp-3); }

/* -------------------------------------------------------------------------
   11. PROCESS
   ------------------------------------------------------------------------- */
.process-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-5); counter-reset:step; }
.process-step { padding: var(--sp-5); border-radius: var(--r-lg); border:1px solid var(--border); background: var(--surface); position:relative; }
.process-step .step-no { font: 800 2.4rem/1 var(--font-head); background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; opacity:.5; }
.process-step h3 { font-size: var(--fs-md); margin:.6rem 0 .4rem; }
.process-step p { font-size: var(--fs-sm); margin:0; }

/* -------------------------------------------------------------------------
   12. EXPERIENCE TIMELINE
   ------------------------------------------------------------------------- */
.timeline { position:relative; max-width:780px; margin-inline:auto; padding-left: var(--sp-6); }
.timeline::before { content:""; position:absolute; left:7px; top:6px; bottom:6px; width:2px; background: linear-gradient(var(--primary),var(--secondary)); }
.tl-item { position:relative; padding-bottom: var(--sp-6); }
.tl-item:last-child { padding-bottom:0; }
.tl-item::before { content:""; position:absolute; left:calc(-1 * var(--sp-6) + 1px); top:6px; width:16px; height:16px; border-radius:50%; background: var(--bg); border:3px solid var(--primary); }
.tl-period { font: 600 var(--fs-xs)/1 var(--font-mono); color: var(--secondary); letter-spacing:.06em; }
.tl-item h3 { font-size: var(--fs-md); margin:.4rem 0 .15rem; }
.tl-org { color: var(--text-2); font-size: var(--fs-sm); margin-bottom:.6rem; }
.tl-item ul { display:flex; flex-direction:column; gap:.35rem; }
.tl-item li { position:relative; padding-left:1.2rem; color: var(--text-2); font-size: var(--fs-sm); }
.tl-item li::before { content:"▸"; position:absolute; left:0; color: var(--secondary); }

/* -------------------------------------------------------------------------
   13. TESTIMONIALS
   ------------------------------------------------------------------------- */
.tst-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); }
.tst { padding: var(--sp-5); }
.tst .quote-mark { font: 800 3rem/.6 var(--font-head); color: var(--primary); opacity:.4; }
.tst p { font-size: var(--fs-md); color: var(--text); font-style:italic; }
.tst .who { display:flex; align-items:center; gap:.7rem; margin-top: var(--sp-4); }
.tst .who .av { width:40px; height:40px; border-radius:50%; display:grid; place-items:center; background: var(--grad); color:#fff; font-weight:700; }
.tst .who b { display:block; font-size: var(--fs-sm); color: var(--text); }
.tst .who span { font-size: var(--fs-xs); color: var(--text-3); }

/* -------------------------------------------------------------------------
   14. FAQ (accordion)
   ------------------------------------------------------------------------- */
.faq { max-width:760px; margin-inline:auto; }
.faq-item { border:1px solid var(--border); border-radius: var(--r-md); margin-bottom:.8rem; background: var(--surface); overflow:hidden; }
.faq-q { width:100%; text-align:left; background:none; border:0; padding:1.1rem 1.3rem; color: var(--text); font: 600 var(--fs-md)/1.4 var(--font-head); cursor:pointer; display:flex; justify-content:space-between; gap:1rem; align-items:center; }
.faq-q .chev { transition: transform .3s; color: var(--secondary); flex:none; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height:0; overflow:hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding:0 1.3rem 1.2rem; margin:0; font-size: var(--fs-sm); }

/* -------------------------------------------------------------------------
   15. CONTACT
   ------------------------------------------------------------------------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items:start; }
.contact-info .ci-item { display:flex; gap:.9rem; align-items:flex-start; margin-bottom: var(--sp-5); }
.contact-info .ci-ic { width:46px; height:46px; flex:none; display:grid; place-items:center; border-radius: var(--r-md); background: var(--grad-soft); color: var(--secondary); }
.contact-info .ci-item b { display:block; color: var(--text); }
.contact-info .ci-item a, .contact-info .ci-item span { color: var(--text-2); }

.form-field { margin-bottom: var(--sp-4); }
.form-field label { display:block; font-size: var(--fs-sm); font-weight:600; margin-bottom:.4rem; color: var(--text-2); }
.form-field input, .form-field textarea {
  width:100%; padding:.85rem 1rem; border-radius: var(--r-md);
  border:1px solid var(--border-2); background: var(--surface); color: var(--text); font-family:inherit; font-size: var(--fs-sm);
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field textarea:focus { outline:none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,92,252,.18); }
.form-field textarea { resize:vertical; min-height:130px; }
.form-field .err { color: var(--danger); font-size: var(--fs-xs); margin-top:.3rem; display:none; }
.form-field.invalid input, .form-field.invalid textarea { border-color: var(--danger); }
.form-field.invalid .err { display:block; }
.form-note { font-size: var(--fs-xs); color: var(--text-3); }
.form-status { padding:.9rem 1rem; border-radius: var(--r-md); margin-bottom: var(--sp-4); display:none; font-size: var(--fs-sm); }
.form-status.ok { display:block; background: rgba(34,197,94,.12); color: var(--success); border:1px solid rgba(34,197,94,.3); }
.map-embed { border:0; width:100%; height:240px; border-radius: var(--r-lg); margin-top: var(--sp-5); filter: grayscale(.3); }

/* CTA band (used on projects.php) */
.cta-band { text-align:center; background: var(--grad); border-radius: var(--r-xl); padding: clamp(2.8rem,2.2rem+4vw,5.5rem); color:#fff; box-shadow: var(--sh-lg); }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width:55ch; margin-inline:auto; }
.cta-band .btn-ghost { color:#fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.15); }
.cta-band .btn-light { background:#fff; color: var(--primary-600); }
.cta-band .btn-light:hover { color: var(--primary-600); transform: translateY(-2px); }

/* -------------------------------------------------------------------------
   16. FOOTER + FABs
   ------------------------------------------------------------------------- */
.site-footer { background: var(--bg-2); border-top:1px solid var(--border); padding-block: var(--sp-8) var(--sp-5); margin-top: var(--sp-8); }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-6); padding-bottom: var(--sp-6); border-bottom:1px solid var(--border); }
.footer-brand p { margin:var(--sp-4) 0; max-width:34ch; font-size: var(--fs-sm); }
.footer-socials { display:flex; gap:.6rem; flex-wrap:wrap; }
.footer-socials a { font-size: var(--fs-sm); padding:.4rem .8rem; border:1px solid var(--border-2); border-radius: var(--r-pill); color: var(--text-2); }
.footer-socials a:hover { color: var(--primary); border-color: var(--primary); }
.footer-col h4 { font-size: var(--fs-sm); text-transform:uppercase; letter-spacing:.1em; color: var(--text-3); margin-bottom: var(--sp-4); }
.footer-col li { margin-bottom:.6rem; }
.footer-col a { color: var(--text-2); font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--secondary); }
.footer-bottom { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.5rem; padding-top: var(--sp-5); }
.footer-bottom p { margin:0; font-size: var(--fs-xs); color: var(--text-3); }

.wa-fab, .to-top { position:fixed; right:18px; z-index:900; width:54px; height:54px; border-radius:50%; display:grid; place-items:center; box-shadow: var(--sh-lg); cursor:pointer; transition: transform .25s, opacity .3s; }
.wa-fab { bottom:18px; background:#25d366; color:#fff; }
.wa-fab:hover { transform: scale(1.08); color:#fff; }
.to-top { bottom:82px; background: var(--surface); color: var(--text); border:1px solid var(--border-2); opacity:0; pointer-events:none; }
.to-top.show { opacity:1; pointer-events:auto; }
.to-top:hover { transform: translateY(-3px); color: var(--primary); }

.cookie-bar { position:fixed; bottom:18px; left:18px; right:90px; z-index:901; max-width:520px; display:flex; align-items:center; gap:1rem; background: var(--glass); backdrop-filter: blur(14px); border:1px solid var(--border-2); border-radius: var(--r-md); padding:.9rem 1.1rem; box-shadow: var(--sh-lg); }
.cookie-bar p { margin:0; font-size: var(--fs-xs); color: var(--text-2); }

/* -------------------------------------------------------------------------
   17. SCROLL REVEAL
   ------------------------------------------------------------------------- */
[data-reveal] {
  opacity:0; transform: translateY(38px); filter: blur(6px);
  transition: opacity .85s var(--ease), transform .85s var(--ease), filter .85s var(--ease);
  will-change: opacity, transform, filter;
}
[data-reveal].in { opacity:1; transform:none; filter:none; }
/* directional variants (slide in from the sides / scale) */
[data-reveal="left"]:not(.in)  { transform: translateX(-56px); }
[data-reveal="right"]:not(.in) { transform: translateX(56px); }
[data-reveal="scale"]:not(.in) { transform: scale(.9); }
[data-reveal="zoom"]:not(.in)  { transform: scale(1.07); }
[data-reveal-delay="1"]{ transition-delay:.08s;} [data-reveal-delay="2"]{ transition-delay:.16s;}
[data-reveal-delay="3"]{ transition-delay:.24s;} [data-reveal-delay="4"]{ transition-delay:.32s;}

/* parallax layers driven by JS (transform only → GPU-friendly) */
[data-parallax] { will-change: transform; }

/* Page loader — hacker terminal boot sequence */
.loader { position:fixed; inset:0; z-index:3000; background:#05070b; display:grid; place-items:center; transition: opacity .5s, visibility .5s; }
.loader.done { opacity:0; visibility:hidden; }
.loader .boot {
  width: min(90vw, 540px); font-family: var(--font-mono);
  background: rgba(10,16,12,.6); border:1px solid rgba(34,197,94,.28);
  border-radius: 12px; padding: 1rem 1.2rem 1.2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(34,197,94,.06), inset 0 0 60px rgba(34,197,94,.05);
}
.boot-head { display:flex; align-items:center; gap:7px; margin-bottom:.9rem; }
.b-dot { width:11px; height:11px; border-radius:50%; background:#ff5f56; }
.b-dot:nth-child(2){ background:#ffbd2e; } .b-dot:nth-child(3){ background:#27c93f; }
.boot-title { margin-left:.5rem; font-size:.72rem; color:#5f6b62; letter-spacing:.04em; }
.boot-log {
  margin:0; font-size:.82rem; line-height:1.75; color:#22c55e;
  text-shadow:0 0 8px rgba(34,197,94,.5); white-space:pre-wrap; word-break:break-word; min-height:10.5em;
}
.boot-log .ok { color: var(--secondary); text-shadow:0 0 8px rgba(0,212,255,.5); }
.boot-cursor { display:inline-block; width:9px; height:1em; background:#22c55e; vertical-align:-2px; box-shadow:0 0 8px #22c55e; animation: blink 1s steps(1) infinite; }
.boot-bar { margin-top:1rem; height:4px; background: rgba(34,197,94,.14); border-radius:3px; overflow:hidden; }
.boot-bar i { display:block; height:100%; width:0; background: linear-gradient(90deg,#22c55e,var(--secondary)); box-shadow:0 0 12px #22c55e; transition: width .25s linear; }

/* -------------------------------------------------------------------------
   18. SUB-PAGE (legal / 404) helpers
   ------------------------------------------------------------------------- */
.page-hero { padding-top: calc(var(--header-h) + 4rem); padding-bottom: var(--sp-6); text-align:center; }
.prose { max-width:760px; margin-inline:auto; }
.prose h2 { font-size: var(--fs-lg); margin-top: var(--sp-6); }
.prose p, .prose li { color: var(--text-2); }
.prose ul { list-style:disc; padding-left:1.3rem; margin-bottom: var(--sp-4); }
.error-code { font: 800 clamp(6rem,12vw,12rem)/1 var(--font-head); background: var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* -------------------------------------------------------------------------
   19. RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align:center; gap: var(--sp-6); }
  .hero-portrait { order:-1; }
  .hero-cta, .hero-meta { justify-content:center; }
  .hero-sub { margin-inline:auto; }
  .skills-grid, .process-grid, .tst-grid, .projects-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-card.fc-1 { left:0; } .float-card.fc-2 { right:0; }
}

@media (max-width: 768px) {
  .primary-nav { display:none; }
  .nav-burger { display:flex; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .btn-ghost.d-md-inline-flex { display:none !important; }

  /* Compact, app-like header */
  :root { --header-h: 62px; }
  .brand-text { font-size: .98rem; white-space: nowrap; line-height: 1.1; }
  .brand-mark { width: 34px; height: 34px; }
  .nav-actions { gap: .45rem; }
  .site-header .btn { padding: .55rem 1rem; font-size: .82rem; }
  .theme-toggle { width: 38px; height: 38px; }

  /* Hero sizes to its content (no forced 100vh empty space); smaller portrait */
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 1.75rem); padding-bottom: var(--sp-7); }
  .portrait-ring { width: min(58vw, 220px); }
  .float-card { padding: .45rem .7rem; font-size: .7rem; }
  .float-card .fc-num { font-size: 1rem; }
  .hero-meta { gap: var(--sp-4); font-size: var(--fs-xs); }

  /* Tighter vertical rhythm so mobile feels app-like, not stretched */
  section { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
  .section-head { margin-bottom: var(--sp-6); }
}

@media (max-width: 560px) {
  .skills-grid, .process-grid, .tst-grid, .projects-grid, .footer-grid, .stats-grid { grid-template-columns: 1fr; }
  .cookie-bar { right: 14px; left: 14px; flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }

  .container { padding-inline: 1.15rem; }
  /* Full-width, stacked buttons feel native on phones */
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .wa-fab, .to-top { width: 50px; height: 50px; right: 14px; }
}

/* Very small phones: drop the header CTA (Contact reachable via the menu) so
   the brand name + menu never crowd or wrap */
@media (max-width: 460px) {
  .site-header .nav-actions .btn-primary { display: none; }
}

/* =========================================================================
   20. VISUAL ENHANCEMENTS  (aurora background, grain, glow, shine)
   ========================================================================= */

/* --- Site-wide 3D particle network canvas (behind all content) --- */
.bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none; opacity: .6; }
[data-theme="light"] .bg-canvas { opacity: .35; }

/* Custom cursor spotlight — a soft light pool that trails the cursor (desktop) */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px; border-radius: 50%;
  z-index: -1; pointer-events: none; opacity: 0; transform: translate(-50%, -50%);
  transition: opacity .5s var(--ease); will-change: transform;
  background: radial-gradient(circle, rgba(124,92,252,.18), rgba(0,212,255,.08) 40%, transparent 66%);
}
[data-theme="light"] .cursor-glow { background: radial-gradient(circle, rgba(124,92,252,.12), transparent 62%); }
@media (hover: hover) and (pointer: fine) { .cursor-glow.on { opacity: 1; } }

/* Custom cursor: a precise dot + a lagging ring that grows over interactive items */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; transform: translate(-50%, -50%); opacity: 0;
  will-change: transform; transition: opacity .3s;
}
.cursor-dot { width: 7px; height: 7px; background: var(--secondary); box-shadow: 0 0 10px var(--secondary); }
/* Targeting reticle: rotating dashed ring + crosshair; locks green on hover */
.cursor-ring {
  width: 40px; height: 40px; border: none; background: transparent;
  transition: width .28s var(--ease), height .28s var(--ease), opacity .3s;
}
.cursor-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px dashed var(--secondary); animation: spin 4.5s linear infinite;
}
.cursor-ring::after {
  content: ""; position: absolute; inset: 0; opacity: .65;
  background:
    linear-gradient(var(--secondary), var(--secondary)) center / 1.6px 9px no-repeat,
    linear-gradient(var(--secondary), var(--secondary)) center / 9px 1.6px no-repeat;
}
.cursor-ring.active { width: 62px; height: 62px; }
.cursor-ring.active::before { border-style: solid; border-color: #22c55e; animation-duration: 1.4s; box-shadow: 0 0 16px -2px #22c55e; }
.cursor-ring.active::after {
  opacity: .95;
  background:
    linear-gradient(#22c55e, #22c55e) center / 1.8px 13px no-repeat,
    linear-gradient(#22c55e, #22c55e) center / 13px 1.8px no-repeat;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot.on, .cursor-ring.on { opacity: 1; }
  html.custom-cursor *  { cursor: none !important; }
  html.custom-cursor input, html.custom-cursor textarea { cursor: text !important; }
}
/* Hacker/code trail — monospace glyphs (0,1,{,},<,>,/,;) drip from the cursor */
.cursor-particle {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; opacity: 0;
  font: 700 15px/1 var(--font-mono); color: var(--success);
  text-shadow: 0 0 10px currentColor; transform: translate(-50%, -50%);
  white-space: nowrap; letter-spacing: .02em;
}
@media (prefers-reduced-motion: reduce) { .cursor-glow, .cursor-dot, .cursor-ring, .cursor-particle { display: none; } }

/* --- Animated aurora orbs behind the whole site --- */
.bg-fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-fx .orb { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.bg-fx .orb-1 { width: 48vw; height: 48vw; top: -14vw; left: -10vw;
  background: radial-gradient(circle, var(--primary), transparent 68%); opacity: .42; animation: drift1 28s var(--ease) infinite; }
.bg-fx .orb-2 { width: 42vw; height: 42vw; bottom: -12vw; right: -8vw;
  background: radial-gradient(circle, var(--secondary), transparent 68%); opacity: .38; animation: drift2 32s var(--ease) infinite; }
.bg-fx .orb-3 { width: 34vw; height: 34vw; top: 30%; left: 55%;
  background: radial-gradient(circle, var(--secondary), transparent 70%); opacity: .14; animation: drift3 36s var(--ease) infinite; }
[data-theme="light"] .bg-fx .orb-1 { opacity: .20; }
[data-theme="light"] .bg-fx .orb-2 { opacity: .18; }
[data-theme="light"] .bg-fx .orb-3 { opacity: .12; }
@keyframes drift1 { 50% { transform: translate(14vw, 9vw) scale(1.18); } }
@keyframes drift2 { 50% { transform: translate(-12vw, -8vw) scale(1.12); } }
@keyframes drift3 { 50% { transform: translate(-10vw, 10vw) scale(1.22); } }

/* film grain */
.bg-fx .grain { position: absolute; inset: -50%; opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

@media (prefers-reduced-motion: reduce) {
  .bg-fx .orb { animation: none !important; }
}

/* --- Animated gradient on headline accents --- */
.gradient-text { background-size: 220% auto; animation: shimmer 7s linear infinite; }
@keyframes shimmer { to { background-position: 220% center; } }
.hero .rotator { text-shadow: 0 0 42px rgba(0, 212, 255, .35); }
.hero h1 { text-shadow: 0 2px 30px rgba(0,0,0,.25); }

/* --- Glowing primary buttons with shine sweep --- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease); pointer-events: none;
}
.btn-primary:hover::after { left: 150%; }

/* --- Cards: brand-tinted glow on hover + subtle top highlight --- */
.card-glass { box-shadow: var(--sh-sm); }
.card-glass:hover {
  box-shadow: 0 26px 60px rgba(0,0,0,.42), 0 0 44px -16px var(--primary);
}
[data-theme="light"] .card-glass:hover { box-shadow: 0 26px 60px rgba(30,30,80,.16), 0 0 44px -18px var(--primary); }

/* --- Stat cards & hero badge: gradient hairline --- */
.stat { position: relative; transition: transform .3s var(--ease), box-shadow .3s; }
.stat:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -18px var(--primary); }

/* --- Portrait: ambient glow --- */
.portrait-ring { box-shadow: var(--sh-lg), 0 0 90px -10px rgba(124,92,252,.5); }

/* --- Service icon: glow on card hover --- */
.card-glass:hover .svc-icon { box-shadow: 0 0 30px -6px var(--secondary); transform: translateY(-2px); }
.svc-icon { transition: transform .3s var(--ease), box-shadow .3s; }

/* --- Section heading underline accent --- */
.section-head h2 { position: relative; }

/* --- Nicer marquee fade + size --- */
.marquee { padding-block: var(--sp-5); border-block: 1px solid var(--border); background: linear-gradient(var(--surface), transparent); }
.marquee-track span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .7; }

/* --- Process steps: connecting flow + hover --- */
.process-step { transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.process-step:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: 0 20px 50px -22px var(--primary); }

/* --- Timeline dot glow --- */
.tl-item::before { box-shadow: 0 0 0 4px rgba(124,92,252,.14), 0 0 18px -2px var(--primary); }

/* --- Links inside content get an animated underline --- */
.prose a, .lead a { background-image: linear-gradient(var(--secondary), var(--secondary)); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s; }
.prose a:hover, .lead a:hover { background-size: 100% 2px; }

/* =========================================================================
   21. EXTRA UI POLISH
   ========================================================================= */
/* Custom scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--primary) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary), var(--secondary)); border-radius: 10px; border: 3px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

/* Header: richer glass + gradient hairline when scrolled */
.site-header.scrolled { box-shadow: 0 8px 32px -14px rgba(0,0,0,.65); }
.site-header.scrolled::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent); opacity: .65; }

/* Logo hover: lift + glow */
.brand { transition: transform .25s var(--ease); }
.brand:hover { transform: translateY(-1px); }
.brand:hover .brand-mark { box-shadow: var(--sh-md), 0 0 22px -4px var(--primary); transform: rotate(-6deg) scale(1.05); }
.brand-mark { transition: transform .3s var(--ease), box-shadow .3s; }

/* Header gets a touch more height + smoother glass */
.site-header.scrolled { backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); }

/* Hero heading: smaller, tighter (was clamping up to 5rem on wide screens) */
.hero h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 3.1rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: var(--sp-5); }
.hero .rotator { display: inline-block; min-height: 1.05em; }
.hero-sub { font-size: var(--fs-base); max-width: 44ch; }

/* Centered section-heading accent bar */
.section-head.center h2::after { content: ""; display: block; width: 66px; height: 4px;
  margin: 1.1rem auto 0; border-radius: 4px; background: var(--grad); box-shadow: 0 0 18px -2px var(--primary); }

/* Card top sheen (kept above the surface colour) */
.card-glass { background-image: linear-gradient(180deg, rgba(255,255,255,.045), transparent 42%); }
[data-theme="light"] .card-glass { background-image: linear-gradient(180deg, rgba(20,20,60,.03), transparent 42%); }

/* Footer top accent line */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent); opacity: .5; }

/* FAB / back-to-top glow */
.wa-fab { box-shadow: var(--sh-lg), 0 0 26px -4px #25d366; }
.to-top.show:hover { box-shadow: var(--sh-lg), 0 0 24px -6px var(--primary); }

/* Buttons: rounder focus + ghost hover lift */
.btn-ghost:hover { transform: translateY(-2px); }

/* Smoother anchor scrolling already set; add momentum feel on cards grid */
.project-card { transition: transform .35s var(--ease), box-shadow .35s; }

/* =========================================================================
   22. LIGHT-MODE REFINEMENTS (clean, client-friendly, high-contrast)
   ========================================================================= */
/* Cards get clear elevation so they read as surfaces on the soft page */
[data-theme="light"] .card-glass,
[data-theme="light"] .process-step { box-shadow: var(--sh-md); }
[data-theme="light"] .stat,
[data-theme="light"] .faq-item { box-shadow: var(--sh-sm); }
[data-theme="light"] .form-field input,
[data-theme="light"] .form-field textarea { box-shadow: inset 0 1px 2px rgba(20,25,60,.05); background: #fff; }
[data-theme="light"] .card-glass:hover { box-shadow: 0 28px 60px -20px rgba(40,40,90,.28), 0 0 40px -22px var(--primary); }

/* Header glass reads crisper on light */
[data-theme="light"] .site-header.scrolled { background: rgba(255,255,255,.78); box-shadow: 0 8px 30px -16px rgba(30,35,80,.28); }
[data-theme="light"] .primary-nav a:hover { background: #fff; box-shadow: var(--sh-sm); }

/* Tags / skill bars / inputs sit better on white */
[data-theme="light"] .tag { background: var(--surface-2); }
[data-theme="light"] .skill-bar { background: #e3e8f2; }
[data-theme="light"] .marquee { background: linear-gradient(#fff, transparent); border-color: var(--border); }

/* 3D grid: a touch lighter & cleaner over the bright page */
[data-theme="light"] .bg-canvas { opacity: .3; }
/* Aurora a hair warmer/visible for depth without washing out */
[data-theme="light"] .bg-fx .orb-1 { opacity: .22; }
[data-theme="light"] .bg-fx .orb-2 { opacity: .2; }

/* Footer separation on light */
[data-theme="light"] .site-footer { background: var(--bg-2); }
