/* Project Detail Page Styles */
.project-detail {
  padding-top: 120px;
  padding-bottom: 80px;
}

/* Project Banner and Carousel */
.project-banner {
  margin-bottom: 3rem;
}

.project-intro {
  margin-top: 2rem;
  text-align: center;
}

.project-intro h1 {
  margin-bottom: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
}

.project-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 2rem;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.8s ease;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  opacity: 0;
  transition: opacity 0.8s ease;
    padding-top: 56.25%;
  width: 100%;
}
.carousel-slide img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  position: absolute;
  left: 0px;
  top: 0px;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  z-index: 10;
  max-width: 300px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background-color: var(--accent);
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--accent);
}

/* Project Info Section */
.project-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
  justify-content: center;
}

.info-card {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px var(--shadow);
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px var(--shadow);
}

.info-icon {
  background-color: var(--bg-secondary);
  color: var(--accent);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.info-card h3 {
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

/* Categories Section */
.project-categories, .project-services, .project-skills {
  margin-bottom: 3rem;
}

.project-categories h2, .project-services h2, .project-skills h2 {
  margin-bottom: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.categories-container, .skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.category-badge, .skill-badge {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.category-badge:hover, .skill-badge:hover {
  background-color: var(--accent);
  color: white;
  transform: translateY(-3px);
}

/* Services List */
.services-list {
  list-style: none;
}

.services-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.services-list li:hover {
  transform: translateX(5px);
}

.services-list svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Back Button */
.back-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-button:hover {
  background-color: var(--accent-hover);
  transform: translateX(-5px);
	color:#fff;
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 5%;
  }
  
  .nav-controls {
    order: 3; /* Push controls to the right */
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    background-color: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 99;
    box-shadow: -5px 0 15px var(--shadow);
    padding: 4rem 2rem 2rem;
    gap: 2rem;
  }

  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.2rem;
  }
  
  .nav-links .cta-button {
    margin-top: 1rem;
    width: 100%;
    display: block;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
    z-index: 100;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    gap: 2rem;
  }
  
  .project-info {
    flex-direction: column;
    align-items: center;
  }
  
  .info-card {
    width: 100%;
    max-width: none;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
  }
  
  .project-intro h1 {
    font-size: 1.75rem;
  }
  
  .project-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .logo {
    font-size: 1.25rem;
  }
  
  .nav-controls {
    gap: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .project-detail {
    padding-top: 100px;
  }
  
  .carousel-btn {
    width: 30px;
    height: 30px;
  }
  
  .carousel-dots {
    bottom: 10px;
  }
  
  .dot {
    width: 8px;
    height: 8px;
  }
  
  .services-list li {
    padding: 0.5rem 0.75rem;
  }
  
  .slide-caption {
    bottom: 10px;
    right: 10px;
    padding: 5px 8px;
    font-size: 0.8rem;
    max-width: 200px;
  }
}