/* Global */
body {
  font-size: 16px;
  line-height: 1.65;
  color: #1f2937;
}

main.content {
  max-width: 1100px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.profile-pic {
  width: 360px;
  max-width: 100%;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.hero-text h2 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.08rem;
  max-width: 720px;
}

/* Open-to-work banner */
.open-to-work {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #e6f4ea;
  color: #1a7f37;
  border: 1px solid #b7dfbf;
  border-radius: 999px;
  padding: 0.3em 0.85em;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.open-to-work::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a7f37;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  margin: 0.35rem 0.35rem 0.35rem 0;
}

.btn-primary {
  background: #2563eb;
  color: white !important;
}

.btn-outline {
  border: 1px solid #d1d5db;
  color: #111827 !important;
  background: white;
}

/* Credibility strip */
.cred-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.cred-strip span {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
}

/* Focus strip */
.focus-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 3rem 0;
}

.focus-strip span {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
}

/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.project-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 1.45rem;
  background: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  transition: 0.2s ease;
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}

.project-card h3 {
  margin-top: 0.9rem;
  margin-bottom: 0.65rem;
  font-size: 1.45rem;
  line-height: 1.18;
}

.featured-card {
  min-height: 430px;
}

.project-tech {
  color: #2563eb;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.card-link {
  margin-top: auto;
  font-weight: 800;
}

/* Project type badges */
.project-type {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 0.35em 0.7em;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.project-type.industry {
  background: #e6f4ea;
  color: #1a7f37;
  border: 1px solid #b7dfbf;
}

.project-type.ml {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.project-type.research {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

/* Mini metrics inside featured cards */
.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.1rem 0;
}

.mini-metric {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.8rem;
  font-size: 0.85rem;
}

.mini-metric strong {
  display: block;
  font-size: 1.15rem;
  color: #111827;
}

/* Difficulty indicators */
.difficulty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: auto 0 1rem 0;
  padding-top: 0.85rem;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 700;
}

.difficulty {
  border-radius: 999px;
  padding: 0.3em 0.7em;
  font-size: 0.75rem;
  font-weight: 800;
}

.difficulty.advanced {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.difficulty.intermediate {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* Card action links */
.card-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.card-button,
.card-link {
  font-weight: 800;
  text-decoration: none;
}

.card-button {
  color: #111827 !important;
}

.card-link {
  color: #2563eb !important;
}

/* Metrics */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.metric-card {
  border-left: 4px solid #2563eb;
  background: #f8fafc;
  padding: 1rem;
  border-radius: 12px;
}

.metric-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.metric-number {
  font-size: 1.8rem;
  font-weight: 800;
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.35em 0.6em;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 700;
  margin: 0.15rem 0.1rem;
}

/* Skills */
.skill-section {
  display: grid;
  gap: 0.75rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 1.25rem 0;
  padding: 0;
  list-style: none;
}

.skill-pill {
  display: inline-block;
  background: #f0f4ff;
  color: #3b5bdb;
  border: 1px solid #c5d0fa;
  border-radius: 999px;
  padding: 0.35em 0.75em;
  font-size: 0.85rem;
  font-weight: 600;
}

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 2rem 0;
}

.about-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  min-height: 230px;
}

.about-card h3 {
  margin-top: 0;
}

.about-card .anchorjs-link {
  display: none;
}

/* Projects page */
.projects-hero {
  margin-bottom: 2.5rem;
}

.projects-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.projects-hero p {
  font-size: 1.08rem;
  max-width: 850px;
}

/* Full portfolio listing cards without images */
.quarto-grid-item {
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  padding: 1.25rem !important;
  min-height: 220px;
  max-height: 300px;
}

.quarto-grid-item:hover {
  transform: translateY(-4px);
  transition: 0.2s ease;
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}

.quarto-grid-item img,
.quarto-grid-item .card-img-top,
.quarto-grid-item .thumbnail-image {
  display: none !important;
}

.quarto-grid-item .card-title {
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.18;
  margin-bottom: 0.45rem;
}

.quarto-grid-item .card-text {
  font-size: 0.88rem;
  line-height: 1.45;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quarto-grid-item .listing-categories {
  margin: 0.35rem 0 0.75rem 0;
}

.quarto-grid-item .listing-category {
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
}

/* Case study pages */
.case-hero {
  margin-bottom: 2rem;
}

.case-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.case-hero h2 {
  font-size: 1.55rem;
  color: #374151;
  font-weight: 800;
  margin-bottom: 1rem;
  max-width: 900px;
}

.case-hero p {
  font-size: 1.05rem;
  max-width: 850px;
}

.case-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin: 2rem 0 3rem 0;
}

.summary-item {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem;
}

/* Snapshot cards */
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin: 1.5rem 0 2.5rem 0;
}

.snapshot-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: 4px solid #2563eb;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.snapshot-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin: 1.5rem 0 2rem 0;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.feature-card h3 {
  margin-top: 0;
}

/* Architecture diagram */
.architecture-card {
  margin: 2rem 0;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.architecture-horizontal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  max-width: 680px;
  margin: 0 auto;
}

.architecture-step {
  display: grid;
  grid-template-columns: 48px 64px 1fr;
  gap: 1rem;
  align-items: center;
  min-height: auto;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #2563eb;
  color: white;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 1.8rem;
  margin-bottom: 0;
  text-align: center;
}

.architecture-step h3 {
  margin-top: 0;
  margin-bottom: 0.15rem;
  font-size: 1.05rem;
}

.architecture-step p {
  margin-bottom: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

.flow-arrow-horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 1.5rem;
  font-weight: 800;
  transform: rotate(90deg);
  margin: 0.15rem 0;
}

.guardrail-box {
  margin: 2rem auto 0 auto;
  padding: 1.25rem;
  border-radius: 16px;
  background: #fff1f2;
  border: 1px solid #fecaca;
  display: flex;
  gap: 1rem;
  align-items: center;
  max-width: 680px;
}

.guardrail-icon {
  font-size: 2rem;
}

.architecture-caption {
  text-align: center;
  color: #64748b;
  font-style: italic;
  margin-top: 1.25rem;
}

/* Mobile */
@media (max-width: 800px) {
  .hero,
  .project-grid,
  .metric-grid,
  .about-grid,
  .case-summary,
  .feature-grid,
  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .profile-pic {
    width: 100%;
  }

  .hero-text h1,
  .projects-hero h1,
  .case-hero h1 {
    font-size: 2.3rem;
  }

  .hero-text h2 {
    font-size: 1.3rem;
  }

  .featured-card {
    min-height: auto;
  }

  .mini-metrics {
    grid-template-columns: 1fr;
  }

  .card-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .architecture-card {
    padding: 1.25rem;
  }

  .architecture-step {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.4rem;
  }

  .step-number {
    margin: 0 auto;
  }

  .guardrail-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Resume page */
.resume-hero {
  margin-bottom: 2.5rem;
}

.resume-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.resume-hero p {
  font-size: 1.08rem;
  max-width: 850px;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.resume-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2.5rem 0;
}

.resume-fact {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.15rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.resume-fact h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.resume-fact p {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .resume-facts {
    grid-template-columns: 1fr;
  }

  .resume-hero h1 {
    font-size: 2.3rem;
  }
}

/* Contact page */
.contact-hero{
    max-width:800px;
    margin-bottom:3rem;
}

.contact-hero h1{
    font-size:3rem;
    font-weight:800;
    margin-bottom:.75rem;
}

.contact-hero p{
    font-size:1.08rem;
}

.contact-grid{

    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:1.25rem;

    margin:2rem 0 3rem;

}

.contact-card{

    border:1px solid #e5e7eb;
    border-radius:18px;

    padding:1.5rem;

    background:white;

    transition:.2s;

    box-shadow:0 10px 25px rgba(0,0,0,.04);

}

.contact-card:hover{

    transform:translateY(-4px);

    box-shadow:0 18px 35px rgba(0,0,0,.08);

}

.contact-card h3{

    margin-top:0;
    margin-bottom:.75rem;

}

.contact-card a{

    word-break:break-word;
    font-weight:600;

}

.interest-pills{

    display:flex;

    flex-wrap:wrap;

    gap:.75rem;

    margin:1.5rem 0 3rem;

}

.interest-pills span{

    background:#eff6ff;

    color:#2563eb;

    padding:.55rem 1rem;

    border-radius:999px;

    font-weight:700;

}

.availability-box{

    background:#f8fafc;

    border-left:5px solid #2563eb;

    padding:2rem;

    border-radius:16px;

    margin-top:2rem;

}

.availability-box h3{

    margin-top:0;

}

.availability-box ul{

    margin-top:.75rem;

}

@media(max-width:800px){

.contact-grid{

grid-template-columns:1fr;

}

}

/* Career Timeline */
.timeline {
  position: relative;
  margin: 2rem 0 3.5rem 0;
  padding-left: 2rem;
  border-left: 3px solid #dbeafe;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.4rem;
  padding: 1.15rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.55rem;
  top: 1.35rem;
  width: 16px;
  height: 16px;
  background: #2563eb;
  border: 4px solid #eff6ff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #dbeafe;
}

.timeline-year {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 800;
}

.timeline-item h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.timeline-item p {
  margin-bottom: 0;
  color: #4b5563;
}

/* Footer */

.site-footer {

    margin-top: 80px;

    padding: 45px 0;

    border-top: 1px solid #e5e7eb;

    text-align: center;

    background: #fafafa;

}

.footer-container{

    max-width:900px;

    margin:auto;

}

.footer-container h3{

    font-weight:700;

    margin-bottom:8px;

}

.footer-links{

    display:flex;

    justify-content:center;

    gap:30px;

    margin:22px 0;

}

.footer-links a{

    text-decoration:none;

    font-weight:600;

}

.footer-small{

    color:#6b7280;

    font-size:.9rem;

}