/* -------------------
   PRODUCT CARD
-------------------- */
.product-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(13, 43, 85, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(201, 168, 76, 0.25);
  border-color: var(--color-accent);
}

.card-image {
  position: relative;
  height: 200px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--color-primary);
  color: var(--color-accent);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid var(--color-accent);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.product-desc {
  font-size: 0.9rem;
  color: var(--color-text);
  opacity: 0.8;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* -------------------
   BUTTONS
-------------------- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline-gold:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

/* -------------------
   FILTER & SEARCH BAR
-------------------- */
.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  max-width: 500px;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--color-primary);
  border-radius: 25px;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.3s ease;
}

.search-input:focus {
  box-shadow: 0 0 8px rgba(13, 43, 85, 0.3);
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-btn {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-primary);
}

/* -------------------
   GRID LAYOUT
-------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

/* Responsive 3 Kolom */
@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -------------------
   ANIMATIONS
-------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------
   MODAL POPUP
-------------------- */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(13, 43, 85, 0.7); /* Navy transparan */
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: var(--color-background);
  margin: 5% auto; 
  padding: 2.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  position: relative;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  animation: modalFadeIn 0.3s ease;
}

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

.close-modal {
  color: var(--color-text);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--color-primary);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.modal-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.modal-title {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* -------------------
   PRICING TABLE (SEWA MILIK)
-------------------- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(13, 43, 85, 0.1);
}

.pricing-table th, .pricing-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.pricing-table th {
  background-color: var(--color-primary);
  color: var(--color-accent);
  font-weight: 600;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.modal-subtitle {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* -------------------
   PORTFOLIO CONTROLS
-------------------- */
.portfolio-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(13, 43, 85, 0.05);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.select-filter {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  min-width: 150px;
  outline: none;
}

.select-filter:focus {
  border-color: var(--color-primary);
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.view-toggle .btn.active {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* -------------------
   TIMELINE VIEW
-------------------- */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-accent);
  border-radius: 4px;
}

.timeline-year {
  margin-bottom: 3rem;
  position: relative;
}

.year-label {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary);
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  left: -2.8rem;
  border: 2px solid var(--color-accent);
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  position: relative;
  padding-left: 1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 1rem;
  width: 1rem;
  height: 1rem;
  background: var(--color-primary);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(13, 43, 85, 0.05);
  border-left: 4px solid var(--color-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 15px rgba(13, 43, 85, 0.1);
}

/* -------------------
   TABLE VIEW
-------------------- */
.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(13, 43, 85, 0.05);
  min-width: 800px;
}

.data-table th, .data-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.data-table th {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background-color: #f9fbfd;
}
