/* ═══════════════════════════════════════════════════════════
   SHURAIHU USMAN — Editorial Portfolio
   Teal Dark Theme · Minimal · Inter + Space Mono
   ═══════════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  --bg:       #020c0a;
  --bg-1:     #041410;
  --bg-2:     #071a16;
  --glass:    rgba(255,255,255,0.03);
  --border:   rgba(255,255,255,0.07);
  --bh:       rgba(255,255,255,0.13);

  --teal:     #14b8a6;
  --teal-d:   #0d9488;
  --teal-l:   #2dd4bf;
  --teal-a:   rgba(20,184,166,0.15);
  --teal-glow:rgba(20,184,166,0.3);

  --text:     #e2f5f2;
  --subtle:   #7fa89e;
  --muted:    #3d6660;

  --mono: 'Space Mono', 'Courier New', monospace;
  --sans: 'Inter', system-ui, sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --ease:   cubic-bezier(0.4,0,0.2,1);
  --bounce: cubic-bezier(0.34,1.56,0.64,1);
}

/* ─── RESET ─── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) var(--bg-1);
}
html::-webkit-scrollbar       { width: 4px; }
html::-webkit-scrollbar-track { background: var(--bg-1); }
html::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 2px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

a    { text-decoration: none; color: inherit; }
img  { max-width: 100%; display: block; }
ul   { list-style: none; }
em   { font-style: normal; }

/* ─── CONTAINER ─── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── CURSOR ─── */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s, opacity .2s;
  mix-blend-mode: screen;
}
.cursor-follower {
  position: fixed;
  width: 32px; height: 32px;
  border: 1.5px solid rgba(20,184,166,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .3s var(--ease), height .3s var(--ease), opacity .3s;
}
.cursor.hovering         { width: 5px; height: 5px; }
.cursor-follower.hovering{ width: 50px; height: 50px; opacity: .5; }

/* ─── LOADER ─── */
.loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner  { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.loader-logo {
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--teal);
  animation: loaderPulse 1.2s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.6; transform:scale(.94); }
}
.loader-bar {
  width: 180px; height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px; overflow: hidden;
}
.loader-fill {
  height: 100%; width: 0%;
  background: var(--teal);
  transition: width .12s linear;
}
.loader-text {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .12em;
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center;
  padding: 1.5rem 2rem;
  transition: all .3s var(--ease);
}
.nav.scrolled {
  background: rgba(2,12,10,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  margin-right: auto;
  letter-spacing: -.02em;
  transition: opacity .25s;
}
.nav-logo:hover { opacity: .75; }

.nav-links {
  display: flex; gap: 2.5rem; align-items: center;
}
.nav-link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--subtle);
  letter-spacing: .02em;
  transition: color .25s;
  position: relative;
  padding: .2rem 0;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--teal);
  transition: width .3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: .25rem;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: all .3s var(--ease);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }

/* ─── MOBILE MENU ─── */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(2,12,10,.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mob-link {
  font-size: 2rem; font-weight: 700;
  color: var(--subtle);
  transition: color .25s, transform .25s;
}
.mob-link:hover { color: var(--text); transform: translateX(10px); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── SHARED SECTION ELEMENTS ─── */
.sec-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--teal);
  letter-spacing: .1em;
  margin-bottom: 1.25rem;
}
.sec-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.sec-body {
  color: var(--subtle);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 620px;
  margin-bottom: 1.1rem;
}
.teal { color: var(--teal); }

/* ─── BUTTONS ─── */
.btn-arrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .95rem; font-weight: 600;
  color: var(--teal);
  transition: gap .3s var(--ease), opacity .25s;
}
.btn-arrow:hover { gap: .9rem; opacity: .85; }
.btn-arrow i { font-size: .8rem; transition: transform .3s var(--ease); }
.btn-arrow:hover i { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex; align-items: center;
  padding: .65rem 1.6rem;
  border: 1px solid var(--bh);
  border-radius: 50px;
  font-size: .9rem; font-weight: 500;
  color: var(--subtle);
  transition: all .3s var(--ease);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-a);
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.hero-canvas {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

/* Avatar + Quote row */
.hero-head {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 1s var(--ease) .1s both;
}

.hero-avatar-block { flex-shrink: 0; }

.avatar-frame {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 2px solid rgba(20,184,166,0.4);
  padding: 3px;
  background: var(--teal-a);
  box-shadow: 0 0 24px rgba(20,184,166,0.2);
  margin-bottom: .6rem;
}
.hero-avatar {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  border-radius: 50%;
}

.hero-status {
  display: flex; align-items: center; gap: .4rem;
  font-size: .7rem;
  color: var(--subtle);
  font-family: var(--mono);
  white-space: nowrap;
}
.status-pulse {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 6px #4ade80;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: .6; }
}

.hero-quote {
  font-style: italic;
  font-size: .95rem;
  color: var(--subtle);
  line-height: 1.65;
  padding-left: 1.25rem;
  border-left: 2px solid var(--teal);
  max-width: 340px;
  margin-top: .25rem;
}

/* Role pill */
.hero-role-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .38rem 1rem;
  border: 1px solid rgba(20,184,166,0.35);
  border-radius: 50px;
  font-family: var(--mono);
  font-size: .73rem;
  color: var(--teal);
  background: rgba(20,184,166,0.08);
  margin-bottom: 1.6rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  animation: fadeUp 1s var(--ease) .15s both;
}
.hrp-dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

/* Hero title — three-tier editorial style */
.hero-title {
  font-weight: 900;
  letter-spacing: -.04em;
  margin-bottom: 1.75rem;
  animation: fadeUp 1s var(--ease) .3s both;
  line-height: 1;
}
.ht-top {
  display: block;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  font-weight: 400;
  color: var(--subtle);
  letter-spacing: -.01em;
  line-height: 1.4;
  margin-bottom: .2rem;
}
.ht-main {
  display: block;
  font-size: clamp(3.8rem, 11vw, 7.5rem);
  font-weight: 900;
  color: var(--teal);
  letter-spacing: -.05em;
  line-height: .9;
}
.ht-sub {
  display: block;
  font-size: clamp(.75rem, 1.6vw, .95rem);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: var(--mono);
  margin-top: 1rem;
}
.ht-dot { color: var(--teal); font-size: inherit; }

/* Role line */
.hero-role {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: var(--subtle);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; flex-wrap: wrap; gap: .3rem;
  animation: fadeUp 1s var(--ease) .4s both;
}
.tw-wrap {
  display: inline-flex; align-items: center; gap: 0;
  color: var(--text);
  font-weight: 600;
}
.typewriter { font-family: var(--mono); font-size: .95em; color: var(--teal-l); }
.tw-cursor  {
  color: var(--teal);
  font-family: var(--mono);
  animation: blink .9s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Bio */
.hero-bio {
  font-size: 1rem;
  color: var(--subtle);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 2.5rem;
  animation: fadeUp 1s var(--ease) .55s both;
}

/* CTA row */
.hero-actions {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  margin-bottom: 3.5rem;
  animation: fadeUp 1s var(--ease) .7s both;
}

/* Stats */
.hero-stats {
  display: flex; align-items: center; gap: 2rem;
  animation: fadeUp 1s var(--ease) .85s both;
}
.hstat { text-align: left; }
.hstat-n {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.hstat-plus { font-size: 1.2rem; font-weight: 700; color: var(--teal-d); }
.hstat-l    { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .06em; margin-top: .15rem; font-family: var(--mono); }
.hstat-sep  { width: 1px; height: 36px; background: var(--border); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════ */
.about-sec {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════
   EXPERIENCE
   ═══════════════════════════════════════════════════════════ */
.exp-sec {
  padding: 5rem 0 7rem;
  border-top: 1px solid var(--border);
}

.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-top: 2.5rem;
  align-items: start;
}

/* Column header */
.exp-col-head {
  display: flex; align-items: center; gap: .65rem;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 2rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--border);
}
.exp-col-head i { color: var(--teal); font-size: .88rem; }

/* Vertical timeline */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 3px; top: 10px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    var(--teal) 0%,
    rgba(20,184,166,0.25) 70%,
    transparent 100%);
}

/* Timeline item */
.tl-item {
  position: relative;
  padding-bottom: 2.2rem;
  transition: all .25s var(--ease);
}
.tl-item:last-child { padding-bottom: 0; }

/* Timeline dot */
.tl-dot {
  position: absolute;
  left: -1.5rem;
  top: 6px;
  width: 9px; height: 9px;
  background: var(--bg);
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  transform: translateX(-.5px);
  transition: background .3s, box-shadow .3s, transform .3s;
  z-index: 1;
}
.tl-item:hover .tl-dot {
  background: var(--teal);
  box-shadow: 0 0 10px rgba(20,184,166,0.5);
  transform: translateX(-.5px) scale(1.2);
}

/* Active (current) jobs — pulsing solid dot */
.tl-dot.tl-active {
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(20,184,166,0.6);
  animation: dotPulse 2.4s ease-out infinite;
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(20,184,166,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(20,184,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); }
}

/* Timeline content */
.tl-body { padding-left: .2rem; }

.tl-period {
  display: inline-block;
  font-family: var(--mono);
  font-size: .63rem;
  color: var(--teal);
  letter-spacing: .08em;
  margin-bottom: .45rem;
  background: rgba(20,184,166,0.08);
  border: 1px solid rgba(20,184,166,0.2);
  padding: .1rem .55rem;
  border-radius: 3px;
}

.tl-role {
  font-size: .97rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .18rem;
  line-height: 1.35;
}

.tl-company {
  font-size: .85rem;
  color: var(--subtle);
  margin-bottom: .45rem;
}

.tl-badge {
  display: inline-block;
  font-size: .62rem;
  font-family: var(--mono);
  color: var(--muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .14rem .55rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 3px;
}

/* Stats summary card */
.exp-summary {
  display: flex;
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--border);
}
.exp-stat {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .25rem;
  padding: 1.25rem .75rem;
  background: var(--bg-2);
  text-align: center;
}
.exp-stat-n {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.exp-stat-l {
  font-size: .64rem;
  color: var(--muted);
  letter-spacing: .07em;
  text-transform: uppercase;
  font-family: var(--mono);
}

/* Responsive */
@media (max-width: 700px) {
  .exp-grid { grid-template-columns: 1fr; gap: 3rem; }
}


.skills-sec {
  padding: 5rem 0 7rem;
}

.skills-lead {
  font-size: 1.15rem;
  color: var(--subtle);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 3rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.sicon {
  display: flex; flex-direction: column; align-items: center;
  gap: .6rem;
  padding: 1.5rem .75rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: default;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.sicon::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--teal-a);
  opacity: 0;
  transition: opacity .3s;
}
.sicon:hover { border-color: rgba(20,184,166,0.4); transform: translateY(-6px); box-shadow: 0 12px 30px rgba(20,184,166,0.12); }
.sicon:hover::before { opacity: 1; }
.sicon i   { font-size: 1.8rem; color: var(--teal); position: relative; }
.sicon img {
  width: 2.4rem; height: 2.4rem;
  object-fit: contain;
  position: relative;
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.sicon:hover img { transform: scale(1.12); }
/* Django icon tint — make the dark green visible on dark bg */
#siDjango img { filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(120deg); opacity: .85; }
.sicon span { font-size: .72rem; font-weight: 600; color: var(--subtle); letter-spacing: .04em; position: relative; }

/* ═══════════════════════════════════════════════════════════
   ORB SECTION
   ═══════════════════════════════════════════════════════════ */
.orb-section {
  position: relative;
  height: 480px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.orb-glow {
  position: absolute;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(20,184,166,0.28) 0%, rgba(20,184,166,0.1) 45%, transparent 72%);
  border-radius: 50%;
  filter: blur(30px);
  animation: orbPulse 5s ease-in-out infinite;
}
@keyframes orbPulse {
  0%,100% { transform: scale(1); opacity: .8; }
  50%      { transform: scale(1.12); opacity: 1; }
}

.orb-rings { position: absolute; top:50%; left:50%; transform:translate(-50%,-50%); }
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(20,184,166,0.15);
  top:50%; left:50%;
  transform: translate(-50%,-50%);
}
.orb-ring-1 { width: 180px; height: 180px; animation: ringR1 12s linear infinite; }
.orb-ring-2 { width: 290px; height: 290px; border-color: rgba(20,184,166,0.09); animation: ringR2 18s linear infinite; }
.orb-ring-3 { width: 420px; height: 420px; border-color: rgba(20,184,166,0.05); animation: ringR3 25s linear infinite; }
@keyframes ringR1 { from{transform:translate(-50%,-50%) rotate(0deg)} to{transform:translate(-50%,-50%) rotate(360deg)} }
@keyframes ringR2 { from{transform:translate(-50%,-50%) rotate(0deg)} to{transform:translate(-50%,-50%) rotate(-360deg)} }
@keyframes ringR3 { from{transform:translate(-50%,-50%) rotate(0deg)} to{transform:translate(-50%,-50%) rotate(360deg)} }

.orb-center {
  position: relative;
  width: 110px; height: 110px;
  background: radial-gradient(circle, rgba(20,184,166,0.2) 0%, rgba(20,184,166,0.05) 100%);
  border: 1px solid rgba(20,184,166,0.45);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(20,184,166,0.2), inset 0 0 30px rgba(20,184,166,0.08);
}
.orb-logo {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -.02em;
}

.orb-label {
  position: absolute; bottom: 2rem;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .12em;
}

/* ═══════════════════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════════════════ */
.projects-sec { padding: 7rem 0; }

/* ═══════════════════════════════════════════════════════════
   INDEX — PRODUCTS EDITORIAL LIST
   ═══════════════════════════════════════════════════════════ */
.idx-products-sec { padding: 7rem 0 5rem; }

/* List wrapper — stacked rows */
.ip-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3rem;
}

/* Single list row */
.ip-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  cursor: default;
  transition: border-color .3s ease;
  position: relative;
}
.ip-list .ip-item:last-child { border-bottom: 1px solid var(--border); }

/* Hover: teal tint on the border */
.ip-item:hover { border-color: rgba(20,184,166,0.35); }
.ip-item::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.ip-item:hover::before { transform: scaleX(1); }

/* Reversed row: image right, text left */
.ip-item-rev { direction: rtl; }
.ip-item-rev > * { direction: ltr; }

/* ── Image panel ── */
.ip-visual {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--r-md);
}
.ip-item:not(.ip-item-rev) .ip-visual { margin-right: 3.5rem; }
.ip-item-rev .ip-visual               { margin-left: 3.5rem; }

.ip-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform .7s var(--ease);
}
.ip-item:hover .ip-img { transform: scale(1.05); }

/* Subtle edge fade toward text side */
.ip-img-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 55%, rgba(2,10,8,0.85) 100%);
  pointer-events: none;
}
.ip-item-rev .ip-img-fade {
  background: linear-gradient(to left, transparent 55%, rgba(2,10,8,0.85) 100%);
}

/* ── Info panel ── */
.ip-info {
  display: flex; flex-direction: column;
  gap: 1rem;
}

/* Number + badge row */
.ip-top { display: flex; align-items: center; gap: 1rem; }
.ip-num {
  font-family: var(--mono);
  font-size: 3rem; font-weight: 700; line-height: 1;
  color: rgba(20,184,166,0.12);
  transition: color .3s ease;
}
.ip-item:hover .ip-num { color: rgba(20,184,166,0.25); }

/* Badge — reuse shop badge styles */
.ip-badge {
  font-family: var(--mono); font-size: .58rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 50px;
}

/* Title */
.ip-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.15;
}

/* Short description */
.ip-desc {
  font-size: .9rem; color: var(--subtle);
  line-height: 1.8; max-width: 420px;
}

/* Inline meta: Category · Tags · Price */
.ip-meta-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .45rem;
  font-size: .75rem; font-family: var(--mono);
}
.ip-cat        { color: var(--teal); }
.ip-sep        { color: rgba(255,255,255,0.18); }
.ip-tags-inline{ color: var(--muted); }
.ip-price {
  color: rgba(255,255,255,0.75); font-weight: 700;
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.2);
  padding: .12rem .5rem; border-radius: 50px;
}

/* View details button */
.ip-detail-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  align-self: flex-start;
  padding: .55rem 1.35rem;
  border: 1px solid rgba(20,184,166,0.3);
  border-radius: 50px;
  font-size: .82rem; font-weight: 600; color: var(--teal);
  background: rgba(20,184,166,0.05);
  cursor: pointer;
  transition: all .3s var(--bounce);
  margin-top: .25rem;
}
.ip-detail-btn i { transition: transform .3s var(--ease); }
.ip-detail-btn:hover {
  background: rgba(20,184,166,0.14);
  box-shadow: 0 4px 20px rgba(20,184,166,0.18);
  transform: translateX(3px);
}
.ip-detail-btn:hover i { transform: translateX(4px); }

/* "Browse all" CTA */
.idx-prod-cta { text-align: center; padding-top: .5rem; }
.idx-prod-more-btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .85rem 2.2rem;
  border: 1px solid rgba(20,184,166,0.3);
  border-radius: 50px;
  font-size: .9rem; font-weight: 600; color: var(--teal);
  background: rgba(20,184,166,0.05);
  transition: all .3s var(--bounce);
}
.idx-prod-more-btn i:last-child { transition: transform .3s var(--ease); }
.idx-prod-more-btn:hover {
  background: rgba(20,184,166,0.12);
  box-shadow: 0 6px 28px rgba(20,184,166,0.2);
  transform: translateY(-2px);
}
.idx-prod-more-btn:hover i:last-child { transform: translateX(4px); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .ip-item {
    grid-template-columns: 1fr;
    gap: 1.75rem; padding: 2.25rem 0;
  }
  .ip-item-rev { direction: ltr; }
  .ip-item:not(.ip-item-rev) .ip-visual,
  .ip-item-rev .ip-visual { margin: 0; }
  .ip-img-fade,
  .ip-item-rev .ip-img-fade {
    background: linear-gradient(to bottom, transparent 60%, rgba(2,10,8,0.75) 100%);
  }
  .ip-num { font-size: 2rem; }
}

/* Section header row */
.proj-sec-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap;
}
.proj-view-all {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--mono); font-size: .75rem;
  color: var(--muted); letter-spacing: .06em;
  padding: .4rem .9rem;
  border: 1px solid var(--border); border-radius: 50px;
  transition: all .3s var(--ease);
}
.proj-view-all i { font-size: .65rem; transition: transform .3s var(--ease); }
.proj-view-all:hover { color: var(--teal); border-color: rgba(20,184,166,.4); }
.proj-view-all:hover i { transform: translateX(3px); }

/* Project image panel (replaces browser mockup) */
.proj-img-wrap {
  position: relative; border-radius: var(--r-lg);
  overflow: hidden; aspect-ratio: 16/9;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transition: box-shadow .4s, transform .4s var(--bounce);
}
.proj-item:hover .proj-img-wrap {
  box-shadow: 0 28px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(20,184,166,0.2);
  transform: translateY(-4px);
}
.proj-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform .6s var(--ease);
}
.proj-item:hover .proj-img { transform: scale(1.04); }
.proj-img-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: .65rem .85rem;
  background: linear-gradient(to top, rgba(5,15,12,0.9) 0%, transparent 100%);
  display: flex; gap: .5rem; align-items: flex-end;
}

/* Shared project badge (used on both index + projects page) */
.pcard-badge {
  font-family: var(--mono); font-size: .6rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .22rem .6rem; border-radius: 50px;
}
.pcard-cat-badge {
  background: rgba(20,184,166,0.18);
  border: 1px solid rgba(20,184,166,0.35);
  color: var(--teal);
}
.pcard-year-badge {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--subtle);
}


.proj-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.proj-item:last-child { border-bottom: none; }
.proj-reverse { direction: rtl; }
.proj-reverse > * { direction: ltr; }

.proj-num {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .1em;
  display: block;
  margin-bottom: .75rem;
}
.proj-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  line-height: 1.25;
}
.proj-desc {
  font-size: .95rem;
  color: var(--subtle);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.proj-tags {
  display: flex; flex-wrap: wrap; gap: .45rem;
  margin-bottom: 1.5rem;
}
.proj-tags span {
  padding: .25rem .7rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .72rem;
  font-family: var(--mono);
  color: var(--subtle);
}
.proj-links { display: flex; gap: 1.25rem; align-items: center; }

.plink {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .88rem; font-weight: 600;
  color: var(--teal);
  transition: opacity .25s, gap .3s var(--ease);
}
.plink:hover { opacity: .75; gap: .7rem; }
.plink-ghost {
  color: var(--subtle);
  font-weight: 500;
}
.plink-ghost:hover { color: var(--text); opacity: 1; }

/* Browser Mockup */
.proj-visual {
  position: relative;
}
.browser-mock {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--bg-2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.proj-item:hover .browser-mock {
  transform: translateY(-8px) rotate(.5deg);
  box-shadow: 0 36px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(20,184,166,0.15);
}

.bm-bar {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bm-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.bm-url {
  margin-left: 8px;
  font-size: .65rem;
  font-family: var(--mono);
  color: rgba(255,255,255,0.25);
}

.bm-screen { height: 200px; padding: 14px; position: relative; overflow: hidden; }

/* Project 1 – e-commerce */
.bm-s1 { background: linear-gradient(145deg, #0f3330 0%, #072320 100%); }
.bm-nav-strip { height: 18px; background: rgba(20,184,166,0.15); border-radius: 4px; margin-bottom: 10px; }
.bm-hero-strip { height: 60px; background: rgba(20,184,166,0.08); border-radius: 6px; margin-bottom: 10px; }
.bm-cards { display: flex; gap: 8px; }
.bm-card { flex: 1; height: 70px; background: rgba(255,255,255,0.05); border-radius: 6px; border: 1px solid rgba(255,255,255,0.06); }

/* Project 2 – dashboard */
.bm-s2 { background: linear-gradient(145deg, #082420 0%, #041a16 100%); display: flex; padding: 0; }
.bm-sidebar { width: 50px; background: rgba(20,184,166,0.08); border-right: 1px solid rgba(255,255,255,0.05); flex-shrink: 0; }
.bm-main { flex: 1; padding: 14px; }
.bm-chart { height: 80px; background: rgba(20,184,166,0.1); border-radius: 6px; margin-bottom: 10px; position: relative; overflow: hidden; }
.bm-chart::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to right, transparent, rgba(20,184,166,0.3), transparent);
  clip-path: polygon(0 100%, 15% 40%, 30% 70%, 50% 20%, 70% 60%, 85% 30%, 100% 50%, 100% 100%);
}
.bm-stat-row { display: flex; gap: 8px; }
.bm-stat { flex: 1; height: 50px; background: rgba(255,255,255,0.04); border-radius: 6px; border: 1px solid rgba(255,255,255,0.05); }

/* Project 3 – kanban */
.bm-s3 { background: linear-gradient(145deg, #0c2d28 0%, #051e1a 100%); }
.bm-board { display: flex; gap: 8px; margin-top: 8px; }
.bm-col { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.bm-ticket { height: 36px; background: rgba(255,255,255,0.06); border-radius: 4px; border-left: 2px solid var(--teal); }

/* ═══════════════════════════════════════════════════════════
   CONTACT  (redesigned)
   ═══════════════════════════════════════════════════════════ */
.contact-sec {
  padding: 7rem 0 6rem;
  border-top: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.contact-sec .sec-label { margin-bottom: 3rem; display: block; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
/* Left */
.contact-headline { margin-bottom: 1.5rem; line-height: 1; }
.ch-top {
  display: block;
  font-size: clamp(.9rem, 2vw, 1.25rem); font-weight: 400;
  color: var(--subtle); letter-spacing: -.01em; margin-bottom: .25rem;
}
.ch-main {
  display: block;
  font-size: clamp(3rem, 8vw, 5.8rem); font-weight: 900;
  letter-spacing: -.05em; line-height: .92;
}
.ch-accent { color: var(--teal); }
.ch-dot    { color: var(--teal); }
.contact-desc {
  font-size: .97rem; color: var(--subtle);
  line-height: 1.75; max-width: 460px; margin-bottom: 2rem;
}
.contact-email-big {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: clamp(.78rem, 1.8vw, 1rem); font-weight: 600;
  color: var(--text); padding: .6rem 1.1rem;
  border: 1px solid var(--border); border-radius: 50px;
  margin-bottom: 2rem; transition: all .3s var(--ease); word-break: break-all;
}
.contact-email-big i { color: var(--teal); flex-shrink: 0; }
.contact-email-big:hover {
  border-color: var(--teal); background: rgba(20,184,166,0.06);
  color: var(--teal); box-shadow: 0 0 22px rgba(20,184,166,0.12);
}
/* Socials */
.social-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.soc-link {
  width: 40px; height: 40px; border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--subtle); font-size: 1rem; transition: all .3s var(--bounce);
}
.soc-link:hover {
  background: var(--teal); border-color: var(--teal);
  color: var(--bg); transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(20,184,166,0.35);
}
/* Right – CTA card */
.contact-rhs { display: flex; justify-content: flex-end; }
.contact-cta-card {
  position: relative; width: 100%; max-width: 360px;
  background: linear-gradient(145deg, rgba(20,184,166,0.07), rgba(20,184,166,0.02));
  border: 1px solid rgba(20,184,166,0.25); border-radius: var(--r-lg);
  padding: 2.5rem 2rem; overflow: hidden;
  transition: transform .4s var(--bounce), box-shadow .4s;
}
.contact-cta-card:hover {
  transform: translateY(-6px); box-shadow: 0 24px 60px rgba(20,184,166,0.15);
}
.ccc-glow {
  position: absolute; width: 220px; height: 220px; top: -70px; right: -70px;
  background: radial-gradient(circle, rgba(20,184,166,0.22), transparent 70%);
  filter: blur(22px); pointer-events: none; animation: orbPulse 5s ease-in-out infinite;
}
.ccc-icon {
  width: 52px; height: 52px; background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.28); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--teal); margin-bottom: 1.25rem;
}
.ccc-title { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .55rem; }
.ccc-body  { font-size: .88rem; color: var(--subtle); line-height: 1.65; margin-bottom: 1.5rem; }
.ccc-checks { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-bottom: 2rem; }
.ccc-checks li { display: flex; align-items: center; gap: .55rem; font-size: .85rem; color: var(--subtle); }
.ccc-checks li i { color: var(--teal); font-size: .8rem; }
.ccc-btn {
  display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%;
  padding: .85rem 1.5rem; background: var(--teal); color: var(--bg);
  border: none; border-radius: 50px; font-size: .95rem; font-weight: 700;
  font-family: var(--sans); cursor: pointer; transition: all .3s var(--bounce);
}
.ccc-btn:hover {
  background: var(--teal-d); box-shadow: 0 10px 30px rgba(20,184,166,0.4); transform: translateY(-2px);
}
.ccc-btn i { transition: transform .3s var(--ease); }
.ccc-btn:hover i { transform: translateX(4px); }

/* CONTACT DRAWER */
.contact-drawer { position: fixed; inset: 0; z-index: 3500; visibility: hidden; }
.contact-drawer.cdr-open { visibility: visible; }
.cdr-backdrop {
  position: absolute; inset: 0; background: rgba(2,12,10,.75);
  backdrop-filter: blur(7px); opacity: 0; cursor: pointer;
  transition: opacity .35s var(--ease);
}
.contact-drawer.cdr-open .cdr-backdrop { opacity: 1; }
.cdr-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(560px, 96vw);
  background: #050f0c; border-left: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(105%); transition: transform .44s cubic-bezier(0.32,0.72,0,1);
  box-shadow: -24px 0 80px rgba(0,0,0,0.65);
}
.contact-drawer.cdr-open .cdr-panel { transform: translateX(0); }
.cdr-close {
  position: absolute; top: 1.25rem; right: 1.25rem; width: 38px; height: 38px;
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--subtle); font-size: .85rem; cursor: pointer; z-index: 10;
  transition: all .25s var(--ease);
}
.cdr-close:hover { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.35); color: #f87171; }
.cdr-body {
  overflow-y: auto; flex: 1; padding: 2.5rem 2rem 3rem;
  scrollbar-width: thin; scrollbar-color: rgba(20,184,166,0.3) transparent;
}
.cdr-label {
  display: inline-block; font-family: var(--mono); font-size: .63rem;
  color: var(--teal); letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: .4rem; padding-right: 3rem;
}
.cdr-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.15; margin-bottom: .35rem;
}
.cdr-subtitle { font-size: .88rem; color: var(--subtle); margin-bottom: 1.75rem; }
.cdr-info { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.75rem; }
.cdr-info-item {
  display: flex; align-items: center; gap: .75rem;
  font-size: .87rem; color: var(--subtle); text-decoration: none; transition: color .25s;
}
a.cdr-info-item:hover { color: var(--teal); }
.cdr-info-icon {
  width: 32px; height: 32px; background: rgba(20,184,166,0.07);
  border: 1px solid rgba(20,184,166,0.18); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-size: .78rem; flex-shrink: 0;
}
.cdr-divider { height: 1px; background: var(--border); margin: 1.75rem 0; }
.cdr-form { display: flex; flex-direction: column; gap: 1.1rem; }
.cdr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cdr-group { display: flex; flex-direction: column; gap: .4rem; }
.cdr-lbl {
  font-family: var(--mono); font-size: .63rem;
  color: var(--muted); letter-spacing: .1em; text-transform: uppercase;
}
.cdr-lbl span { color: var(--teal); }
.cdr-input {
  width: 100%; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: .72rem 1rem; font-size: .92rem; color: var(--text); font-family: var(--sans);
  outline: none; transition: border-color .25s, box-shadow .25s, background .25s;
}
.cdr-input::placeholder { color: var(--muted); }
.cdr-input:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,184,166,0.1);
  background: rgba(20,184,166,0.03);
}
.cdr-input.invalid { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,0.1); }
.cdr-textarea { resize: vertical; min-height: 120px; line-height: 1.65; }
.cdr-submit {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 2rem; background: var(--teal); color: var(--bg);
  border: none; border-radius: 50px; font-size: .95rem; font-weight: 700;
  font-family: var(--sans); cursor: pointer; margin-top: .25rem;
  transition: all .3s var(--bounce); position: relative; overflow: hidden;
}
.cdr-submit::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-100%); transition: transform .6s;
}
.cdr-submit:hover::before { transform: translateX(100%); }
.cdr-submit:hover {
  background: var(--teal-d); box-shadow: 0 10px 30px rgba(20,184,166,0.4); transform: translateY(-2px);
}
.cdr-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.cdr-status {
  font-size: .88rem; border-radius: var(--r-sm); padding: 0;
  max-height: 0; overflow: hidden;
  transition: max-height .4s, padding .4s;
  display: flex; align-items: flex-start; gap: .6rem; line-height: 1.5;
}
.cdr-status.cdr-success {
  max-height: 100px; padding: .75rem 1rem;
  background: rgba(20,184,166,0.08); border: 1px solid rgba(20,184,166,0.3); color: var(--teal);
}
.cdr-status.cdr-error {
  max-height: 100px; padding: .75rem 1rem;
  background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.3); color: #f87171;
}
.cdr-status a { color: inherit; text-decoration: underline; }
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-rhs { justify-content: flex-start; }
  .contact-cta-card { max-width: 100%; }
}
@media (max-width: 540px) { .cdr-row { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  background: var(--bg);
}
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.footer-logo {
  font-family: var(--mono);
  font-size: 1rem; font-weight: 700;
  color: var(--teal);
  opacity: .7;
  transition: opacity .25s;
}
.footer-logo:hover { opacity: 1; }
.footer-copy { font-size: .8rem; color: var(--muted); }

.footer-top {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--subtle);
  font-size: .8rem;
  transition: all .3s var(--bounce);
}
.footer-top:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--bg);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .proj-item, .proj-reverse { grid-template-columns: 1fr; gap: 2.5rem; }
  .proj-reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 7rem 0 4rem; }
  .hero-head { flex-direction: column; gap: 1.25rem; }
  .hero-quote { padding-left: 1rem; max-width: 100%; border-left: none; border-top: 1px solid rgba(20,184,166,0.3); padding-top: 1rem; }
  .skills-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  .orb-section { height: 340px; }
  .orb-ring-3 { display: none; }
  .footer-inner { flex-direction: column; text-align: center; gap: .75rem; }
  .hero-stats { gap: 1.25rem; }
  .hero-actions { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(3rem, 13vw, 5rem); }
  .ht-outline { -webkit-text-stroke: 1.5px var(--teal); }
  .skills-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   AVATAR HOVER OVERLAY
   ═══════════════════════════════════════════════════════════ */
.avatar-frame {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.avatar-overlay {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(20,184,166,0.65);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .3s var(--ease);
  color: #fff;
  font-size: 1.1rem;
}
.avatar-frame:hover .avatar-overlay,
.avatar-frame:focus-visible .avatar-overlay { opacity: 1; }
.avatar-frame:hover {
  box-shadow: 0 0 0 3px var(--teal), 0 0 24px rgba(20,184,166,0.35);
  border-radius: 50%;
}

/* ─── Details button ─── */
.plink-detail {
  background: none;
  border: 1px solid rgba(20,184,166,0.28);
  border-radius: 50px;
  padding: .28rem .8rem;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: all .3s var(--ease);
}
.plink-detail:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(20,184,166,0.07);
  gap: .6rem;
}
.plink-detail i { font-size: .75rem; }

/* ═══════════════════════════════════════════════════════════
   IMAGE LIGHTBOX
   ═══════════════════════════════════════════════════════════ */
.img-lightbox {
  position: fixed; inset: 0;
  z-index: 4000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.5rem;
  visibility: hidden; opacity: 0;
  transition: opacity .35s var(--ease), visibility .35s;
}
.img-lightbox.lb-open { opacity: 1; visibility: visible; }

.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(2,12,10,.93);
  backdrop-filter: blur(14px);
  cursor: zoom-out;
}
.lb-img {
  position: relative;
  width: min(420px, 80vw);
  height: min(420px, 80vw);
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 3px solid rgba(20,184,166,0.55);
  box-shadow: 0 0 80px rgba(20,184,166,0.28), 0 0 0 10px rgba(20,184,166,0.06);
  transform: scale(.75);
  transition: transform .5s var(--bounce);
  pointer-events: none;
}
.img-lightbox.lb-open .lb-img { transform: scale(1); }

.lb-caption {
  position: relative;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--subtle);
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s .2s, transform .45s .2s;
}
.img-lightbox.lb-open .lb-caption { opacity: 1; transform: none; }

.lb-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--subtle);
  font-size: .9rem; cursor: pointer;
  transition: all .3s var(--ease);
}
.lb-close:hover {
  background: rgba(248,113,113,0.12);
  border-color: rgba(248,113,113,0.4);
  color: #f87171;
  transform: rotate(90deg) scale(1.1);
}

/* ═══════════════════════════════════════════════════════════
   PROJECT DETAIL DRAWER
   ═══════════════════════════════════════════════════════════ */
.proj-drawer {
  position: fixed; inset: 0;
  z-index: 3000;
  visibility: hidden;
}
.proj-drawer.pd-open { visibility: visible; }

.pd-backdrop {
  position: absolute; inset: 0;
  background: rgba(2,12,10,.72);
  backdrop-filter: blur(6px);
  opacity: 0; cursor: pointer;
  transition: opacity .35s var(--ease);
}
.proj-drawer.pd-open .pd-backdrop { opacity: 1; }

.pd-panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(680px, 96vw);
  background: #050f0c;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateX(105%);
  transition: transform .44s cubic-bezier(0.32,0.72,0,1);
  box-shadow: -24px 0 80px rgba(0,0,0,0.6);
}
.proj-drawer.pd-open .pd-panel { transform: translateX(0); }

.pd-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 38px; height: 38px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--subtle);
  font-size: .85rem; cursor: pointer; z-index: 10;
  transition: all .25s var(--ease);
}
.pd-close:hover {
  background: rgba(248,113,113,0.1);
  border-color: rgba(248,113,113,0.35);
  color: #f87171;
}

.pd-body {
  overflow-y: auto; flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(20,184,166,0.3) transparent;
  display: flex;
  flex-direction: column;
}

/* Drawer content */
.pd-eyebrow {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.75rem; padding-right: 3rem;
}
.pd-num {
  font-family: var(--mono);
  font-size: 3.5rem; font-weight: 700;
  color: rgba(20,184,166,0.15); line-height: 1;
  flex-shrink: 0;
}
.pd-meta { display: flex; flex-direction: column; gap: .2rem; padding-top: .4rem; }
.pd-year {
  font-family: var(--mono);
  font-size: .63rem; color: var(--teal);
  letter-spacing: .1em; text-transform: uppercase;
}
.pd-title {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
}

/* ─── Shared image gallery (used in both project drawers) ─── */
.pd-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #030a08;
  flex-shrink: 0;
}
.pg-track {
  position: relative;
  width: 100%; height: 100%;
}
.pg-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.pg-slide.pg-active {
  opacity: 1;
  pointer-events: auto;
}
.pg-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
}

/* Arrow buttons */
.pg-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px;
  background: rgba(5,15,12,0.75);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: .75rem; cursor: pointer; z-index: 5;
  backdrop-filter: blur(8px);
  transition: all .25s ease;
}
.pg-arrow:hover {
  background: var(--teal); border-color: var(--teal); color: var(--bg);
  transform: translateY(-50%) scale(1.1);
}
.pg-prev { left: .75rem; }
.pg-next { right: .75rem; }

/* Dot indicators */
.pg-dots {
  position: absolute; bottom: .75rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .4rem; z-index: 5;
}
.pg-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.35); border: none; cursor: pointer; padding: 0;
  transition: all .25s ease;
}
.pg-dot.pg-dot-active { background: var(--teal); transform: scale(1.4); }

/* Counter */
.pg-counter {
  position: absolute; top: .75rem; right: .75rem;
  font-family: var(--mono); font-size: .62rem;
  color: rgba(255,255,255,0.65);
  background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
  padding: .2rem .55rem; border-radius: 50px;
  z-index: 5;
}

/* Badges overlay */
.pg-badges {
  position: absolute; top: .75rem; left: .75rem;
  display: flex; gap: .4rem; z-index: 5;
}

/* Content wrapper below gallery */
.pd-content { padding: 1.5rem 2rem 2.5rem; }

.pd-divider {
  height: 1px; background: var(--border);
  margin: 1.75rem 0;
}

.pd-desc {
  font-size: .97rem; color: var(--subtle);
  line-height: 1.85; margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(20,184,166,0.3);
}

.pd-features-head {
  font-family: var(--mono);
  font-size: .65rem; color: var(--muted);
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: .85rem;
}
.pd-features-list {
  list-style: none;
  display: flex; flex-direction: column; gap: .65rem;
  margin-bottom: 2rem;
}
.pd-features-list li {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .92rem; color: var(--subtle); line-height: 1.55;
}
.pd-features-list li i {
  color: var(--teal); font-size: .7rem;
  margin-top: .3rem; flex-shrink: 0;
}

.pd-tags {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: 2rem;
}
.pd-tags span {
  padding: .25rem .75rem;
  background: rgba(20,184,166,0.06);
  border: 1px solid rgba(20,184,166,0.2);
  border-radius: 50px;
  font-size: .68rem; font-family: var(--mono); color: var(--teal);
}

.pd-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.pd-btn-live {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.6rem;
  background: var(--teal); color: var(--bg);
  border-radius: 50px; font-size: .9rem; font-weight: 700;
  transition: all .3s var(--bounce);
}
.pd-btn-live:hover {
  background: var(--teal-d);
  box-shadow: 0 8px 24px rgba(20,184,166,0.35);
  transform: translateY(-2px);
}
.pd-btn-code {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.6rem;
  border: 1px solid var(--bh); border-radius: 50px;
  font-size: .9rem; font-weight: 600; color: var(--subtle);
  transition: all .25s var(--ease);
}
.pd-btn-code:hover {
  border-color: var(--teal); color: var(--teal); background: var(--teal-a);
}
