/* ================================================================
   SAROJ NEUPANE — PORTFOLIO STYLESHEET
   Data Engineer · IT Specialist · Toronto, Canada
   ================================================================ */

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

:root {
  /* backgrounds */
  --bg:  #03030d;
  --s1:  #07071a;
  --s2:  #0c0c22;
  --s3:  #11112d;
  --s4:  #171738;

  /* borders */
  --bd:  rgba(255,255,255,.055);
  --bd2: rgba(255,255,255,.10);
  --bd3: rgba(255,255,255,.18);

  /* text */
  --t:   #ededff;
  --t2:  #7878aa;
  --t3:  #404058;

  /* brand palette */
  --cyan:    #00e5ff;
  --violet:  #7c3aed;
  --emerald: #10b981;
  --amber:   #f59e0b;
  --red:     #ef4444;
  --pink:    #ec4899;
  --blue:    #3b82f6;
  --lime:    #84cc16;
  --orange:  #f97316;
  --teal:    #14b8a6;
  --sky:     #38bdf8;
  --rose:    #fb7185;
  --indigo:  #6366f1;
  --fuchsia: #d946ef;

  /* typography */
  --mono: 'JetBrains Mono', monospace;
  --head: 'Syne', sans-serif;
  --body: 'DM Sans', sans-serif;

  --rad: 12px;

  /* transitions */
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---- LIGHT MODE overrides ---- */
body.light {
  --bg:  #f4f4fb;
  --s1:  #ffffff;
  --s2:  #ededf8;
  --s3:  #e4e4f0;
  --s4:  #d8d8ec;
  --bd:  rgba(0,0,0,.08);
  --bd2: rgba(0,0,0,.13);
  --bd3: rgba(0,0,0,.20);
  --t:   #0a0a1e;
  --t2:  #44445e;
  --t3:  #9090aa;
}

/* ambient blobs are more subtle in light mode */
body.light .bg-blob { opacity: .06; }

/* nav in light mode */
body.light nav {
  background: rgba(244,244,251,.88);
  border-bottom-color: rgba(0,0,0,.1);
}
body.light nav.scrolled { background: rgba(244,244,251,.97); }
body.light .nav-drawer  { background: rgba(244,244,251,.97); border-bottom-color: rgba(0,0,0,.1); }

/* logo glow in light mode */
body.light .logo-sq { box-shadow: 0 0 20px rgba(0,180,210,.3); }

/* photo shadow in light */
body.light .photo-rect {
  box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 24px 60px rgba(0,0,0,.18);
}
body.light .photo-rect::after {
  background: linear-gradient(180deg, transparent 55%, rgba(244,244,251,.85) 100%);
}
body.light .photo-lbl { background: rgba(244,244,251,.92); }

/* buttons in light mode */
body.light .btn-secondary { background: #ffffff; }
body.light .btn-ghost { background: transparent; }
body.light .nav-resume-btn { background: transparent; }

/* cards in light mode */
body.light .tcard,
body.light .scard,
body.light .form-box,
body.light .gh-cta,
body.light .pcard-cyan,
body.light .pcard-violet,
body.light .pcard-amber,
body.light .pcard-emerald {
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
body.light .pcard-cyan   { background: linear-gradient(145deg,#e8f8fc,#f0fbff); }
body.light .pcard-violet { background: linear-gradient(145deg,#f0eeff,#f7f4ff); }
body.light .pcard-amber  { background: linear-gradient(145deg,#fdf8ee,#fffbf0); }
body.light .pcard-emerald{ background: linear-gradient(145deg,#edfaf5,#f2fdf8); }

/* footer in light mode */
body.light footer { background: rgba(238,238,248,.97); }

/* modal in light mode */
body.light .modal-box { background: #ffffff; }
body.light .modal     { background: rgba(0,0,0,.5); }

/* chat in light mode */
body.light .chat-panel { background: #ffffff; }
body.light .msg-bot    { background: var(--s2); }

/* hstat in light mode */
body.light .hstat { background: #ffffff; }

/* cert items in light mode */
body.light .cert-item { background: var(--s2); }

/* scroll top btn */
body.light .scroll-top { background: #ffffff; }

/* pill adjustments in light (keep vivid colors, just tweak backgrounds slightly) */
body.light .pc   { background: rgba(0,200,225,.1); }
body.light .pv   { background: rgba(124,58,237,.1); }
body.light .pg   { background: rgba(16,185,129,.1); }
body.light .pa   { background: rgba(217,119,6,.1); }
body.light .pr   { background: rgba(220,38,38,.1); }
body.light .pp   { background: rgba(219,39,119,.1); }
body.light .pb   { background: rgba(37,99,235,.1); }
body.light .pl   { background: rgba(101,163,13,.1); }
body.light .po   { background: rgba(234,88,12,.1); }
body.light .pt   { background: rgba(13,148,136,.1); }
body.light .psk  { background: rgba(2,132,199,.1); }
body.light .prs  { background: rgba(225,29,72,.1); }
body.light .pi   { background: rgba(79,70,229,.1); }
body.light .pf   { background: rgba(192,38,211,.1); }
body.light .ptag-cyan    { background: rgba(0,200,225,.1); }
body.light .ptag-violet  { background: rgba(124,58,237,.1); }
body.light .ptag-amber   { background: rgba(217,119,6,.1); }
body.light .ptag-emerald { background: rgba(16,185,129,.1); }
body.light .ptag-pink    { background: rgba(219,39,119,.1); }
body.light .ptag-blue    { background: rgba(37,99,235,.1); }
body.light .ptag-lime    { background: rgba(101,163,13,.1); }
body.light .ptag-orange  { background: rgba(234,88,12,.1); }
body.light .ptag-teal    { background: rgba(13,148,136,.1); }
body.light .ptag-sky     { background: rgba(2,132,199,.1); }
body.light .ptag-red     { background: rgba(220,38,38,.1); }
body.light .ptag-indigo  { background: rgba(79,70,229,.1); }
body.light .ptag-fuchsia { background: rgba(192,38,211,.1); }

/* status pill stays green in both modes */
body.light .status-pill {
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.3);
}

/* ---- THEME TOGGLE BUTTON ---- */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--bd2); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all .22s var(--ease);
  position: relative; flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: rgba(0,229,255,.35);
  background: rgba(0,229,255,.07);
  transform: rotate(15deg) scale(1.08);
}

/* show/hide icons based on mode */
.theme-icon-dark  { display: block; }
.theme-icon-light { display: none;  }
body.light .theme-icon-dark  { display: none;  }
body.light .theme-icon-light { display: block; }

/* smooth global transition when toggling */
body, nav, .tcard, .scard, .pcard-cyan, .pcard-violet,
.pcard-amber, .pcard-emerald, .form-box, .gh-cta,
.cert-item, .hstat, footer, .chat-panel, .modal-box,
.scroll-top, .photo-lbl, .nav-drawer {
  transition:
    background .3s ease,
    background-color .3s ease,
    border-color .3s ease,
    color .3s ease,
    box-shadow .3s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--t);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cyan), var(--violet));
  border-radius: 3px;
}

::selection { background: rgba(0,229,255,.15); }
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ================================================================
   AMBIENT BACKGROUND
   ================================================================ */
.bg-canvas {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.bg-blob {
  position: absolute; border-radius: 50%;
  filter: blur(140px); opacity: .11;
  animation: blobdrift 20s ease-in-out infinite;
}
.bb1 {
  width: 850px; height: 850px;
  background: radial-gradient(circle, var(--cyan), transparent 65%);
  top: -380px; left: -320px;
  animation-delay: 0s;
}
.bb2 {
  width: 650px; height: 650px;
  background: radial-gradient(circle, var(--violet), transparent 65%);
  top: 40%; right: -280px;
  animation-delay: -7s;
}
.bb3 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, var(--emerald), transparent 65%);
  bottom: -180px; left: 22%;
  animation-delay: -14s;
}

@keyframes blobdrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(38px,-28px) scale(1.04); }
  66%      { transform: translate(-28px,38px) scale(.96); }
}

/* ================================================================
   NAVIGATION
   ================================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 990;
  height: 62px;
  background: rgba(3,3,13,.82);
  backdrop-filter: blur(32px) saturate(160%);
  border-bottom: 1px solid var(--bd);
  transition: background .3s var(--ease);
}
nav.scrolled { background: rgba(3,3,13,.96); }

.nav-w {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem; height: 100%;
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}

.logo {
  display: flex; align-items: center;
  gap: .65rem; cursor: pointer; flex-shrink: 0;
  text-decoration: none;
}
.logo-sq {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .7rem; font-weight: 700;
  color: #000; box-shadow: 0 0 20px rgba(0,229,255,.28);
  flex-shrink: 0;
}
.logo-n {
  font-family: var(--head); font-size: .94rem;
  font-weight: 900; letter-spacing: -.02em;
}
.logo-n em { font-style: normal; color: var(--cyan); }

.nav-links {
  display: flex; gap: .1rem; list-style: none;
}
.nav-links a {
  font-family: var(--mono); font-size: .6rem;
  font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  padding: .36rem .78rem; border-radius: 7px;
  color: var(--t2); border: 1px solid transparent;
  transition: all .18s var(--ease); cursor: pointer;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.on {
  color: var(--cyan);
  background: rgba(0,229,255,.07);
  border-color: rgba(0,229,255,.2);
}

.nav-r {
  display: flex; align-items: center;
  gap: .45rem; flex-shrink: 0;
}

.status-pill {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .55rem;
  font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--emerald);
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.22);
  border-radius: 20px; padding: .26rem .78rem;
  white-space: nowrap;
}
.sdot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--emerald);
  animation: pulse 1.8s ease-in-out infinite;
}

.nav-resume-btn {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .6rem;
  font-weight: 700; letter-spacing: .06em;
  padding: .32rem .82rem; border-radius: 7px;
  border: 1px solid var(--bd2); color: var(--t2);
  background: transparent; cursor: pointer;
  transition: all .18s var(--ease); white-space: nowrap;
}
.nav-resume-btn:hover {
  border-color: rgba(0,229,255,.32);
  color: var(--cyan);
  background: rgba(0,229,255,.06);
}

/* hamburger — mobile */
.nav-hamburger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer;
  background: transparent; border: none; padding: .4rem;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--t2); border-radius: 2px;
  transition: all .25s var(--ease);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.nav-drawer {
  display: none; position: fixed;
  top: 62px; left: 0; right: 0; z-index: 980;
  background: rgba(3,3,13,.96); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--bd);
  padding: 1rem 2rem 1.5rem;
  flex-direction: column; gap: .4rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--mono); font-size: .7rem;
  font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--t2);
  padding: .55rem .7rem; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer;
  transition: all .18s;
}
.nav-drawer a:hover,
.nav-drawer a.on {
  color: var(--cyan);
  background: rgba(0,229,255,.07);
  border-color: rgba(0,229,255,.2);
}

/* ================================================================
   PAGE SYSTEM
   ================================================================ */
.page { display: none; padding-top: 62px; }
.page.active { display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fu {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .2; transform: scale(1.9); }
}
@keyframes shimmer {
  from { left: -100%; }
  to   { left: 200%; }
}
@keyframes scanline {
  from { background-position: 0 -100%; }
  to   { background-position: 0 400%; }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.a1 { opacity:0; animation: fu .6s .08s forwards; }
.a2 { opacity:0; animation: fu .7s .22s forwards; }
.a3 { opacity:0; animation: fu .7s .36s forwards; }
.a4 { opacity:0; animation: fu .7s .50s forwards; }
.a5 { opacity:0; animation: fu .7s .64s forwards; }
.a6 { opacity:0; animation: fu .6s .78s forwards; }
.a7 { opacity:0; animation: fu .6s .92s forwards; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.8rem; border-radius: 9px; border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), #0891b2);
  color: #000; font-family: var(--mono); font-size: .7rem;
  font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transition: left .5s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,229,255,.38); }
.btn-primary:hover::after { left: 200%; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.8rem; border-radius: 9px;
  border: 1px solid var(--bd2); cursor: pointer;
  background: var(--s1); color: var(--t2);
  font-family: var(--mono); font-size: .7rem;
  font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  transition: all .22s var(--ease);
}
.btn-secondary:hover {
  border-color: rgba(124,58,237,.5);
  color: #a78bfa; background: rgba(124,58,237,.07);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.8rem; border-radius: 9px;
  border: 1px solid var(--bd2); cursor: pointer;
  background: transparent; color: var(--t2);
  font-family: var(--mono); font-size: .7rem;
  font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  transition: all .22s var(--ease);
}
.btn-ghost:hover {
  border-color: rgba(16,185,129,.4);
  color: var(--emerald); background: rgba(16,185,129,.07);
  transform: translateY(-2px);
}

/* ================================================================
   SECTION COMMON
   ================================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .57rem;
  font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: .7rem;
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1.5px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.sec-title {
  font-family: var(--head);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 900; letter-spacing: -.04em;
  color: var(--t); line-height: 1.05; margin-bottom: .6rem;
}
.sec-div {
  width: 52px; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  border-radius: 2px; margin-bottom: 1.4rem;
}
.sec-sub {
  font-size: .96rem; color: var(--t2); line-height: 1.9;
}

/* ================================================================
   PILL / TAG SYSTEM (colorful)
   ================================================================ */
.pill {
  font-family: var(--mono); font-size: .63rem; font-weight: 700;
  padding: .3rem .82rem; border-radius: 7px;
  border: 1px solid; cursor: default;
  transition: transform .18s var(--ease), box-shadow .18s;
  letter-spacing: .03em;
}
.pill:hover { transform: translateY(-2px); }

.pc   { color: var(--cyan);    border-color: rgba(0,229,255,.28);    background: rgba(0,229,255,.07);    } .pc:hover   { box-shadow: 0 4px 14px rgba(0,229,255,.22); }
.pv   { color: #a78bfa;       border-color: rgba(167,139,250,.28);   background: rgba(167,139,250,.07);  } .pv:hover   { box-shadow: 0 4px 14px rgba(167,139,250,.22); }
.pg   { color: #34d399;       border-color: rgba(52,211,153,.28);    background: rgba(52,211,153,.07);   } .pg:hover   { box-shadow: 0 4px 14px rgba(52,211,153,.22); }
.pa   { color: var(--amber);  border-color: rgba(245,158,11,.28);    background: rgba(245,158,11,.07);   } .pa:hover   { box-shadow: 0 4px 14px rgba(245,158,11,.22); }
.pr   { color: #f87171;       border-color: rgba(248,113,113,.28);   background: rgba(248,113,113,.07);  } .pr:hover   { box-shadow: 0 4px 14px rgba(248,113,113,.22); }
.pp   { color: #f472b6;       border-color: rgba(244,114,182,.28);   background: rgba(244,114,182,.07);  } .pp:hover   { box-shadow: 0 4px 14px rgba(244,114,182,.22); }
.pb   { color: #60a5fa;       border-color: rgba(96,165,250,.28);    background: rgba(96,165,250,.07);   } .pb:hover   { box-shadow: 0 4px 14px rgba(96,165,250,.22); }
.pl   { color: #a3e635;       border-color: rgba(163,230,53,.28);    background: rgba(163,230,53,.07);   } .pl:hover   { box-shadow: 0 4px 14px rgba(163,230,53,.22); }
.po   { color: var(--orange); border-color: rgba(249,115,22,.28);    background: rgba(249,115,22,.07);   } .po:hover   { box-shadow: 0 4px 14px rgba(249,115,22,.22); }
.pt   { color: #2dd4bf;       border-color: rgba(45,212,191,.28);    background: rgba(45,212,191,.07);   } .pt:hover   { box-shadow: 0 4px 14px rgba(45,212,191,.22); }
.psk  { color: var(--sky);    border-color: rgba(56,189,248,.28);    background: rgba(56,189,248,.07);   } .psk:hover  { box-shadow: 0 4px 14px rgba(56,189,248,.22); }
.prs  { color: #fb7185;       border-color: rgba(251,113,133,.28);   background: rgba(251,113,133,.07);  } .prs:hover  { box-shadow: 0 4px 14px rgba(251,113,133,.22); }
.pi   { color: #818cf8;       border-color: rgba(129,140,248,.28);   background: rgba(129,140,248,.07);  } .pi:hover   { box-shadow: 0 4px 14px rgba(129,140,248,.22); }
.pf   { color: #e879f9;       border-color: rgba(232,121,249,.28);   background: rgba(232,121,249,.07);  } .pf:hover   { box-shadow: 0 4px 14px rgba(232,121,249,.22); }

/* ================================================================
   HOME PAGE
   ================================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 5rem; align-items: center;
  min-height: calc(100vh - 62px);
  padding: 3.5rem 2rem 4rem;
  max-width: 1200px; margin: 0 auto;
}

.h-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .62rem; color: var(--t2);
  background: var(--s1); border: 1px solid var(--bd2);
  border-radius: 6px; padding: .28rem .75rem; margin-bottom: 1.4rem;
}
.h-eyebrow b { color: var(--cyan); }

.h-name {
  font-family: var(--head);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-align: center;
  margin: 0;
}

/* FIXED: gradient text */
.h-name .grad {
  background: linear-gradient(90deg, #6ee7ff, #a78bfa, #ff6ec7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}


.h-role {
  font-family: var(--mono); font-size: .82rem; color: var(--t2);
  display: flex; align-items: center; gap: .55rem;
  flex-wrap: wrap; margin-bottom: 1.1rem;
}
.rdot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); flex-shrink: 0;
  animation: pulse 2s infinite;
}

/* specialty badges */
.h-badges {
  display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.5rem;
}
.hbadge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .59rem; font-weight: 700;
  padding: .28rem .7rem; border-radius: 20px; border: 1px solid;
  letter-spacing: .04em; text-transform: uppercase;
}
.hb-cyan    { color: var(--cyan);    border-color: rgba(0,229,255,.3);    background: rgba(0,229,255,.07);    }
.hb-violet  { color: #a78bfa;       border-color: rgba(167,139,250,.3);   background: rgba(167,139,250,.07);  }
.hb-emerald { color: var(--emerald);border-color: rgba(16,185,129,.3);    background: rgba(16,185,129,.07);   }
.hb-amber   { color: var(--amber);  border-color: rgba(245,158,11,.3);    background: rgba(245,158,11,.07);   }
.hb-pink    { color: var(--pink);   border-color: rgba(236,72,153,.3);    background: rgba(236,72,153,.07);   }
.hb-orange  { color: var(--orange); border-color: rgba(249,115,22,.3);    background: rgba(249,115,22,.07);   }

.h-desc {
  font-size: .97rem; color: var(--t2);
  line-height: 1.95; max-width: 540px; margin-bottom: 1rem;
}
.h-desc strong { color: var(--t); font-weight: 600; }

.h-info-row {
  display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 2rem;
}
.h-info-item {
  display: flex; align-items: center; gap: .45rem;
  font-family: var(--mono); font-size: .63rem; color: var(--t2);
}
.h-info-item span { font-size: .95rem; }

.hbtns {
  display: flex; gap: .65rem; flex-wrap: wrap; margin-bottom: 2.5rem;
}

/* stats grid */
.h-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--bd);
  border: 1px solid var(--bd); border-radius: 14px; overflow: hidden;
}
.hstat {
  background: var(--s1); padding: 1.2rem 1rem;
  text-align: center; transition: background .2s var(--ease);
  position: relative; overflow: hidden;
}
.hstat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
}
.hstat:nth-child(1)::before { background: var(--cyan); }
.hstat:nth-child(2)::before { background: var(--violet); }
.hstat:nth-child(3)::before { background: var(--emerald); }
.hstat:nth-child(4)::before { background: var(--amber); }
.hstat:hover { background: var(--s2); }

.hstat-n {
  font-family: var(--head);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hstat-l {
  font-family: var(--mono); font-size: .53rem;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--t3); margin-top: .18rem;
}

/* ================================================================
   RECTANGULAR PHOTO
   ================================================================ */
.photo-box { position: relative; }

.photo-rect {
  position: relative; width: 100%; aspect-ratio: 3/4;
  border-radius: 20px; overflow: hidden;
  border: 1.5px solid rgba(0,229,255,.2);
  box-shadow:
    0 0 0 1px rgba(0,229,255,.05),
    0 35px 100px rgba(0,0,0,.65),
    0 0 70px rgba(0,229,255,.07);
  transition: box-shadow .4s var(--ease);
  animation: float 6s ease-in-out infinite;
}
.photo-rect:hover {
  box-shadow:
    0 0 0 2px rgba(0,229,255,.28),
    0 35px 110px rgba(0,0,0,.7),
    0 0 90px rgba(0,229,255,.16);
}

.photo-rect img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  filter: brightness(1.04) contrast(1.06) saturate(1.1);
  transition: transform .5s var(--ease);
}
.photo-rect:hover img { transform: scale(1.04); }

/* gradient overlay on photo */
.photo-rect::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(3,3,13,.82) 100%);
  pointer-events: none;
}

/* corner accent brackets */
.corner {
  position: absolute; width: 22px; height: 22px;
  z-index: 3; pointer-events: none;
}
.c-tl { top:14px; left:14px;   border-top:2px solid var(--cyan);   border-left:2px solid var(--cyan);   border-radius:4px 0 0 0; }
.c-tr { top:14px; right:14px;  border-top:2px solid var(--cyan);   border-right:2px solid var(--cyan);  border-radius:0 4px 0 0; }
.c-bl { bottom:14px; left:14px;  border-bottom:2px solid var(--violet); border-left:2px solid var(--violet);  border-radius:0 0 0 4px; }
.c-br { bottom:14px; right:14px; border-bottom:2px solid var(--violet); border-right:2px solid var(--violet); border-radius:0 0 4px 0; }

/* scan line effect on hover */
.photo-rect .scanline {
  position: absolute; inset: 0; z-index: 2;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,229,255,.025) 3px, rgba(0,229,255,.025) 4px
  );
  background-size: 100% 4px;
  animation: scanline 10s linear infinite;
  pointer-events: none; opacity: 0;
  transition: opacity .3s;
}
.photo-rect:hover .scanline { opacity: 1; }

/* photo bottom label */
.photo-lbl {
  position: absolute; bottom: 18px; left: 50%;
  transform: translateX(-50%); z-index: 4;
  background: rgba(3,3,13,.88); backdrop-filter: blur(12px);
  border: 1px solid var(--bd2); border-radius: 9px;
  padding: .5rem 1.1rem;
  font-family: var(--mono); font-size: .58rem;
  font-weight: 700; color: var(--t);
  display: flex; align-items: center; gap: .45rem;
  white-space: nowrap; letter-spacing: .07em; text-transform: uppercase;
}
.pldot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald); animation: pulse 1.8s infinite;
}

/* side social icon bar */
.p-soc-bar {
  position: absolute; right: -46px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: .45rem;
}
.psoc {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--s1); border: 1px solid var(--bd2);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease); text-decoration: none;
}
.psoc svg { width: 14px; height: 14px; fill: currentColor; color: var(--t2); }
.psoc:hover { transform: translateX(-3px); }
.psoc.gh:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.07); }
.psoc.gh:hover svg { color: var(--t); }
.psoc.li:hover { border-color: rgba(10,102,194,.4); background: rgba(10,102,194,.1); }
.psoc.li:hover svg { color: #0a66c2; }
.psoc.em:hover { border-color: rgba(234,67,53,.4); background: rgba(234,67,53,.08); }
.psoc.em:hover svg { color: #ea4335; }
.psoc.fb:hover { border-color: rgba(24,119,242,.4); background: rgba(24,119,242,.08); }
.psoc.fb:hover svg { color: #1877f2; }
.psoc.ig:hover { border-color: rgba(225,48,108,.4); background: rgba(225,48,108,.08); }
.psoc.ig:hover svg { color: #e1306c; }

/* ================================================================
   ABOUT PAGE — SKILLS
   ================================================================ */
.about-layout {
  display: grid; grid-template-columns: 1fr 365px;
  gap: 5rem; align-items: start;
  padding: 3.5rem 0 5rem;
}
.about-body p {
  color: var(--t2); font-size: .97rem;
  line-height: 1.92; margin-bottom: 1rem;
}
.about-body p strong { color: var(--t); font-weight: 600; }

.sk-group { margin-bottom: 2rem; }
.sk-label {
  font-family: var(--mono); font-size: .57rem;
  font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--t3); margin-bottom: .85rem;
  display: flex; align-items: center; gap: .6rem;
}
.sk-label::after {
  content: ''; flex: 1; height: 1px; background: var(--bd);
}
.pills { display: flex; flex-wrap: wrap; gap: .42rem; }

/* sidebar cards */
.scard {
  background: var(--s1); border: 1px solid var(--bd);
  border-radius: 16px; padding: 1.5rem;
  margin-bottom: 1.2rem; position: relative; overflow: hidden;
}
.scard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
}
.sc-tag {
  font-family: var(--mono); font-size: .57rem;
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--t3); margin-bottom: 1rem;
}
.sc-name {
  font-family: var(--head); font-size: 1.05rem;
  font-weight: 900; color: var(--t);
  letter-spacing: -.02em; line-height: 1.2; margin-bottom: .22rem;
}
.sc-sub  { font-size: .85rem; color: var(--cyan); font-weight: 600; margin-bottom: .2rem; }
.sc-meta { font-size: .82rem; color: var(--t2); }

/* cert list */
.cert-list { display: flex; flex-direction: column; gap: .52rem; }
.cert-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem .9rem; border-radius: 10px;
  background: var(--s2); border: 1px solid var(--bd);
  transition: all .2s var(--ease); cursor: default;
}
.cert-item:hover {
  border-color: var(--bd2); background: var(--s3);
  transform: translateX(4px);
}
.cert-ico {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}
.cert-nm { font-size: .83rem; font-weight: 700; color: var(--t); }
.cert-sm { font-family: var(--mono); font-size: .57rem; color: var(--t3); margin-top: .06rem; }

/* ================================================================
   EXPERIENCE PAGE — TIMELINE
   ================================================================ */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 1.5px;
  background: linear-gradient(180deg, var(--cyan), var(--violet), var(--pink), rgba(255,255,255,.03));
}
.titem { position: relative; margin-bottom: 2.8rem; }
.titem::before {
  content: ''; position: absolute;
  left: -2.44rem; top: .38rem;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--cyan); background: var(--bg);
  transition: box-shadow .2s;
}
.titem:hover::before { box-shadow: 0 0 12px rgba(0,229,255,.4); }
.titem:nth-child(2)::before { border-color: var(--violet); }
.titem:nth-child(2):hover::before { box-shadow: 0 0 12px rgba(124,58,237,.4); }

.tcard {
  background: var(--s1); border: 1px solid var(--bd);
  border-radius: 16px; padding: 1.6rem;
  transition: all .22s var(--ease);
}
.tcard:hover {
  border-color: var(--bd2); background: var(--s2);
  transform: translateX(5px);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}

.t-hdr {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem;
}
.t-title {
  font-family: var(--head); font-size: 1.08rem;
  font-weight: 900; color: var(--t); letter-spacing: -.02em;
}
.t-org { font-size: .88rem; color: var(--cyan); font-weight: 600; margin-top: .15rem; }
.t-loc { font-size: .8rem; color: var(--t2); margin-top: .1rem; }

.tbadge {
  font-family: var(--mono); font-size: .57rem;
  font-weight: 700; letter-spacing: .08em;
  padding: .26rem .72rem; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
}
.tbadge.cur {
  background: rgba(0,229,255,.1);
  border: 1px solid rgba(0,229,255,.25); color: var(--cyan);
}
.tbadge.past {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--bd2); color: var(--t2);
}

.t-ul { list-style: none; display: flex; flex-direction: column; gap: .52rem; }
.t-ul li {
  display: flex; align-items: flex-start;
  gap: .65rem; font-size: .89rem;
  color: var(--t2); line-height: 1.72;
}
.t-ul li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan); flex-shrink: 0; margin-top: .57rem;
}
.t-ul li strong { color: var(--t); font-weight: 600; }

.t-env {
  font-family: var(--mono); font-size: .6rem; color: var(--t3);
  margin-top: 1rem; padding-top: .8rem;
  border-top: 1px solid var(--bd); line-height: 1.9;
}
.t-env strong { color: var(--t2); }

/* ================================================================
   PROJECTS PAGE
   ================================================================ */
.proj-hero { padding: 3.5rem 0 2rem; }
.pfilters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2.5rem; }
.pfbtn {
  font-family: var(--mono); font-size: .61rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .34rem .92rem; border-radius: 7px;
  border: 1px solid var(--bd2); background: transparent;
  color: var(--t2); cursor: pointer; transition: all .18s var(--ease);
}
.pfbtn:hover,
.pfbtn.on {
  background: rgba(0,229,255,.08);
  border-color: rgba(0,229,255,.28); color: var(--cyan);
}

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

/* ---- Project card base ---- */
.pcard {
  border-radius: 18px; overflow: hidden;
  transition: all .28s var(--ease); cursor: default;
  border: 1px solid var(--bd);
  position: relative;
}
.pcard:hover {
  transform: translateY(-7px);
  box-shadow: 0 30px 75px rgba(0,0,0,.55);
}
.pcard.hidden { display: none; }

/* top color bar */
.pcard-bar { height: 2.5px; }

/* card color themes */
.pcard-cyan    { background: linear-gradient(145deg,#030e18,#061826); border-color: rgba(0,229,255,.17); }
.pcard-cyan:hover { border-color: rgba(0,229,255,.42); box-shadow: 0 30px 75px rgba(0,0,0,.55), 0 0 60px rgba(0,229,255,.08); }

.pcard-violet  { background: linear-gradient(145deg,#08061a,#10082a); border-color: rgba(124,58,237,.17); }
.pcard-violet:hover { border-color: rgba(124,58,237,.42); box-shadow: 0 30px 75px rgba(0,0,0,.55), 0 0 60px rgba(124,58,237,.1); }

.pcard-amber   { background: linear-gradient(145deg,#120900,#201100); border-color: rgba(245,158,11,.17); }
.pcard-amber:hover { border-color: rgba(245,158,11,.42); box-shadow: 0 30px 75px rgba(0,0,0,.55), 0 0 60px rgba(245,158,11,.08); }

.pcard-emerald { background: linear-gradient(145deg,#020f08,#031a0e); border-color: rgba(16,185,129,.17); }
.pcard-emerald:hover { border-color: rgba(16,185,129,.42); box-shadow: 0 30px 75px rgba(0,0,0,.55), 0 0 60px rgba(16,185,129,.08); }

/* visual banner */
.pvis {
  height: 172px; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pvis-glow {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.pvis-glow::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 60%, var(--glow-color, rgba(0,229,255,.15)), transparent 65%);
}
.pvico {
  font-size: 3.6rem; position: relative; z-index: 2;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.5));
}
.pfeat-tag {
  position: absolute; top: .75rem; right: .75rem; z-index: 3;
  font-family: var(--mono); font-size: .53rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .65rem; border-radius: 20px; border: 1px solid;
}

/* project body */
.pbody { padding: 1.5rem; }
.pcat {
  font-family: var(--mono); font-size: .56rem;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--t3); margin-bottom: .4rem;
}
.ptitle {
  font-family: var(--head); font-size: 1.12rem;
  font-weight: 900; color: var(--t);
  letter-spacing: -.02em; margin-bottom: .65rem; line-height: 1.2;
}
.pdesc {
  font-size: .87rem; color: var(--t2);
  line-height: 1.82; margin-bottom: 1rem;
}

/* colorful project tags */
.ptags { display: flex; flex-wrap: wrap; gap: .38rem; margin-bottom: 1.1rem; }
.ptag {
  font-family: var(--mono); font-size: .6rem; font-weight: 700;
  padding: .24rem .65rem; border-radius: 6px;
  border: 1px solid; letter-spacing: .03em;
  cursor: default; transition: transform .15s;
}
.ptag:hover { transform: translateY(-1px); }
.ptag-cyan    { color: var(--cyan);    border-color: rgba(0,229,255,.3);    background: rgba(0,229,255,.08);    }
.ptag-violet  { color: #a78bfa;       border-color: rgba(167,139,250,.3);   background: rgba(167,139,250,.08);  }
.ptag-emerald { color: #34d399;       border-color: rgba(52,211,153,.3);    background: rgba(52,211,153,.08);   }
.ptag-amber   { color: var(--amber);  border-color: rgba(245,158,11,.3);    background: rgba(245,158,11,.08);   }
.ptag-pink    { color: #f472b6;       border-color: rgba(244,114,182,.3);   background: rgba(244,114,182,.08);  }
.ptag-blue    { color: #60a5fa;       border-color: rgba(96,165,250,.3);    background: rgba(96,165,250,.08);   }
.ptag-lime    { color: #a3e635;       border-color: rgba(163,230,53,.3);    background: rgba(163,230,53,.08);   }
.ptag-orange  { color: var(--orange); border-color: rgba(249,115,22,.3);    background: rgba(249,115,22,.08);   }
.ptag-teal    { color: #2dd4bf;       border-color: rgba(45,212,191,.3);    background: rgba(45,212,191,.08);   }
.ptag-sky     { color: var(--sky);    border-color: rgba(56,189,248,.3);    background: rgba(56,189,248,.08);   }
.ptag-red     { color: #f87171;       border-color: rgba(248,113,113,.3);   background: rgba(248,113,113,.08);  }
.ptag-indigo  { color: #818cf8;       border-color: rgba(129,140,248,.3);   background: rgba(129,140,248,.08);  }
.ptag-fuchsia { color: #e879f9;       border-color: rgba(232,121,249,.3);   background: rgba(232,121,249,.08);  }

.plinks { display: flex; gap: .5rem; }
.plink {
  display: inline-flex; align-items: center; gap: .38rem;
  font-family: var(--mono); font-size: .6rem; font-weight: 700;
  letter-spacing: .06em; padding: .3rem .82rem; border-radius: 7px;
  border: 1px solid var(--bd2); color: var(--t2);
  background: rgba(255,255,255,.03); transition: all .2s var(--ease);
}
.plink:hover { border-color: rgba(0,229,255,.32); color: var(--cyan); background: rgba(0,229,255,.07); }

/* GitHub CTA banner */
.gh-cta {
  margin-top: 2.5rem; margin-bottom: 3.5rem;
  padding: 1.9rem 2rem;
  background: var(--s1); border: 1px solid var(--bd);
  border-radius: 16px;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1.2rem;
  position: relative; overflow: hidden;
}
.gh-cta::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
}
.gh-cta h3 {
  font-family: var(--head); font-size: 1.1rem;
  font-weight: 900; color: var(--t);
  letter-spacing: -.02em; margin-bottom: .22rem;
}
.gh-cta p { font-size: .87rem; color: var(--t2); }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-top {
  padding: 5rem 2rem 3.5rem; text-align: center;
  background: linear-gradient(180deg, rgba(0,229,255,.03), transparent);
  border-bottom: 1px solid var(--bd);
  position: relative; overflow: hidden;
}
.contact-top::before {
  content: ''; position: absolute;
  top: -280px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,.05), transparent 55%);
  pointer-events: none;
}
.ct-ey {
  font-family: var(--mono); font-size: .58rem;
  font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: .7rem;
}
.ct-title {
  font-family: var(--head);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 900; letter-spacing: -.05em;
  color: var(--t); line-height: .9; margin-bottom: 1rem;
}
.ct-title span {
  background: linear-gradient(135deg, var(--cyan), var(--violet), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ct-bar {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  border-radius: 2px; margin: .9rem auto 1.3rem;
}
.ct-sub {
  font-size: .97rem; color: var(--t2);
  max-width: 520px; margin: 0 auto; line-height: 1.88;
}

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; padding: 4rem 2rem 5rem;
  max-width: 1200px; margin: 0 auto;
}
.contact-left-title {
  font-family: var(--head); font-size: 1.1rem;
  font-weight: 900; color: var(--t);
  letter-spacing: -.02em; margin-bottom: .4rem;
}
.contact-left-sub {
  font-size: .87rem; color: var(--t2);
  margin-bottom: 1.3rem; line-height: 1.82;
}

/* social cards */
.soc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .65rem; margin-bottom: 1.5rem;
}
.soc-card {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1rem; border-radius: var(--rad);
  background: var(--s1); border: 1px solid var(--bd);
  transition: all .22s var(--ease); text-decoration: none;
}
.soc-card:hover { transform: translateY(-2px); }
.soc-ico {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.soc-ico svg { width: 16px; height: 16px; fill: currentColor; }
.soc-nm { font-family: var(--mono); font-size: .65rem; font-weight: 700; color: var(--t); }
.soc-handle { font-size: .72rem; color: var(--t3); margin-top: .04rem; }

.s-gh .soc-ico { background: rgba(255,255,255,.05); color: #cdd9e5; }
.s-gh:hover { border-color: rgba(255,255,255,.22); }
.s-li .soc-ico { background: rgba(10,102,194,.12); color: #0a66c2; }
.s-li:hover { border-color: rgba(10,102,194,.35); box-shadow: 0 6px 20px rgba(10,102,194,.12); }
.s-em .soc-ico { background: rgba(234,67,53,.1); color: #ea4335; }
.s-em:hover { border-color: rgba(234,67,53,.3); }
.s-fb .soc-ico { background: rgba(24,119,242,.1); color: #1877f2; }
.s-fb:hover { border-color: rgba(24,119,242,.3); }
.s-ig .soc-ico { background: rgba(225,48,108,.08); color: #e1306c; }
.s-ig:hover { border-color: rgba(225,48,108,.28); }

/* contact info items */
.ci-list { display: flex; flex-direction: column; gap: .52rem; margin-bottom: 1.5rem; }
.ci-item {
  display: flex; align-items: center; gap: .85rem;
  padding: .75rem 1rem; border-radius: 10px;
  background: var(--s1); border: 1px solid var(--bd);
  transition: all .2s var(--ease);
  text-decoration: none; color: inherit;
}
.ci-item:hover { border-color: var(--bd2); background: var(--s2); }
.ci-ico { font-size: 1.15rem; width: 34px; text-align: center; flex-shrink: 0; }
.ci-label {
  font-family: var(--mono); font-size: .57rem;
  font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--t3);
}
.ci-val { font-size: .88rem; color: var(--t); font-weight: 500; margin-top: .04rem; }

/* contact form */
.form-box {
  background: var(--s1); border: 1px solid var(--bd);
  border-radius: 18px; padding: 2rem;
  position: relative; overflow: hidden;
}
.form-box::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
}
.form-title {
  font-family: var(--head); font-size: 1.3rem;
  font-weight: 900; color: var(--t);
  letter-spacing: -.03em; margin-bottom: .35rem;
}
.form-sub { font-size: .87rem; color: var(--t2); margin-bottom: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.fg { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .75rem; }
.fg label {
  font-family: var(--mono); font-size: .57rem;
  font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--t3);
}
.fi, .fta {
  background: var(--s2); border: 1px solid var(--bd2);
  border-radius: 8px; color: var(--t);
  font-family: var(--body); font-size: .9rem;
  padding: .72rem 1rem; outline: none;
  transition: border .2s, box-shadow .2s; width: 100%;
}
.fi:focus, .fta:focus {
  border-color: rgba(0,229,255,.42);
  box-shadow: 0 0 0 3px rgba(0,229,255,.07);
}
.fi::placeholder, .fta::placeholder { color: var(--t3); }
.fta { resize: vertical; min-height: 128px; }

.sub-btn {
  width: 100%; padding: .9rem; border-radius: 9px;
  border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), #0891b2);
  color: #000; font-family: var(--mono); font-size: .72rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  transition: all .22s var(--ease); position: relative; overflow: hidden;
}
.sub-btn::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s;
}
.sub-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0,229,255,.32);
}
.sub-btn:hover::after { left: 200%; }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  border-top: 1px solid var(--bd);
  padding: 2rem;
  background: rgba(3,3,13,.96);
}
.foot-w {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.foot-logo { display: flex; align-items: center; gap: .55rem; }
.foot-sq {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .6rem; font-weight: 700; color: #000;
}
.foot-n { font-family: var(--head); font-size: .88rem; font-weight: 900; }
.foot-n em { font-style: normal; color: var(--cyan); }
.foot-links { display: flex; gap: .3rem; }
.foot-links a {
  font-family: var(--mono); font-size: .57rem;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .28rem .68rem; border-radius: 6px;
  color: var(--t3); border: 1px solid transparent;
  transition: all .18s; cursor: pointer;
}
.foot-links a:hover {
  color: var(--cyan);
  border-color: rgba(0,229,255,.18);
  background: rgba(0,229,255,.04);
}
.foot-copy { font-family: var(--mono); font-size: .55rem; color: var(--t3); }

/* ================================================================
   RESUME MODAL
   ================================================================ */
.modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.88); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--s1); border: 1px solid var(--bd2);
  border-radius: 20px; padding: 2.5rem;
  max-width: 480px; width: 100%;
  position: relative;
  transform: translateY(20px); transition: transform .25s var(--ease);
  overflow: hidden;
}
.modal-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
}
.modal.open .modal-box { transform: translateY(0); }
.mcls {
  position: absolute; top: 1.4rem; right: 1.4rem;
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--bd2); background: transparent;
  color: var(--t2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all .2s;
}
.mcls:hover { border-color: rgba(248,113,113,.4); color: #f87171; }
.modal-t {
  font-family: var(--head); font-size: 1.5rem;
  font-weight: 900; color: var(--t);
  letter-spacing: -.03em; margin-bottom: .5rem;
}
.modal-s {
  font-size: .9rem; color: var(--t2);
  margin-bottom: 1.8rem; line-height: 1.8;
}
.mbtns { display: flex; flex-direction: column; gap: .6rem; }

/* ================================================================
   CHAT WIDGET
   ================================================================ */
.chat-fab {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 800;
  width: 52px; height: 52px; border-radius: 50%; border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #000; box-shadow: 0 8px 28px rgba(0,229,255,.38);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; transition: all .25s var(--ease);
}
.chat-fab:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 12px 40px rgba(0,229,255,.52); }
.cnotif {
  position: absolute; top: -3px; right: -3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); font-family: var(--mono);
  font-size: .52rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

.chat-panel {
  position: fixed; bottom: 5.2rem; right: 1.8rem; z-index: 800;
  width: 340px; max-height: 460px;
  display: flex; flex-direction: column;
  background: var(--s1); border: 1px solid var(--bd2);
  border-radius: 18px; box-shadow: 0 24px 72px rgba(0,0,0,.75);
  opacity: 0; pointer-events: none;
  transform: translateY(14px) scale(.97);
  transition: all .25s var(--ease);
}
.chat-panel.open {
  opacity: 1; pointer-events: auto;
  transform: translateY(0) scale(1);
}
.chat-hdr {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--bd);
  display: flex; align-items: center; justify-content: space-between;
}
.chat-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; flex-shrink: 0;
}
.chat-info { flex: 1; margin-left: .55rem; }
.chat-nm { font-family: var(--head); font-size: .8rem; font-weight: 900; color: var(--t); }
.chat-st { font-family: var(--mono); font-size: .55rem; color: var(--emerald); }
.chat-x { background: transparent; border: none; color: var(--t3); cursor: pointer; font-size: 1.1rem; padding: .18rem; }
.chat-msgs {
  flex: 1; overflow-y: auto; padding: .85rem;
  display: flex; flex-direction: column; gap: .55rem;
}
.msg { max-width: 86%; padding: .55rem .88rem; border-radius: 10px; font-size: .82rem; line-height: 1.62; }
.msg-bot {
  background: var(--s2); border: 1px solid var(--bd);
  color: var(--t2); border-radius: 4px 10px 10px 10px;
}
.msg-usr {
  background: linear-gradient(135deg, rgba(0,229,255,.12), rgba(124,58,237,.08));
  border: 1px solid rgba(0,229,255,.18);
  color: var(--t); align-self: flex-end;
  border-radius: 10px 4px 10px 10px;
}
.chat-inp-row {
  padding: .65rem; border-top: 1px solid var(--bd);
  display: flex; gap: .45rem;
}
.chat-inp {
  flex: 1; background: var(--s2); border: 1px solid var(--bd2);
  border-radius: 7px; color: var(--t); font-family: var(--body);
  font-size: .83rem; padding: .45rem .75rem; outline: none;
  transition: border .2s;
}
.chat-inp:focus { border-color: rgba(0,229,255,.32); }
.chat-send {
  width: 32px; height: 32px; border-radius: 7px; border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #000; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: transform .18s; flex-shrink: 0;
}
.chat-send:hover { transform: scale(1.1); }

/* ================================================================
   SCROLL TO TOP BUTTON
   ================================================================ */
.scroll-top {
  position: fixed; bottom: 1.8rem; left: 1.8rem; z-index: 800;
  width: 40px; height: 40px; border-radius: 10px; border: none;
  cursor: pointer;
  background: var(--s2); border: 1px solid var(--bd2);
  color: var(--t2); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .22s var(--ease);
  opacity: 0; pointer-events: none; transform: translateY(8px);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { border-color: rgba(0,229,255,.3); color: var(--cyan); background: rgba(0,229,255,.06); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; padding: 2.5rem 1.5rem; }
  .photo-box { order: -1; max-width: 340px; margin: 0 auto; }
  .p-soc-bar { display: none; }
  .h-badges, .hbtns { justify-content: center; }
  .h-info-row { justify-content: center; }
  .h-desc { margin: 0 auto 1rem; }
  .h-stats { max-width: 500px; margin: 0 auto; }
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .soc-grid { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr; }
  .h-stats { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .status-pill { display: none; }
  .wrap { padding: 0 1.2rem; }
  .pgrid { grid-template-columns: 1fr; }
  .foot-w { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
