/* Project Details Page Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Back Button */
.back-button {
  margin-bottom: 2rem;
}

.back-button .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.back-button .btn:hover {
  transform: translateX(-5px);
}

/* Project Header */
.project-header {
  margin-bottom: 3rem;
  text-align: center;
}

.project-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0px 0px 0px 8px;
  background: #e9ecef;
  border-radius: 2rem;
  color: #495057;
  font-weight: 500;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.project-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: #6c757d;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Project Content */
.project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

/* Project Image */
.project-image-container {
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-image {
  position: relative;
  height: 100%;
  min-height: 300px;
  width: 370px;
  flex-shrink: 0;
}

.project-image .carousel {
  height: 100%;
  width: 100%;
}

.project-image .carousel-inner {
  height: 100%;
  width: 100%;
}

.project-image .carousel-item {
  height: 100%;
  width: 100%;
}

.project-image .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.project-image .carousel-control-prev,
.project-image .carousel-control-next {
  width: 8%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-image .carousel-control-prev-icon,
.project-image .carousel-control-next-icon {
  width: 18px;
  height: 18px;
  background-size: 50%;
}

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

/* Project Info */
.project-info {
  display: grid;
  gap: 2.5rem;
}

.info-section {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 1.5rem;
}

.section-title i {
  color: #0d6efd;
}

.section-content {
  color: #495057;
  line-height: 1.8;
}

/* Files Section */
.files-grid {
  display: grid;
  gap: 1rem;
}

.file-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.file-card:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.file-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9ecef;
  border-radius: 0.5rem;
  color: #0d6efd;
  font-size: 1.5rem;
}

.file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.file-name {
  font-weight: 500;
  color: #212529;
}

.file-download {
  font-size: 0.875rem;
  color: #0d6efd;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Author Section */
.author-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 1rem;
}

.author-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.5rem;
}

.author-title {
  color: #6c757d;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-title {
    font-size: 2rem;
  }

  .project-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
  }

  .author-image {
    width: 120px;
    height: 120px;
  }

  .info-section {
    padding: 1.5rem;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-content {
  animation: fadeIn 0.5s ease-out;
}

/* Projects List Page Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Back Button */
.back-button {
  margin-bottom: 2rem;
}

.back-button .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-button .btn:hover {
  transform: translateX(-5px);
}

/* Projects List */
.projects-list {
  display: grid;
  gap: 2rem;
}

/* Project Card */
.project-card {
  display: flex;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

/* Project Image */
.project-image {
  position: relative;
  height: 100%;
  min-height: 300px;
}

.project-image .carousel {
  height: 100%;
}

.project-image .carousel-inner {
  height: 100%;
}

.project-image .carousel-item {
  height: 100%;
}

.project-image .carousel-item img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.project-image .carousel-control-prev,
.project-image .carousel-control-next {
  width: 8%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-image:hover .carousel-control-prev,
.project-image:hover .carousel-control-next {
  opacity: 0.8;
}

.project-image .carousel-indicators {
  margin-bottom: 0.5rem;
}

.project-image .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
}

.project-image .carousel-indicators button.active {
  background-color: #fff;
}

.project-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.project-category span {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Project Content */
.project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.project-description {
  color: #666;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
}

/* Project Meta */
.project-meta {
  display: flex;
  gap: 1.5rem;
  color: #888;
  font-size: 0.9rem;
}

.project-meta .author,
.project-meta .date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Project Files */
.project-files {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
}

.file-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.file-link:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.file-link i {
  color: #0d6efd;
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-image {
    min-height: 250px;
  }

  .project-content {
    padding: 1.5rem;
  }
}

/* Animation */
.projects-list {
  animation: fadeIn 0.5s ease-out;
}

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