/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #e4e9ee;
  color: #1e293b;
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0d4f6e;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-menu a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: #0d4f6e;
}

/* ===== PORTFOLIO HERO ===== */
.portfolio-hero {
  max-width: 1200px;
  margin: 40px auto;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #71bfdb 100%);
  border-radius: 0 24px 24px 0;
  z-index: 0;
}

.portfolio-hero-content {
  position: relative;
  z-index: 1;
}

.portfolio-hero-content h1 {
  font-size: 2.4rem;
  color: #1e3a5f;
  margin-bottom: 8px;
  font-weight: 700;
}

.portfolio-hero-content h2 {
  font-size: 1.3rem;
  color: #0d4f6e;
  margin-bottom: 20px;
  font-weight: 600;
}

.portfolio-hero-content p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 400px;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0d4f6e;
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-contact:hover {
  background: #1a7a9e;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 100px;
  background: #59d4ca;
  color: rgb(34, 66, 78);
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-link:hover {
  background: #1a7a9e;
}

.stats-row {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 24px;
  border-right: 1px solid #cbd5e1;
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  width: 40px;
  height: 40px;
  background: #fef3c7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-info .stat-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e3a5f;
}

.stat-info .stat-label {
  font-size: 0.85rem;
  color: #6b7280;
}

.portfolio-hero-image {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolio-hero-image img {
  width: 100%;
  max-width: 300px;
  height: 400px;
  border-radius: 2px;
  object-fit: cover;
}

/* ===== FILTER BUTTONS ===== */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: white;
  color: #4b5563;
  border: 2px solid #e5e7eb;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #0d4f6e;
  color: #0d4f6e;
}

.filter-btn.active {
  background: #0d4f6e;
  color: white;
  border-color: #0d4f6e;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 16px;
}

.projects-section h3 {
  font-size: 1.8rem;
  color: #1e3a5f;
  margin-bottom: 32px;
  font-weight: 700;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.project-card.hidden {
  display: none;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  margin-top: 30px;
}

.project-card-body {
  padding: 24px;
}

.project-card-body h4 {
  font-size: 1.1rem;
  color: #1e3a5f;
  margin-bottom: 8px;
  font-weight: 600;
}

.project-card-body h4 span {
  font-weight: 400;
  color: #6b7280;
  font-size: 0.9rem;
  margin-left: 8px;
}

.project-category {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-card-body ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.project-card-body li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-card-body li::before {
  content: '✓';
  color: #0d4f6e;
  font-weight: 700;
  flex-shrink: 0;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0d4f6e;
  font-weight: 600;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: #1a7a9e;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

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

.modal.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  position: relative;
  animation: slideUp 0.4s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(0,0,0,0.7);
}

.modal-image {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 20px 20px 0 0;
}

.modal-content h2 {
  font-size: 1.8rem;
  color: #1e3a5f;
  margin: 24px 32px 12px;
  font-weight: 700;
}

.modal-meta {
  display: flex;
  gap: 16px;
  margin: 0 32px 24px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e5e7eb;
}

.modal-category {
  background: #e0f2fe;
  color: #0369a1;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.modal-year {
  background: #fef3c7;
  color: #92400e;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.modal-body {
  padding: 0 32px 32px;
}

.modal-body h3 {
  font-size: 1.2rem;
  color: #1e3a5f;
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 600;
}

.modal-body p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 16px;
}

.modal-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.modal-body li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: #4b5563;
  line-height: 1.6;
}

.modal-body li::before {
  content: '▸';
  color: #0d4f6e;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 16px;
}

.skills-section h3 {
  font-size: 1.8rem;
  color: #1e3a5f;
  margin-bottom: 24px;
  font-weight: 700;
}

.skill-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.skill-info {
  flex: 1;
}

.skill-info h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: #1e3a5f;
  margin-bottom: 8px;
}

.skill-info h4 .skill-icon {
  font-size: 1.4rem;
}

.skill-info p {
  color: #4b5563;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.skill-badges {
  display: flex;
  gap: 8px;
}

.skill-badge {
  width: 24px;
  height: 24px;
  background: #e0f2fe;
  border-radius: 6px;
}

.skill-badge.active {
  background: #0d4f6e;
}

.skill-issued {
  font-size: 0.85rem;
  color: #6b7280;
}

.btn-contact-orange {
  background: #f59e0b;
  color: white;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-contact-orange:hover {
  background: #d97706;
}

/* ===== FOOTER ===== */
.portfolio-footer {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e5e7eb;
}

.footer-text {
  color: #6b7280;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.footer-social .social-icon {
  width: 32px;  /* ukuran logo */
  height: 32px;
  object-fit: contain;
  transition: transform 0.2s;
}

.footer-social .social-icon:hover {
  transform: scale(1.1);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .portfolio-hero {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  
  .portfolio-hero::before {
    width: 100%;
    height: 50%;
    top: auto;
    bottom: 0;
    border-radius: 0 0 24px 24px;
  }
  
  .stats-row {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .stat-item {
    border-right: none;
    padding-right: 0;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .skill-card {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .portfolio-footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .nav-menu {
    gap: 16px;
    font-size: 0.9rem;
  }
  
  .filter-buttons {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  
  .modal-content h2 {
    font-size: 1.5rem;
    margin: 20px 24px 10px;
  }
  
  .modal-body {
    padding: 0 24px 24px;
  }
}

@media (max-width: 600px) {
  .portfolio-hero-content h1 {
    font-size: 1.8rem;
  }
  
  .portfolio-hero-content h2 {
    font-size: 1.1rem;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 12px;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
}