/* projects-style.css */
body { 
  font-family: "Inter", sans-serif; 
  background: #f8fafc;
}

/* NAVBAR DENGAN BACKGROUND SAMA SEPERTI HEADER */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: #60a5fa;
}

.nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #60a5fa;
}

/* Page Header */
.page-header {
  padding: 7rem 0 3rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  margin-bottom: 2rem;
}

/* Project Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

/* Project Card */
.project-card { 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.project-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.card-image {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}

.card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .card-image img {
  transform: scale(1.05);
}

/* Category Badge */
.category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  color: white;
}

.category-live {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.category-video {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Card Content */
.card-content {
  padding: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-client {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.card-date {
  font-size: 12px;
  color: #9ca3af;
}

/* Back Button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.back-btn:hover {
  color: #ffffff;
  transform: translateX(-5px);
}

/* Loading */
.loading-spinner {
  border: 3px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Project Count */
.project-count {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  color: white;
  font-size: 24px;
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: #60a5fa;
}

.mobile-nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

/* PROJECT DETAIL MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  overflow-y: auto;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease;
}

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

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #1f2937;
}

.modal-body {
  padding: 20px;
}

/* YouTube Embed */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Project Details Grid */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.detail-item {
  background: #f8fafc;
  padding: 14px;
  border-radius: 8px;
}

.detail-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.detail-value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
}

/* Client dengan Logo */
.client-with-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.client-name {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
}

/* Primary Button */
.primary-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* FOOTER SEDERHANA */
.simple-footer {
  background: #111827;
  color: white;
  padding: 1.5rem 0;
  text-align: center;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.social-link.instagram:hover {
  background: #E1306C;
}

.social-link.youtube:hover {
  background: #FF0000;
}

.social-link.whatsapp:hover {
  background: #25D366;
}

.copyright {
  color: #9ca3af;
  font-size: 0.75rem;
}

/* Responsive untuk Projects Pages */
@media (max-width: 768px) {
  .page-header {
    padding: 6rem 0 2rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .modal-content {
    max-height: 95vh;
  }
  
  .modal-body {
    padding: 16px;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-header {
    padding: 16px;
  }
  
  .modal-title {
    font-size: 18px;
  }
  
  .simple-footer {
    padding: 1rem 0;
    margin-top: 2rem;
  }
  
  .social-link {
    width: 36px;
    height: 36px;
  }
  
  h1 {
    font-size: 2rem !important;
  }
  
  .page-header p {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .page-header {
    padding: 5rem 0 1.5rem;
  }
  
  h1 {
    font-size: 1.75rem !important;
  }
  
  .card-title {
    font-size: 15px;
  }
  
  .card-content {
    padding: 12px;
  }
  
  .project-count {
    font-size: 13px;
  }
  
  .modal-content {
    max-height: 85vh;
  }
}