@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root{
  --biru: #1E3A8A;
  --biru-muda: rgba(106, 173, 219, 0.7);
  --putih: #ffffff;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Poppins', sans-serif;
  background:var(--biru);
  color:var(--putih);
  padding-top:50px;
  overflow-x:hidden;
}

section{
  padding:100px 0;
  position:relative;
}

.container{
  width:90%;
  max-width:1280px;
  margin:auto;
}

.portfolio-header,
.sertifikat-header{
  max-width:760px;
  margin:0 auto 70px;
  text-align:center;
}

.portfolio-header h2,
.sertifikat-header h2{
  font-size:clamp(2rem,4vw,3rem);
  font-weight:700;
  line-height:1.2;
  margin-bottom:16px;
}

.portfolio-header p,
.sertifikat-header p{
  font-size:18px;
  line-height:1.9;
  opacity:.92;
  color:#dbeafe;
}

.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:35px;
}

.portfolio-card,
.sertifikat-card{
  position:relative;
  background:rgba(255,255,255,.98);
  overflow:hidden;
  color:#222;
  transition:transform .45s ease, box-shadow .45s ease;
  box-shadow:0 18px 40px rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.15);
}

.portfolio-card::before,
.sertifikat-card::before{
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:100%;
  height:100%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.35),transparent);
  transition:.8s ease;
  z-index:2;
}

.portfolio-card:hover::before,
.sertifikat-card:hover::before{
  left:120%;
}

.portfolio-card:hover,
.sertifikat-card:hover{
  transform:translateY(-10px);
  box-shadow:0 28px 55px rgba(0,0,0,.24);
}

.portfolio-image{
  position:relative;
  height:240px;
  overflow:hidden;
}

.portfolio-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .7s ease;
}

.portfolio-card:hover .portfolio-image img{
  transform:scale(1.06);
}

.portfolio-image::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:5px;
  background:linear-gradient(90deg,#0b6cff,#5ea6ff);
}

.portfolio-content{
  padding:28px;
}

.portfolio-content h3{
  font-size:22px;
  font-weight:600;
  margin-bottom:14px;
  color:var(--biru);
}

.portfolio-content p{
  font-size:15px;
  margin-bottom:8px;
  line-height:1.8;
  color:#475569;
}

.sertifikat{
  padding:100px 0;
}

.sertifikat-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}

.sertifikat-image{
  width:100%;
  height:300px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#f8fbff,#eef4ff);
  padding:20px;
  overflow:hidden;
}

.sertifikat-image img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  transition:transform .6s ease;
}

.sertifikat-card:hover img{
  transform:scale(1.05);
}

.sertifikat-content{
  padding:20px;
  text-align:center;
}

.cert-group-container{
  display:flex;
  flex-wrap:wrap;
  gap:120px;
  margin-top:50px;
  justify-content:center;
}

.cert-stack-wrapper{
  display:flex;
  flex-direction:column;
}

.cert-stack-wrapper h3{
  font-size:20px;
  margin-bottom:35px;
  color:var(--putih);
  border-left:4px solid #0b6cff;
  padding-left:12px;
}

.cert-stack{
  position:relative;
  width:240px;
  height:320px;
  cursor:pointer;
}

.cert-card-item{
  position:absolute;
  width:240px;
  height:320px;
  background:#fff;
  border-radius:12px;
  padding:12px;
  box-shadow:-5px 10px 25px rgba(0,0,0,.3);
  color:#222;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  transform-origin:bottom left;
  transition:transform .6s cubic-bezier(.25,1,.5,1), box-shadow .3s;
}

.cert-stack .cert-card-item{
  transform:
    rotate(calc(var(--card-index) * -4deg))
    translate(calc(var(--card-index) * 8px), calc(var(--card-index) * -8px));
  z-index: calc(10 - var(--card-index));
}

.cert-stack.spread .cert-card-item{
  transform:translateX(calc(var(--card-index) * 260px));
}

.cert-stack.spread .cert-card-item:hover{
  transform:
    translateX(calc(var(--card-index) * 260px))
    translateY(-15px);
  z-index:30;
}

.cert-card-item img{
  width:100%;
  height:82%;
  object-fit:contain;
  background:#f8fafc;
  border-radius:6px;
  border:1px solid #e2e8f0;
}

.cert-card-item span{
  font-size:11px;
  font-weight:500;
  color:#475569;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

@media(max-width:1200px){
  .cert-group-container{
    flex-direction:column;
    align-items:center;
    gap:80px;
  }
}

@media(max-width:992px){
  section{
    padding:80px 0;
  }

  .portfolio-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .portfolio-image{
    height:220px;
  }
}

@media(max-width:768px){
  .portfolio-grid,
  .sertifikat-grid{
    grid-template-columns:1fr;
  }

  .portfolio-content{
    padding:24px;
  }

  .portfolio-content h3{
    font-size:20px;
  }

  .sertifikat-image{
    height:260px;
  }

  .cert-stack{
    width:100%;
    height:auto;
    display:flex;
    flex-direction:column;
    gap:20px;
  }

  .cert-card-item{
    position:relative;
    transform:none !important;
    width:100%;
    height:auto;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
  }

  .cert-card-item img{
    height:250px;
  }

  .cert-stack.spread .cert-card-item{
    transform:none !important;
  }
}

@media(max-width:480px){
  .container{
    width:92%;
  }

  section{
    padding:70px 0;
  }

  .portfolio-image{
    height:200px;
  }

  .portfolio-content{
    padding:22px;
  }

  .sertifikat-image{
    height:220px;
  }
}

#scrollProgress{
  position:fixed;
  bottom:0;
  left:0;
  height:4px;
  width:0%;
  background:linear-gradient(90deg,#1E3A8A,#3B82F6,#60A5FA);
  z-index:9999;

  box-shadow:
    0 0 8px rgba(59,130,246,0.8),
    0 0 16px rgba(30,58,138,0.6);

  filter: drop-shadow(0 0 6px rgba(59,130,246,0.9));
  border-radius: 10px;
  transition: width 0.1s linear;
}

html{
  scroll-behavior:smooth;
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;

  width: 55px;
  height: 55px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  color: white;

  border-radius: 16px;

  background: rgba(11, 108, 255, 0.45);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border: 1px solid rgba(255,255,255,0.15);

  box-shadow: 0 4px 20px rgba(0,0,0,0.2);

  z-index: 9999;

  transition: all 0.4s ease;

  opacity: 0;
  pointer-events: none;

  transform: translateY(20px);
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;

  transform: translateY(0);
}

.scroll-top:hover {
  background: rgba(11, 108, 255, 0.75);

  transform: translateY(-5px) scale(1.05);

  box-shadow: 0 8px 25px rgba(11,108,255,0.35);
}

.project-table{
  padding:60px 20px;
  background:transparent;
  color:#ffffff;
  overflow-x:auto;
}

.project-table table{
  width:100%;
  min-width:700px;
  border-collapse:collapse;
  font-size:14px;
  color:#ffffff;
}

.project-table thead th{
  border:1px solid #ccc;
  padding:15px;
  text-align:center;
  font-weight:bold;
  background:transparent;
  color:#ffffff;
}

.project-table tbody td{
  border:1px solid #ccc;
  padding:15px;
  vertical-align:middle;
  color:#ffffff;
}

.project-table tbody td:first-child{
  text-align:center;
  font-weight:bold;
  font-size:16px;
  color:#ffffff;
}

.project-table tbody tr:hover{
  background:rgba(0,0,0,0.05);
}

.footer {
  background: #1E3A8A;              
  color: #ffffff;                    
  padding: 50px 0;
  font-family: 'Poppins', sans-serif;
  }
  
  .footer-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  }
  
  .footer-col {
  flex: 1;
  }
  
  .footer-col h3,
  .footer-col h4 {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 600;
  }
  
  .footer-col p {
  margin: 6px 0;
  font-size: 14px;
  color: white;     
  line-height: 1.6;
  }
  
  @media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 25px;
  }
  }