/* 🔹 Projects Section */
.projects {
  max-width: 1200px;
  margin: auto;
  padding: var(--spacing);
}

.projects__title {
  color: var(--color-primary);
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
  font-family: var(--font-title);
  text-align: center;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: auto;
}

/* Project Card */
.project__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  background: rgba(13, 17, 28, 0.6);
  border: 2px solid var(--color-shadow-blue);
  border-radius: 1rem;
  padding: 1.5rem;
  min-height: 250px;
  box-shadow: 0 4px 15px var(--color-shadow-blue);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--color-primary);
  border-color: var(--color-primary);
}

/* Project Title */
.project__title {
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-title);
  border-bottom: 2px solid var(--color-shadow-blue);
  padding-bottom: 0.5rem;
  width: 100%;
  text-align: center;
}

.project__card:hover .project__title {
  border-bottom-color: var(--color-primary);
  
}

/* Project Image Container */
.project__image-container {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
}

.zoom-text {
  color: white;
  font-size: 0.9rem;
  text-align: center;
}



.project__image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project__image-container:hover .project__image-overlay {
  opacity: 1;
}

.project__zoom-icon {
  color: white;
  font-size: 2rem;
  background: var(--color-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Project Description */
.project__description {
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-family: var(--font-primary);
  line-height: 1.5;
  text-align: center;
  flex-grow: 1;
}

/* Placeholder for future projects */
.project__placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-blue-medium),
    var(--color-primary)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
  transition: all 0.3s ease;
}

.project__card:hover .project__placeholder {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px var(--color-primary);
}

.project__placeholder span {
  font-size: 2rem;
}

/* Project Button */
.project__button {
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
}

.project__button:hover {
  background-color: var(--color-blue-light);
  transform: translateY(-2px);
}

/* Modal overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

/* Modal content */
.modal__content {
  background: var(--color-background);
  color: var(--color-text-light);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 800px;
  box-shadow: 0 0 20px var(--color-primary);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal.show .modal__content {
  transform: translateY(0);
}

/* Close button */
.modal__close {
  float: right;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-primary);
  transition: color 0.3s ease;
}

.modal__close:hover {
  color: var(--color-blue-light);
}

.modal__title {
  font-family: var(--font-title);
  color: var(--color-primary);
  margin-bottom: 1rem;
  clear: both;
  padding-top: 1rem;
}

.modal__subtitle {
  margin-top: 1.5rem;
  color: var(--color-blue-light);
}

.modal__text,
.modal__list {
  font-family: var(--font-primary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modal__list {
  padding-left: 1.5rem;
}

.modal__list li {
  margin-bottom: 0.5rem;
}

.modal__quote {
  margin-top: 2rem;
  font-style: italic;
  color: var(--color-blue-light);
  border-left: 4px solid var(--color-primary);
  padding-left: 1rem;
}

/* Image Gallery Modal */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal.show {
  opacity: 1;
}

.gallery-modal__close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 1200;
  transition: color 0.3s ease;
}

.gallery-modal__close:hover {
  color: var(--color-primary);
}

.gallery-modal .mySlides {
  display: none;
  text-align: center;
  width: 100%;
  max-width: 60%;
  margin: 0 auto; 
  padding-top: 20px;
}

.gallery-modal .mySlides.active {
  display: block;
}

.gallery-modal .mySlides img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  margin: 0 auto; 
  display: block; 
}

.caption-container {
  text-align: center;
  color: white;
  font-size: 1.1rem;
  margin-top: 15px;
}

/* Slideshow container */
.slideshow-container {
  position: relative;
  height: 80%;
  margin: 30px auto 20px auto; 
  overflow: hidden;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: var(--color-primary);
}

/* Thumbnail gallery */
.thumbnail-row {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
  flex-wrap: wrap;
}

.thumbnail {
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  border: 2px solid var(--color-primary);
}

.team-section {
  margin-top: 2rem;
  text-align: center;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.team-member {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 1rem;
  width: 180px;
}

.team-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
  border: 2px solid var(--color-primary);
}

.team-name {
  font-family: var(--font-primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

.team-links a {
  margin: 0 0.3rem;
  color: var(--color-primary);
  font-size: 1.2rem;
  transition: color 0.3s;
}

.team-links a:hover {
  color: var(--color-blue-light);
}

/* 📱 Responsive */
@media (max-width: 1000px) {
  .projects__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .projects {
    padding: var(--spacing) 1rem;
  }

  .projects__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .project__card {
    padding: 1.5rem;
    min-height: 220px;
  }

  .modal__content {
    margin: 10% auto;
    width: 90%;
    padding: 1.5rem;
  }

  .gallery-modal__content {
    width: 95%;
    height: 85%;
  }

  .thumbnail {
    width: 60px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .project__card {
    padding: 1.2rem;
    min-height: 200px;
  }

  .project__title {
    font-size: 1.3rem;
  }

  .project__description {
    font-size: 1rem;
  }

  .project__placeholder {
    width: 70px;
    height: 70px;
  }

  .project__placeholder span {
    font-size: 1.8rem;
  }

  .modal__content {
    padding: 1rem;
  }

  .prev,
  .next {
    padding: 10px;
    font-size: 18px;
  }

  .thumbnail {
    width: 50px;
    height: 38px;
  }
}
