@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500&display=swap');

body {
  margin: 0;
  font-family: 'DM Sans', Arial, sans-serif;
  background: #faf8f5;
}

.content {
  margin-left: 200px;
  padding: 2.5rem 2.5rem 2.5rem 2rem;
  background: #faf8f5;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 150px;
  height: 100%;
  background: #222;
  color: white;
  padding: 20px;
}

.sidebar h2 {
  margin-top: 0;
}

.sidebar a {
  display: block;
  color: #ddd;
  text-decoration: none;
  margin: 15px 0;
}

.sidebar a:hover {
  color: white;
}

/* Main Content */
.content {
  margin-left: 200px;
  padding: 20px;
}

section {
  margin-bottom: 30px;
}

.active {
  color: white;
  font-weight: bold;
}

.profile-pic {
  width: 200px;
  height: 200px;
  object-fit: contain;
  display: block;
  margin: 16px 0;
}

/* About */
.about-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e8e4de;
}

.profile-pic {
  width: 130px;
  height: 130px;
  border-radius: 5%;
  object-fit: cover;
  object-position: 50% 10%; /* pulls the frame up toward the top of the photo */
  flex-shrink: 0;
}

.about-name {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  font-weight: 400;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.about-tagline {
  font-size: 15px;
  color: #888;
  font-weight: 300;
  margin: 0 0 16px;
  font-style: italic;
}

.about-links {
  display: flex;
  gap: 8px;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.about-link:hover {
  background: #f0ede8;
  border-color: #bbb;
}

.about-section {
  margin-bottom: 2.5rem;
}

.about-bio {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  max-width: 600px;
  margin: 0 0 0.9rem;
}

.about-section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #aaa;
  margin: 0 0 10px;
}

/* Cats section */
.cats-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: white;
  border: 1px solid #e8e4de;
  border-radius: 8px;
  padding: 1.25rem;
  max-width: 560px;
}

.cats-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.cats-title {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  font-weight: 400;
  margin: 0 0 6px;
  color: #333;
}

.cats-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #777;
  margin: 0;
}


/* Experience */
.experience-item {
  padding: 0 0 2rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.experience-item h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 6px;
}

.company-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
  color: #999;
  margin-left: 8px;
}

.exp-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.role {
  font-size: 13px;
  font-weight: 500;
  color: #444;
}

.date {
  font-size: 13px;
  color: #999;
  font-weight: 300;
}

.experience-item ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

.experience-item li {
  margin-bottom: 0.5rem;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

/* Education */
.education-item {
  padding: 0 0 2rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
  position: relative;
}

.education-item h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 4px;
}

.edu-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.degree {
  font-size: 15px;
  font-weight: 500;
  color: #222;
  margin: 0 0 4px;
}

.concentration {
  font-size: 13px;
  color: #666;
  font-weight: 300;
  font-style: italic;
  margin: 0 0 12px;
}

.gpa {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 20px;
  background: #f4f4f4;
  color: #555;
  border: 1px solid #e0e0e0;
  margin-left: 0;
}

.coursework-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  background: #f8f8f8;
  color: #555;
  border: 1px solid #e8e8e8;
}

/* Leadership */
.leadership-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.leadership-item h2 {
  margin-bottom: 0.2rem;
}

.role {
  font-weight: 600;
  color: #444;
}

.date {
  font-size: 0.9rem;
  color: #777;
}

.leadership-item ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

.leadership-item li {
  margin-bottom: 0.4rem;
}

/* Portfolio */
.portfolio-item {
  padding: 0 0 2rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.portfolio-item h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 6px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.motive {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 8px;
}

.portfolio-item ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

.portfolio-item li {
  margin-bottom: 0.5rem;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

/* Portfolio index — make project titles linkable */
.portfolio-item h2 a {
  color: inherit;
  text-decoration: none;
}
.portfolio-item h2 a::after {
  content: ' →';
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #aaa;
  transition: color 0.15s, transform 0.15s;
  display: inline-block;
}
.portfolio-item h2 a:hover {
  color: #111;
}
.portfolio-item h2 a:hover::after {
  color: #555;
  transform: translateX(3px);
}
 
 
/* ============================================================
   Project detail pages (chroniclog.html, reddit-client.html…)
   ============================================================ */
 
/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 1.8rem;
}
.breadcrumb a {
  color: #888;
  text-decoration: none;
}
.breadcrumb a:hover { color: #444; }
 
/* Project header */
.project-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e8e4de;
}
.project-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  font-weight: 400;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.project-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.meta-label {
  font-size: 12px;
  color: #999;
  font-weight: 300;
  font-style: italic;
}
.project-links {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  padding: 5px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}
.project-link:hover { background: #f0ede8; border-color: #bbb; }
 
/* Hero banner — fanned phone screenshots */
.hero-banner {
  width: 70%;
  background: #f0ede8;
  border: 1px solid #e8e4de;
  border-radius: 10px;
  margin-bottom: 2.5rem;
  padding: 2rem 1.5rem 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  min-height: 280px;
  box-sizing: border-box;
}
.hero-phone {
  flex-shrink: 0;
  width: 130px;
  border-radius: 18px;
  border: 1px solid #ddd;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  object-fit: cover;
  object-position: top;
}
.hero-phone:nth-child(1) { height: 220px; transform: rotate(-3deg) translateY(10px); }
.hero-phone:nth-child(2) { height: 250px; transform: rotate(0deg); }
.hero-phone:nth-child(3) { height: 220px; transform: rotate(3deg) translateY(10px); }
.hero-phone:nth-child(4) { height: 200px; transform: rotate(5deg) translateY(20px); }
 
.hero-banner-placeholder {
  width: 100%;
  min-height: 280px;
  background: #f0ede8;
  border: 1px dashed #ccc;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #bbb;
  font-size: 13px;
  margin-bottom: 2.5rem;
}
.hero-banner-placeholder .hint {
  font-size: 11px;
  color: #ccc;
  max-width: 320px;
  text-align: center;
  line-height: 1.6;
}
 
/* Project sections */
.project-section {
  margin-bottom: 2.5rem;
}
.project-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 10px;
}
.project-section p,
.project-section li {
  font-size: 14px;
  line-height: 1.75;
  color: #444;
}
.project-section ul {
  padding-left: 1.2rem;
  margin: 0;
}
.project-section li {
  margin-bottom: 0.5rem;
}
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #aaa;
  margin: 0 0 10px;
}
 
/* Callout box */
.callout {
  background: white;
  border: 1px solid #e8e4de;
  border-left: 3px solid #333;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}
 
/* Horizontal scroll carousel */
.carousel-wrap {
  position: relative;
  margin-top: 12px;
}
.carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: #ddd #f0ede8;
}
.carousel::-webkit-scrollbar { height: 5px; }
.carousel::-webkit-scrollbar-track { background: #f0ede8; border-radius: 10px; }
.carousel::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.carousel-item {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 200px;
}
.carousel-item img {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  border: 1px solid #e8e4de;
  display: block;
  object-fit: contain;
  object-position: top;
}
.carousel-item .tile-placeholder {
  width: 100%;
  height: 360px;
  background: #f0ede8;
  border: 1px dashed #ccc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 12px;
}
.carousel-caption {
  font-size: 12px;
  color: #999;
  margin-top: 7px;
  font-style: italic;
  line-height: 1.4;
}

/* ============================================================
   Mobile responsive
   ============================================================ */
 
@media (max-width: 600px) {
 
  /* Turn sidebar into a top nav bar */
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 12px 16px;
    box-sizing: border-box;
  }
 
  .sidebar h2 {
    width: 100%;
    margin-bottom: 8px;
    font-size: 16px;
  }
 
  .sidebar a {
    margin: 0;
    padding: 5px 10px;
    font-size: 13px;
  }
 
  /* Content no longer needs left margin */
  .content {
    margin-left: 0;
    padding: 1.25rem;
  }
 
  /* About hero: stack photo above text */
  .about-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
 
  .about-name {
    font-size: 28px;
  }
 
  /* Wrap links so they don't overflow */
  .about-links {
    flex-wrap: wrap;
  }
 
  /* Cats row: stack on small screens */
  .cats-row {
    flex-direction: column;
    max-width: 100%;
  }
 
  .cats-photo {
    width: 100%;
    height: 180px;
  }
 
  /* Hero banner: smaller phones */
  .hero-banner {
    gap: 8px;
    padding: 1rem 0.75rem 0.75rem;
    min-height: 200px;
  }
 
  .hero-phone {
    width: 90px;
  }
  .hero-phone:nth-child(1) { height: 160px; }
  .hero-phone:nth-child(2) { height: 180px; }
  .hero-phone:nth-child(3) { height: 160px; }
  .hero-phone:nth-child(4) { height: 145px; }
 
  /* Project header */
  .project-header h1 {
    font-size: 26px;
  }
 
  /* Carousel items a bit narrower */
  .carousel-item {
    width: 160px;
  }
}