.project2-track .carousel-slide img:hover,
.project2-track .carousel-slide img:active,
.project2-track .carousel-slide img:focus {
  transform: scale(2);
  z-index: 3;
  box-shadow: 0 16px 48px rgba(44,62,80,0.32);
  cursor: zoom-out;
}
/* Larger images for Project 2 carousel only */
.project2-track .carousel-slide img {
  max-width: 100vw;
  max-height: 90vh;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .project2-track .carousel-slide img {
    max-width: 100vw;
    max-height: 60vh;
  }
}

@media (max-width: 600px) {
  html, body {
    width: 100vw !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }
  body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 100vh !important;
    width: 100vw !important;
  }
  main {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    min-height: 100vh !important;
  }
  section, .project-panel, .project-title, #professional-development, #leadership-experience, #contact, .carousel-arrows-outer, .project-card {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
  }
  .carousel-arrows-outer {
    flex-direction: row !important;
    width: 100vw !important;
    max-width: 100vw !important;
    gap: 0.5rem !important;
    padding: 0 !important;
  }
  .carousel-container {
    min-height: 160px !important;
    max-width: 100vw !important;
    width: 100vw !important;
    margin: 0 auto 2rem auto !important;
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .carousel-track {
    min-height: 120px !important;
    width: 100vw !important;
    background: transparent !important;
  }
  .carousel-slide {
    padding: 0 !important;
    width: 100vw !important;
    height: auto !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .carousel-slide img,
  .project1-img,
  .project2-track .carousel-slide img,
  .project3-img {
    width: 98vw !important;
    height: auto !important;
    max-width: 98vw !important;
    max-height: 60vw !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    display: block !important;
    margin: 0 auto !important;
    box-shadow: 0 2px 8px rgba(44,62,80,0.10) !important;
  }
  .project1-img-small {
    max-width: 50vw !important;
    max-height: 24vw !important;
  }
  .project-title {
    font-size: 1.1rem !important;
    margin-bottom: 2rem !important;
  }
  .section-divider {
    margin: 2rem auto 2rem auto !important;
  }
}

.carousel-arrows-outer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 100%;
  margin: 0 auto;
  max-width: 900px;
}

.carousel-arrows-outer .project-card {
  flex: 1 1 0;
}

.carousel-arrows-outer .carousel-arrow {
  position: static;
  margin: 0 0.5em;
    max-width: 1200px;
    min-height: 700px;
  border-radius: 50%;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  user-select: none;
  z-index: 1;
  transition: opacity 0.3s;
}

@media (max-width: 600px) {
  .carousel-arrows-outer {
    gap: 1.2rem;
    max-width: 98vw;
  }
}

/* Make carousel images larger */
.carousel-slide img {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  cursor: zoom-in;
}

.carousel-slide img:hover,
.carousel-slide img:active,
.carousel-slide img:focus {
  transform: scale(1.35);
  z-index: 2;
  box-shadow: 0 12px 40px rgba(44,62,80,0.28);
  cursor: zoom-out;
}

@media (max-width: 600px) {
  .carousel-slide img,
  .project1-img,
  .project2-track .carousel-slide img,
  .project3-img {
    width: 100vw !important;
    height: auto !important;
    max-width: 100vw !important;
    max-height: 60vw !important;
    object-fit: contain !important;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
  }
  .project1-img-small {
    max-width: 60vw !important;
    max-height: 30vw !important;
  }
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 480px;
  background: transparent;
  border-radius: 18px;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  transition: box-shadow 0.3s;
  margin-top: 3.5rem !important;
}

.carousel-container.active-frame {
  box-shadow: none;
}

.carousel-track {
  position: relative;
  width: 100%;
  min-height: 120px;
  height: 100%;
  background: transparent !important;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding: 2rem 1rem;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.4s;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.4s;
}

.carousel-arrow {
  background: rgba(44,62,80,0.85);
  color: #fff;
  border: 1.5px solid #2980b9;
  font-size: 1.5rem;
  padding: 0.1em 0.4em;
  border-radius: 50%;
  cursor: pointer;
  margin: 0 0.3em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(44,62,80,0.10);
  transition: background 0.2s, border 0.2s, box-shadow 0.2s;
}

.carousel-arrow:hover {
  background: #2980b9;
  border-color: #2c3e50;
  box-shadow: 0 4px 16px rgba(44,62,80,0.18);
}

@media (max-width: 600px) {
  .carousel-container {
     max-width: 98vw;
     min-height: 320px;
     padding: 0.5rem 0.1rem;
     border-radius: 12px;
  }

  .carousel-slide {
    font-size: 1rem;
    padding: 1.2rem 0.2rem;
  }
}

/* Projects Carousel Styles */

.project-card {
  all: unset;
}

.project-card {
  width: 100%;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  transition: none;
  justify-content: center;
}

.project-card:hover {
  box-shadow: 0 4px 24px rgba(44,62,80,0.18);
}

@media (max-width: 600px) {
  .projects-carousel {
    gap: 1rem;
    max-height: 60vh;
  }

  .project-panel {
    max-width: 98vw;
  }

  .project-title {
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: underline;
    text-align: center;
    display: block;
    margin: 1rem auto 0.5rem auto;
    margin-bottom: 2.5rem !important;
  }

  @media (max-width: 600px) {
    .project-title span {
      font-size: 1rem;
      padding: 0.2em 0.1em;
      word-break: break-word;
      line-height: 1.2;
    }
    .carousel-slide img,
    .project2-track .carousel-slide img {
      width: 100vw;
      height: 60vw;
      max-width: 100vw;
      max-height: 60vw;
      object-fit: cover;
    }
    .carousel-arrow {
      font-size: 1.5rem;
      min-width: 36px;
      min-height: 36px;
      padding: 0.1em 0.3em;
    }
    .carousel-arrows-outer {
      gap: 0.5rem;
    }
    .carousel-container {
      min-height: 180px;
      max-width: 100vw;
      padding: 0;
    }
    .project-panel {
      margin-bottom: 1.2rem;
    }
  }

  .project-card {
    padding: 1.2rem 0.5rem;
    min-height: 180px;
  }
}

/* Extra spacing above Project 2 title */
.project-panel:nth-of-type(2) .project-title {
  margin-top: 3.5rem !important;
}

/* Extra spacing above Project 3 title */
.project-panel:nth-of-type(3) .project-title {
  margin-top: 3.5rem !important;
}

#projects h2 {
  text-align: center;
}

#contact h2 {
  text-align: center;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fdf6e3;
  color: #333;
  line-height: 1.6;
}

header {
  background: #2c3e50;
  color: white;
  padding: 1rem;
  text-align: center;
}

header nav a {
  color: white;
  margin: 0 0.5rem;
  text-decoration: none;
}

header nav a:hover {
  text-decoration: underline;
}

main {
  width: 80%;
  margin: auto;
  padding: 2rem 0;
}

.profile-pic-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 6px solid #162447;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(44,62,80,0.10);
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  box-shadow: none;
  border: none;
  background: transparent;
  display: block;
}

@media (max-width: 600px) {
  .profile-pic-frame {
    width: 70vw;
    height: 70vw;
    min-width: 160px;
    min-height: 160px;
    max-width: 320px;
    max-height: 320px;
  }
}

section {
  margin-bottom: 2rem;
}

#about h2 {
  text-align: center;
}

#about p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
  text-indent: 2em;
  font-size: 20px;
}

footer {
  text-align: center;
  background: #2c3e50;
  color: white;
  padding: 1rem;
}

button {
  background: #2980b9;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #1c5980;
}

.project3-img:hover,
.project3-img:focus {
  transform: scale(1.7);
  z-index: 2;
  box-shadow: 0 16px 48px rgba(44,62,80,0.32);
  cursor: zoom-out;
}

.project1-img:hover,
.project1-img:focus {
  transform: scale(1.35);
  z-index: 2;
  box-shadow: 0 12px 40px rgba(44,62,80,0.28);
  cursor: zoom-out;
}

.project1-img-small {
  max-width: 40%;
  max-height: 28vh;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), max-width 0.4s, max-height 0.4s;
}
.project1-img-small:hover,
.project1-img-small:focus {
  max-width: 100%;
  max-height: 70vh;
  transform: scale(1.35);
  z-index: 2;
  box-shadow: 0 12px 40px rgba(44,62,80,0.28);
  cursor: zoom-out;
}

.project-title {
  margin-bottom: 3.5rem !important;
}

#professional-development {
  text-align: center;
}

#leadership-experience {
  text-align: center;
}

.section-divider {
  border: none;
  border-top: 2px solid #b3d1f7;
  margin: 3.5rem auto 3.5rem auto;
  width: 90%;
  max-width: 900px;
}

.carousel-arrow {
  z-index: 1;
  transition: opacity 0.3s;
}

.carousel-slide img:hover ~ .carousel-arrow,
.carousel-slide img:focus ~ .carousel-arrow,
.carousel-slide img:active ~ .carousel-arrow {
  opacity: 0 !important;
  pointer-events: none !important;
}
/* For project-specific enlarged images */
.project1-img:hover ~ .carousel-arrow,
.project1-img:focus ~ .carousel-arrow,
.project1-img:active ~ .carousel-arrow,
.project2-track .carousel-slide img:hover ~ .carousel-arrow,
.project2-track .carousel-slide img:focus ~ .carousel-arrow,
.project2-track .carousel-slide img:active ~ .carousel-arrow,
.project3-img:hover ~ .carousel-arrow,
.project3-img:focus ~ .carousel-arrow,
.project3-img:active ~ .carousel-arrow {
  opacity: 0 !important;
  pointer-events: none !important;
}