/* ===== PROJECT HERO ===== */
.project-hero {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  animation: fadeIn 0.6s ease;
}

.project-hero img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.project-hero img:hover {
  transform: scale(1.02);
}

/* ===== PROJECT DESCRIPTION ===== */
.project-description {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px 20px;
  line-height: 1.8;
  color: #333;
  background: #f8f9fa;
  border-radius: 12px;
  border-right: 4px solid #2e6ab1;
}

.project-description h1 {
  font-size: 2rem;
  color: #1a2940;
  margin-bottom: 20px;
  font-weight: 700;
}

.project-description h2 {
  font-size: 1.4rem;
  color: #1a2940;
  margin-top: 24px;
  margin-bottom: 12px;
}

.project-description p {
  margin-bottom: 16px;
  color: #555;
}

.project-description ul,
.project-description ol {
  margin-right: 20px;
  margin-bottom: 16px;
  color: #555;
}

.project-description li {
  margin-bottom: 8px;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.gallery-section h2 {
  text-align: center;
  color: #1a2940;
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.gallery-wrapper {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-track {
  display: flex;
  gap: 12px;
  padding: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-overflow-scrolling: touch;

  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.gallery-track::-webkit-scrollbar {
  height: 6px;
}

.gallery-track::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.gallery-track::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.gallery-track img {
  flex: 0 0 calc(33.333% - 8px);
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-track img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.gallery-track img:focus {
  outline: 3px solid #2e6ab1;
  outline-offset: 2px;
}

/* ===== GALLERY CONTROLS ===== */
.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.gallery-controls button {
  background: #1a2940;
  color: #fff;
  border: 2px solid transparent;
  padding: 10px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.gallery-controls button:hover {
  background: #2e4a72;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 41, 64, 0.3);
}

.gallery-controls button:active {
  transform: translateY(0);
}

.gallery-controls button:focus {
  outline: 2px solid #2e6ab1;
  outline-offset: 2px;
}

.gallery-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===== MODAL FOR FULL IMAGE ===== */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.image-modal.active {
  display: flex;
}

.image-modal-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.image-modal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-modal .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #e74c3c;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
}

.image-modal .close-btn:hover {
  background: #c0392b;
  transform: scale(1.1);
}

.image-modal .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.image-modal .nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.image-modal .nav-btn.prev {
  left: 16px;
}

.image-modal .nav-btn.next {
  right: 16px;
}

 .btn-download {
      background: #1a2940;
      color: #fff;
      padding: 10px 16px;
      border-radius: 8px;
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all 0.3s ease;
      border: none;
      cursor: pointer;
      text-align: center;
      justify-content: center;
    }

    .btn-download:hover {
      background: #2e4a72;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(26, 41, 64, 0.3);
    }


/* حالت ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .btn-download {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .contact-grid .btn-download {
        margin: 10px 0;
    }
}


/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .project-description {
    padding: 24px 16px;
    margin: 24px auto;
  }

  .project-description h1 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .project-description h2 {
    font-size: 1.2rem;
    margin-top: 20px;
  }

  .project-description {
    line-height: 1.6;
  }

  .gallery-section {
    margin: 40px auto;
    padding: 0 16px;
  }

  .gallery-section h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .gallery-track img {
    flex: 0 0 calc(50% - 6px);
    height: 200px;
  }

  .gallery-controls {
    gap: 12px;
  }

  .gallery-controls button {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  .image-modal-content {
    max-width: 95vw;
    max-height: 85vh;
  }

  .image-modal .close-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .image-modal .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .project-hero {
    margin: 20px auto;
    padding: 0 12px;
  }

  .project-hero img {
    max-height: 300px;
  }

  .project-description {
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
  }

  .project-description h1 {
    font-size: 1.3rem;
  }

  .project-description h2 {
    font-size: 1.1rem;
  }

  .gallery-track img {
    flex: 0 0 calc(100% - 6px);
    height: 180px;
  }

  .gallery-controls {
    gap: 8px;
  }

  .gallery-controls button {
    padding: 6px 16px;
    font-size: 0.85rem;
  }

  .image-modal .nav-btn {
    display: none;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .project-hero img,
  .gallery-track img,
  .gallery-controls button,
  .gallery-track {
    transition: none;
    animation: none;
  }
}

/* ===== DARK MODE (اختیاری) ===== */
@media (prefers-color-scheme: dark) {
  .project-description {
    background: #2a2a2a;
    color: #e0e0e0;
    border-right-color: #4a90e2;
  }

  .project-description h1,
  .project-description h2 {
    color: #fff;
  }

  .project-description p,
  .project-description li {
    color: #b0b0b0;
  }
}
.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 24px 0;
  padding: 20px;
  background: #e8f0f8;
  border-radius: 8px;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #1a2940;
}

.meta-item i {
  color: #2e6ab1;
  margin-top: 4px;
}

.project-description ul {
  list-style: none;
  padding: 0;
}

.project-description li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 12px;
}

.project-description li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2e6ab1;
  font-weight: bold;
}

