/* assets/css/porto.css  (tersimpan utuh) */
/* ---------- hidden-tool / grid Data Science ---------- */
.hidden-tool {
  display: none;
}
.design-editing-grid .hidden-tool.show {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

/* ---------- hidden-section (semua section) ---------- */
.hidden-section {
  display: none;
}
.hidden-section.show {
  display: block;
  animation: fadeIn 0.6s ease-in-out;
}

/* ---------- tombol ---------- */
.btn-gradient {
  background: linear-gradient(135deg, #381fc5, #963ee8);
  border: none;
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.2s;
}
.btn-gradient:hover {
  transform: scale(1.05);
}

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

/* ---------- Education Timeline ---------- */
.education-timeline {
  max-width: 1500px;
  margin: 0 auto;
}
.timeline-entry {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.institution-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e8e8e8;
  padding: 0.5rem;
  flex-shrink: 0;
}
.timeline-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  padding: 1.5rem 2rem;
  flex: 1;
  text-align: left;
}
.timeline-year {
  font-size: 0.95rem;
  font-weight: 700;
  color: #381fc5;
  margin-bottom: 0.25rem;
}
.timeline-degree {
  font-size: 1.2rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.15rem;
}
.timeline-institution {
  font-size: 1rem;
  color: #6c757d;
}
@media (max-width: 576px) {
  .timeline-entry {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .timeline-card {
    width: 100%;
  }
}

/* ---------- shared card styles ---------- */
.lang-item,
.framework-item,
.tool-item,
.devtool-item,
.design-item,
.office-item {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1rem 0.5rem;
  text-align: center;
  transition: transform 0.2s;
}
.lang-item img,
.framework-item img,
.tool-item img,
.devtool-item img,
.design-item img,
.office-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.35rem;
}
.lang-item span,
.framework-item span,
.tool-item span,
.devtool-item span,
.design-item span,
.office-item span {
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
}
.lang-item:hover,
.framework-item:hover,
.tool-item:hover,
.devtool-item:hover,
.design-item:hover,
.office-item:hover {
  transform: translateY(-4px);
}

/* --- Portfolio Cards & Badges --- */
.portfolio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,.12);
}

.portfolio-card .card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-card .card-title { 
  font-weight: 700; 
  margin-bottom: .5rem;
}

.portfolio-card p {
  flex-grow: 1;
}

/* === AREA GAMBAR (NO MORE KOSONG DI ATAS) === */
.portfolio-card .portfolio-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
}

.portfolio-card .portfolio-image .swiper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.portfolio-card .portfolio-image .swiper-wrapper,
.portfolio-card .portfolio-image .swiper-slide {
  height: 100%;
  
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }

.swiper-slide img {
    width: auto;              /* tidak dipaksa memenuhi lebar */
    height: auto;             /* tinggi mengikuti ukuran asli gambar */
    max-width: 100%;          /* tetap responsif agar tidak melampaui container */
    display: block;
    margin: 0 auto;           /* posisi tetap rapi di tengah */
    object-fit: contain;      /* memastikan tidak terpotong */
  }

.portfolio-card .portfolio-image .swiper-slide img {
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}



/* Tech badges */
.tech-badges span {
  display: inline-block;
  font-size: 12px;
  padding: .25rem .5rem;
  margin: .125rem .25rem .25rem 0;
  border-radius: 999px;
  background: rgba(13,110,253,.08);
  color: #0d6efd;
  font-weight: 600;
}

/* Filter Buttons */
.filter-btns .btn { 
  border-radius: 999px; 
}

/* Ensure images fill container */
.object-fit-cover { 
  object-fit: cover; 
}

/* Ensure all project cards in the grid align height */
.portfolio-grid .portfolio-item {
  display: flex;
}

.portfolio-card img {
  object-position: center top;
}


.portfolio-grid .portfolio-item > .card {
  flex: 1;
}

/* Swiper visual improvement */
.portfolio-swiper .swiper-button-prev,
.portfolio-swiper .swiper-button-next {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
}

.portfolio-swiper .swiper-button-prev:after,
.portfolio-swiper .swiper-button-next:after {
  font-size: 16px;
  color: #fff;
}

.portfolio-swiper .swiper-pagination-bullet { opacity: .4; }
.portfolio-swiper .swiper-pagination-bullet-active { opacity: 1; }

/* Make ratio box prevent layout shift */
.ratio {
  background: #f2f5f8;
  border-bottom: 1px solid #eee;
}
.badge-pub{
  display:inline-block;font-size:12px;font-weight:700;
  padding:.25rem .5rem;margin:.125rem .25rem .25rem 0;border-radius:999px;
  background:rgba(220,53,69,.08);color:#dc3545;
}
#portfolio-articles {
  padding-top: 100px;
}
/* Organizational Experience */
.org-card { border-radius: 14px; }
.org-card .card-body { padding: 1.25rem 1.25rem; }
.org-logo {
  flex: 0 0 64px;
  width: 64px; height: 64px;
  border-radius: 12px;
  background: #f5f7fb;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #ecf0f6;
  overflow: hidden;
}
.org-logo img {
  max-width: 80%; max-height: 80%;
  object-fit: contain;
}
#organizations .row > [class*="col-"] { display: flex; }
#organizations .org-card { width: 100%; }
#organizations {
  padding-top: 100px;
}
/* Work Experience */
.exp-card { border-radius: 14px; }
.exp-card .card-body { padding: 1.25rem 1.25rem; }
.exp-logo {
  flex: 0 0 64px;
  width: 64px; height: 64px;
  border-radius: 12px;
  background: #f5f7fb;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #ecf0f6;
  overflow: hidden;
}
.exp-logo img {
  max-width: 80%; max-height: 80%;
  object-fit: contain;
}
#experience .row > [class*="col-"] { display: flex; }
#experience .exp-card { width: 100%; }
#experience {
  padding-top: 100px;
}
/* Follow & Contact */
.social-card {
  border-radius: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
  background: #fff;
}

.social-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,.12);
}

.social-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #f5f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 28px;
  color: #0d6efd;
  border: 1px solid #e3e7ef;
}
#contact-follow {
  padding-top: 100px;}


/* Footer */
.footer {
  background: linear-gradient(135deg, #eef3ff 0%, #ffffff 100%);
  color: #3a3d45;
  border-top: 1px solid #dfe6f5;
}

.footer h4 {
  color: #1a1d23;
  font-weight: 700;
}

.footer p {
  color: #555d6b;
}

.footer-icon {
  font-size: 20px;
  color: #4b5af0;
  background: #e8edff;
  padding: 10px;
  border-radius: 50%;
  transition: .3s ease;
}

.footer-icon:hover {
  background: #4b5af0;
  color: #ffffff;
  transform: translateY(-4px);
}

.footer-line {
  width: 120px;
  margin: 1.3rem auto;
  border-top: 2px solid rgba(75,90,240,0.25);
}
.footer {
  box-shadow: 0 -6px 25px rgba(0,0,0,0.05);
}
