body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f5f5;
}

header {
  background: #333;
  color: white;
  padding: 15px;
}

.header-top {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 10px;
}

.logo {
  width: 100px;
  height: auto;
}

.header-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header-info h2 {
  margin: 0 0 10px 0;
  font-size: 18px;
}

.btn-whatsapp {
  background: #25D366;
  padding: 8px 12px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}
.btn-whatsapp:hover {
  background: #128C7E;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}
nav ul li a:hover {
  color: #25D366;
}

.hero {
  padding: 50px;
  text-align: center;
  background: #2196f3;
  color: white;
}

.service {
  background: white;
  margin: 20px;
  padding: 20px;
  border-radius: 5px;
}

.btn {
  background: red;
  padding: 10px;
  color: white;
  text-decoration: none;
}

/* === Responsive untuk layar HP/tablet === */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;   /* logo dan info jadi vertikal */
    align-items: center;      /* rata tengah */
    text-align: center;
  }

  .header-info {
    align-items: center;      /* teks + tombol rata tengah */
  }

  .header-info h2 {
    font-size: 16px;          /* sedikit lebih kecil di HP */
  }

  nav ul {
    flex-direction: column;   /* menu jadi vertikal */
    gap: 10px;
    align-items: center;
  }
}

.service-img {
  width: 100%;
  max-width: 400px;
  margin-top: 10px;
  border-radius: 10px;
  display: block;
}

.service {
  margin-bottom: 30px;
}

.service-img {
  transition: 0.3s;
}

.service-img:hover {
  transform: scale(1.05);
}

.slider {
  position: relative;
  max-width: 75%;
  margin: 10px auto; /* 🔥 ini bikin center */
  overflow: hidden;
}

/* tombol slider */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  
  width: 45px;
  height: 45px;
  
  border-radius: 50%;
  border: none;
  
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  font-weight: bold;
  color: white;
  
  background: transparent;
  
  cursor: pointer;
  z-index: 10;

  transition: 0.3s;
}

/* posisi */
.prev { left: 10px; }
.next { right: 10px; }

/* hover & tap */
.prev:hover, .next:hover,
.prev:active, .next:active {
  background: #2196f3;
  box-shadow: 0 0 10px rgba(33,150,243,0.8),
              0 0 20px rgba(33,150,243,0.6),
              0 0 30px rgba(33,150,243,0.4);
}

.prev:active, .next:active {
  transform: translateY(-50%) scale(0.9);
}

@media (max-width: 600px) {
  .prev, .next {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

.slider {
  min-height: 200px;
}

.slides {
  display: flex;
  transition: transform 0.3s ease;
  touch-action: pan-y; /* 🔥 penting untuk swipe */
}

.service h3,
.service p {
  text-align: center;
}

.service {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

footer {
  text-align: center;
  padding: 15px;
}

section h2 {
  margin-left: 30px; /* 🔥 geser ke kanan sedikit */
}

.slides img {
  width: 100%;
  height: 450px; /* 🔥 samakan tinggi semua gambar */
  object-fit: cover; /* 🔥 crop otomatis biar proporsional */
  border-radius: 10px;
  flex-shrink: 0;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.service-item {
  background: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.service-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 10px;
}

.btn-kembali {
  display: block;        /* biar bisa diatur posisinya */
  text-align: right;     /* teks rata kanan */
  margin: 30px;          /* jarak dari tepi layar */
  font-weight: bold;     /* opsional, biar lebih jelas */
  color: #333;           /* warna teks */
  text-decoration: none; /* hilangkan garis bawah */
}

.btn-kembali:hover {
  color: #25D366;        /* efek hover hijau */
}

.contact-info {
  margin-left: 30px;   /* geser ke kanan */
  font-size: 16px;     /* opsional, biar lebih rapi */
  line-height: 1.6;    /* jarak antar baris lebih nyaman */
}

form {
  max-width: 600px;       /* batasi lebar form */
  margin: 30px auto;      /* rata tengah */
  padding: 20px;
  background: #fff;       /* latar putih */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

form input,
form select,
form textarea {
  width: 100%;            /* isi penuh */
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

form textarea {
  min-height: 100px;
  resize: vertical;       /* bisa diubah tinggi */
}

form button {
  width: 100%;
  padding: 12px;
  background: #25D366;    /* warna WhatsApp */
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background: #128C7E;    /* efek hover */
}

/* Responsif untuk HP */
@media (max-width: 480px) {
  form {
    padding: 15px;
    margin: 20px;
  }

  form button {
    font-size: 14px;
    padding: 10px;
  }
}

/* kiri */
.music-player {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.music-player button {
  background: #25D366;
  border: none;
  padding: 6px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-player img {
  display: block;
}

.music-player span {
  font-size: 12px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* KHUSUS PORTOFOLIO */
.portfolio-slider .slides img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  background: #000;
}

.linkedin-box {
  text-align: center;
  margin-top: 10px;
}

.linkedin-box a {
  display: inline-block;
  padding: 8px 15px;
  background: #0A66C2; /* warna LinkedIn */
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.3s;
}

.linkedin-box a:hover {
  background: #004182;
}

/* 🔗 LinkedIn * * kanan */
.linkedin-link {
  text-decoration: none;
  background: #007bff;
  color: white; /* ini yang bikin tulisan putih */
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  transition: 0.3s;
}

/* icon linkedin */
.linkedin-icon {
  width: 18px;
  height: 18px;
}

.linkedin-link:hover {
  background: #0056b3;
  color: white;
}

.header-top {
  display: flex;
  align-items: center; /* 🔥 biar sejajar tengah */
}

/* 🔥 BARIS MUSIC + LINKEDIN */
.music-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 5px 10px;
}

/* Grup kanan */
.right-links {
  display: flex;
  align-items: center;
  gap: 12px; /* jarak antar tombol */
  flex-wrap: nowrap; /* jangan turun ke bawah */
}

/* optional biar lebih rapi */
.linkedin-link img {
  margin-right: 5px;
}

/* Tombol PDDIKTI */
.pddikti-link {
  text-decoration: none;
  background: #007bff;
  color: white; /* ini yang bikin tulisan putih */
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  transition: 0.3s;
}

.pddikti-link:hover {
  background: #0056b3;
}

@media (max-width: 600px) {
  .music-bar {
    flex-direction: row; /* tetap horizontal */
  }

  .right-links {
    flex-wrap: nowrap;
    gap: 8px;
  }
}

.right-links a {
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ========================= */
/* TABEL SERTIFIKAT */
/* ========================= */

.certificate-table{
    width:95%;
    max-width:1200px;
    margin:20px auto 30px;
    border:1px solid #ddd;
    border-radius:8px;
    overflow:hidden;
    background:#fff;
}

.certificate-header,
.certificate-row{
    display:grid;
    grid-template-columns:60px 140px 1fr 250px 100px;
    align-items:center;
}

.certificate-header{
    background:#25D366;
    color:white;
    font-weight:bold;
}

.certificate-header div,
.certificate-row div{
    padding:12px 10px;
    border-bottom:1px solid #eee;
}

.certificate-row:nth-child(even){
    background:#f8f8f8;
}

.certificate-row:hover{
    background:#eefcf3;
}

.badge-new{
    display:inline-block;
    background:#ff3b30;
    color:white;
    font-size:12px;
    font-weight:bold;
    padding:4px 10px;
    border-radius:20px;
}

.badge-old{
    display:inline-block;
    background:#999;
    color:white;
    font-size:12px;
    font-weight:bold;
    padding:4px 10px;
    border-radius:20px;
}

/* MOBILE */

@media(max-width:768px){

    .certificate-header{
        display:none;
    }

    .certificate-row{
        display:block;
        margin-bottom:12px;
        border-bottom:2px solid #ddd;
        background:#fff !important;
    }

    .certificate-row div{
        padding:6px 12px;
        border:none;
    }

    .certificate-row div::before{
        font-weight:bold;
        display:inline-block;
        width:90px;
    }

    .certificate-row div:nth-child(1)::before{
        content:"No : ";
    }

    .certificate-row div:nth-child(2)::before{
        content:"Tanggal : ";
    }

    .certificate-row div:nth-child(3)::before{
        content:"Sertifikat : ";
    }

    .certificate-row div:nth-child(4)::before{
        content:"Penerbit : ";
    }

    .certificate-row div:nth-child(5)::before{
        content:"Status : ";
    }
}

#playBtn,
#pauseBtn {
  background: #25D366;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;

  /* Animasi halus */
  transition: all 0.3s ease;
}

#playBtn:hover,
#pauseBtn:hover {
  background: orange;
  color: black;

  /* Sedikit membesar */
  transform: scale(1.05);
}