/* ===== PROJECT DETAIL PAGE (p1) ===== */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}

:root{
  --bg:     #f0eee9;
  --black:  #0d0d0d;
  --dark:   #111116;
  --purple: #6d28d9;
  --purple-l:#7c3aed;
  --white:  #ffffff;
  --gray:   #888;
  --border: rgba(0,0,0,0.08);
}

html{scroll-behavior:smooth;}
body{
  font-family:'Inter',sans-serif;
  background:var(--dark);
  color:var(--white);
  overflow-x:hidden;
}

/* ===== NAVBAR ===== */
.nav{
  position:fixed;top:16px;left:50%;transform:translateX(-50%);
  z-index:200;
  background:rgba(17,17,22,0.92);
  backdrop-filter:blur(16px);
  border-radius:60px;
  border:1px solid rgba(255,255,255,0.08);
  padding:6px 8px;
  box-shadow:0 4px 24px rgba(0,0,0,0.3);
}
.nav-inner{display:flex;align-items:center;gap:2px;}
.nav-item{
  font-family:'Bricolage Grotesque',sans-serif;font-size:13px;font-weight:600;
  letter-spacing:.02em;color:var(--white);text-decoration:none;
  padding:8px 18px;border-radius:60px;
  transition:all .2s;opacity:.6;
}
.nav-item:hover{opacity:1;background:rgba(255,255,255,0.08);}

/* ===== DETAIL LAYOUT ===== */
.detail{padding:150px 24px 80px;min-height:100vh;}
.detail-inner{max-width:1000px;margin:0 auto;}

.sec-label{
  font-family:'Bricolage Grotesque',sans-serif;font-size:11px;font-weight:600;
  letter-spacing:.14em;color:var(--purple-l);margin-bottom:10px;
  text-transform:uppercase;
}

/* ===== HERO ===== */
.d-hero{margin-bottom:44px;}
.d-title{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:800;
  font-size:clamp(34px,7vw,84px);
  letter-spacing:-.03em;line-height:1.0;color:var(--white);
}
.d-sub{
  font-size:15px;line-height:1.8;
  color:rgba(255,255,255,.5);max-width:600px;
  margin-top:20px;
}
.d-meta{
  display:flex;flex-wrap:wrap;gap:36px;
  margin-top:36px;padding-top:24px;
  border-top:1px solid rgba(255,255,255,0.08);
}
.d-meta-item{display:flex;flex-direction:column;gap:4px;}
.d-meta-item span{
  font-size:10px;font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:rgba(255,255,255,.35);
}
.d-meta-item{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:14px;color:var(--white);
}

/* ===== HERO VISUAL ===== */
.d-hero-visual{
  border-radius:14px;overflow:hidden;
  border:1px solid rgba(255,255,255,0.06);
  margin-bottom:80px;line-height:0;
}
.d-hero-visual svg{display:block;}

/* ===== SECTIONS ===== */
.d-section{
  display:grid;grid-template-columns:220px 1fr;
  gap:48px;
  margin-bottom:80px;
}
.d-section h2{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:800;
  font-size:clamp(20px,2.6vw,30px);
  letter-spacing:-.02em;color:var(--white);line-height:1.1;
}
.d-body{display:flex;flex-direction:column;gap:18px;max-width:620px;}
.d-body p{font-size:14.5px;line-height:1.85;color:rgba(255,255,255,.55);}
.d-body p:first-child{color:rgba(255,255,255,.75);}

/* ===== CARDS ===== */
.d-cards{
  display:grid;grid-template-columns:1fr 1fr;gap:14px;
  margin-top:8px;
}
.d-card{
  background:#18181f;border:1px solid rgba(255,255,255,0.06);
  border-radius:12px;padding:22px;
  transition:transform .3s,border-color .3s;
}
.d-card:hover{transform:translateY(-4px);border-color:rgba(124,58,237,0.4);}
.d-card span{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:800;
  font-size:13px;color:var(--purple-l);letter-spacing:.06em;
  display:block;margin-bottom:12px;
}
.d-card h3{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:700;
  font-size:16px;color:var(--white);margin-bottom:6px;
}
.d-card p{font-size:12.5px;line-height:1.7;color:rgba(255,255,255,.45);}

/* ===== STATS ===== */
.d-stats{
  grid-template-columns:1fr;
  display:flex;gap:20px;margin-bottom:80px;
}
.stat-item{
  flex:1;background:#18181f;border:1px solid rgba(255,255,255,0.06);
  border-radius:12px;padding:28px 24px;
  display:flex;flex-direction:column;gap:8px;
}
.stat-num{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:800;
  font-size:clamp(28px,4vw,44px);letter-spacing:-.03em;color:var(--purple-l);
}
.stat-label{font-size:12px;line-height:1.6;color:rgba(255,255,255,.4);}

/* ===== FEATURES LIST ===== */
.d-list{gap:22px;}
.feat{display:flex;gap:16px;align-items:flex-start;}
.feat-dot{
  width:10px;height:10px;border-radius:50%;
  background:var(--purple);flex-shrink:0;margin-top:6px;
  box-shadow:0 0 0 4px rgba(124,58,237,0.15);
}
.feat h3{
  font-family:'Bricolage Grotesque',sans-serif;font-weight:700;
  font-size:16px;color:var(--white);margin-bottom:4px;
}
.feat p{font-size:13.5px;line-height:1.75;color:rgba(255,255,255,.5);}

/* ====== GITHUB BUTTON ========= */
.github-btn {text-decoration: none; display: block; width: fit-content; padding: 14px 28px; border: 1px solid #6d28d9; border-radius: 12px; background: #6d28d9; color: #ffffff; font-size: 15px; font-weight: 600; letter-spacing: 0.3px; cursor: pointer; box-shadow: 0 8px 25px rgba(109, 40, 217, 0.30); transition: all 0.25s ease; } 
.github-btn:hover { background: #7c3aed; border-color: #7c3aed; transform: translateY(-3px); box-shadow: 0 12px 35px rgba(109, 40, 217, 0.45); } 
.github-btn:active { transform: translateY(0) scale(0.97); }

/* ===== FOOTER ===== */
.footer{background:#0a0a0d;border-top:1px solid rgba(255,255,255,.05);padding:22px 24px;}
.footer-inner{
  max-width:1100px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;
}
.footer-name{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:16px;color:var(--white);}
.footer-links{display:flex;gap:22px;}
.footer-links a{
  font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;
  color:rgba(255,255,255,.25);text-decoration:none;transition:color .2s;
}
.footer-links a:hover{color:var(--white);}
.footer-copy{font-size:11px;color:rgba(255,255,255,.18);}

/* ===== REVEAL ===== */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .8s ease,transform .8s ease;}
.reveal.in{opacity:1;transform:none;}
.d-hero.reveal.in,.d-hero-visual.reveal.in,.d-section.reveal.in{transition-delay:.05s;}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .d-section{grid-template-columns:1fr;gap:24px;}
  .d-stats{flex-direction:column;}
  .nav-inner{gap:0;}
  .nav-item{padding:7px 12px;font-size:12px;}
}
@media(max-width:600px){
  .detail{padding:130px 20px 56px;}
  .d-cards{grid-template-columns:1fr;}
  .d-meta{gap:20px;}
  .nav{top:10px;width:calc(100% - 32px);}
  .nav-item{font-size:11px;padding:6px 10px;}
  .footer-inner{flex-direction:column;align-items:flex-start;}
}
