body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('logo.png') no-repeat center top fixed;
  background-size: 80%;
  opacity: 0.2;
  z-index: -1;
}

.category-section {
  background: rgba(31, 41, 55, 0.6);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.category-title {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #fff;
}

.category-description {
  margin-bottom: 1.5rem;
  color: #d1d5db;
}

.category-link {
  color: #10b981;
  text-decoration: underline;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: rgba(31, 41, 55, 0.8);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

.project-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-card-image {
  transform: scale(1.05);
}

.project-card-content {
  padding: 1rem;
}

.project-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.project-card-meta {
  font-size: 0.875rem;
  color: #9ca3af;
}

.reviews-section {
  background: rgba(31, 41, 55, 0.6);
  border-radius: 0.5rem;
  padding: 2rem;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
}

.reviews-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
  color: #fff;
}

.reviews-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.reviews-carousel {
  overflow: hidden;
  max-width: 800px;
  width: 100%;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s ease;
}

.review-card {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.review-image {
  max-width: 100%;
  max-height: 500px;
  border-radius: 0.5rem;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.reviews-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.reviews-nav-btn:hover {
  background: rgba(16, 185, 129, 0.3);
}

.reviews-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.review-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s ease;
}

.review-dot.active {
  background: #10b981;
}

.carousel-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.carousel-modal.active {
  display: flex;
}

.carousel-content {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-content img,
.carousel-content video {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 0.5rem;
  object-fit: contain;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #10b981;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  transition: background 0.3s ease;
  z-index: 1001;
}

.nav-btn:hover {
  background: rgba(16, 185, 129, 0.3);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

.carousel-caption {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 1rem;
  max-width: 80%;
  text-align: center;
}

.carousel-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .project-card-image {
    height: 150px;
  }

  .nav-btn {
    font-size: 2rem;
    padding: 0.5rem 1rem;
  }

  .close-btn {
    font-size: 2rem;
  }

  .carousel-caption {
    font-size: 0.875rem;
    bottom: 50px;
  }

  .reviews-carousel-container {
    flex-direction: column;
  }

  .reviews-nav-btn {
    font-size: 1.5rem;
    padding: 0.25rem 0.75rem;
  }

  .reviews-title {
    font-size: 1.5rem;
  }

  .review-image {
    max-height: 300px;
  }
}

.github-section {
  background: rgba(31, 41, 55, 0.6);
  width: 80%;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-top: 2.5rem;
  margin: auto;
}

.github-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(31, 41, 55, 0.8);
  border-radius: 1rem;
  padding: 2rem;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  border: 2px solid rgba(16, 185, 129, 0.2);
}

.github-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
  background: rgba(31, 41, 55, 0.9);
  border-color: rgba(16, 185, 129, 0.5);
}

.github-icon {
  width: 60px;
  height: 60px;
  border-radius: 0.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.github-card:hover .github-icon {
  transform: scale(1.1);
}

.github-content {
  flex: 1;
}

.github-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.github-description {
  font-size: 1rem;
  color: #d1d5db;
  margin: 0;
}

.github-arrow {
  color: #10b981;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.github-card:hover .github-arrow {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .github-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .github-icon {
    width: 50px;
    height: 50px;
  }

  .github-title {
    font-size: 1.25rem;
  }

  .github-description {
    font-size: 0.875rem;
  }

  .github-arrow {
    display: none;
  }
}