/* Existing styles */
.project_image img {
    border-radius: 2rem;
    object-fit: cover;
}
.project_image {
    border-radius: 2rem;
}
.work_main_container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
}
.work_left {
    width: 50%;
    gap: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.work_right {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}
.work_collection {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-evenly;
}
.word_card {
    width: 100%;
    max-width: 350px;
    background: linear-gradient(
        145deg,
        rgba(30, 30, 30, 1) 0%,
        rgba(15, 15, 15, 1) 50%,
        rgb(1, 1, 1) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.work_image {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    padding: 1rem;
}
.work_image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 1rem;
}
.work_details {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}
.work_title {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: capitalize;
}
.work_arrow {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007BFF;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .work_main_container {
        padding: 1.5rem;
    }
    .word_card {
        max-width: 300px;
    }
}

@media (max-width: 992px) {
    .work_main_container {
        flex-direction: column;
    }
    .work_left, .work_right {
        width: 100%;
    }
    .work_left {
        margin-bottom: 2rem;
    }
    .work_collection {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .work_main_container {
        padding: 1rem;
    }
    .work_collection {
        gap: 1rem;
    }
    .word_card {
        max-width: 100%;
    }
    .work_title {
        font-size: 1.1rem;
    }
    .work_arrow {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .work_right {
        padding: 1rem 0;
    }
    .work_image {
        padding: 0.5rem;
    }
    .work_details {
        padding: 0.75rem;
    }
    .work_title {
        font-size: 1rem;
    }
    .work_arrow {
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    .work_main_container {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    .work_collection {
        gap: 0.75rem;
    }
    .work_image {
        padding: 0.25rem;
    }
    .work_details {
        padding: 0.5rem;
    }
    .work_title {
        font-size: 0.9rem;
    }
}

/* Hover effects for larger screens */
@media (hover: hover) and (min-width: 768px) {
    .word_card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2), 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .work_arrow:hover {
        color: #0056b3;
    }
}
/* Project Modal Styles */
.project-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  overflow: auto;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(
    145deg,
    rgba(30, 30, 30, 1) 0%,
    rgba(15, 15, 15, 1) 50%,
    rgb(1, 1, 1) 100%
  );
  margin: 5% auto;
  padding: 2rem;
  border-radius: 2rem;
  width: 90%;
  max-width: 800px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-modal {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  color: #aaa;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
}

.close-modal:hover {
  color: #fff;
  transform: scale(1.1);
}

.modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.modal-header img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
  font-size: 1.8rem;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.modal-subtitle {
  color: #aaa;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.modal-body {
  line-height: 1.7;
  font-size: 1rem;
}

.tech-stack {
  margin: 2rem 0;
}

.tech-stack h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.tech-stack ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0;
  list-style: none;
}

.tech-stack li {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-meta {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.project-meta a {
  color: #fff;
  background: linear-gradient(
    90deg,
    rgba(26, 26, 28, 0.87) 0%,
    rgba(13, 15, 15, 1) 37%,
    rgba(10, 10, 10, 1) 100%
  );
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 2rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-meta a:hover {
  background: linear-gradient(
    90deg,
    rgba(36, 36, 38, 0.87) 0%,
    rgba(23, 25, 25, 1) 37%,
    rgba(20, 20, 20, 1) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 1.5rem;
    margin: 2% auto;
  }
  
  .modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .modal-header img {
    width: 80px;
    height: 80px;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
  
  .project-meta {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .project-meta a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1.2rem;
    border-radius: 1.5rem;
  }
  
  .modal-title {
    font-size: 1.3rem;
  }
  
  .modal-body {
    font-size: 0.9rem;
  }
  
  .tech-stack li {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}