:root{
  --bg:#0b0d12;
  --text:#e7e9ee;
  --muted:#a5adbd;
  --border:rgba(255,255,255,.12);
  --shadow:0 12px 34px rgba(0,0,0,.38);
  --radius:18px;
  --panel:rgba(255,255,255,.03);
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}

body{
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1000px 600px at 20% -10%, rgba(120,140,255,.25), transparent 60%),
    radial-gradient(800px 500px at 85% 0%, rgba(255,120,200,.18), transparent 55%),
    var(--bg);
  color:var(--text);
  line-height:1.5;
}

a{color:inherit;text-decoration:none;}
.container{width:min(1120px,calc(100% - 40px));margin:0 auto;}

/* ---------------- Nav ---------------- */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(10px);
  background:rgba(11,13,18,.68);
  border-bottom:1px solid var(--border);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
  gap:16px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.brand-logo{
  height:36px; /* overridden inline in HTML to 63px */
  width:auto;
  display:block;
  border-radius:10px;
  box-shadow:0 8px 18px rgba(0,0,0,.25);
}

.brand-name{
  font-weight:750;
  letter-spacing:.2px;
  white-space:nowrap;
}

.links{display:flex;gap:16px;}
.links a{color:var(--muted);}
.links a:hover{color:var(--text);}

.menu-btn{
  display:none;
  background:transparent;
  border:1px solid var(--border);
  color:var(--text);
  padding:8px 12px;
  border-radius:999px;
}

/* ---------------- Headings / text ---------------- */
h1{
  font-size:clamp(30px,4vw,52px);
  margin:14px 0 10px;
  line-height:1.06;
}
h2{font-size:28px;margin:0 0 10px;}
h3{margin:0 0 8px;}

.muted{color:var(--muted);}

.badge{
  display:inline-block;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  padding:6px 10px;
  border-radius:999px;
  color:var(--muted);
  font-size:14px;
}

/* ---------------- Buttons ---------------- */
.cta{display:flex;gap:12px;margin-top:18px;flex-wrap:wrap;}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  background:#fff;
  color:#0b0d12;
  font-weight:700;
  border:1px solid rgba(255,255,255,.15);
  box-shadow:var(--shadow);
  cursor:pointer;
}

.btn:hover{transform:translateY(-1px);}

.btn.ghost{
  background:transparent;
  color:var(--text);
  box-shadow:none;
}

/* ---------------- Sections / surfaces ---------------- */
.section{padding:56px 0;}

.section.alt{
  background:rgba(255,255,255,.02);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.hero{padding:70px 0 24px;}

.hero-inner{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:18px;
  align-items:start;
}

.sub{
  color:var(--muted);
  font-size:18px;
  max-width:70ch;
}

.hero-card,.tile,.contact-card,.team-card,.project-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.hero-card{padding:18px;position:sticky;top:76px;}

.divider{
  height:1px;
  background:var(--border);
  margin:16px 0;
}

.mini-title{font-weight:700;margin-bottom:6px;}
.mini-text{color:var(--muted);}

.mini-list{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--muted);
}
.mini-list li{margin:8px 0;}

/* ---------------- Grids ---------------- */
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:18px;
}
.grid.two{grid-template-columns:repeat(2,1fr);}

.tile{padding:16px;}
.tile p{color:var(--muted);margin:0 0 10px;}

.text-link{color:var(--text);opacity:.9;}
.text-link:hover{opacity:1;text-decoration:underline;}

/* ---------------- Contact ---------------- */
.contact-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:16px;
  margin-top:14px;
  align-items:start;
}

.form{display:grid;gap:12px;}
label{display:grid;gap:6px;color:var(--muted);}

input,textarea{
  width:100%;
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  color:var(--text);
}

input:focus,textarea:focus{
  outline:2px solid rgba(255,255,255,.25);
  outline-offset:2px;
}

.contact-card{padding:16px;}

.social{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:8px;
}

/* ---------------- Footer ---------------- */
.footer{
  border-top:1px solid var(--border);
  padding:18px 0;
  background:rgba(0,0,0,.2);
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* =========================================================
   TEAM + PROJECTS (shared structure)
   ========================================================= */
.team-grid,.project-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin-top:18px;
}

.team-card,.project-card{
  overflow:hidden;
}

/* Team photos: cropped but controlled */
.team-photo{
  width:100%;
  height:280px;
  object-fit:cover;
  object-position:center 30%;
  display:block;
  background:rgba(255,255,255,.03);
  border-bottom:1px solid var(--border);
}

/* Per-person tuning */
.team-photo.zakir{object-position:center 25%;}
.team-photo.towhid{object-position:center 15%;}

.team-body{
  padding:16px;
  display:grid;
  gap:8px;
}
.team-body h3{margin:0;}
.team-body p{margin:0;color:var(--muted);}

/* Projects photos: OPTION B (no crop) + padding for diagrams */
.project-photo{
  width:100%;
  height:260px;
  object-fit:contain;
  object-position:center;
  display:block;
  background:rgba(255,255,255,.03);
  padding:14px; /* makes diagrams look intentional */
  border-bottom:1px solid var(--border);
}

.project-body{
  padding:16px;
  display:grid;
  gap:8px;
}
.project-body h3{margin:0;}
.project-body p{margin:0;color:var(--muted);}

/* Subtle hover (no layout jump on page) */
.tile,.team-card,.project-card{
  transition:transform 160ms ease;
}
.tile:hover,.team-card:hover,.project-card:hover{
  transform:translateY(-2px);
}

/* ---------------- Responsive ---------------- */
@media (max-width:920px){
  .hero-inner{grid-template-columns:1fr;}
  .hero-card{position:static;}

  .grid{grid-template-columns:1fr;}
  .grid.two{grid-template-columns:1fr;}

  .contact-grid{grid-template-columns:1fr;}

  .team-grid,.project-grid{grid-template-columns:1fr;}
  .team-photo{height:240px;}
  .project-photo{height:240px;padding:12px;}

  .links{display:none;}
  .menu-btn{display:inline-flex;}

  .links.open{
    display:flex;
    position:absolute;
    top:58px;
    right:20px;
    flex-direction:column;
    background:rgba(11,13,18,.95);
    border:1px solid var(--border);
    border-radius:14px;
    padding:10px;
    min-width:180px;
    gap:10px;
  }
}
