/* ============================================================
   experience.css — Khusus styling untuk section #portfolio
   (Tabs, Cards, Gallery, Modal)
   ============================================================ */

/* ── Tab Navigation ──────────────────────────────────────── */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.tab-btn {
  background: #fff;
  color: #001f3f;
  border: 1px solid #ccdff0;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.tab-btn:hover {
  background: #e8f4ff;
}

.tab-btn.active {
  background: #0074d9;
  color: #fff;
  border-color: #0074d9;
  box-shadow: 0 4px 15px rgba(0, 116, 217, 0.2);
}

/* ── Tab Content Animation ───────────────────────────────── */
.tab-content {
  animation: fadeIn 0.4s ease-out;
}

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

/* ── Portfolio Grid ──────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 10px;
}

/* ── Portfolio Card ──────────────────────────────────────── */
.portfolio-card {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 116, 217, 0.12);
  border-color: #0074d9;
}

/* ── Card Image ──────────────────────────────────────────── */
.card-image {
  width: 100%;
  height: 200px;
  position: relative;
  background: #f0f4f8;
  overflow: hidden;
}

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

.card-image-static {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ── Card Badge (Verified) ───────────────────────────────── */
.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #2ecc40;
  color: #fff;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: bold;
}

/* ── Card Body ───────────────────────────────────────────── */
.card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.1rem;
  color: #001f3f;
  margin-bottom: 5px;
  font-weight: 700;
  text-transform: uppercase;
}

.card-subtitle {
  color: #0074d9;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.card-date {
  color: #999;
  font-size: 0.75rem;
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.card-tags {
  margin-bottom: 12px;
}

.card-tag {
  background: #f0f7ff;
  color: #0074d9;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
}

.card-actions {
  margin-top: auto;
}

.card-link {
  display: inline-block;
  color: #0074d9;
  font-weight: bold;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.card-link:hover {
  color: #005fa3;
}

/* ── Gallery Grid ────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  height: 250px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ── Image Modal ─────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding-top: 50px;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
  box-sizing: border-box;
}

.modal-content {
  display: block;
  margin: 0 auto;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #ccc;
}

/* ── Contact Section ─────────────────────────────────────── */
.contact {
  background-color: #ffffff;
  color: #001f3f;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  margin-top: 80px;
  padding: 3rem 1rem;
  
}

.contact h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #0074d9;
  margin-bottom: 2rem;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.contact input,
.contact textarea {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #cfd8dc;
  background-color: #f5fbff;
  color: #001f3f;
  font-size: 1rem;
  transition: border 0.3s, background 0.3s;
  margin-bottom: 0;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: #78909c;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: #0074d9;
  background-color: #ffffff;
}

.contact button {
  background: #0074d9;
  color: #ffffff;
  font-weight: bold;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.contact button:hover {
  background: #005ea8;
}