/* =========================
   NeuroTech Theme (Palette)
   E9CDD1 / 8F7DA1 / 6794A1 / 4A6C69 / 161517
   ========================= */

   :root{
    --bg: #161517;
    --bg-2: #1b1a1d;
    --surface: rgba(255,255,255,.06);
    --surface-2: rgba(255,255,255,.10);
    --border: rgba(255,255,255,.14);
  
    --text: rgba(255,255,255,.92);
    --text-muted: rgba(255,255,255,.70);
  
    --rose: #E9CDD1;
    --lavender: #8F7DA1;
    --slate: #6794A1;
    --teal: #4A6C69;
  
    /* Accent system */
    --accent: var(--slate);
    --accent-2: var(--lavender);
    --accent-soft: rgba(103,148,161,.22);
    --accent-glow: rgba(103,148,161,.35);
  
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
  }
  
  *{margin:0;padding:0;box-sizing:border-box;}
  
  html{scroll-behavior:smooth;}
  body{
    font-family: Poppins, sans-serif;
    background:
      radial-gradient(1200px 700px at 20% 10%, rgba(221, 205, 233, 0.1), transparent 55%),
      radial-gradient(1000px 650px at 80% 20%, rgba(138, 114, 162, 0.12), transparent 55%),
      radial-gradient(1100px 700px at 60% 90%, rgba(103,148,161,.10), transparent 60%),
      var(--bg);
    color: var(--text);
    overflow-x:hidden;
  }
  
  /* ---------- Global links ---------- */
  a{color: var(--rose);}
  a:hover{color: rgba(205, 233, 233, 0.85);}
  
  /* ---------- Navbar ---------- */
  .navbar{
    position:fixed; top:0; left:0; width:100%;
    padding:1rem 3rem;
    display:flex; justify-content:space-between; align-items:center;
    background: rgba(22,21,23,.72);
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    z-index:1000;
  }
  .nav-left{display:flex; align-items:center; gap:1rem;}
  .logo{width:42px;height:42px;object-fit:contain; filter: drop-shadow(0 0 10px rgba(233,205,209,.15));}
  .nav-title{font-weight:600; letter-spacing:.2px; color: var(--text);}
  .nav-links{list-style:none; display:flex; gap:2rem;}
  .nav-links a{
    text-decoration:none;
    color: rgba(255,255,255,.82);
    font-weight:500;
    position: relative;
    transition: color .2s ease, text-shadow .2s ease;
  }
  .nav-links a:hover{
    color: var(--rose);
    text-shadow: 0 0 12px rgba(233,205,209,.25);
  }
  .nav-links a[style*="color"]{
    /* If you have inline active styles, keep them but make them match theme */
    color: var(--rose) !important;
  }
  
  /* ---------- Hero / headers ---------- */
  .hero-about{
    min-height:100vh;
    padding-top:12rem;
    padding-bottom:6rem;
    text-align:center;
  }
  .hero-about h1{
    font-size:3rem;
    margin-bottom:1.4rem;
    background: linear-gradient(90deg, var(--rose), var(--accent), var(--accent-2));
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    text-shadow: 0 0 30px rgba(233,205,209,.08);
  }
  .hero-about p{
    max-width:850px;
    margin:0 auto;
    font-size:1.15rem;
    color: var(--text-muted);
  }
  
  /* ---------- Buttons ---------- */
  .hero-buttons{margin-top:3rem; display:flex; gap:1.2rem; justify-content:center; flex-wrap:wrap;}
  
  .btn-primary{
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #0f0f12;
    font-weight:700;
    padding:.95rem 2.4rem;
    border-radius: 999px;
    text-decoration:none;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 10px 30px rgba(103,148,161,.18);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  }
  .btn-primary:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(103,148,161,.26);
    filter: brightness(1.03);
  }
  
  .btn-outline{
    border: 1px solid rgba(233,205,209,.45);
    background: rgba(233,205,209,.08);
    color: var(--text);
    padding:.95rem 2.4rem;
    border-radius: 999px;
    text-decoration:none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
  }
  .btn-outline:hover{
    transform: translateY(-2px);
    background: rgba(233,205,209,.14);
    border-color: rgba(233,205,209,.65);
  }
  
  /* ---------- Sections / cards ---------- */
  .who-we-are{
    padding:8rem 10%;
    display:grid; grid-template-columns:1fr 1fr;
    gap:4rem; align-items:center;
  }
  
  #brain-section{
    height:480px;
    position:relative;
    border-radius: var(--radius-lg);
    overflow:hidden;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
  }
  #brain-section iframe{width:100%; height:100%; border:none;}
  .brain-overlay{
    position:absolute; inset:0;
    display:flex; flex-direction:column;
    align-items:center; justify-content:center;
    background: linear-gradient(135deg, rgba(22,21,23,.78), rgba(22,21,23,.92));
    color: var(--rose);
    z-index:10;
    text-align:center;
    transition: opacity .4s ease;
  }
  .brain-overlay.hidden{opacity:0; pointer-events:none;}
  .click-to-start{color: var(--text-muted); margin-top:.5rem;}
  
  .who-text h2{
    font-size:2.2rem;
    margin-bottom:1rem;
    color: var(--text);
  }
  .who-text p{font-size:1.15rem; line-height:1.7; color: var(--text-muted);}
  
  .mnc-highlight{
    padding:8rem 10%;
    text-align:center;
    background:
      radial-gradient(800px 400px at 50% 10%, rgba(103,148,161,.12), transparent 60%),
      rgba(255,255,255,.03);
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .mnc-highlight h2{font-size:2.2rem; margin-bottom:.8rem;}
  .mnc-highlight p{color: var(--text-muted); margin-bottom:2.5rem;}
  
  .nav-portal{
    padding:8rem 10%;
    text-align:center;
  }
  .portal-grid{
    margin-top:2.5rem;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:2rem;
  }
  .portal-grid a{
    background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(103,148,161,.08));
    padding:2rem;
    border-radius: var(--radius-md);
    text-decoration:none;
    color: var(--text);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .portal-grid a:hover{
    transform: translateY(-6px);
    box-shadow: 0 16px 55px rgba(0,0,0,.32);
    border-color: rgba(233,205,209,.28);
  }
  
  .final-cta{
    padding:8rem 10%;
    text-align:center;
  }
  .final-cta h2{font-size:2.2rem; margin-bottom:2rem;}
  
  /* ---------- Chat ---------- */
  #chat-container{
    max-width: 680px;
    margin: 3rem auto;
    display:flex;
    flex-direction:column;
    gap:1rem;
  }
  
  #chat{
    display:flex;
    flex-direction:column;
    gap:.75rem;
    max-height: 420px;
    overflow-y:auto;
    padding-right:.5rem;
  }
  
  .bot-message{
    align-self:flex-start;
    background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(143,125,161,.10));
    border: 1px solid rgba(233,205,209,.22);
    padding: .9rem 1.2rem;
    border-radius: var(--radius-md);
    color: var(--text);
    max-width:85%;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
  }
  
  .user-message{
    align-self:flex-end;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #0f0f12;
    padding:.9rem 1.2rem;
    border-radius: var(--radius-md);
    max-width:85%;
    font-weight:600;
    box-shadow: 0 12px 35px rgba(103,148,161,.20);
  }
  
  #chat-input{
    display:flex;
    gap:.6rem;
  }
  
  #chat-input input{
    flex:1;
    padding:.85rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
    color: var(--text);
    font-size:1rem;
  }
  #chat-input input::placeholder{color: rgba(255,255,255,.45);}
  #chat-input input:focus{
    outline: none;
    border-color: #8F7DA1(233,205,209,.35);
    box-shadow: 0 0 0 4px rgba(233,205,209,.10);
  }
  
  #chat-input button{
    padding:.8rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(90deg, var(--rose), var(--accent));
    color: #0f0f12;
    font-weight:800;
    cursor:pointer;
    transition: transform .2s ease, filter .2s ease;
  }
  #chat-input button:hover{transform: translateY(-2px); filter: brightness(1.03);}
  
  /* ---------- Responsive ---------- */
  @media(max-width:900px){
    .navbar{padding:1rem 1.2rem;}
    .nav-links{gap:1rem;}
    .who-we-are{grid-template-columns:1fr; padding-top:4rem;}
    .hero-about h1{font-size:2.2rem;}
    .hero-about p{font-size:1rem;}
  }
  /* =========================
   ABOUT PAGE: OUR TEAM
   ========================= */

:root{
  --illini-orange: #8F7DA1(211, 93%, 59%);
  --illini-blue: #13294b;
  --card-bg: #8F7DA1(255,255,255,0.06);
  --card-border: #8F7DA1(255,255,255,0.12);
}

/* widen the who-we-are text since we removed the brain */
.who-we-are.no-brain {
  padding-top: 24px;
}
.who-we-are.no-brain .who-text.wide{
  max-width: 980px;
}

/* Our Team section shell */
.our-team{
  padding: 64px 18px;
  position: relative;
}

/* subtle Illini-ish glow (keeps it "on brand" without screaming orange) */
.our-team::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  background:
    radial-gradient(800px 280px at 18% 0%, rgba(163, 101, 191, 0.18), transparent 60%),
    radial-gradient(700px 260px at 88% 30%, rgba(19,41,75,0.22), transparent 60%);
  opacity: 0.9;
}

.our-team .section-head{
  position: relative;
  max-width: 980px;
  margin: 0 auto 24px auto;
}
.our-team .section-head h2{
  margin-bottom: 10px;
}
.our-team .section-head p{
  opacity: 0.9;
  line-height: 1.6;
}

/* grid */
.team-grid{
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

/* card */
.team-card{
  grid-column: span 6;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;

  padding: 16px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);

  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.team-card:hover{
  transform: translateY(-4px);
  border-color: rgba(145, 124, 224, 0.35);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

/* image */
.team-photo{
  width: 140px;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #8F7DA1(255, 255, 255, 0.14);
  background: rgba(0,0,0,0.18);
}
.team-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* content */
.team-info{
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}

.team-top{
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.team-role{
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: 0.2px;
}

.team-badge{
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(19,41,75,0.22);
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
}

/* key-value rows */
.team-meta{
  display:flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.45;
}

.meta-row{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}

.meta-label{
  opacity: 0.78;
  font-weight: 600;
  font-size: 0.88rem;
}

.meta-value{
  opacity: 0.96;
  font-size: 0.95rem;
}

/* orange accent line */
.team-accent-line{
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(118, 183, 209, 0.95), rgba(255,85,46,0.0));
  opacity: 0.9;
}

/* placeholder card (optional) */
.team-card--placeholder{
  border-style: dashed;
  opacity: 0.95;
}

/* responsive */
@media (max-width: 980px){
  .team-card{
    grid-column: span 12;
    grid-template-columns: 120px 1fr;
  }
  .team-photo{
    width: 120px;
    height: 120px;
  }
  .meta-row{
    grid-template-columns: 100px 1fr;
  }
}

@media (max-width: 520px){
  .team-card{
    grid-template-columns: 1fr;
  }
  .team-photo{
    width: 100%;
    height: 220px;
  }
  .team-top{
    align-items: flex-start;
    flex-direction: column;
  }
  .meta-row{
    grid-template-columns: 1fr;
  }
}
