@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root{
  --bg:#080c10;
  --panel:#0e141a;
  --panel-2:#10171e;
  --panel-3:#131b23;
  --line:#27313a;
  --line-soft:#1c252d;
  --text:#f3f5f7;
  --muted:#929ca6;
  --muted-2:#68737e;
  --gold:#d7b36b;
  --gold-soft:#f0d8a8;
  --green:#55c981;
  --blue:#67a8ff;
  --purple:#a474ff;
  --orange:#c27a43;
  --teal:#5ab9a8;
  --yellow:#caa13d;
  --radius:12px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{
  min-height:100vh;
  overflow-x:hidden;
  background:
    linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px),
    var(--bg);
  background-size:40px 40px;
  color:var(--text);
  font-family:"Inter",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button{color:inherit}
.ambient{
  position:fixed;
  z-index:-1;
  border-radius:50%;
  filter:blur(150px);
  pointer-events:none;
}
.ambient-a{width:420px;height:420px;left:-180px;top:100px;background:rgba(49,91,121,.11)}
.ambient-b{width:360px;height:360px;right:-130px;top:240px;background:rgba(200,149,70,.055)}

.topbar{
  position:sticky;
  top:0;
  z-index:100;
  height:76px;
  padding:0 clamp(18px,4vw,52px);
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:28px;
  background:rgba(8,12,16,.91);
  border-bottom:1px solid var(--line-soft);
  backdrop-filter:blur(16px);
}
.brand{display:flex;align-items:center;gap:13px;font-size:.72rem;letter-spacing:4px;white-space:nowrap}
.brand img{width:40px;height:40px;object-fit:contain}
.brand b{font-weight:400;color:#9ba3ab}
.desktop-nav{display:flex;gap:34px}
.desktop-nav a{position:relative;padding:28px 0;color:#9099a2;font-size:.75rem}
.desktop-nav a:hover,.desktop-nav a.active{color:#fff}
.desktop-nav a.active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:#e6e6e6}
.top-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px}
.search-btn{
  min-width:245px;height:38px;padding:0 11px;
  display:flex;align-items:center;gap:9px;
  border:1px solid var(--line);border-radius:8px;
  background:#0b1117;color:#68727d;font-size:.65rem;cursor:pointer;
}
.search-btn kbd{margin-left:auto;padding:2px 6px;border:1px solid var(--line);border-radius:5px;background:#131a21;color:#7f8993;font-size:.54rem}
.button{
  min-height:38px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:14px;
  border:1px solid var(--line);border-radius:8px;font-size:.7rem;font-weight:600;transition:.2s ease;
}
.button:hover{transform:translateY(-1px);border-color:#46515c}
.button-gold{background:linear-gradient(135deg,#1b1812,#14110d);border-color:#574729;box-shadow:inset 0 0 18px rgba(214,179,107,.05);color:#f2ede3}
.button-light{background:#f0f0ed;color:#101318;border-color:#f0f0ed}
.button-ghost{background:#0c1218;color:#aeb5bc}
.menu-btn{display:none;border:1px solid var(--line);background:#10161c;border-radius:8px;width:40px;height:40px;cursor:pointer}

.mobile-nav{
  position:fixed;inset:76px 0 auto;z-index:99;
  display:none;flex-direction:column;padding:18px;
  background:#0b1015;border-bottom:1px solid var(--line);
}
.mobile-nav.active{display:flex}
.mobile-nav a{padding:13px 4px;border-bottom:1px solid var(--line-soft);font-size:.8rem;color:#aeb6bd}

.shell{
  width:min(1500px,calc(100% - 28px));
  margin:16px auto 28px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 350px;
  gap:16px;
}
.main-column,.sidebar-column{min-width:0}
.sidebar-column{display:flex;flex-direction:column;gap:16px}
.cardless{border:0}

.hero{
  min-height:330px;padding:30px 34px;
  display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:35px;align-items:center;
  border-radius:var(--radius);
  background:radial-gradient(circle at 72% 40%,rgba(213,180,112,.055),transparent 27%);
}
.status-pill{
  width:max-content;padding:6px 11px;margin-bottom:17px;display:flex;align-items:center;gap:8px;
  border:1px solid var(--line);border-radius:999px;background:#10161c;color:#a9b1b9;font-size:.62rem;
}
.status-pill i{width:6px;height:6px;border-radius:50%;background:#57d17d;box-shadow:0 0 8px #57d17d}
.hero h1{font-size:clamp(2.65rem,4.7vw,5.15rem);line-height:1.03;letter-spacing:-4px}
.hero h1 span{color:#e4e7e9}
.hero-copy>p{max-width:640px;margin-top:16px;color:#8d97a0;font-size:.84rem;line-height:1.7}
.hero-actions{margin-top:21px;display:flex;gap:10px;flex-wrap:wrap}
.grid-icon{font-size:.9rem}
.hero-mark{position:relative;height:270px;display:grid;place-items:center}
.hero-mark img{width:min(270px,82%);height:auto;object-fit:contain;filter:drop-shadow(0 8px 28px rgba(0,0,0,.35))}
.binary{position:absolute;top:15px;right:10px;color:#27313a;font-family:monospace;font-size:.72rem;line-height:1.25}
.hero-glint{position:absolute;width:130px;height:1px;right:21%;top:53%;background:linear-gradient(90deg,transparent,#e2c28b,transparent);box-shadow:0 0 12px rgba(226,194,139,.5)}

.metrics-bar{
  min-height:88px;padding:12px 18px;display:grid;grid-template-columns:repeat(4,1fr);
  border:1px solid var(--line);border-radius:var(--radius);background:rgba(13,19,25,.72);
}
.metric{display:flex;align-items:center;gap:13px;padding:0 17px;border-right:1px solid var(--line-soft)}
.metric:last-child{border-right:0}
.metric-icon{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;background:#10171e;color:#d8dde1}
.metric strong{display:block;font-size:1rem}
.metric small{display:block;margin-top:2px;color:#717b85;font-size:.62rem}

.section-block,.activity-section{margin-top:18px}
.section-title-row{display:flex;align-items:center;justify-content:space-between;gap:18px}
.section-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.section-title h2{font-size:.95rem}
.section-title p{color:#69737d;font-size:.58rem}
.cube,.activity-icon{color:#e5eaed;font-size:1rem}
.subtle-link{color:#78828b;font-size:.6rem}
.filters{margin:10px 0 13px;display:flex;gap:6px;flex-wrap:wrap}
.filter{padding:5px 10px;border:1px solid var(--line);border-radius:6px;background:#0d1319;color:#717b85;font-size:.57rem;cursor:pointer}
.filter.active,.filter:hover{color:#fff;background:#1a2128}

.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.project-card{
  min-height:155px;padding:14px 15px;display:flex;flex-direction:column;
  border:1px solid var(--line);border-radius:9px;background:linear-gradient(145deg,#10171d,#0c1217);
  transition:.2s ease;
}
.project-card:hover{border-color:#3b4853;transform:translateY(-1px)}
.project-card.hidden{display:none}
.project-head{display:flex;gap:11px;align-items:center}
.project-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:8px;border:1px solid rgba(255,255,255,.07);font-size:.8rem}
.project-icon.green{background:#193721;color:#79d392}.purple{background:#2a2041;color:#b18cff}.blue{background:#152d4d;color:#77b7ff}.orange{background:#422a19;color:#d89763}.teal{background:#153734;color:#70cbbb}.gold{background:#3c3115;color:#e0bd61}.yellow{background:#3c3214;color:#e9c458}
.project-head h3{font-size:.76rem;font-weight:600}
.project-head p{margin-top:2px;color:#737d87;font-size:.56rem}
.project-desc{margin-top:11px;color:#7d8790;font-size:.61rem;line-height:1.55}
.project-meta{margin-top:auto;padding-top:11px;display:grid;grid-template-columns:auto 1fr auto;gap:10px;border-top:1px solid var(--line-soft);color:#76808a;font-size:.56rem}
.project-meta .live{color:#80bd8f}
.project-meta .live::first-letter{color:#4bd36b}
.project-meta a{justify-self:end;color:#b6bec4}

.activity-section{padding-bottom:12px}
.activity-section select{padding:6px 9px;border:1px solid var(--line);border-radius:7px;background:#0e141a;color:#8a949e;font-size:.56rem}
.activity-layout{margin-top:14px;display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,.8fr);gap:14px}
.heatmap-wrap,.activity-feed{min-height:180px;padding:13px;border:1px solid var(--line);border-radius:9px;background:#0d1318}
.heatmap-months{display:grid;grid-template-columns:repeat(8,1fr);color:#626c75;font-size:.49rem}
.heatmap{height:100px;margin-top:7px;display:grid;grid-template-columns:repeat(32,1fr);grid-template-rows:repeat(5,1fr);gap:3px}
.heatmap i{display:block;border-radius:2px;background:#17231b}
.heatmap i.l1{background:#1b3423}.heatmap i.l2{background:#285033}.heatmap i.l3{background:#397443}.heatmap i.l4{background:#56a85e}
.heatmap-legend{margin-top:10px;display:flex;align-items:center;gap:4px;color:#5d6770;font-size:.48rem}
.heatmap-legend i{width:10px;height:10px;border-radius:2px;background:#17231b}
.heatmap-legend i:nth-of-type(2){background:#1b3423}.heatmap-legend i:nth-of-type(3){background:#285033}.heatmap-legend i:nth-of-type(4){background:#397443}.heatmap-legend i:nth-of-type(5){background:#56a85e}
.activity-feed{display:flex;flex-direction:column;justify-content:center}
.activity-feed>div{display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid var(--line-soft)}
.activity-feed>div:last-child{border-bottom:0}
.feed-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;font-size:.6rem}
.green-bg{background:#193426;color:#74d39a}.purple-bg{background:#28223b;color:#b49aff}.blue-bg{background:#16263c;color:#80b8ff}.dark-bg{background:#20262c;color:#b8bec4}
.activity-feed p{font-size:.61rem}.activity-feed small{color:#59636d;font-size:.5rem}

.side-card{padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(145deg,#10171d,#0d1318)}
.side-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.side-title h2{font-size:.9rem}
.side-title span{color:#aeb5bc;font-size:.8rem}
.side-card>p{margin-top:11px;color:#87919a;font-size:.68rem;line-height:1.55}
.chips{margin-top:13px;display:flex;gap:6px;flex-wrap:wrap}
.chips span{padding:4px 7px;border:1px solid var(--line);border-radius:5px;color:#8c96a0;font-size:.54rem}
.mini-list{margin-top:14px;list-style:none;display:grid;gap:8px;color:#89939c;font-size:.61rem}
.mini-list li{display:flex;align-items:center;gap:8px}
.mini-list i{width:7px;height:7px;border-radius:50%;background:#58cb79;box-shadow:0 0 7px rgba(88,203,121,.5)}
.side-action{margin-top:16px;min-height:39px;padding:0 13px;display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid var(--line);border-radius:7px;background:#151c23;font-size:.62rem}
.service-list{margin-top:9px;display:flex;flex-direction:column}
.service-list a{min-height:32px;display:grid;grid-template-columns:21px 1fr auto;align-items:center;color:#8d97a0;font-size:.62rem}
.service-list a:hover{color:#fff}.service-list b{font-weight:400;color:#79838c}
.tech-grid{margin-top:13px;display:grid;grid-template-columns:repeat(5,1fr);gap:9px}
.tech-grid div{text-align:center}
.tech-grid b{width:34px;height:34px;margin:auto;display:grid;place-items:center;border:1px solid var(--line);border-radius:7px;background:#151b21;color:#d8dde1;font-size:.62rem}
.tech-grid span{display:block;margin-top:4px;color:#606b74;font-size:.47rem}
.contact-card>a{margin-top:10px;display:block;color:#b0b7bd;font-size:.62rem}

.search-modal{position:fixed;inset:0;z-index:200;display:none;align-items:flex-start;justify-content:center;padding-top:12vh}
.search-modal.active{display:flex}
.search-backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.7);backdrop-filter:blur(5px)}
.search-dialog{position:relative;width:min(620px,calc(100% - 28px));border:1px solid #38434d;border-radius:12px;background:#0d1318;box-shadow:0 30px 80px rgba(0,0,0,.45);overflow:hidden}
.search-input-wrap{height:58px;padding:0 15px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line)}
.search-input-wrap input{flex:1;border:0;outline:0;background:transparent;color:#fff;font-size:.78rem}
.search-input-wrap kbd{padding:3px 6px;border:1px solid var(--line);border-radius:5px;color:#79838c;font-size:.52rem}
.search-results{padding:15px;color:#737d86;font-size:.65rem}
.search-result{padding:10px;border-radius:7px;display:flex;justify-content:space-between;gap:10px}
.search-result:hover{background:#151c22;color:#fff}

@media(max-width:1180px){
  .shell{grid-template-columns:1fr}
  .sidebar-column{display:grid;grid-template-columns:repeat(2,1fr)}
  .contact-card{grid-column:1/-1}
  .search-btn{display:none}
}
@media(max-width:820px){
  .topbar{grid-template-columns:1fr auto;padding-inline:16px}
  .desktop-nav,.button-gold{display:none}
  .menu-btn{display:block}
  .hero{grid-template-columns:1fr;padding:30px 18px}
  .hero-mark{height:220px}
  .metrics-bar{grid-template-columns:repeat(2,1fr)}
  .metric:nth-child(2){border-right:0}.metric:nth-child(-n+2){border-bottom:1px solid var(--line-soft)}
  .project-grid{grid-template-columns:repeat(2,1fr)}
  .activity-layout{grid-template-columns:1fr}
}
@media(max-width:560px){
  .shell{width:min(100% - 18px,1500px)}
  .brand span{display:none}
  .hero h1{font-size:3rem;letter-spacing:-3px}
  .metrics-bar{grid-template-columns:1fr;padding:0}
  .metric{min-height:66px;border-right:0;border-bottom:1px solid var(--line-soft)}
  .metric:last-child{border-bottom:0}
  .project-grid{grid-template-columns:1fr}
  .sidebar-column{grid-template-columns:1fr}
  .contact-card{grid-column:auto}
  .section-title-row{align-items:flex-start;flex-direction:column}
  .tech-grid{grid-template-columns:repeat(5,1fr)}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}


/* =========================================================
   V1 POLISH — preserves the original layout and character
   ========================================================= */

/* Keep every logo inside a safe area; never crop the mark. */
.brand img,
.hero-mark img{
  display:block;
  object-fit:contain;
  object-position:center;
}

.brand{
  min-width:0;
}

.hero-mark{
  overflow:visible;
  padding:12px 18px;
}

.hero-mark img{
  max-width:100%;
  max-height:245px;
}

.contact-placeholder{
  opacity:.5;
  cursor:not-allowed;
  pointer-events:none;
}

/* Improve readability without changing the original dashboard layout. */
.project-desc,
.side-card>p,
.hero-copy>p{
  text-wrap:pretty;
}

.project-card h3{
  letter-spacing:-.01em;
}

.search-btn:focus-visible,
.button:focus-visible,
.menu-btn:focus-visible,
.filter:focus-visible,
a:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
}

/* Small visual refinement: cleaner cards and hover hierarchy. */
.project-card,
.side-card,
.metrics-bar{
  box-shadow:0 10px 35px rgba(0,0,0,.08);
}

.project-card:hover{
  box-shadow:0 14px 42px rgba(0,0,0,.16);
}

@media(max-width:820px){
  .topbar{
    height:70px;
  }

  .mobile-nav{
    inset:70px 0 auto;
  }

  .hero-mark{
    min-height:230px;
    height:auto;
  }

  .hero-mark img{
    max-height:210px;
  }
}

@media(max-width:560px){
  /* Keep the brand visible instead of hiding the whole wordmark. */
  .brand{
    gap:9px;
  }

  .brand span{
    display:inline;
    max-width:145px;
    overflow:hidden;
    text-overflow:ellipsis;
    font-size:.58rem;
    letter-spacing:2px;
  }

  .brand img{
    width:34px;
    height:34px;
    flex:0 0 34px;
  }

  .hero{
    padding-top:24px;
    padding-bottom:24px;
  }

  .hero-mark{
    padding-inline:6px;
  }

  .hero-mark img{
    width:min(230px,78vw);
    max-height:none;
  }

  .binary{
    right:4px;
    font-size:.6rem;
  }
}

/* Final portfolio integration */
.project-meta a{
  font-size:.54rem;
  white-space:nowrap;
}
