html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", Verdana;
  margin: 0;
  padding: 0;
  background-color: white;
  color: #333;
}

header {
  background-color: #008C92;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
header nav {
  margin-top: 0.5rem;
}
header nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
}
header nav ul li a {
  color: white;
  text-decoration: none;
}
header nav ul li a:hover {
  text-decoration: underline;
}

.sidebar-profile {
  width: 120px;
  height: 120px;
  border-radius: 0;
  border: 1px solid black;
  margin: 1rem auto;
  display: block;
}

.sidebar {
  background-color: #008C92;
  width: 220px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sidebar nav ul {
  list-style: none;
  /* Responsive helpers - mobile adjustments */

  /* Make media scale fluidly */
  img, picture, video, .thumbnail-contain {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* When the sidebar is fixed on larger screens, offset the main content so it doesn't sit underneath it. */
  .main-content {
    margin-left: 240px; /* slightly larger than sidebar width for breathing room */
    box-sizing: border-box;
  }

  /* Tablet and smaller: collapse the sidebar into a top bar and make content full width */
  @media (max-width: 768px) {
    .sidebar {
      position: static;
      width: 100%;
      height: auto;
      flex-direction: row;
      padding: 0.5rem 1rem;
      align-items: center;
      justify-content: space-between;
    }

    .sidebar-profile {
      width: 56px;
      height: 56px;
      margin: 0;
      border-radius: 6px;
      border: 2px solid rgba(0,0,0,0.08);
    }

    .sidebar nav ul {
      display: flex;
      flex-direction: row;
      gap: 0.75rem;
      margin-top: 0;
    }

    .sidebar nav li a {
      font-size: 1rem;
    }

    .main-content {
      margin-left: 0;
      padding: 1.25rem;
    }

    .welcome {
      padding: 2rem 1rem;
    }

    .about-me .bio-container {
      flex-direction: column;
      align-items: center;
    }

    /* Ensure project thumbnails don't force tall fixed heights on small screens */
    .projects .project-card img,
    .thumbnail-wrapper {
      height: auto;
    }

    .contact-form {
      padding: 2rem 1rem;
      max-width: 100%;
    }
  }

  /* Small phones: tighten spacing and scale down some elements for readability */
  @media (max-width: 480px) {
    html {
      font-size: 16px;
    }

    header nav ul {
      gap: 0.5rem;
    }

    .sidebar nav li a {
      font-size: 0.95rem;
    }

    .projects .project-grid {
      gap: 1rem;
      grid-template-columns: 1fr;
    }

    .welcome {
      padding: 1.25rem 0.75rem;
    }

    .about-me .bio-container img {
      width: 120px;
      height: 120px;
    }

    .sidebar-profile {
      width: 48px;
      height: 48px;
    }
  }

  /*# sourceMappingURL=styles.css.map */
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.sidebar nav li a {
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: bold;
}
.sidebar nav li a:hover {
  text-decoration: underline;
}

.welcome {
  text-align: left;
  background-color: rgb(214, 213, 213);
  padding: 4rem 2rem 2rem;
}
.welcome h2 {
  color: #008C92;
  margin-bottom: 1rem;
}
.welcome p {
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.6;
}

.about-me {
  background-color: white;
  padding: 4rem 2rem 2rem;
  text-align: center;
}
.about-me h2 {
  color: #008C92;
  margin-bottom: 1rem;
}
.about-me .bio-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}
.about-me .bio-container img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid #008C92;
}
.about-me .bio-container p {
  text-align: left;
  margin-left: 39rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.experience-section {
  margin-top: 3rem;
  padding: 2rem;
}
.experience-section h3 {
  color: #008C92;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.experience-section .experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.experience-section .experience-grid .exp-text h4 {
  color: #005b5f;
  font-size: 1.25rem;
  margin-top: 1rem;
}
.experience-section .experience-grid .exp-text p, .experience-section .experience-grid .exp-text ul {
  font-size: 1rem;
  line-height: 1.5;
}
.experience-section .experience-grid .exp-text ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}
.experience-section .experience-grid .exp-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.experience-section .experience-grid .exp-images img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .experience-section .experience-grid {
    grid-template-columns: 1fr;
  }
  .experience-section .exp-images {
    align-items: center;
  }
}

.projects {
  background-color: white;
  border: 3px solid rgb(214, 213, 213);
  padding: 4rem 2rem 2rem;
  text-align: center;
}
.projects h2 {
  color: #008C92;
  margin-bottom: 2rem;
}
.projects .project-grid {
  text-align: left;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.projects .project-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding-bottom: 1rem;
}
.projects .project-card img {
  width: 100%;
  height: 320px;
  -o-object-fit: cover;
     object-fit: cover;
}

/* A reusable class for thumbnails that should not be cropped.
  Use on <img class="thumbnail-contain"> to keep the whole image visible
  inside the card while preserving aspect ratio. */
.thumbnail-contain {
  -o-object-fit: contain;
    object-fit: contain;
  object-position: center;
  background-color: #fff; /* neutral background when aspect ratios differ */
}

/* Wrapper to force consistent thumbnail sizing and centering */
.thumbnail-wrapper {
  height: 320px; /* match card image height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #fff;
}

.thumbnail-wrapper img {
  /* Allow the image to scale but never exceed container */
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}
.projects .project-card h3 {
  text-align: center;
  margin: 1rem 0 0.5rem;
  color: #008C92;
}
.projects .project-card p {
  padding: 0 1rem;
  font-size: 0.95rem;
  color: #555;
}

.contact-form {
  margin-top: 4rem;
  margin-left: auto;
  margin-right: auto;
  background-color: white;
  padding: 4rem 2rem 2rem;
  max-width: 600px;
  text-align: center;
}
.contact-form .contact-info {
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  font-size: 1.1rem;
}
.contact-form .contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.contact-form .contact-info .icon {
  width: 24px;
  height: 24px;
}
.contact-form .contact-info a {
  color: #008C92;
  text-decoration: none;
}
.contact-form .contact-info a:hover {
  text-decoration: underline;
}
body.contact-page .contact-form {
  margin-top: 1rem;
}
.contact-form h2 {
  color: #008C92;
  margin-bottom: 1.5rem;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form form label {
  text-align: left;
  font-weight: bold;
  color: #444;
}
.contact-form form input,
.contact-form form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}
.contact-form form button {
  background-color: #008C92;
  color: white;
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.contact-form form button:hover {
  background-color: #005b5f;
}/*# sourceMappingURL=styles.css.map */
