.carousel {
  margin-top: 40px;
  position: relative;
  width: 90%;
  max-width: 600px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
  /* set an explicit visual height (adjust as needed or use responsive aspect ratio) */
  height: 400px;
  /* <-- important: ensures slides area has height */
}

.spaced {
  margin-left: 30px;
  margin-right: 30px;
}

h1 {
  font-size: 30px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
  /* remove display:flex and transform transition (not used for opacity fade) */
  display: block;
  transition: none;
}

.slide {
  position: absolute;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  display: block;
  /* ensures object-fit applies consistently */
  object-fit: contain;
  /* or 'cover' depending on desired behavior */
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 0;
  background-color: transparent;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}


/* Navigation buttons */
button.prev,
button.next {
  z-index: 20;
  /* higher than .slide (which uses z-index: 2) */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.6);
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

button.prev:hover,
button.next:hover {
  background: rgba(255, 255, 255, 0.9);
}

button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}

/* Zoom effect on hover */
.zooming-image:hover {
  cursor: zoom-in;
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

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


.header-content {
  max-width: 900px;
  margin: 0 auto;
}

header.home {
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  color: #1e1e1e;
  padding: 50px 20px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  border-radius: 12px;

}

header h1 {
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

header p {
  color: #555;
  margin-bottom: 30px;
}


main {
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  color: #1e1e1e;
  padding: 50px 20px;
  border-bottom: 1px solid #ddd;
  border-radius: 12px;


}

.spot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spot:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);

}

.spot-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
}

.project {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  gap: 20px;
  display: flex;
  align-items: flex-start;
}

.project-text {
  flex: 1;
  /* text takes remaining space */
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.highlight {
  color: #007BFF;
  font-weight: bold;
}



section {
  margin-bottom: 40px;
}

h2 {
  color: #1e1e1e;
  border-bottom: 2px solid #1e1e1e;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

ul {
  list-style-type: disc;
  padding-left: 20px;
}

.img-li {
  width: 250px;
  /* adjust image size */
  height: auto;
  /* keep proportions */
  border-radius: 8px;
  /* optional: rounded corners */
  object-fit: cover;
  /* optional: scale down image */
  margin-left: 15px;
}

.img-project {
  width: 250px;
  /* adjust image size */
  height: auto;
  /* keep proportions */
  border-radius: 8px;
  /* optional: rounded corners */
  object-fit: cover;
  /* optional: scale down image */
  margin-right: 15px;
}

.first-image {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.work-desc {
  display: flex;
  flex-direction: column;
}

.work-desc h3 {
  text-align: center;
  color: #007BFF;
  font-weight: bold;
}

.work-desc ul,
.desc-block {
  padding-left: 30px;
  /* padding-bottom: 20px; */
}

.open-link,
.close-link {
  cursor: pointer;
  padding: 20px;
  text-align: center;
  text-decoration: none;
}

.close-link {
  display: none;
}

.img-desc-block {
  display: flex;
  flex-direction: row;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease;
}

.img-desc-block.active {
  opacity: 1;
  max-height: 1000px;
}

.separator {
  padding: 10px;
  margin-top: 20px;
  border-top: 2px solid #1e1e1e;
}

.desc-block-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.3s ease-in-out;

}

.image-block {
  /* display: flex; */
  display: flex;
  padding-top: 20px;

  flex-direction: column;
  gap: 10px
}

@media (max-width: 768px) {
  .project {
    flex-direction: column-reverse;
    gap: 10px;
    align-items: center;
  }

  .spot {
    flex-direction: column;
    gap: 10px;
  }

  header.home {
    padding-bottom: 20px;
  }

  header.home p {
    margin: 0;
  }

  .img-project,
  .img-li {
    max-width: 100%;
  }

  .first-image {
    flex-direction: column;
    gap: 10px;
  }

  .img-desc-block {
    flex-direction: column;
    align-items: center;
  }

  .image-block {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }

  .desc-block-link {
    width: 100%;
    text-align: center;
  }

  .image-block .img-li {
    width: 30%;
    max-width: 120px;
    margin: 0;
  }

  .separator {
    display: none;
  }

  .desc-block {
    padding-top: 20px;
  }

  .work-desc ul,
  .desc-block {
    padding-left: 0;
  }
}