/* Reset Dasar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Fredoka", sans-serif;
  background-color: #cde8fe;
  background-image:
    radial-gradient(#b2d8f8 3px, transparent 3px),
    radial-gradient(#b2d8f8 3px, #cde8fe 3px);
  background-size: 36px 36px;
  background-position:
    0 0,
    18px 18px;
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
}

.home-container {
  max-width: 900px;
  width: 100%;
}

/* Banner Sambutan */
.welcome-banner {
  background-color: #ffffff;
  border-radius: 35px;
  padding: 35px 25px;
  text-align: center;
  box-shadow:
    0 12px 0px #b0d3f0,
    0 20px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  border: 4px solid #ffffff;
}

.badge-fun {
  background-color: #fef08a;
  color: #854d0e;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 12px;
  border: 2px solid #fde047;
}

.welcome-banner h1 {
  font-size: 2.3rem;
  color: #1e3a8a;
  margin-bottom: 10px;
}

.welcome-banner p {
  color: #64748b;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Kartu */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

/* Gaya Dasar Kartu Menu */
.card {
  text-decoration: none;
  border-radius: 28px;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 4px solid #ffffff;
  position: relative;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
  box-shadow: 0 8px 0px rgba(0, 0, 0, 0.08);
}

.card:hover {
  transform: translateY(-10px) rotate(1deg) scale(1.02);
  box-shadow: 0 18px 25px rgba(0, 0, 0, 0.12);
}

.card-icon {
  font-size: 2.8rem;
  margin-bottom: 14px;
  background-color: rgba(255, 255, 255, 0.75);
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.card h2 {
  font-size: 1.35rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Tombol Putih Seragam di Dalam Kartu */
.btn-card {
  background-color: #ffffff;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 0px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  display: inline-block;
}

.card:hover .btn-card {
  background-color: #0f172a;
  color: #ffffff;
}

/* Variasi Warna Kartu Pastel */
.card-yellow {
  background-color: #fef08a;
}
.card-blue {
  background-color: #bae6fd;
}
.card-purple {
  background-color: #ddd6fe;
}
.card-pink {
  background-color: #fbcfe8;
}
.card-orange {
  background-color: #fed7aa;
}

/* =========================================
   2. WIDGET PENGUNJUNG (Tema Outline Putih)
   ========================================= */
.visitor-card {
  background-color: #ffffff;
  border: 4px solid #ffffff;
  border-radius: 50px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  width: fit-content;
  margin: 35px auto 35px auto; /* 👈 Angka 15px diganti jadi 35px agar tidak terlalu dekat dengan footer */
  box-shadow:
    0 8px 0px #b0d3f0,
    0 10px 15px rgba(0, 0, 0, 0.06);
}

.visitor-icon {
  background-color: #bae6fd;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.visitor-info-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.visitor-number {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e3a8a;
}

.visitor-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
}

/* =========================================
   3. FOOTER
   ========================================= */
.home-footer {
  margin-top: 15px;
  background-color: #ffffff;
  border-radius: 30px;
  padding: 30px 25px;
  box-shadow: 0 8px 0px rgba(0, 0, 0, 0.06);
  border: 4px solid #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-info h3 {
  color: #1e3a8a;
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.footer-info p {
  color: #475569;
  font-size: 0.95rem;
}

.footer-info .copyright {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.footer-links span {
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
}

.social-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-social {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 50px;
  color: #ffffff;
  box-shadow: 0 4px 0px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
}

.btn-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0px rgba(0, 0, 0, 0.15);
}

.btn-ig {
  background-color: #e1306c;
}
.btn-itch {
  background-color: #fa5c5c;
}
.btn-sketchfab {
  background-color: #1caad9;
}
.btn-dev {
  background-color: #0f172a;
  cursor: pointer;
  border: none;
}

/* Modal Pembuat */

.modal-overlay {
  display: none; /* 👈 Wajib ada agar modal tidak muncul terus di awal */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Latar belakang agak gelap */
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-card {
  background-color: #ffffff;
  border-radius: 35px;
  max-width: 900px;
  width: 100%;
  padding: 30px;
  text-align: center;
  position: relative;
  border: 4px solid #ffffff;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  animation: popUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Tata Letak Dua Kolom */
.dev-content-grid {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 25px;
}

/* Kolom Kiri (Foto, Nama, Role) */
.dev-profile-left {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dev-profile-left .dev-photo {
  margin-bottom: 10px;
}

.dev-profile-left h2 {
  font-size: 1.15rem;
  color: #1e3a8a;
  margin-bottom: 4px;
  line-height: 1.3;
}

.dev-role {
  font-size: 0.85rem;
  color: #64748b;
}

/* Kolom Kanan (Paragraf) */
.dev-bio-right {
  flex: 1;
  text-align: left;
}

.dev-bio-right p {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Tombol Berdampingan Kiri & Kanan (50% : 50%) */
.dev-links {
  display: flex !important;
  flex-direction: row !important; /* Paksa posisi menyamping */
  gap: 12px;
  width: 100%;
}

.dev-links .btn-link {
  flex: 1; /* Masing-masing tombol dapat porsi 50% */
  width: auto !important; /* Mencegah tombol mengambil lebar 100% sendiri */
  text-align: center;
  padding: 12px 10px;
  font-size: 0.85rem; /* Menyesuaikan agar teks muat dalam 1 baris */
  white-space: nowrap; /* Mencegah teks terpotong ke bawah */
}

/* Responsif untuk Layar HP (Otomatis Kembali Menumpuk Kebawah) */
@media (max-width: 650px) {
  .dev-content-grid {
    flex-direction: column;
    text-align: center;
  }

  .dev-bio-right {
    text-align: center;
  }

  .dev-links {
    flex-direction: column;
  }
}

@keyframes popUp {
  from {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.btn-close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background-color: #fbcfe8;
  color: #be185d;
}

.dev-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 4px solid #bae6fd;
  box-shadow: 0 6px 0px #93c5fd;
}

.modal-card h2 {
  font-size: 1.4rem;
  color: #1e3a8a;
  margin-bottom: 6px;
}

.modal-card p {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.dev-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-link {
  display: block;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 0px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0px rgba(0, 0, 0, 0.15);
}

.link-steam {
  background-color: #171a21;
  color: #c5c3c0;
}

.link-web {
  background-color: #0284c7;
  color: #ffffff;
}

/* Responsif HP */
@media (max-width: 650px) {
  .welcome-banner h1 {
    font-size: 1.8rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .home-footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    align-items: center;
    width: 100%;
  }

  .social-group {
    justify-content: center;
  }
}
