/* ===== Style Umum ===== */
body {
  background-color: #0d1b2a; /* biru gelap */
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: white;
}

/* ===== Navigasi ===== */
nav {
  background-color: #1b263b;
  padding: 12px;
  text-align: center;
  position: sticky;
  top: 0;
}

nav a {
  color: #e0e1dd;
  text-decoration: none;
  margin: 0 15px;
  font-size: 14px;
  transition: 0.3s;
}

nav a:hover {
  color: #ffd60a;
}

/* ===== Efek Ngetik ===== */
.typing {
  font-size: 22px;
  font-weight: bold;
  color: #ffd60a;
  border-right: 3px solid #ffd60a;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  margin: auto;
  animation: typing 3s steps(30, end) forwards,
             blink 0.7s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 250px }
}

@keyframes blink {
  from, to { border-color: transparent }
  50% { border-color: #ffd60a; }
}

/* ===== Judul ===== */
h1 {
  color: #ffd60a;
  text-align: center;
  font-size: 40px;
  margin-top: 20px;
}

p {
  text-align: center;
  font-size: 18px;
}

/* ===== Project / Card ===== */
.project-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  background: #1b263b;
  border-radius: 12px;
  padding: 20px;
  width: 220px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
  outline: none;
}

.project-card:hover {
  transform: scale(1.05);
}

.project-card:focus {
  border: 2px solid #ffd60a;
  box-shadow: 0 6px 14px rgba(255, 214, 10, 0.6);
  transform: scale(0.98);
}

/* ===== Footer / Kontak ===== */
footer#contact {
  background: #1b263b;
  padding: 20px; /* lebih tipis */
  margin-top: 40px;
  text-align: center;
  border: 1.5px solid #ffd60a;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  color: #e0e1dd;
  font-family: Arial, sans-serif;
  font-size: 0.8em;
}

/* Tombol WhatsApp */
.wa-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: bold;
  border: 1.5px solid #ffd60a;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.wa-btn:hover {
  background: #1ebe5c;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* ===== Responsive Mobile ===== */
@media (max-width: 600px) {
  h1 {
    font-size: 28px;
  }

  p {
    font-size: 16px;
    padding: 0 10px;
  }

  nav a {
    display: block;
    margin: 5px 0;
    font-size: 14px;
  }

  .project-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .project-card {
    width: 90%;
    padding: 15px;
  }

  footer#contact {
    padding: 10px;
    font-size: 0.7em;
  }

  .wa-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .typing {
    font-size: 18px;
    width: 200px;
  }
}
