/* Case Study Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 24, 59, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content-wrapper {
  background: var(--dark); /* Use dark variable */
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  width: 100%;
  max-width: 900px;
  height: 100vh;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
  position: relative;
  transform: translateX(100%);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -20px 0 100px rgba(0, 0, 0, 0.8);
  color: #fff;
}

.modal-overlay.open .modal-content-wrapper {
  transform: translateX(0);
}

.modal-close {
  position: sticky;
  top: 30px;
  left: calc(100% - 80px);
  margin-bottom: -50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 50;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-close:hover {
  background: var(--color-3);
  color: var(--color-1);
  transform: rotate(90deg) scale(1.1);
}

/* Modal Content Styles */
.project-details img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.project-details-body {
  padding: 4rem;
}

.project-details h2 {
  font-size: 3rem;
  margin: 0 0 1rem;
  color: #fff;
}

.project-details .tech-tag {
  display: inline-block;
  background: rgba(161, 194, 189, 0.15);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  color: var(--color-3);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .project-details-body {
    padding: 2rem;
  }
}
