/* BUTTON CV */
.btn-cv {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background: #0d47a1;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.btn-cv:hover {
  background: #08306b;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .tentang-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-container {
    justify-content: center;
  }
}

@media (max-width: 480px) {

  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  section {
    padding: 25px 15px;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f4f6f8;
  color: #333;
}

.header {
  background: #0d47a1;
  color: white;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.header h1 {
  font-size: 22px;
}

/* NAV */
nav a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

nav a:hover {
  color: #ffeb3b;
}


nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
}

section {
  padding: 40px;
}

h2 {
  margin-bottom: 20px;
  color: #0d47a1;
}

/* Tentang */
.tentang-box {
  display: flex;
  gap: 20px;
}

.foto-profil {
  width: 200px;
  height: 200px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.tentang-text {
  max-width: 500px;
}

/* Kegiatan & Sertifikat */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 10px;
}

/* FOTO BOX FIX */
.foto-box {
  width: 100%;
  height: 150px;
  background: #ccc;
  border-radius: 8px;
  overflow: hidden; /* INI KUNCI UTAMA */
  position: relative;
  cursor: pointer;
}

.foto-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* BIAR KE-CROP RAPI */
  display: block;
}


textarea {
  width: 100%;
  height: 80px;
  resize: none;
  padding: 8px;
}

/* Skill */
.skill-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.skill {
  text-align: center;
  position: relative;
}

svg {
  width: 120px;
  height: 120px;
}

circle {
  fill: none;
  stroke-width: 10;
  stroke: #ddd;
  transform: rotate(-90deg);
  transform-origin: center;
}

circle:last-child {
  stroke: #0d47a1;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: 1s;
}

footer {
  text-align: center;
  padding: 20px;
  background: #0d47a1;
  color: white;
}
/* HOVER FOTO BOX */
.foto-box {
  transition: all 0.3s ease;
  cursor: pointer;
}

.foto-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  background: #bdbdbd;
}
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.btn-cv {
  transition: all 0.3s ease;
}

.btn-cv:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(13,71,161,0.6);
}
.skill {
  transition: transform 0.3s ease;
}

.skill:hover {
  transform: scale(1.08);
}

.skill:hover circle:last-child {
  stroke: #1565c0;
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
/* DARK MODE BUTTON */
.dark-toggle {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

.dark-toggle:hover {
  background: white;
  color: #0d47a1;
}
/* ================= DARK MODE ================= */
body.dark {
  background: #121212;
  color: #e0e0e0;
}

body.dark header,
body.dark footer {
  background: #1f1f1f;
}

body.dark h2 {
  color: #90caf9;
}

body.dark .card {
  background: #1e1e1e;
}

body.dark .foto-box,
body.dark .foto-profil {
  background: #2a2a2a;
}

body.dark textarea {
  background: #2a2a2a;
  color: white;
  border: 1px solid #444;
}

body.dark nav a {
  color: #e0e0e0;
}

body.dark nav a:hover {
  color: #90caf9;
}

body.dark .btn-cv {
  background: #1565c0;
}

body.dark .btn-cv:hover {
  box-shadow: 0 0 15px rgba(144,202,249,0.6);
}
/* ===== MODAL FULLSCREEN FOTO ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  margin-top: 5%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}
nav a.active {
  color: #ffeb3b;
  border-bottom: 2px solid #ffeb3b;
}
body.dark nav a.active {
  color: #90caf9;
  border-bottom: 2px solid #90caf9;
}
.foto-profil {
  width: 200px;
  height: 200px;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.foto-profil img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ===== VERTICAL LIST ===== */
.kegiatan-list,
.sertifikat-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.card.vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deskripsi {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

/* DARK MODE DESKRIPSI */
body.dark .deskripsi {
  color: #ccc;
}
/* ===== GRID 2 KOLOM ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* DESKRIPSI TEXT */
.deskripsi {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

/* DARK MODE */
body.dark .deskripsi {
  color: #ccc;
}
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
