/* =========================================
   PROJECT MODAL STYLES
   ========================================= */

.modal {
  display: none;
  position: fixed;
  z-index: 100000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 1rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0;
}

.modal-body {
  padding: 2.5rem;
}

.modal-category {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.modal-description {
  color: #cccccc;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.modal-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.modal-tech {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-link {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.modal-link-primary {
  background: #FFFFFF;
  color: #000000;
}

.modal-link-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.modal-link-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.modal-link-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.project-card-simplified {
  cursor: pointer;
  transition: all 0.3s ease;
  border: none !important;
}

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

.project-btn-view {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.project-btn-view:hover {
  background: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  color: #000000;
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .modal-content {
    margin: 1rem;
    max-height: 85vh;
  }

  .modal-image {
    height: 200px;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
  }
  
  .modal-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .modal-category {
    font-size: 0.7rem;
  }
  
  .modal-tech {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
  
  .modal-link {
    font-size: 0.85rem;
    padding: 0.65rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    margin: 0.5rem;
    max-height: 90vh;
  }
  
  .modal-image {
    height: 150px;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-title {
    font-size: 1.25rem;
  }
  
  .modal-close {
    width: 30px;
    height: 30px;
    font-size: 1.25rem;
  }
  
  .modal-description {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  
  .modal-category {
    font-size: 0.65rem;
  }
  
  .modal-tech {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
  
  .modal-link {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }
  
  .modal-tech-list {
    gap: 0.4rem;
  }
  
  .modal-links {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .modal-link {
    width: 100%;
    justify-content: center;
  }
}


/* Scroll customizado para o modal */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

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

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Toggle Projects Button */
#toggle-projects {
  transition: all 0.3s ease;
}

#toggle-projects:hover {
  background: #FFFFFF !important;
  color: #000000 !important;
  transform: translateY(-2px);
}
