/* Project Detail Page Styles */

/* Project Hero Section */
.project-hero {
  padding-top: 120px;
  padding-bottom: 40px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.project-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0;
}

.project-image-main {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-image-main img {
  width: 100%;
  height: auto;
  display: block;
}

/* Project Overview Section */
.project-overview {
  padding: 60px 0;
}

.project-overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.project-description h2 {
  text-align: left;
  margin-bottom: 20px;
}

.project-description h3 {
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.project-description p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: #cccccc;
}

.project-info-card {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  padding: 25px;
  margin-bottom: 20px;
}

.project-info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.tech-list {
  list-style: none;
  padding: 0;
}

.tech-list li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.tech-list li i {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Project Features Section */
.project-features {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background-color: var(--primary-color);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Project Gallery Section */
.project-gallery {
  padding: 60px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  cursor: pointer; /* Added to show it's clickable */
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-caption {
  background-color: var(--secondary-color);
  padding: 15px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Project Conclusion Section */
.project-conclusion {
  padding: 60px 0;
  text-align: center;
}

.project-conclusion p {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

.next-project {
  margin-top: 50px;
}

.next-project h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* Image Modal Styles */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
  animation: modalZoomIn 0.3s;
}

@keyframes modalZoomIn {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

.modal-content img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1101;
}

.close-modal:hover {
  color: #bbb;
}

.modal-caption {
  color: #f1f1f1;
  text-align: center;
  padding: 15px 0;
  font-size: 1rem;
}

/* Prevent scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .project-overview-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .project-header h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .project-hero {
    padding-top: 100px;
  }
  
  .features-grid,
  .gallery-grid,
  .challenges-grid {
    grid-template-columns: 1fr;
  }
  
  .project-header h1 {
    font-size: 1.8rem;
  }
  
  .modal-content {
    max-width: 95%;
  }
  
  .close-modal {
    top: -35px;
    right: 0;
    font-size: 35px;
  }
}

@media (max-width: 576px) {
  .project-hero {
    padding-top: 90px;
  }
  
  .project-header h1 {
    font-size: 1.6rem;
  }
  
  .feature-card,
  .challenge-card,
  .project-info-card {
    padding: 20px;
  }
}