/* TeDaCo Portfolio Modal */
.portfolio-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio-modal.show {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.portfolio-modal-content {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  margin: 2rem;
  padding: 0;
  border: 1px solid rgba(63, 205, 199, 0.3);
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(63, 205, 199, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.8) translateY(-50px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.portfolio-modal-header {
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid rgba(63, 205, 199, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(63, 205, 199, 0.1), rgba(233, 142, 6, 0.1));
}

.portfolio-modal-header h2 {
  margin: 0;
  color: #3fcdc7;
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.portfolio-close {
  color: #cccccc;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.portfolio-close:hover {
  color: #ff689b;
  background: rgba(255, 104, 155, 0.2);
  transform: scale(1.1);
}

.portfolio-modal-body {
  padding: 2rem;
  color: #cccccc;
}

.portfolio-description {
  margin-bottom: 2rem;
}

.portfolio-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e0e0e0;
}

.portfolio-images {
  margin-bottom: 2rem;
}

.portfolio-image-placeholder {
  background: linear-gradient(135deg, rgba(63, 205, 199, 0.1), rgba(233, 142, 6, 0.1));
  border: 2px dashed rgba(63, 205, 199, 0.3);
  border-radius: 10px;
  padding: 3rem;
  text-align: center;
  color: #888;
}

.portfolio-image-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #3fcdc7;
}

.portfolio-details {
  margin-bottom: 2rem;
}

.portfolio-details h4 {
  color: #3fcdc7;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: bold;
}

.portfolio-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portfolio-details li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.portfolio-details li:hover {
  background: rgba(63, 205, 199, 0.1);
  padding-left: 1rem;
  border-radius: 5px;
}

.portfolio-details li i {
  color: #3fcdc7;
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.portfolio-standards h4 {
  color: #e98e06;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: bold;
}

.portfolio-standards div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.standard-badge {
  background: linear-gradient(45deg, #3fcdc7, #e98e06);
  color: #1a1a1a;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.standard-badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(63, 205, 199, 0.3);
}

/* Custom Scrollbar for Modal */
.portfolio-modal-content::-webkit-scrollbar {
  width: 8px;
}

.portfolio-modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.portfolio-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3fcdc7, #e98e06);
  border-radius: 4px;
}

.portfolio-modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff689b, #8660fe);
}

/* Responsive Design */
@media (max-width: 768px) {
  .portfolio-modal-content {
    margin: 1rem;
    width: calc(100% - 2rem);
    max-height: 95vh;
  }
  
  .portfolio-modal-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
  }
  
  .portfolio-modal-header h2 {
    font-size: 1.5rem;
  }
  
  .portfolio-modal-body {
    padding: 1.5rem;
  }
  
  .portfolio-close {
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
  }
  
  .portfolio-image-placeholder {
    padding: 2rem;
  }
  
  .portfolio-image-placeholder i {
    font-size: 2rem;
  }
  
  .standard-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Animation for list items */
.portfolio-details li {
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.3s ease forwards;
}

.portfolio-details li:nth-child(1) { animation-delay: 0.1s; }
.portfolio-details li:nth-child(2) { animation-delay: 0.2s; }
.portfolio-details li:nth-child(3) { animation-delay: 0.3s; }
.portfolio-details li:nth-child(4) { animation-delay: 0.4s; }
.portfolio-details li:nth-child(5) { animation-delay: 0.5s; }
.portfolio-details li:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation for standard badges */
.standard-badge {
  opacity: 0;
  transform: scale(0.8);
  animation: scaleIn 0.3s ease forwards;
}

.standard-badge:nth-child(1) { animation-delay: 0.1s; }
.standard-badge:nth-child(2) { animation-delay: 0.2s; }
.standard-badge:nth-child(3) { animation-delay: 0.3s; }

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
