/* ============================================
   Samar Mahboubi — Portfolio Stylesheet
   Shared across all case studies
   Updated to match home page visual identity
   ============================================ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#050208;
  --bg2:#0d0a12;
  --bg3:#130f1a;
  --text:#EDE9F6;
  --text-muted:#9B8FBB;
  --text-dim:#5a5070;
  --accent:#C084FC;
  --accent2:#A855F7;
  --border:rgba(192,132,252,0.12);
  --white:#fff;
  --serif:'Cinzel Decorative',serif;
  --sans:'DM Sans',sans-serif;
}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  font-weight:300;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* NAV */
nav{
  position:fixed;top:0;left:0;right:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:1.5rem 3rem;
  background:rgba(5,2,8,0.85);
  backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
}
.nav-avatar{
  display:flex;align-items:center;gap:.75rem;
  text-decoration:none;color:var(--text);
}
.nav-avatar img{
  width:38px;height:38px;border-radius:50%;
  object-fit:cover;
  border:1px solid var(--border);
  filter:grayscale(30%);
}
.nav-name{
  font-family:var(--serif);
  font-size:.75rem;font-weight:400;
  letter-spacing:.08em;
  color:var(--accent);
}
.nav-links{display:flex;gap:2rem;list-style:none}
.nav-links a{
  font-size:.8rem;font-weight:400;letter-spacing:.08em;text-transform:uppercase;
  color:var(--text-muted);text-decoration:none;
  transition:color .2s;
  position:relative;
}
.nav-links a::after{
  content:'';position:absolute;bottom:-2px;left:0;right:0;
  height:1px;background:var(--accent);
  transform:scaleX(0);transition:transform .3s;
}
.nav-links a:hover{color:var(--accent)}
.nav-links a:hover::after{transform:scaleX(1)}
.nav-badge{
  font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;
  padding:.4rem 1rem;border:1px solid var(--border);
  color:var(--text-muted);border-radius:2rem;
}

/* HERO */
.hero{
  padding:8rem 3rem 4rem;
  max-width:1100px;margin:0 auto;
}
.hero-tag{
  display:inline-block;
  font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;
  color:var(--accent);font-weight:500;
  margin-bottom:1.5rem;
}
.hero h1{
  font-family:var(--serif);
  font-size:clamp(1.8rem,4vw,3.2rem);
  line-height:1.2;
  font-weight:400;
  margin-bottom:1.5rem;
  color:var(--text);
  text-shadow:0 0 40px rgba(192,132,252,0.2);
}
.hero h1 em{
  font-style:italic;
  color:var(--accent);
  text-shadow:0 0 20px rgba(192,132,252,0.4);
}
.hero-desc{
  font-size:1.05rem;color:var(--text-muted);
  max-width:560px;line-height:1.8;
  margin-bottom:3rem;
}
.meta-row{
  display:flex;flex-wrap:wrap;gap:0;
  border-top:1px solid var(--border);
  border-left:1px solid var(--border);
  margin-bottom:4rem;
}
.meta-item{
  flex:1;min-width:140px;
  padding:1.25rem 1.5rem;
  border-right:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.meta-label{
  font-size:.65rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--text-dim);margin-bottom:.4rem;
}
.meta-value{font-size:.9rem;color:var(--text);font-weight:400}

/* COVER IMAGE */
.cover-wrap{
  width:100%;max-width:1100px;margin:0 auto;
  padding:0 3rem;
}
.cover-img{
  width:100%;
  border-radius:8px;
  display:block;
  border:1px solid var(--border);
  object-fit:cover;
  max-height:580px;
}

/* PHONE MOCKUP STRIP */
.phones-strip{
  padding:5rem 3rem;
  max-width:1100px;margin:0 auto;
  display:flex;gap:1.5rem;
  overflow-x:auto;
  scrollbar-width:none;
}
.phones-strip::-webkit-scrollbar{display:none}
.phone-wrap{
  flex:0 0 auto;
  width:200px;
  opacity:0;
  transform:translateY(30px);
  transition:opacity .6s ease, transform .6s ease;
}
.phone-wrap.visible{opacity:1;transform:translateY(0)}
.phone-wrap:nth-child(2){transition-delay:.1s}
.phone-wrap:nth-child(3){transition-delay:.2s}
.phone-wrap:nth-child(4){transition-delay:.3s}
.phone-wrap:nth-child(5){transition-delay:.4s}
.phone{
  position:relative;
  background:#130f1a;
  border-radius:28px;
  padding:8px;
  border:2px solid rgba(192,132,252,0.15);
  box-shadow:0 30px 60px rgba(0,0,0,.7),
             0 0 40px rgba(124,58,237,0.08),
             inset 0 1px 0 rgba(192,132,252,0.08);
}
.phone::before{
  content:'';position:absolute;top:12px;left:50%;transform:translateX(-50%);
  width:50px;height:5px;background:#1a1525;border-radius:3px;z-index:2;
}
.phone img{
  width:100%;border-radius:22px;display:block;
}
.phone-label{
  margin-top:.75rem;
  font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;
  color:var(--text-dim);text-align:center;
}

/* SECTION */
.section{
  padding:5rem 3rem;
  max-width:1100px;margin:0 auto;
  opacity:0;transform:translateY(40px);
  transition:opacity .7s ease, transform .7s ease;
}
.section.visible{opacity:1;transform:translateY(0)}

.section-label{
  font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;
  color:var(--accent);margin-bottom:1.2rem;font-weight:500;
}
.section h2{
  font-family:var(--serif);
  font-size:clamp(1.4rem,2.5vw,2rem);
  font-weight:400;line-height:1.3;
  margin-bottom:1.5rem;
  color:var(--text);
  text-shadow:0 0 30px rgba(192,132,252,0.15);
}
.section p{
  font-size:1rem;color:var(--text-muted);
  max-width:680px;line-height:1.9;
  margin-bottom:1.2rem;
}
.section p strong{color:var(--text);font-weight:500}

/* DIVIDER IMG */
.img-break{
  width:100%;
  padding:0;margin:0;
  overflow:hidden;
}
.img-break img{
  width:100%;height:auto;
  display:block;
  opacity:0;transform:scale(1.03);
  transition:opacity .8s ease, transform .8s ease;
}
.img-break img.visible{opacity:1;transform:scale(1)}

/* 2-col images */
.img-grid-2{
  display:grid;grid-template-columns:1fr 1fr;gap:1rem;
  margin-top:2.5rem;
  padding:0 3rem;
  max-width:1100px;margin-left:auto;margin-right:auto;
}
.img-grid-2 img{
  width:100%;border-radius:6px;
  border:1px solid var(--border);
  object-fit:cover;height:280px;
}

/* STATS ROW */
.stats-row{
  display:flex;gap:0;
  border:1px solid var(--border);
  border-radius:6px;
  margin-top:2.5rem;
  overflow:hidden;
}
.stat{
  flex:1;padding:2rem;
  border-right:1px solid var(--border);
  text-align:center;
}
.stat:last-child{border-right:none}
.stat-num{
  font-family:var(--serif);font-size:2.2rem;
  color:var(--accent);line-height:1;
  margin-bottom:.5rem;
  text-shadow:0 0 20px rgba(192,132,252,0.4);
}
.stat-desc{font-size:.8rem;color:var(--text-muted);line-height:1.5}

/* QUOTE */
.pull-quote{
  border-left:2px solid var(--accent);
  padding:1.5rem 2rem;
  margin:3rem 0;
  background:rgba(192,132,252,0.04);
  border-radius:0 6px 6px 0;
}
.pull-quote p{
  font-family:var(--serif);font-size:1.1rem;
  color:var(--text);line-height:1.7;
  font-style:italic;
  max-width:none;
}

/* EMOTION SECTION */
.emotion-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:1rem;
  margin-top:2rem;
}
.emotion-card{
  background:var(--bg3);
  border:1px solid var(--border);
  border-radius:6px;padding:1.5rem;
}
.emotion-card-label{
  font-size:.65rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--accent);margin-bottom:.75rem;font-weight:500;
}
.emotion-card h4{
  font-family:var(--serif);font-size:.9rem;font-weight:400;
  color:var(--text);margin-bottom:.75rem;
}
.emotion-tags{display:flex;flex-wrap:wrap;gap:.5rem}
.tag{
  font-size:.72rem;padding:.3rem .75rem;
  border:1px solid var(--border);border-radius:2rem;
  color:var(--text-muted);
  letter-spacing:.04em;
}

/* DESIGN SYSTEM */
.ds-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;
  margin-top:2rem;
}
.ds-card{
  background:var(--bg3);border:1px solid var(--border);
  border-radius:6px;padding:1.25rem;
}
.ds-card-title{
  font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--text-dim);margin-bottom:.6rem;
}
.ds-card-body{font-size:.88rem;color:var(--text-muted);line-height:1.6}
.color-swatches{display:flex;gap:.35rem;margin-top:.75rem}
.swatch{width:20px;height:20px;border-radius:3px}

/* REFLECTION */
.reflection-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1px;
  background:var(--border);
  border:1px solid var(--border);border-radius:6px;
  overflow:hidden;
  margin-top:2rem;
}
.ref-item{
  background:var(--bg2);padding:2rem;
}
.ref-num{
  font-family:var(--serif);font-size:1.6rem;
  color:var(--accent);line-height:1;margin-bottom:1rem;
  text-shadow:0 0 20px rgba(192,132,252,0.4);
}
.ref-title{font-size:.9rem;font-weight:500;color:var(--text);margin-bottom:.5rem}
.ref-text{font-size:.85rem;color:var(--text-muted);line-height:1.7}

/* HORIZONTAL DIVIDER */
.hdivider{
  border:none;border-top:1px solid var(--border);
  max-width:1100px;margin:0 auto;
}

/* FOOTER */
footer{
  padding:4rem 3rem;
  max-width:1100px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  border-top:1px solid var(--border);
  flex-wrap:wrap;gap:1rem;
}
.footer-left{font-size:.8rem;color:var(--text-dim)}
.footer-links{display:flex;gap:1.5rem;list-style:none}
.footer-links a{
  font-size:.8rem;color:var(--text-dim);
  text-decoration:none;transition:color .2s;
}
.footer-links a:hover{color:var(--accent)}

/* SCROLL ANIMATIONS */
@keyframes fadeUp{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}

/* RESPONSIVE */
@media(max-width:768px){
  nav{padding:1.2rem 1.5rem}
  .nav-links{display:none}
  .hero{padding:6rem 1.5rem 3rem}
  .cover-wrap,.section,.img-grid-2{padding-left:1.5rem;padding-right:1.5rem}
  .phones-strip{padding:3rem 1.5rem}
  .meta-row{flex-direction:column}
  .meta-item{min-width:unset}
  .emotion-grid,.ds-grid,.reflection-grid{grid-template-columns:1fr}
  .stats-row{flex-direction:column}
  .stat{border-right:none;border-bottom:1px solid var(--border)}
  .stat:last-child{border-bottom:none}
  footer{flex-direction:column;align-items:flex-start}
}
