/* =====================================================================
   Youssef Mohamed Saeed — Portfolio
   Main stylesheet — Dark / Neon-Lime theme (Merge-inspired)
   ===================================================================== */

:root{
  --bg:            #0e0e10;
  --bg-alt:        #151517;
  --surface:       rgba(255,255,255,.035);
  --surface-solid: #18181b;
  --border:        rgba(255,255,255,.09);
  --text:          #f3f3ee;
  --text-dim:      #a3a39c;
  --text-dimmer:   #6d6d68;
  --gold:          #d7fa3c;
  --gold-dark:     #b8d928;
  --purple:        var(--gold);
  --blue:          #1a1a1a;
  --cyan:          #d7fa3c;
  --gradient:      linear-gradient(135deg,#e6ff6e 0%,#c2e620 100%);
  --gradient-soft: linear-gradient(135deg,rgba(215,250,60,.16),rgba(215,250,60,.04));
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     22px;
  --shadow-glow:   0 0 60px rgba(215,250,60,.14);
  --shadow-card:   0 10px 30px rgba(0,0,0,.35);
  --sidebar-w:     0px;
  --topbar-h:      84px;
  --font-body:     'Inter', 'Tajawal', sans-serif;
  --font-display:  'Poppins', 'Tajawal', sans-serif;
  --font-serif:    'Fraunces', 'Georgia', serif;
}

[data-theme="light"]{
  --bg:            #ffffff;
  --bg-alt:        #f7f7f5;
  --surface:       #ffffff;
  --surface-solid: #ffffff;
  --border:        rgba(15,20,10,.08);
  --text:          #14161c;
  --text-dim:      #5d6070;
  --text-dimmer:   #9297a8;
  --gold:          #96b81f;
  --gold-dark:     #6f8c16;
  --gradient:      linear-gradient(135deg,#c8ef4a 0%,#96b81f 100%);
  --gradient-soft: linear-gradient(135deg,rgba(150,184,31,.14),rgba(150,184,31,.05));
  --shadow-glow:   0 20px 60px rgba(20,20,20,.08);
  --shadow-card:   0 10px 30px rgba(20,20,20,.06);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:15px;
  line-height:1.6;
  overflow-x:hidden;
  transition:background .3s ease,color .3s ease;
}
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }
input,textarea{ font-family:inherit; }

.container{ max-width:1320px; margin:0 auto; padding:0 28px; }

/* ---------------------------------------------------------------- Preloader */
.preloader{
  position:fixed; inset:0; z-index:9999; background:var(--bg);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px;
  transition:opacity .9s cubic-bezier(.65,0,.35,1), visibility .9s, filter .9s ease, transform .9s cubic-bezier(.65,0,.35,1);
  overflow:hidden;
}
.preloader::before{
  content:''; position:absolute; inset:-20%; z-index:0; pointer-events:none;
  background:radial-gradient(circle at 50% 45%, rgba(215,250,60,.10), transparent 60%);
}
[data-theme="light"] .preloader::before{ background:radial-gradient(circle at 50% 45%, rgba(150,184,31,.14), transparent 60%); }
.preloader.hide{ opacity:0; visibility:hidden; pointer-events:none; filter:blur(10px); transform:scale(1.06); }
.preloader-ring{ position:relative; width:130px; height:130px; display:flex; align-items:center; justify-content:center; z-index:1; }
.preloader-glow{
  position:absolute; inset:-18px; border-radius:50%; background:radial-gradient(circle, rgba(215,250,60,.28), transparent 70%);
  filter:blur(14px); animation:glow-pulse 2.2s ease-in-out infinite;
}
@keyframes glow-pulse{ 0%,100%{ opacity:.5; transform:scale(.92);} 50%{ opacity:1; transform:scale(1.08);} }
.preloader-ring svg{ position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); z-index:1; }
.ring-bg{ fill:none; stroke:var(--border); stroke-width:2.5; }
.ring-fg{
  fill:none; stroke:var(--gold); stroke-width:2.5; stroke-linecap:round;
  stroke-dasharray:327; stroke-dashoffset:327;
  animation:ring-draw 1.6s cubic-bezier(.65,0,.35,1) forwards, ring-spin 2.4s linear infinite 1.6s;
  transform-origin:60px 60px; filter:drop-shadow(0 0 6px rgba(215,250,60,.5));
}
@keyframes ring-draw{ to{ stroke-dashoffset:30; } }
@keyframes ring-spin{ to{ transform:rotate(270deg); } }
.preloader-logo{
  position:relative; z-index:1; font-family:var(--font-display); font-weight:800; font-size:27px; color:var(--text);
  opacity:0; transform:scale(.6); animation:logo-in .7s cubic-bezier(.34,1.56,.64,1) forwards .5s;
  letter-spacing:-.02em;
}
.preloader-logo span{ color:var(--gold); }
@keyframes logo-in{ to{ opacity:1; transform:scale(1); } }
.preloader-status{
  font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--text-dimmer);
  opacity:0; animation:status-in .6s ease forwards 1s; min-height:14px; transition:opacity .3s ease;
}
@keyframes status-in{ to{ opacity:1; } }
.preloader-bar{ width:170px; height:3px; border-radius:3px; background:var(--border); overflow:hidden; opacity:0; animation:status-in .6s ease forwards 1s; }
.preloader-bar span{ display:block; height:100%; width:0%; background:var(--gradient); border-radius:3px; box-shadow:0 0 10px rgba(215,250,60,.6); transition:width .25s ease; }
.preloader-pct{
  font-family:'SFMono-Regular',Consolas,monospace; font-size:11px; color:var(--text-dimmer); letter-spacing:.05em;
  opacity:0; animation:status-in .6s ease forwards 1s;
}


/* ---------------------------------------------------------------- Serif italic accent (Merge-style) */
.accent-serif{ font-family:var(--font-serif); font-style:italic; font-weight:600; color:var(--gold); }

/* ---------------------------------------------------------------- Vertical social rail + side lines + corner tag */
.social-rail{
  position:fixed; left:18px; top:50%; transform:translateY(-50%) rotate(180deg);
  writing-mode:vertical-rl; display:flex; align-items:center; gap:14px;
  font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-dimmer);
  z-index:60;
}
.social-rail .rail-dot{ width:4px; height:4px; border-radius:50%; background:var(--gold); }
.rail-line{ position:fixed; top:0; bottom:0; width:1px; background:var(--border); z-index:1; }
.rail-line-left{ left:64px; }
.rail-line-right{ right:64px; }
.corner-tag{
  position:fixed; left:18px; bottom:18px; z-index:60; display:flex; align-items:center; gap:10px;
  color:var(--text-dimmer); font-size:10.5px; font-weight:600; letter-spacing:.03em;
}
.corner-arrow{
  width:34px; height:34px; border-radius:9px; background:var(--gradient); color:#0d0d0d;
  display:flex; align-items:center; justify-content:center; font-size:13px; flex-shrink:0;
}
@media(max-width:1300px){ .social-rail, .rail-line, .corner-tag{ display:none; } }
[dir="rtl"] .social-rail{ left:auto; right:18px; }
[dir="rtl"] .corner-tag{ left:auto; right:18px; }
[dir="rtl"] .rail-line-left{ left:auto; right:64px; }
[dir="rtl"] .rail-line-right{ right:auto; left:64px; }

@media(prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

/* ---------------------------------------------------------------- Layout */
.app{ display:block; min-height:100vh; }
.sidebar{ display:none; }
.main{ margin-left:0; flex:1; min-width:0; }

/* ---------------------------------------------------------------- Topbar */
.topbar{
  height:var(--topbar-h);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 32px;
  border-bottom:1px solid var(--border);
  position:sticky; top:0; z-index:90;
  background:rgba(10,14,31,.75);
  backdrop-filter:blur(14px);
}
[data-theme="light"] .topbar{ background:rgba(255,255,255,.85); }
.topbar-logo{ font-family:var(--font-display); font-weight:800; font-size:24px; letter-spacing:-.5px; color:var(--text); flex-shrink:0; }
.topbar-logo span{ color:var(--gold); }
.topnav{ display:flex; gap:34px; }
.topnav a{
  font-size:14.5px; font-weight:500; color:var(--text-dim);
  padding:8px 2px; position:relative; transition:.2s;
}
.topnav a:hover{ color:var(--text); }
.topnav a.active{ color:var(--text); font-weight:600; }
.topnav a.active::after{
  content:''; position:absolute; left:50%; bottom:-24px; width:5px; height:5px; transform:translateX(-50%);
  background:var(--gold); border-radius:50%;
}
.topbar-actions{ display:flex; align-items:center; gap:14px; }
.icon-btn{
  width:40px; height:40px; border-radius:50%; border:1px solid var(--border);
  background:var(--surface); display:flex; align-items:center; justify-content:center;
  color:var(--text-dim); transition:.2s;
}
.icon-btn:hover{ color:var(--text); border-color:var(--gold); }
.lang-select{
  height:40px; padding:0 12px; border-radius:20px; border:1px solid var(--border); background:var(--surface);
  color:var(--text-dim); font-size:12.5px; font-weight:700; letter-spacing:.03em; cursor:pointer; appearance:none;
  -webkit-appearance:none; background-image:none; text-align:center; transition:.2s;
}
.lang-select:hover, .lang-select:focus{ border-color:var(--gold); color:var(--text); outline:none; }
.theme-toggle{ display:flex; align-items:center; gap:2px; background:transparent; border:none; padding:0; }
.theme-toggle button{ width:40px; height:40px; border:1px solid var(--border); border-radius:50%; background:var(--surface); color:var(--text-dim); display:flex; align-items:center; justify-content:center; font-size:14px; transition:.2s; }
.theme-toggle button:hover{ border-color:var(--gold); color:var(--gold); }
.cta-pill{ display:inline-flex; align-items:center; gap:10px; background:var(--gradient); color:#0d0d0d; padding:12px 22px; border-radius:30px; font-weight:700; font-size:14px; transition:.2s; }
[data-theme="light"] .cta-pill{ background:var(--gradient); color:#0d0d0d; }
.cta-pill:hover{ background:var(--gold); color:#fff; transform:translateY(-1px); }
.menu-toggle{ display:none; }

/* ---------------------------------------------------------------- Hero */
.hero{ padding:64px 0 0; position:relative; overflow:hidden; max-width:100vw; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:40px; align-items:center; padding-bottom:56px; }
.badge-pill{
  display:inline-flex; align-items:center; gap:9px;
  font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--gold-dark);
  margin-bottom:22px;
}
.badge-pill::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--gold); }
.hero h1{
  font-family:var(--font-display); font-weight:800;
  font-size:52px; line-height:1.15; margin-bottom:20px; color:var(--text);
}
.hero h1 .grad{
  background:var(--gradient); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero h1 .hero-name-white{ color:var(--text); }
.hero .desc{ color:var(--text-dim); max-width:460px; margin-bottom:30px; font-size:15.5px; }
.hero-actions{ display:flex; align-items:center; gap:16px; margin-bottom:30px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:10px; padding:15px 26px;
  border-radius:12px; font-weight:600; font-size:14.5px; border:1px solid transparent; transition:.2s;
}
.btn-primary{ background:var(--gradient); color:#1a1207; box-shadow:0 10px 26px rgba(215,250,60,.4); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 14px 30px rgba(215,250,60,.5); }
.btn-outline{ background:var(--surface); border-color:var(--border); color:var(--text); }
.btn-outline:hover{ border-color:var(--gold); color:var(--gold-dark); }
.btn-play{ display:inline-flex; align-items:center; gap:10px; color:var(--text-dim); font-weight:600; }
.btn-play .circle{
  width:38px; height:38px; border-radius:50%; background:var(--surface); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; color:var(--gold);
}
.scroll-hint{ display:flex; align-items:center; gap:10px; font-size:11.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--text-dimmer); }
.scroll-hint .ring{ width:26px; height:26px; border-radius:50%; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; animation:bob 2s ease-in-out infinite; }
@keyframes bob{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(4px);} }

.hero-stats{ display:none; }

/* Hero visual */
.hero-visual{ position:relative; display:flex; align-items:center; justify-content:center; min-height:560px; overflow:visible; perspective:1400px; z-index:1; }
.hero-glow{ position:absolute; border-radius:50%; filter:blur(70px); opacity:.35; z-index:0; pointer-events:none; }
.hero-glow-1{ width:340px; height:340px; background:radial-gradient(circle,rgba(215,250,60,.5),transparent 70%); top:5%; left:0%; }
.hero-glow-2{ width:280px; height:280px; background:radial-gradient(circle,rgba(74,144,217,.28),transparent 70%); bottom:0%; right:5%; }
[data-theme="light"] .hero-glow{ opacity:.5; }

/* Animated star / constellation background canvas */
.star-field{ position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; }

.hero-3d{
  position:relative; width:100%; max-width:500px; height:560px;
  transform-style:preserve-3d; transition:transform .15s ease-out;
  display:flex; align-items:flex-end; justify-content:center;
}
.hero-monogram{
  position:absolute; inset:0; z-index:1; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:800; font-size:min(28vw,400px); line-height:1;
  letter-spacing:-.03em; user-select:none; pointer-events:none; transform-style:preserve-3d;
}
.mono-face{
  position:relative; z-index:3; color:var(--bg-alt);
  -webkit-text-stroke:2px var(--gold); transform:translateZ(46px);
  text-shadow:
    1px 1px 0 var(--gold-dark), 2px 2px 0 var(--gold-dark), 3px 3px 0 var(--gold-dark),
    4px 4px 0 var(--gold-dark), 5px 5px 0 var(--gold-dark), 6px 6px 0 var(--gold-dark),
    7px 7px 0 var(--gold-dark), 8px 8px 0 var(--gold-dark), 9px 9px 0 var(--gold-dark),
    10px 10px 18px rgba(0,0,0,.25);
}
.mono-mid{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  z-index:2; color:transparent; -webkit-text-stroke:1.5px var(--gold-dark); transform:translateZ(0px);
  opacity:.35;
}
.mono-depth{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  z-index:1; color:transparent; -webkit-text-stroke:1px var(--border); transform:translateZ(-60px) scale(1.03);
  opacity:.5;
}
.hero-podium{
  position:absolute; bottom:0; left:50%; transform:translateX(-50%) translateZ(10px); z-index:2;
  width:78%; height:26px; border-radius:50%; background:var(--surface); border:1px solid var(--border); box-shadow:var(--shadow-card);
}

/* Professional interactive 3D photo frame */
.hero-photo-wrap{ position:relative; width:390px; z-index:5; transform:translateZ(90px); padding:14px; --proximity:0; }
.frame-glow{
  position:absolute; inset:2px; z-index:0; border-radius:26px; pointer-events:none;
  background:radial-gradient(circle at 50% 30%, rgba(215,250,60,.35), transparent 70%);
  filter:blur(22px); opacity:calc(.4 + var(--proximity) * .5); animation:glow-breathe 3.4s ease-in-out infinite;
  transition:opacity .25s ease;
}
@keyframes glow-breathe{ 0%,100%{ opacity:.4; transform:scale(.94); } 50%{ opacity:.7; transform:scale(1.04); } }
.frame-ring{
  position:absolute; inset:0; z-index:1; border-radius:24px; pointer-events:none;
  padding:1.5px;
  background:linear-gradient(135deg, var(--gold) 0%, rgba(215,250,60,.15) 45%, rgba(215,250,60,.15) 55%, var(--gold-dark) 100%);
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  box-shadow:0 0 calc(18px + var(--proximity) * 20px) rgba(215,250,60,calc(.3 + var(--proximity) * .35));
  transition:box-shadow .2s ease;
}
.hero-photo-wrap:hover .frame-ring{ box-shadow:0 0 26px rgba(215,250,60,.5); }
.hero-photo-wrap img{
  position:relative; z-index:2; width:100%; border-radius:18px 18px 0 0; display:block;
  filter:drop-shadow(0 20px 30px rgba(0,0,0,.25));
  -webkit-mask-image:linear-gradient(to bottom, black 72%, transparent 98%); mask-image:linear-gradient(to bottom, black 72%, transparent 98%);
}
.hero-photo-wrap::after{
  content:''; position:absolute; left:8%; right:8%; bottom:0%; height:38%; z-index:4; pointer-events:none;
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  -webkit-mask-image:linear-gradient(to bottom, transparent, rgba(0,0,0,.85) 55%, black 100%);
  mask-image:linear-gradient(to bottom, transparent, rgba(0,0,0,.85) 55%, black 100%);
}
.frame-corner{ position:absolute; z-index:3; pointer-events:none; transition:all .3s ease; }
.frame-corner::after{ content:''; position:absolute; width:6px; height:6px; border-radius:50%; background:var(--gold); box-shadow:0 0 calc(8px + var(--proximity) * 10px) 1px rgba(215,250,60,.7); transition:box-shadow .2s ease; }
.frame-corner.tl{ top:0; left:0; width:22px; height:22px; border-top:2px solid var(--gold); border-left:2px solid var(--gold); border-radius:10px 0 0 0; }
.frame-corner.tl::after{ top:-3px; left:-3px; }
.frame-corner.tr{ top:0; right:0; width:22px; height:22px; border-top:2px solid var(--gold); border-right:2px solid var(--gold); border-radius:0 10px 0 0; }
.frame-corner.tr::after{ top:-3px; right:-3px; }
.frame-corner.bl{ bottom:36%; left:0; width:22px; height:22px; border-bottom:2px solid var(--gold); border-left:2px solid var(--gold); border-radius:0 0 0 10px; }
.frame-corner.bl::after{ bottom:-3px; left:-3px; }
.frame-corner.br{ bottom:36%; right:0; width:22px; height:22px; border-bottom:2px solid var(--gold); border-right:2px solid var(--gold); border-radius:0 0 10px 0; }
.frame-corner.br::after{ bottom:-3px; right:-3px; }
.hero-photo-wrap:hover .frame-corner{ width:26px; height:26px; }

[data-theme="light"] .hero-photo-wrap img{ filter:drop-shadow(0 14px 20px rgba(20,20,20,.1)); }
[data-theme="light"] .frame-glow{ opacity:calc(.18 + var(--proximity) * .3); }
[data-theme="light"] .frame-ring{ box-shadow:0 0 calc(10px + var(--proximity) * 14px) rgba(150,184,31,calc(.18 + var(--proximity) * .25)); }

.floating-badge{
  position:absolute; display:flex; align-items:center; justify-content:center;
  background:var(--surface-solid); border:1px solid var(--border);
  border-radius:14px; font-size:18px; color:var(--gold);
  box-shadow:var(--shadow-card); width:46px; height:46px;
  animation:float 4s ease-in-out infinite; z-index:6;
  transform:translateZ(var(--depth,40px));
}
.floating-badge.pos-top-left{ top:4%; left:-6%; animation-delay:0s; }
.floating-badge.pos-top-right{ top:4%; right:-6%; animation-delay:.4s; }
.floating-badge.pos-mid-left{ top:44%; left:-10%; animation-delay:.8s; }
.floating-badge.pos-mid-right{ top:44%; right:-10%; animation-delay:1.2s; }
.floating-badge.pos-bottom-left{ top:80%; left:-4%; animation-delay:1.6s; }
.floating-badge.pos-bottom-right{ top:80%; right:-4%; animation-delay:2s; }
@keyframes float{ 0%,100%{ transform:translateZ(var(--depth,40px)) translateY(0);} 50%{ transform:translateZ(var(--depth,40px)) translateY(-10px);} }

.hero-float-card{
  position:absolute; background:var(--surface-solid); border:1px solid var(--border);
  border-radius:16px; box-shadow:var(--shadow-card); z-index:5;
}
.code-float-card{ top:12%; right:3%; width:280px; padding:14px 16px 12px; font-family:'SFMono-Regular',Consolas,monospace; animation:float-side 5s ease-in-out infinite; }
.code-float-card .cf-head{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.code-float-card .cf-dots{ display:flex; gap:5px; }
.code-float-card .cf-dots span{ width:8px; height:8px; border-radius:50%; }
.code-float-card .cf-dots span:nth-child(1){ background:#ff5f57; }
.code-float-card .cf-dots span:nth-child(2){ background:#febc2e; }
.code-float-card .cf-dots span:nth-child(3){ background:#28c840; }
.code-float-card .cf-file{ font-size:11px; color:var(--text-dimmer); }
.code-float-card pre{ font-size:10.6px; line-height:1.7; color:var(--text-dim); white-space:pre-wrap; }
.code-float-card .tok-kw{ color:#c586c0; }
.code-float-card .tok-tag{ color:var(--gold-dark); }
.code-float-card .tok-str{ color:#6a9955; }
.code-float-card .cf-status{ margin-top:8px; font-size:10px; color:#22a55e; display:flex; align-items:center; gap:6px; font-weight:700; }
.code-float-card .cf-status::before{ content:'✓'; }

.overview-float-card{ bottom:8%; right:3%; width:230px; padding:16px 18px; animation:float-side 5s ease-in-out infinite 1.5s; }
.overview-float-card .of-head{ display:flex; justify-content:space-between; align-items:center; font-size:12.5px; font-weight:700; margin-bottom:14px; }
.overview-float-card .of-head select{ font-size:11px; border:1px solid var(--border); border-radius:8px; padding:3px 8px; background:transparent; color:var(--text-dim); }
.overview-float-card .of-stats{ display:flex; justify-content:space-between; margin-bottom:12px; }
.overview-float-card .of-stats div{ text-align:left; }
.overview-float-card .of-stats b{ display:block; font-size:17px; font-weight:800; }
.overview-float-card .of-stats span{ font-size:10px; color:var(--text-dimmer); }
.overview-float-card .of-chart{ height:44px; width:100%; display:block; }
@keyframes float-side{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-12px);} }

.dock{ display:none; }
.settings-fab{
  position:fixed; right:24px; bottom:24px; width:44px; height:44px; border-radius:50%;
  background:var(--surface-solid); border:1px solid var(--border); display:flex; align-items:center; justify-content:center;
  color:var(--text-dim); z-index:80; box-shadow:var(--shadow-card);
}

/* ---------------------------------------------------------------- Custom cursor */
.cursor-dot, .cursor-ring{ position:fixed; top:0; left:0; pointer-events:none; border-radius:50%; z-index:99999; transform:translate(-50%,-50%); }
.cursor-dot{ width:6px; height:6px; background:var(--gold); }
.cursor-ring{ width:34px; height:34px; border:1.5px solid var(--gold); transition:transform .15s ease-out, opacity .2s, width .2s, height .2s; opacity:.7; }
.cursor-ring.hover{ width:52px; height:52px; opacity:1; background:rgba(215,250,60,.08); }
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button{ cursor:none; }

/* ---------------------------------------------------------------- Scroll reveal */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ---------------------------------------------------------------- Carousel */
.carousel-nav{ display:flex; gap:8px; }
.carousel-btn{
  width:38px; height:38px; border-radius:50%; border:1px solid var(--border); background:var(--surface);
  color:var(--text-dim); display:flex; align-items:center; justify-content:center; transition:.2s;
}
.carousel-btn:hover{ border-color:var(--gold); color:var(--gold-dark); }
.carousel{ overflow:hidden; }
.carousel-track{ display:flex; transition:transform .5s cubic-bezier(.4,0,.2,1); }
.carousel-slide{ flex:0 0 100%; max-width:100%; padding:4px; }
.carousel-dots{ display:flex; justify-content:center; gap:8px; margin-top:22px; }
.carousel-dots span{ width:7px; height:7px; border-radius:50%; background:var(--border); cursor:pointer; transition:.2s; }
.carousel-dots span.active{ background:var(--gold); width:22px; border-radius:4px; }
.testimonial-card-solo{ max-width:640px; margin:0 auto; text-align:center; padding:40px; }
.project-card-solo{ max-width:720px; margin:0 auto; }
.project-card-solo .project-thumb{ aspect-ratio:16/9; }
.project-card-solo .project-body{ padding:24px 28px; }
.project-card-solo h4{ font-size:19px; }
.project-card-solo .sub{ font-size:13.5px; margin-bottom:16px; }
.project-card-solo .tag-row{ margin-bottom:22px; }
.project-card-solo .project-actions .btn{ padding:12px 20px; font-size:13.5px; }
.testimonial-card-solo .quote-ic{ font-size:26px; color:var(--gold); opacity:.5; margin-bottom:14px; }
.testimonial-card-solo .testimonial-quote{ font-size:17px; margin-bottom:20px; }
.testimonial-card-solo .testimonial-author{ font-size:14px; }
.info-grid-3{ grid-template-columns:repeat(3,1fr); }


/* ---------------------------------------------------------------- Stats bar */
.stats-bar{
  background:var(--surface-solid); border:1px solid var(--border); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card); display:grid; grid-template-columns:repeat(4,1fr);
  margin:0 auto 56px;
}
.stats-bar .stat-item{ display:flex; align-items:center; gap:16px; padding:26px 30px; border-right:1px solid var(--border); }
.stats-bar .stat-item:last-child{ border-right:none; }
.stats-bar .stat-ic{ width:52px; height:52px; border-radius:14px; background:var(--gradient-soft); color:var(--gold-dark); display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.stats-bar .stat-num{ font-size:26px; font-weight:800; font-family:var(--font-display); }
.stats-bar .stat-lbl{ font-size:12.5px; color:var(--text-dimmer); font-weight:600; }

/* ---------------------------------------------------------------- Dashboard showcase */
.dash-showcase{ display:grid; grid-template-columns:.85fr 1.35fr .8fr; gap:22px; margin-bottom:56px; }
.dash-panel{ background:var(--surface-solid); border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-card); overflow:hidden; }

/* Mini admin mock */
.mock-admin{ display:flex; }
.mock-admin-rail{ width:52px; background:var(--bg); border-right:1px solid var(--border); display:flex; flex-direction:column; align-items:center; gap:14px; padding:18px 0; }
.mock-admin-rail i{ color:var(--text-dimmer); font-size:15px; }
.mock-admin-rail i:first-child{ color:var(--gold-dark); }
.mock-admin-body{ flex:1; padding:16px 16px 18px; min-width:0; }
.mock-admin-body h4{ font-size:13px; font-weight:700; margin-bottom:12px; display:flex; justify-content:space-between; }
.mock-mini-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:10px; }
.mock-mini-card{ background:var(--bg); border:1px solid var(--border); border-radius:12px; padding:10px 12px; }
.mock-mini-card .lbl{ font-size:10px; color:var(--text-dimmer); font-weight:600; }
.mock-mini-card .val{ font-size:16px; font-weight:800; margin:2px 0 6px; }
.mock-mini-card .delta{ font-size:9.5px; color:#22a55e; font-weight:700; }
.spark{ width:100%; height:24px; display:block; }
.mock-mini-card.wide{ grid-column:1 / -1; display:flex; gap:8px; }
.mock-mini-card.wide > div{ flex:1; }
.donut{ width:38px; height:38px; border-radius:50%; margin:0 auto; background:conic-gradient(var(--gold) 0 48%, var(--border) 0 100%); position:relative; }
.donut::after{ content:''; position:absolute; inset:6px; border-radius:50%; background:var(--surface-solid); }
.mini-bars{ display:flex; align-items:flex-end; gap:3px; height:26px; }
.mini-bars span{ flex:1; background:var(--gold); border-radius:2px; opacity:.75; }

/* Code panel */
.code-panel{ display:flex; flex-direction:column; }
.code-tabs{ display:flex; border-bottom:1px solid var(--border); overflow-x:auto; }
.code-tabs .tab{ padding:12px 16px; font-size:12px; color:var(--text-dimmer); display:flex; align-items:center; gap:7px; white-space:nowrap; border-right:1px solid var(--border); }
.code-tabs .tab.active{ color:var(--text); background:var(--bg); font-weight:600; }
.code-tabs .tab i{ font-size:11px; }
.code-body{ padding:16px 18px; font-family:'SFMono-Regular',Consolas,monospace; font-size:12.2px; line-height:1.9; overflow-x:auto; flex:1; transition:opacity .15s ease; }
.code-tabs .tab{ cursor:pointer; transition:color .2s ease, background .2s ease; }
.code-body .ln{ display:flex; gap:16px; }
.code-body .ln-num{ color:var(--text-dimmer); opacity:.5; width:18px; flex-shrink:0; text-align:right; user-select:none; }
.code-body .ln-code{ color:var(--text-dim); white-space:pre; }
.code-body .tok-kw{ color:#c586c0; }
[data-theme="light"] .code-body .tok-kw{ color:#a34fae; }
.code-body .tok-tag{ color:var(--gold-dark); }
.code-body .tok-str{ color:#3a9c5b; }
.code-body .tok-fn{ color:#4a90d9; }
.code-footer{ display:flex; justify-content:space-between; padding:10px 18px; border-top:1px solid var(--border); font-size:10.5px; color:var(--text-dimmer); }
.code-footer .live{ color:#22a55e; font-weight:700; }
.code-footer .live::before{ content:'●'; margin-right:4px; }

/* Tech stack + CTA column */
.stack-panel{ padding:20px; }
.stack-panel h4{ font-size:13.5px; font-weight:700; margin-bottom:14px; }
.stack-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.stack-item{ background:var(--bg); border:1px solid var(--border); border-radius:12px; padding:14px 8px; display:flex; flex-direction:column; align-items:center; gap:8px; font-size:11px; font-weight:700; }
.stack-item i{ font-size:20px; }
.cta-panel{ margin-top:18px; padding:20px; background:var(--gradient-soft); border:1px solid var(--border); color:var(--text); border-radius:var(--radius-lg); position:relative; overflow:hidden; }
[data-theme="light"] .cta-panel{ background:linear-gradient(160deg,#14161c,#000); color:#fff; border:none; }
.cta-panel h4{ font-size:14.5px; font-weight:700; margin-bottom:6px; }
.cta-panel p{ font-size:12px; opacity:.75; margin-bottom:16px; }
.cta-panel .btn-primary{ padding:11px 18px; font-size:12.5px; }

/* ---------------------------------------------------------------- Section shell */
.section{ padding:36px 0; }
.section-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.section-head h2{ font-family:var(--font-display); font-size:20px; font-weight:700; display:flex; align-items:center; gap:10px; }
.section-head h2 .ic{
  width:34px; height:34px; border-radius:10px; background:var(--gradient-soft); color:var(--gold-dark);
  display:flex; align-items:center; justify-content:center; font-size:15px;
}
.section-eyebrow{ font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-dimmer); font-weight:700; margin-bottom:4px; display:block; }
.view-all{ font-size:13px; font-weight:600; color:var(--gold-dark); display:flex; align-items:center; gap:6px; }

.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:24px; backdrop-filter:blur(10px); box-shadow:var(--shadow-card);
}

/* ---------------------------------------------------------------- Overview row: About / Skills / Tech */
.overview-grid{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:20px; }
.overview-grid .card h3{ display:flex; align-items:center; gap:10px; font-size:15.5px; font-weight:700; margin-bottom:16px; }
.overview-grid .card h3 i{ color:var(--gold-dark); }
.about-text{ color:var(--text-dim); font-size:13.8px; margin-bottom:18px; }
.link-more{ font-size:13px; font-weight:600; color:#1a1207; background:var(--gradient); padding:9px 16px; border-radius:10px; display:inline-flex; align-items:center; gap:6px; }

.skill-row{ margin-bottom:14px; }
.skill-row:last-child{ margin-bottom:0; }
.skill-row .top{ display:flex; justify-content:space-between; align-items:center; font-size:13px; margin-bottom:6px; color:var(--text-dim); font-weight:600; }
.pct-pill{ background:var(--gradient); color:#0d0d0d; font-size:10.5px; font-weight:800; padding:2px 9px; border-radius:20px; }
.skill-bar{ height:7px; border-radius:6px; background:var(--border); overflow:hidden; }
.skill-bar span{ display:block; height:100%; border-radius:6px; background:var(--gradient); }

/* ---------------------------------------------------------------- Technologies globe (rotating 3D network) */
.tech-globe{
  position:relative; width:100%; max-width:320px; aspect-ratio:1/1; margin:14px auto 6px;
  touch-action:none; cursor:grab;
}
.tech-globe.grabbing{ cursor:grabbing; }
.tech-globe canvas{ position:absolute; inset:0; width:100%; height:100%; }
.tech-node{
  position:absolute; top:0; left:0; width:34px; height:34px; margin:-17px 0 0 -17px; z-index:2;
  border-radius:50%; background:var(--surface-solid); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-size:14px; color:var(--text-dim);
  box-shadow:var(--shadow-card); cursor:pointer; pointer-events:auto;
  transition:border-color .2s ease, box-shadow .2s ease;
  will-change:transform, opacity;
}
.tech-node:hover, .tech-node.active{
  border-color:var(--gold); box-shadow:0 0 16px rgba(215,250,60,.55);
}
.tech-node-label{
  position:absolute; top:120%; left:50%; transform:translateX(-50%); font-size:9px; font-weight:700;
  white-space:nowrap; opacity:0; transition:opacity .2s ease; color:var(--text); pointer-events:none;
  background:var(--surface-solid); border:1px solid var(--border); padding:2px 7px; border-radius:6px; z-index:10;
}
.tech-node:hover .tech-node-label{ opacity:1; }
@media(max-width:1080px){ .tech-globe{ max-width:260px; } }
@media(max-width:760px){ .tech-globe{ max-width:220px; } .tech-node{ width:28px; height:28px; margin:-14px 0 0 -14px; font-size:12px; } }

/* ---------------------------------------------------------------- My Process (steps) */
.process-section{ background:var(--bg-alt); }
.process-strip{ display:flex; justify-content:space-between; gap:14px; position:relative; margin-top:8px; }
.process-step{
  flex:1; min-width:0; text-align:center; position:relative; padding-top:8px;
  transition:transform .4s cubic-bezier(.16,1,.3,1);
}
.process-step:hover{ transform:translateY(-6px); }
.process-step::after{
  content:''; position:absolute; top:34px; left:calc(50% + 30px); right:calc(-50% + 30px);
  height:2px; background:linear-gradient(90deg, var(--gold), var(--border));
}
.process-step:last-child::after{ display:none; }
.step-circle{
  width:64px; height:64px; margin:0 auto 16px; border-radius:50%; position:relative; z-index:1;
  background:var(--surface-solid); border:2px solid var(--gold); color:var(--gold-dark);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:800; font-size:18px;
  box-shadow:0 0 0 6px var(--bg-alt);
  transition:background .3s ease, color .3s ease;
}
.process-step:hover .step-circle{ background:var(--gradient); color:#0d0d0d; }
.process-step h4{ font-size:13.5px; font-weight:700; margin-bottom:8px; }
.process-step p{ font-size:12px; color:var(--text-dim); line-height:1.6; padding:0 6px; }
@media(max-width:1080px){
  .process-strip{ flex-wrap:wrap; justify-content:center; }
  .process-step{ flex:0 0 33.33%; max-width:33.33%; margin-bottom:28px; }
  .process-step::after{ display:none; }
}
@media(max-width:760px){
  .process-strip{ flex-direction:column; align-items:center; }
  .process-step{ flex:0 0 auto; max-width:320px; width:100%; margin-bottom:26px; }
  .process-step:last-child{ margin-bottom:0; }
}

/* ---------------------------------------------------------------- Services */
.services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.service-card{ text-align:left; transition:transform .4s cubic-bezier(.16,1,.3,1), border-color .4s ease; }
.service-card:hover{ transform:translateY(-8px); border-color:var(--gold); }
.service-card .ic{
  width:52px; height:52px; border-radius:14px; background:var(--gradient-soft); color:var(--gold-dark);
  display:flex; align-items:center; justify-content:center; font-size:22px; margin-bottom:16px;
}
.service-card h4{ font-size:15px; font-weight:700; margin-bottom:8px; }
.service-card p{ font-size:13px; color:var(--text-dim); }

/* ---------------------------------------------------------------- Projects */
.projects-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.project-card{ overflow:hidden; padding:0; transition:transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease, border-color .4s ease; }
.project-card:hover{ transform:translateY(-8px); box-shadow:0 20px 45px rgba(0,0,0,.35); border-color:var(--gold); }
.project-thumb{ position:relative; aspect-ratio:16/11; background:var(--bg-alt); overflow:hidden; display:flex; align-items:center; justify-content:center; }
.project-thumb img{ width:100%; height:100%; object-fit:contain; transition:transform .5s ease; }
.project-card:hover .project-thumb img{ transform:scale(1.04); }
.project-thumb .badge{
  position:absolute; top:12px; left:12px; background:rgba(20,20,20,.6); backdrop-filter:blur(6px);
  color:#fff; font-size:11px; font-weight:700; padding:6px 10px; border-radius:8px;
}
.project-body{ padding:18px; }
.project-body h4{ font-size:15px; font-weight:700; margin-bottom:2px; }
.project-body .sub{ font-size:12.5px; color:var(--text-dimmer); margin-bottom:12px; }
.tag-row{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:16px; }
.tag{ font-size:10.5px; font-weight:700; padding:4px 9px; border-radius:6px; background:var(--surface); border:1px solid var(--border); color:var(--text-dim); }
.project-actions{ display:flex; gap:10px; }
.project-actions .btn{ padding:9px 16px; font-size:12.5px; flex:1; justify-content:center; }
.icon-square{ width:38px; height:38px; border-radius:10px; background:var(--surface); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--text-dim); }

/* ---------------------------------------------------------------- Bottom info row */
.info-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.info-grid .card h3{ display:flex; align-items:center; gap:8px; font-size:14px; font-weight:700; margin-bottom:16px; }
.info-grid .card h3 i{ color:var(--gold-dark); }

.testimonial-quote{ font-size:13.5px; color:var(--text-dim); font-style:italic; margin-bottom:16px; position:relative; }
.testimonial-quote i{ color:var(--gold); opacity:.6; margin-right:4px; }
.testimonial-author{ font-size:13px; font-weight:700; }
.testimonial-author span{ display:block; font-size:11.5px; color:var(--text-dimmer); font-weight:500; }
.dots{ display:flex; gap:6px; margin-top:16px; }
.dots span{ width:6px; height:6px; border-radius:50%; background:var(--border); }
.dots span.active{ background:var(--gold); width:16px; border-radius:4px; }

.achv-row{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.achv-row:last-child{ margin-bottom:0; }
.achv-row .ic{ width:36px; height:36px; border-radius:10px; background:var(--surface); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.achv-row h5{ font-size:13px; font-weight:700; }
.achv-row span{ font-size:11.5px; color:var(--text-dimmer); }

.blog-row{ display:flex; gap:12px; margin-bottom:14px; transition:transform .25s ease; }
.blog-row:hover{ transform:translateX(4px); }
.blog-row:hover h5{ color:var(--gold); }
.blog-row:last-child{ margin-bottom:0; }
.blog-row img{ width:50px; height:50px; border-radius:10px; object-fit:cover; flex-shrink:0; background:var(--gradient-soft); }
.blog-row h5{ font-size:12.8px; font-weight:700; line-height:1.3; margin-bottom:4px; transition:color .2s; }
.blog-row span{ font-size:11px; color:var(--text-dimmer); }

/* ---------------------------------------------------------------- Blog listing / single post pages */
.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.blog-card{
  display:block; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
  overflow:hidden; box-shadow:var(--shadow-card); transition:transform .4s cubic-bezier(.16,1,.3,1), border-color .4s ease;
}
.blog-card:hover{ transform:translateY(-8px); border-color:var(--gold); }
.blog-card-img{ aspect-ratio:16/10; background:var(--bg-alt); overflow:hidden; }
.blog-card-img img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.blog-card:hover .blog-card-img img{ transform:scale(1.06); }
.blog-card-body{ padding:18px 20px 20px; }
.blog-card-date{ font-size:11px; color:var(--text-dimmer); font-weight:600; display:flex; align-items:center; gap:6px; margin-bottom:8px; }
.blog-card-body h3{ font-size:15.5px; font-weight:700; line-height:1.35; margin-bottom:8px; }
.blog-card-body p{ font-size:13px; color:var(--text-dim); margin-bottom:14px; line-height:1.6; }
.blog-card-link{ font-size:12.5px; font-weight:700; color:var(--gold-dark); display:inline-flex; align-items:center; gap:6px; }

.blog-post-img{ border-radius:var(--radius-lg); overflow:hidden; margin-bottom:22px; border:1px solid var(--border); }
.blog-post-img img{ width:100%; display:block; }
.blog-post-content{ line-height:1.85; font-size:14.5px; color:var(--text-dim); }
.blog-post-content h2, .blog-post-content h3{ color:var(--text); margin:22px 0 12px; font-family:var(--font-display); }
.blog-post-content p{ margin-bottom:16px; }
.blog-post-content img{ max-width:100%; border-radius:12px; margin:16px 0; }
.blog-post-content ul, .blog-post-content ol{ margin:0 0 16px 20px; }
.blog-post-content a{ color:var(--gold-dark); text-decoration:underline; }
@media(max-width:900px){ .blog-grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:760px){ .blog-grid{ grid-template-columns:1fr; } }

.cert-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.cert-item{ background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:12px; display:flex; align-items:center; gap:8px; font-size:11px; font-weight:700; }
.cert-item i{ font-size:16px; color:var(--gold-dark); }

/* ---------------------------------------------------------------- Footer */
.footer{ background:var(--bg-alt); border-top:1px solid var(--border); padding-top:48px; margin-top:20px; }
.footer-grid{ display:grid; grid-template-columns:1fr 1.3fr 1fr 1fr; gap:28px; padding-bottom:36px; }
.footer h4{ font-size:15px; font-weight:700; margin-bottom:16px; }
.footer p{ font-size:13px; color:var(--text-dim); margin-bottom:16px; }
.footer-socials{ display:flex; gap:10px; }
.footer-socials a{ width:36px; height:36px; border-radius:10px; background:var(--surface); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--text-dim); }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.form-grid input, .footer textarea{
  grid-column:span 1; width:100%; padding:11px 14px; border-radius:10px; border:1px solid var(--border);
  background:var(--surface); color:var(--text); font-size:13px; margin-bottom:10px;
}
.footer textarea{ grid-column:span 2; min-height:90px; resize:vertical; }
.footer .btn-primary{ grid-column:span 2; justify-content:center; border:none; width:100%; }
.contact-line{ display:flex; align-items:center; gap:10px; font-size:13px; color:var(--text-dim); margin-bottom:14px; }
.contact-line .ic{ width:32px; height:32px; border-radius:9px; background:var(--surface); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--gold-dark); flex-shrink:0; }
.map-box{ position:relative; border-radius:12px; overflow:hidden; border:1px solid var(--border); height:140px; background:var(--gradient-soft); display:flex; align-items:center; justify-content:center; }
.map-box .pin{ color:var(--gold-dark); font-size:22px; }
.map-caption{ font-size:12px; color:var(--text-dim); margin-top:10px; text-align:center; }
.footer-bottom{
  border-top:1px solid var(--border); padding:18px 0; display:flex; justify-content:space-between; align-items:center;
  font-size:12.5px; color:var(--text-dimmer);
}
.footer-bottom a{ margin-left:16px; }
.scroll-top{
  position:fixed; right:24px; bottom:80px; width:42px; height:42px; border-radius:50%;
  background:var(--gradient); color:#1a1207; display:flex; align-items:center; justify-content:center; z-index:80;
  box-shadow:0 8px 20px rgba(215,250,60,.4);
}

/* ---------------------------------------------------------------- Contact form feedback */
.form-msg{ grid-column:span 2; font-size:13px; padding:10px 14px; border-radius:10px; margin-bottom:10px; display:none; }
.form-msg.show{ display:block; }
.form-msg.ok{ background:rgba(34,197,94,.12); color:#4ade80; border:1px solid rgba(34,197,94,.3); }
.form-msg.err{ background:rgba(239,68,68,.12); color:#f87171; border:1px solid rgba(239,68,68,.3); }

/* ---------------------------------------------------------------- Responsive */
@media(max-width:1080px){
  .overview-grid{ grid-template-columns:1fr 1fr; }
  .overview-grid .card:last-child{ grid-column:span 2; }
  .info-grid, .info-grid-3{ grid-template-columns:1fr 1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .stats-bar{ grid-template-columns:1fr 1fr; }
  .stats-bar .stat-item:nth-child(2){ border-right:none; }
  .dash-showcase{ grid-template-columns:1fr; }
}
@media(max-width:900px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; min-height:400px; perspective:none; }
  .hero-3d{ transform:none !important; height:380px; }
  .mono-face, .mono-depth{ font-size:min(30vw,220px); transform:none !important; }
  .hero-monogram{ z-index:1 !important; }
  .services-grid{ grid-template-columns:1fr 1fr; }

  .hero-photo-wrap{ width:190px; transform:none !important; z-index:5 !important; }
  .hero-photo-wrap::before{ inset:-10px; }
  .frame-corner.tl, .frame-corner.tr, .frame-corner.bl, .frame-corner.br{ width:16px; height:16px; }
  .hero-podium{ transform:translateX(-50%) !important; }

  .floating-badge{ width:36px; height:36px; font-size:14px; transform:none !important; animation:none; z-index:6 !important; }
  .floating-badge.pos-top-left{ top:0%; left:8%; }
  .floating-badge.pos-top-right{ top:0%; right:8%; }
  .floating-badge.pos-mid-left{ top:40%; left:-2%; }
  .floating-badge.pos-mid-right{ top:40%; right:-2%; }
  .floating-badge.pos-bottom-left{ top:78%; left:10%; }
  .floating-badge.pos-bottom-right{ top:78%; right:10%; }

  /* Keep the two info cards visible but tucked behind the photo, as decorative depth */
  .code-float-card, .overview-float-card{
    display:block; transform:scale(.55) !important; opacity:.5; animation:none; z-index:2 !important;
    filter:blur(.3px);
  }
  .code-float-card{ top:2%; right:-4%; }
  .overview-float-card{ bottom:0%; right:-4%; left:auto; }

  .hero-glow{ display:none; }
}
@media(max-width:760px){
  .main{ margin-left:0; }
  .topnav{ display:none; }
  .topnav.open{
    display:flex; flex-direction:column; gap:2px; position:absolute; top:var(--topbar-h); left:0; right:0;
    background:var(--surface-solid); border-bottom:1px solid var(--border); padding:14px 28px; box-shadow:var(--shadow-card); z-index:95;
  }
  .topnav.open a.active::after{ display:none; }
  .menu-toggle{ display:flex; }
  .cta-pill{ display:none; }
  .overview-grid, .info-grid, .info-grid-3, .services-grid, .footer-grid{ grid-template-columns:1fr; }
  .overview-grid .card:last-child{ grid-column:span 1; }
  .hero h1{ font-size:34px; }
  .tech-grid{ grid-template-columns:repeat(3,1fr); }
  .settings-fab{ bottom:24px; }
  .cursor-dot, .cursor-ring{ display:none; }
  .stats-bar{ grid-template-columns:1fr 1fr; }
  .stack-grid{ grid-template-columns:1fr 1fr; }
}
