html{
  --bg:#0c1116;
  --panel:#101a24;
  --text:#e8edf2;
  --muted:#b5c0c9;
  --accent:#5fb0c6;
  --line:rgba(255,255,255,.12);
  --radius:20px;
  --shadow:0 18px 60px rgba(0,0,0,.45);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  background:linear-gradient(180deg,#0c1116,#070b0f);
  color:var(--text);
}
/* ===== Link Color Theme ===== */

a{
  color: var(--accent);
  text-decoration: none;
}

a:hover{
  color: #7cc9dd; /* lighter accent for hover */
  text-decoration: underline;
}

a:visited{
  color: var(--accent);
}

a:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap{
  max-width:1300px;
  margin:0 auto;
  padding:0 20px;
}

/* Header */

.site-header{
  border-bottom:1px solid var(--line);
  background:var(--bg);
}

.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
}

.brand-name{
  font-weight:700;
  font-size:22px;
}

.brand-sub{
  font-size:12px;
  color:var(--muted);
}

/* Nav */

.nav{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.nav-link{
  font-size:13px;
  color:var(--muted);
  text-decoration:none;
  padding:8px 12px;
  border-radius:999px;
}

.nav-link:hover{
  background:rgba(255,255,255,.08);
  color:var(--text);
}

.nav-link.active{
  background:rgba(95,176,198,.18);
  color:var(--text);
}

/* Hero */

.hero{
  padding:40px 0;
}

.hero-inner{
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:24px;
}

.hero-visual{
  min-height:420px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  background:
    linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,.7)),
    url("images/sheila_wide_2.png") center 50% / 125% no-repeat;
}

.hero-content{
  background:var(--panel);
  border-radius:var(--radius);
  padding:28px;
  box-shadow:var(--shadow);
}

.status-pill{
  display:inline-block;
  font-size:12px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(95,176,198,.2);
  margin-bottom:16px;
}

.hero-title{
  margin:0 0 12px;
  font-size:24px;
}

.hero-subtitle{
  color:var(--muted);
  margin:0 0 20px;
}

.hero-actions{
  display:flex;
  gap:12px;
  margin-bottom:16px;
  flex-wrap:wrap;
}

.btn{
  padding:10px 14px;
  border-radius:12px;
  font-size:13px;
  text-decoration:none;
  border:1px solid var(--line);
  display:inline-block;
}

.btn.primary{
  background:rgba(95,176,198,.25);
  color:var(--text);
}

.btn.ghost{
  color:var(--muted);
  background:transparent;
}

/* Footer */

.site-footer{
  border-top:1px solid var(--line);
  padding:20px 0;
  margin-top:40px;
}

.footer-small{
  font-size:12px;
  color:var(--muted);
}

/* Responsive */

@media(max-width:900px){
  .hero-inner{
    grid-template-columns:1fr;
  }
}
/* ===== Mobile Header Polish ===== */

.brand{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width: 0; /* prevents overflow issues */
}

.brand-name{
  line-height: 1.15;
  letter-spacing: 0.2px;
}

.brand-sub{
  line-height: 1.25;
}

/* Make header gracefully stack on smaller screens */
@media (max-width: 720px){
  .header-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand-name{
    font-size: 16px;   /* slightly smaller on phones */
  }

  .brand-sub{
    font-size: 11.5px;
  }

  .nav{
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .nav-link{
    padding: 8px 10px;
  }
}

/* Extra-tight phones */
@media (max-width: 420px){
  .brand-name{
    font-size: 15px;
  }

  .nav-link{
    font-size: 12.5px;
    padding: 7px 9px;
  }
}
@media (max-width: 720px){
  .nav-link{
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
  }
  .nav-link.active{
    border-color: rgba(95,176,198,.45);
    background: rgba(95,176,198,.12);
  }
}

/* ===== Content links (NOT nav, NOT buttons) ===== */

/* Links inside main content area */
main a:not(.btn):not(.nav-link){
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

main a:not(.btn):not(.nav-link):hover{
  color: #7cc9dd;
}

/* Keep nav looking like nav */
.nav-link{
  color: var(--muted);
  text-decoration: none;
}

/* Keep buttons looking like buttons */
.btn{
  color: var(--text);
  text-decoration: none;
}

.btn.ghost{
  color: var(--muted);
}

.gallery-photo{
  width:100%;
  max-height:220px;
  object-fit:cover;
  border-radius:16px;
  display:block;
  margin-bottom:14px;
  border:1px solid var(--line);
}

/* ===== Social Robotics Photo Gallery ===== */

.photo-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:20px;
}

.photo-card{
  max-width:300px;
  margin:0 auto;
}

.gallery-photo{
  width:100% !important;
  height:200px !important;
  object-fit:cover;
  display:block;
  border-radius:16px;
  margin-bottom:14px;
  border:1px solid var(--line);
}
