.project-details {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 100%);
  min-height: 100vh;
  padding: 8rem 0 4rem;
  position: relative;
}

.project-details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(102, 126, 234, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(118, 75, 162, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.details-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  background: rgba(15, 15, 35, 0.95);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid rgba(102, 126, 234, 0.3);
  margin-bottom: 3rem;
  position: sticky;
  top: 120px;
  z-index: 1000;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-button:hover {
  background: rgba(102, 126, 234, 0.2);
  border-color: #667eea;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .details-container {
    padding: 0 1.5rem;
    padding-top: 5px;
  }

  .back-button {
    top: 100px;
  }
}

@media (max-width: 768px) {
  .details-container {
    padding: 0 1.25rem;
    padding-top: 5px;
  }

  .back-button {
    top: 100px;
    padding: 15px;
    font-size: 0.9rem;
    gap: 0.4rem;
  }
}

@media (max-width: 480px) {
  .details-container {
    padding: 0 1rem;
    padding-top: 5px;
  }

  .back-button {
    top: 80px;
    padding: 8px 16px;
    font-size: 0.85rem;
    gap: 0.3rem;
    margin-bottom: 2rem;
  }

  .back-button i {
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .details-container {
    padding: 0 0.75rem;
    padding-top: 5px;
  }

  .back-button {
    top: 75px;
    padding: 10px;
    font-size: 0.8rem;
  }
}
.project-header {
  text-align: center;
  margin-bottom: 4rem;
}

.project-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.project-subtitle {
  font-size: 1.2rem;
  color: #b0b0b0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.project-main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 4rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.project-info {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Overview left, tech stack right */
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: start;
}

/* Project Description Styling */
.project-description {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-description:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.project-description h3 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.project-description p {
  color: #b0b0b0;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  text-align: justify;
}

/* Tech Stack Styling */
.tech-stack {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

.tech-stack h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.tech-list {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(120px, 1fr)
  ); /* Responsive badges */
  gap: 0.8rem;
}

.tech-item {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  padding: 10px 16px;
  border-radius: 25px;
  font-weight: 500;
  border: 1px solid rgba(102, 126, 234, 0.3);
  text-align: center;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.tech-item:hover {
  background: rgba(102, 126, 234, 0.3);
  transform: translateY(-3px);
}

/* Tablet Responsive */
@media (max-width: 992px) {
  .project-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-description,
  .tech-stack {
    padding: 2rem;
  }

  .project-description h3 {
    font-size: 1.6rem;
  }

  .project-description p {
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
  }
}

/* Mobile Responsive */
@media (max-width: 576px) {
  .project-description,
  .tech-stack {
    padding: 1.5rem;
    border-radius: 15px;
  }

  .project-description h3,
  .tech-stack h3 {
    font-size: 1.3rem;
  }

  .project-description p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .tech-item {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}

.tech-stack {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

.tech-stack h3 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.tech-item {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  padding: 10px 16px;
  border-radius: 25px;
  font-weight: 500;
  border: 1px solid rgba(102, 126, 234, 0.3);
  text-align: center;
}

.features-section {
  margin: 4rem 0;
}

.features-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  transition: transform 0.3s ease;
}

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

.feature-icon {
  font-size: 2.5rem;
  color: #667eea;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.3rem;
  color: white;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.feature-description {
  color: #b0b0b0;
  line-height: 1.6;
}

.screenshots-section {
  margin: 4rem 0;
}

.screenshots-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 3rem;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.screenshot-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.screenshot-item:hover {
  transform: scale(1.05);
}

.screenshot-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.project-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 4rem 0;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 15px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
  .project-details {
    padding: 6rem 0 4rem;
  }

  .details-container {
    padding: 0 1.5rem;
  }

  .project-title {
    font-size: 2rem;
  }

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

  .project-description,
  .tech-stack {
    padding: 2rem;
  }

  .features-grid,
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .project-link {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Feature Card Base */
.feature-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover effect: slide overlay from left */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #667eea, #764ba2);
  opacity: 0.2;
  transition: left 0.5s ease;
  border-radius: 15px;
  z-index: 0;
}

.feature-card:hover::before {
  left: 0;
}

/* Move content above overlay */
.feature-card > * {
  position: relative;
  z-index: 1;
}

/* Scale and lift on hover */
.feature-card:hover {
  transform: translateX(5px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* Icons and titles */
.feature-icon {
  font-size: 2.5rem;
  color: #667eea;
  margin-bottom: 1rem;
  transition: color 0.4s ease;
}

.feature-card:hover .feature-icon {
  color: #fff;
}

.feature-title {
  font-size: 1.3rem;
  color: white;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.feature-description {
  color: #b0b0b0;
  line-height: 1.6;
  text-align: justify;
  font-size: 1rem;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
  .features-grid {
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-title {
    font-size: 1.1rem;
  }

  .feature-description {
    font-size: 0.95rem;
  }
}
