/* ========================================
   PROJECTS MODAL - NETFLIX STYLE
   ======================================== */

/* Nav Projects Button */
.nav-projects-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #FF8700 0%, #E67800 100%);
  border: none;
  border-radius: 30px;
  color: white;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 135, 0, 0.3);
}

.nav-projects-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 135, 0, 0.4);
}

.nav-projects-btn .btn-icon {
  font-size: 1rem;
}

.nav-projects-btn.mobile {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
  margin: 0.5rem 0;
}

/* Modal Container */
.projects-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.projects-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Overlay */
.projects-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

/* Modal Content */
.projects-modal-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  padding: 2rem;
  overflow-y: auto;
  transform: scale(0.9) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-modal.active .projects-modal-content {
  transform: scale(1) translateY(0);
}

/* Close Button */
.projects-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.projects-modal-close svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

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

/* Modal Header */
.projects-modal-header {
  text-align: center;
  margin-bottom: 3rem;
}

.projects-modal-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.projects-modal-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Project Card */
.project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.project-card:hover {
  transform: scale(1.05);
  z-index: 10;
}

.project-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card-bg {
  transform: scale(1.1);
}

.project-card-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  z-index: 2;
}

/* Featured Project Card */
.project-card.featured {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

.project-card.featured .project-card-content {
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.project-card.featured .project-image {
  height: 80%;
  width: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  animation: floatCan 3s ease-in-out infinite;
}

@keyframes floatCan {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Project Badge */
.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  z-index: 5;
}

.project-badge.soon {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Project Info */
.project-info {
  flex: 1;
}

.project-info.compact {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  margin: -1.5rem;
  padding: 3rem 1.5rem 1.5rem;
}

.project-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Project Tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Project Preview */
.project-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.project-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: all 0.4s ease;
}

.project-card:hover .project-preview-img {
  opacity: 0.8;
  transform: scale(1.1);
}

/* Hover Action */
.project-hover-action {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 25px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.project-hover-action svg {
  width: 16px;
  height: 16px;
}

.project-card:hover .project-hover-action {
  opacity: 1;
  transform: translateY(0);
}

/* Coming Soon Card */
.project-card.coming-soon {
  cursor: default;
  opacity: 0.7;
}

.project-card.coming-soon:hover {
  transform: none;
}

.project-card.coming-soon .project-card-content {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.project-coming-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 100;
}

/* Logo Placeholder for Coming Soon Projects */
.project-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  margin-bottom: 1rem;
}

.project-logo-placeholder span {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 768px) {
  .project-card.featured {
    grid-column: span 1;
    aspect-ratio: 4/5;
  }
  
  .project-card.featured .project-card-content {
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
  }
  
  .project-card.featured .project-image {
    height: auto;
    max-height: 40%;
    margin-bottom: 1rem;
  }
  
  .projects-modal-content {
    padding: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
