.erbil-projects {
  padding: 50px 5%;
  background-color: #f9f9f9;
  font-family: 'Arial', sans-serif;
}

.project-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project-card {
  position: relative;
  background-color: white;
  border-radius: 20px; /* Increased border radius for smoother rounded corners */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  width: 95%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #f0f0f0;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.project-text {
  padding: 20px;
  text-align: center;
  color: #333;
}

.top-text h2 {
  font-size: 36px;
  font-weight: 600;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.top-text p {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  margin-top: 10px;
  max-width: 600px;
  margin: 10px auto;
  font-family: 'Helvetica Neue', sans-serif;
}

.bottom-text p {
  font-size: 18px;
  color: #777;
  line-height: 1.6;
  margin-top: 10px;
}

.learn-more-btn {
  background-color: #3e4142;
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 15px;
}

.learn-more-btn:hover {
  background-color: #166f8b;
  transform: scale(1.05);
}

.learn-more-btn:focus {
  outline: none;
}

.project-image {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 20px; /* Increased radius for images */
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
  margin-top: 20px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px; /* More rounded image corners */
  transition: transform 0.4s ease, border-radius 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
  border-radius: 25px; /* Subtle zoom effect with more rounded corners */
}

.additional-info {
  display: none;
  padding: 30px;
  text-align: center;
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.1);
}

.additional-images {
  margin-bottom: 20px;
}

.image-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
}

.image-carousel img {
  width: 270px;
  height: 180px;
  object-fit: cover;
  border-radius: 15px; /* Rounded image corners for carousel images */
  transition: transform 0.3s ease;
}

.image-carousel img:hover {
  transform: scale(1.05);
}

.additional-description p {
  font-size: 20px;
  color: #333;
  line-height: 1.8;
  margin-top: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: justify;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 10px;
  right: 25px;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 768px) {
  .project-card {
    width: 100%;
    margin: 0 0 30px;
  }

  .project-image {
    height: 250px;
  }

  .project-text {
    padding: 15px;
  }

  .image-carousel img {
    width: 230px;
    height: 150px;
  }
}

.modern-pdf-btn {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(145deg, #3b3b3b, #6e6e6e);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.modern-pdf-btn:hover {
  background: linear-gradient(145deg, #6e6e6e, #3b3b3b);
  transform: scale(1.05);
}

.modern-pdf-btn:active {
  transform: scale(1);
}

.learn-more-content {
  padding-top: 10px;
  font-size: 14px;
  color: #666;
  font-weight: normal;
  background-color: #f9f9f9;
  border-radius: 5px;
  margin-top: 10px;
  transition: max-height 0.3s ease;
}

.learn-more-btn {
    background: black;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s ease-in-out;
}

.learn-more-btn:hover {
    background: gray;
}

.learn-more-content {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    background: #f9f9f9; /* Light Gray for Contrast */
    border: 1px solid #ddd;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.pdf-title {
    font-size: 22px;
    font-weight: bold;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pdf-subtitle {
    font-size: 16px;
    color: #444;
    margin-bottom: 15px;
}

.modern-pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background: black; /* Strong contrast */
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.4s ease-in-out;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.modern-pdf-btn .btn-icon {
    margin-right: 8px;
    font-size: 20px;
}

.modern-pdf-btn:hover {
    background: white;
    color: black;
    border: 2px solid black;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
}
