:root{
  --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, sans-serif;
  background:linear-gradient(180deg, #0c1116, #070b0f);
  color:var(--text);
}

a{
  color:var(--accent);
  text-decoration:none;
}

a:hover{
  color:#7cc9dd;
  text-decoration:underline;
}

a:visited{
  color:var(--accent);
}

a:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
}

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

.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{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.brand-name{
  font-weight:700;
  font-size:22px;
  line-height:1.15;
  letter-spacing:0.2px;
}

.brand-sub{
  font-size:12px;
  color:var(--muted);
  line-height:1.25;
}

.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);
  text-decoration:none;
}

.nav-link.active{
  background:rgba(95,176,198,.18);
  color:var(--text);
}

.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/best_sheila.png") center/cover no-repeat;
}

.hero-content,
.bio-card{
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  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;
  color:var(--text);
}

.btn:hover{
  text-decoration:none;
}

.btn.primary{
  background:rgba(95,176,198,.25);
  color:var(--text);
}

.btn.ghost{
  color:var(--muted);
  background:transparent;
}

.btn.linkedin{
  background:rgba(95,176,198,.18);
  color:var(--text);
  border:1px solid rgba(95,176,198,.45);
}

.btn.linkedin:hover{
  background:rgba(95,176,198,.28);
}

.site-footer{
  border-top:1px solid var(--line);
  padding:20px 0;
  margin-top:40px;
}

.footer-small{
  font-size:12px;
  color:var(--muted);
}

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;
}

/* About Page */

.about-grid{
  display:grid;
  grid-template-columns:340px 1fr;
  gap:32px;
  align-items:start;
}

.about-photo-card{
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
}

.about-photo-small{
  max-width:320px;
}

.about-photo{
  width:100%;
  height:auto;
  display:block;
  border-radius:16px;
}

.video-card{
  max-width:900px;
  margin:0 auto;
}

.video-placeholder{
  width:100%;
  max-width:900px;
  min-height:300px;
  height:500px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.03);
  margin-top:18px;
}

.video-container{
  width:100%;
  max-width:700px;
  margin:20px auto 0;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:#000;
  box-shadow:var(--shadow);
}

.video-container video{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16 / 9;
}

.video-transcript{
  max-width:700px;
  margin:22px auto 0;
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px 18px;
}

.video-transcript summary{
  cursor:pointer;
  font-weight:600;
  color:var(--text);
  list-style:none;
}

.video-transcript summary::-webkit-details-marker{
  display:none;
}

.video-transcript summary::after{
  content:" +";
  color:var(--accent);
}

.video-transcript[open] summary::after{
  content:" −";
}

.transcript-content{
  margin-top:14px;
  color:var(--muted);
}

.transcript-content p{
  margin-bottom:14px;
}

.transcript-content p:last-child{
  margin-bottom:0;
}

/* Projects */

.projects-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:24px;
}

.single-project-grid{
  grid-template-columns:1fr;
  max-width:700px;
}

.project-card{
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
}

.project-thumb{
  width:70%;
  height:auto;
  display:block;
  border-radius:16px;
  margin-bottom:14px;
}

.project-title{
  font-size:20px;
  margin:0 0 10px;
}

.project-description{
  color:var(--muted);
  margin:0 0 16px;
}

/* Contact */

.contact-split-card{
  display:grid;
  grid-template-columns:0.9fr 1.2fr;
  max-width:980px;
  margin:0 auto;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  background:var(--panel);
}

.contact-left{
  background:
    linear-gradient(135deg, rgba(95,176,198,.24), rgba(12,17,22,.92)),
    var(--panel);
  border-right:1px solid var(--line);
  display:flex;
  align-items:center;
}

.contact-left-inner{
  padding:36px;
}

.contact-left-inner h2{
  font-size:30px;
  margin-bottom:14px;
}

.contact-left-inner p{
  color:var(--muted);
  line-height:1.6;
}

.contact-mini-info{
  margin-top:28px;
  padding-top:20px;
  border-top:1px solid var(--line);
}

.contact-right{
  background:rgba(255,255,255,.02);
}

.contact-right-inner{
  padding:36px;
}

.required-note{
  color:var(--muted);
  font-size:13px;
  margin-top:-6px;
  margin-bottom:18px;
}

.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.form-field{
  display:flex;
  flex-direction:column;
  margin-bottom:16px;
}

.form-field label{
  color:var(--muted);
  font-size:13px;
  font-weight:600;
  margin-bottom:6px;
}

.refined-contact-form input,
.refined-contact-form textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.04);
  color:var(--text);
  font:inherit;
  padding:13px 14px;
}

.refined-contact-form input:focus,
.refined-contact-form textarea:focus{
  outline:none;
  border-color:rgba(95,176,198,.65);
  box-shadow:0 0 0 3px rgba(95,176,198,.14);
}

.refined-contact-form textarea{
  resize:vertical;
  min-height:150px;
}

.contact-send-button{
  margin-top:4px;
}

/* Social Robotics Media */

.media-grid,
.article-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:24px;
  margin-top:24px;
}

.media-card,
.article-card{
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
}

/* Photo Gallery Fix */

.photo-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 300px));
  justify-content:start;
  gap:24px;
  margin-top:24px;
}

.photo-card{
  width:100%;
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
}

.gallery-photo{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
  border-radius:16px;
  margin-bottom:14px;
  border:1px solid var(--line);
}

.photo-card p{
  color:var(--muted);
  margin:0;
}

/* YouTube Video Grid */

.youtube-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(420px, 1fr));
  gap:30px;
  margin-top:30px;
}

.youtube-card{
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}

.youtube-wrapper{
  position:relative;
  width:100%;
  padding-top:56.25%;
  background:#000;
  margin-bottom:16px;
}

.youtube-wrapper iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:none;
}

.youtube-caption{
  padding:16px 18px 20px;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

/* Responsive */

@media (max-width:900px){
  .hero-inner{
    grid-template-columns:1fr;
  }

  .about-grid{
    grid-template-columns:260px 1fr;
    gap:18px;
  }
}

@media (max-width:820px){
  .contact-split-card{
    grid-template-columns:1fr;
  }

  .contact-left{
    border-right:none;
    border-bottom:1px solid var(--line);
  }

  .form-row{
    grid-template-columns:1fr;
    gap:0;
  }

  .contact-left-inner,
  .contact-right-inner{
    padding:26px;
  }

  .youtube-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:720px){
  .header-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .brand-name{
    font-size:16px;
  }

  .brand-sub{
    font-size:11.5px;
  }

  .nav{
    width:100%;
    justify-content:flex-start;
    gap:8px;
  }

  .nav-link{
    padding:8px 10px;
    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);
  }
}

@media (max-width:700px){
  .about-grid{
    grid-template-columns:1fr;
  }

  .about-photo-small{
    max-width:220px;
    margin:0 auto 20px auto;
  }

  .about-photo-card{
    max-width:420px;
    margin:0 auto;
  }

  .video-placeholder{
    height:300px;
  }

  .projects-grid{
    grid-template-columns:1fr;
  }

  .single-project-grid{
    max-width:100%;
  }

  .gallery-photo{
    height:190px;
  }
}

@media (max-width:480px){
  .brand-name{
    font-size:15px;
  }

  .nav-link{
    font-size:12.5px;
    padding:7px 9px;
  }

  .hero-title{
    font-size:28px !important;
  }

  .hero-subtitle{
    font-size:15px;
    line-height:1.5;
  }

  .hero-content,
  .bio-card{
    padding:20px;
  }

  .video-placeholder{
    height:240px;
  }

  .contact-left-inner,
  .contact-right-inner{
    padding:22px;
  }

  .photo-grid{
    grid-template-columns:1fr;
  }

  .photo-card{
    max-width:300px;
    margin:0 auto;
  }

  .gallery-photo{
    height:180px;
  }
}