body {
    margin: 0;
    background: rgb(20, 20, 20);
    text-align: center;
    font-family: "Charter", Georgia, "Times New Roman", serif;
    color: antiquewhite;
    padding-bottom: 50px;
}
html { scroll-behavior: smooth; }

.sidebar {
  position: fixed; /* Keeps it fixed in place */
  left: 65px; /* Moves it to the left */
  top: 115px; /* Adjusts spacing from the top */
  width: 200px; /* Set a fixed width */
  text-align: left; /* Aligns text to the left */
  transition: transform 0.3s ease-in-out;
  color: antiquewhite;
}

#names {
  font-size: 15px;
  margin-top: 30px;
}

/* Hide sidebar when toggled */
.sidebar.hidden {
  transform: translateX(-100%);
}

#ToggleSidebar {
  position: fixed;
  left: 55px;
  margin-top: 80px;
  border: none;
  background-color: rgb(20, 20, 20);
  font-size: 25px;
  transition: 0.3s;
  color: antiquewhite;
}

#ToggleSidebar:hover {
  font-size: 35px;
  cursor: pointer;
}

/* Change link color */
a {
  color: antiquewhite; /* Change to any color you want */
  text-decoration: none; /* Remove underline */
  font-size: 18px;
}

/* Change link color on hover */
a:hover {
  color: gray; /* Change to any color you prefer */
  text-decoration: underline; /* Optional: underline on hover */
  
}

.sidebar a {
  display: block;
  margin-bottom: 20px;
}

#title {
  color: antiquewhite;
  font-size: 20px;
  font-weight: lighter;
  font-style: italic;
}

#BigTitle {
  font-size: 55px;
  color: antiquewhite;
  margin-top: 80px;
}

#topictitle {
  margin-top: 60px;
  font-size: 50px;
}

#date {
  color: rgb(135, 134, 134);
  font-weight: 2px;
  font-size: 12px;
  margin-top: 50px;
}

.content {
  position: absolute;
  text-align: left;
  left: 300px;
  right: 60px; /* widen content area */
  display: block;
  padding-bottom: 500px;
}

#maintext {
  font-size: 20px;
}

#source {
  text-decoration: underline;
  display: inline-block;
  margin-bottom: 25px;
}
#source:hover {
  color: gray;
}

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 80px;
}

.hero-media {
  flex: 0 0 auto;
}

.hero-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b2b2b, #3a3a3a);
  border: 2px solid #555;
}

.hero-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #555;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-title {
  margin: 0;
  font-size: 40px;
}

.hero-statement {
  margin: 0;
  font-size: 20px;
  color: antiquewhite;
}

.hero-subhead {
  margin: 0;
  font-size: 16px;
  color: rgb(170, 170, 170);
}

.availability-pill {
  display: inline-block;
  width: fit-content;
  background: #2a2a2a;
  border: 1px solid #555;
  color: antiquewhite;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
  margin-top: 6px;
}

/* CTA buttons */
.cta-row {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-block;
  padding: 8px 14px;
  background: antiquewhite;
  color: #141414;
  border-radius: 8px;
  font-weight: 600;
}

.btn:hover {
  filter: brightness(0.9);
}

.btn.btn-secondary {
  background: #2a2a2a;
  color: antiquewhite;
  border: 1px solid #555;
}

/* PDF embed */
.pdf-embed {
  margin-top: 16px;
  border: 1px solid #555;
  border-radius: 8px;
  overflow: hidden;
  background: #1e1e1e;
}

.pdf-embed iframe {
  width: 100%;
  height: 900px;
  border: none;
  background: #1e1e1e;
}

/* PDF.js viewer */
.pdf-controls {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  /* Match viewer width and center */
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.pdf-controls #pageInfo {
  color: rgb(200, 200, 200);
  font-size: 14px;
}

.pdf-viewer {
  margin-top: 12px;
  border: 1px solid #555;
  border-radius: 8px;
  overflow: auto;
  background: #1e1e1e;
  padding: 8px;
  /* Constrain inline PDF size to improve clarity */
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.pdf-viewer canvas {
  width: 100%;
  height: auto;
  display: block;
}

/* Generic sections for single page */
.section {
  margin-top: 120px;
}

.section h2 {
  font-size: 36px;
  margin: 0 0 8px 0;
}

.section p {
  font-size: 18px;
  color: rgb(200, 200, 200);
}

/* Bio images with text wrap */
.bio-photo {
  width: 330px;
  height: 220px;
  background: linear-gradient(135deg, #2b2b2b, #3a3a3a);
  border: 1px solid #555;
  border-radius: 10px;
  object-fit: cover;
}
.bio-photo.right { float: right; margin: 0 0 12px 16px; }
.bio-photo.left { float: left; margin: 10px 16px 12px 0; }

/* Clear floats at end of bio section */
#bio::after { content: ""; display: table; clear: both; }

@media (max-width: 700px) {
  .bio-photo { width: 240px; height: 160px; }
}

/* Contact row */
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.contact-item {
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-item .label {
  color: rgb(170, 170, 170);
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 800px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  display: block;
  border: 1px solid #555;
  border-radius: 10px;
  background: #1e1e1e;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  filter: brightness(1.05);
}

.project-thumb {
  height: 160px;
  background: linear-gradient(135deg, #2b2b2b, #3a3a3a);
  border-bottom: 1px solid #555;
  overflow: hidden;
}

.project-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.project-meta { padding: 12px; }
.project-meta h3 { margin: 0 0 6px 0; font-size: 20px; }
.project-meta p { margin: 0; font-size: 16px; color: rgb(200, 200, 200); }

.github-cta {
  margin-top: 32px;
  padding: 14px;
  border: 1px solid #777;
  border-radius: 10px;
  background: linear-gradient(180deg, #232323, #1c1c1c);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.github-cta-text { font-size: 20px; color: antiquewhite; }
.github-cta-text strong { font-size: 22px; display: block; margin-bottom: 4px; }

@media (max-width: 600px) {
  .github-cta { flex-direction: column; align-items: flex-start; }
}
