/**
 * Project Detail Page Styles
 * Enhanced styling for individual project pages
 */

/* ===== Project Hero Section ===== */
.project-hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
}

.project-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.project-hero-content {
  position: relative;
  z-index: 2;
}

.project-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  line-height: 1.2;
}

.project-hero .lead {
  font-size: 1.3rem;
  color: #5a6c7d;
  margin-bottom: 25px;
  line-height: 1.6;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.badge-category {
  background: #2c5530;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

.project-date {
  color: #7f8c8d;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-date::before {
  content: '\f073';
  font-family: 'boxicons';
  font-size: 16px;
}

.project-status {
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-completed {
  background: #2ecc71;
  color: white;
}

.status-in-progress {
  background: #f39c12;
  color: white;
}

.status-planned {
  background: #95a5a6;
  color: white;
}

.project-actions .btn {
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-hero-image {
  position: relative;
  z-index: 2;
}

.project-hero-image img {
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.project-hero-image img:hover {
  transform: scale(1.02);
}

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

.project-gallery-slider {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-gallery-slider img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.project-gallery-slider .swiper-button-next,
.project-gallery-slider .swiper-button-prev {
  color: #2c5530;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.project-gallery-slider .swiper-pagination-bullet {
  background: #2c5530;
  opacity: 0.5;
}

.project-gallery-slider .swiper-pagination-bullet-active {
  opacity: 1;
}

/* ===== Project Info Card ===== */
.project-info-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.project-info-card h4 {
  color: #2c3e50;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #ecf0f1;
}

.info-item {
  margin-bottom: 25px;
}

.info-item h6 {
  color: #2c5530;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-item h6 i {
  font-size: 18px;
}

.info-item p {
  color: #5a6c7d;
  margin: 0;
}

.tech-tags,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background: #2c5530;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.project-tag {
  background: #ecf0f1;
  color: #5a6c7d;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* ===== Project Description Section ===== */
.project-description {
  padding: 80px 0;
}

.description-content {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.description-content h3 {
  color: #2c3e50;
  margin-bottom: 25px;
  font-size: 2rem;
}

.description-content p {
  color: #5a6c7d;
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 20px;
}

.description-content a {
  color: #2c5530;
  font-weight: 500;
  text-decoration: none;
}

.description-content a:hover {
  text-decoration: underline;
}

/* ===== Project Sidebar ===== */
.project-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h5 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 600;
}

.quick-facts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-facts li {
  padding: 8px 0;
  border-bottom: 1px solid #ecf0f1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quick-facts li:last-child {
  border-bottom: none;
}

.quick-facts strong {
  color: #2c3e50;
}

.achievements-list,
.challenges-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.achievements-list li,
.challenges-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5a6c7d;
}

.achievements-list i {
  color: #2ecc71;
  font-size: 18px;
}

.challenges-list i {
  color: #e74c3c;
  font-size: 18px;
}

/* ===== Related Projects Section ===== */
.related-projects {
  padding: 80px 0;
}

.related-project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.related-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.related-project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.related-project-card .card-body {
  padding: 20px;
}

.related-project-card h5 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.related-project-card p {
  color: #5a6c7d;
  font-size: 14px;
  margin-bottom: 15px;
}

.related-project-card .btn {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 20px;
}

/* ===== Project Navigation ===== */
.project-navigation {
  padding: 40px 0;
  background: #f8f9fa;
  border-top: 1px solid #ecf0f1;
}

.nav-project-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.nav-project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
}

.nav-project-card .nav-direction {
  font-size: 12px;
  color: #2c5530;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.nav-project-card h6 {
  color: #2c3e50;
  margin: 0;
  font-size: 16px;
}

/* ===== Responsive Design ===== */
@Media (max-width: 768px) {
  .project-hero h1 {
    font-size: 2rem;
  }
  
  .project-hero .lead {
    font-size: 1.1rem;
  }
  
  .project-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .project-actions .btn {
    width: 100%;
    margin-right: 0;
  }
  
  .project-info-card,
  .sidebar-widget {
    position: static;
    margin-top: 30px;
  }
  
  .description-content {
    padding: 25px;
  }
  
  .project-gallery-slider .swiper-button-next,
  .project-gallery-slider .swiper-button-prev {
    display: none;
  }
}

/* ===== Animation Classes ===== */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scale-in {
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== Custom Content Styles ===== */
.project-section {
  margin: 40px 0;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #2c5530;
}

.project-section h4 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.highlight-box {
  background: linear-gradient(135deg, #2c5530, #4a7c59);
  color: white;
  padding: 25px;
  border-radius: 10px;
  margin: 25px 0;
}

.highlight-box h5 {
  color: white;
  margin-bottom: 15px;
}

.code-block {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  border-radius: 8px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
}
