/* ====== GLOBAL ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: #0d1117;
  color: #e6edf3;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3 {
  color: #fff;
  text-align: center;
  display: inline;
  margin: 0;
  line-height: 1.2;
  /* opsional agar tidak auto-wrap */
}

a {
  color: #ed7230;
  text-decoration: none;
}

section {
  padding: 80px 10%;
}

/* === ICON STYLE === */
.section-icon {
  width: 100px;
  height: 100px;
  vertical-align: middle;
  margin-right: 10px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255, 140, 0, 0.6));
  transition: transform 0.3s ease;
}

.section-icon:hover {
  transform: scale(1.1);
}

/* ====== NAVBAR ====== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  background: #0d1117;
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  font-size: 1.6em;
  font-weight: 600;
  color: #ed7230;
}

.dot {
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: #e6edf3;
  font-weight: 500;
}

.nav-links a:hover {
  color: #ed7230;
}

/* ====== HAMBURGER ====== */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #ed7230;
  cursor: pointer;
  user-select: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background: #161b22;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    display: flex;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ====== HERO ====== */
.hero {
  text-align: center;
  padding: 120px 10%;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.hero p {
  max-width: 600px;
  margin: 10px auto;
  color: #c9d1d9;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8em;
  }

  .hero p {
    font-size: 0.95em;
  }
}

.highlight {
  color: #ed7230;
}

.btn-primary {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background: #ed7230;
  color: #0d1117;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #79c0ff;
}

/* ====== PROJECTS ====== */
.projects {
  text-align: center;
}

.project-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.project-card {
  background: #161b22;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100px;
  border-radius: 8px;
  margin: 0 auto 15px;
  /* atas-kanan-kiri bawah */
  display: block;
}


/* ====== INFO SECTIONS (ABOUT / CREATOR / CONTACT) ====== */
.info-section {
  display: flex;
  justify-content: center;
  padding: 80px 20px;
}

.info-card {
  border-radius: 12px;
  padding: 40px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-card h2 {
  font-size: 1.8rem;
  color: #e5e7eb;
  margin-bottom: 20px;
}

.info-card p {
  color: #e5e7eb;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 15px;
}

.info-card strong,
.info-card em {
  color: #0078ff;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.contact-list li {
  margin: 10px 0;
}

.contact-list a {
  text-decoration: none;
  color: #0078ff;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-list a:hover {
  color: #004fa8;
}


/* ===== FAQ STYLING ===== */
.faq {
  margin-top: 40px;
}

.faq h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #f0f0f0;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #e5e7eb;
  text-align: left;
  font-size: 1.1rem;
  padding: 12px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question::after {
  content: "+";
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  content: "–";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  color: #d1d5db;
  padding: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}


/* ====== FOOTER ====== */
footer {
  text-align: center;
  padding: 30px 10px;
  background: #161b22;
  color: #8b949e;
  font-size: 0.9em;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: #001a45;
  border-radius: 30px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff8543;
}

/* ===== GLOBAL SECTION ICON RESPONSIVE ===== */

/* Desktop - tetap sebaris */
h1 img.section-icon,
h2 img.section-icon {
  vertical-align: middle;
  margin-right: 10px;
  display: inline-block;
}

/* Mobile - ubah jadi atas-bawah */
@media (max-width: 768px) {
  h1,
  h2 {
    display: flex;
    flex-direction: column; /* ikon di atas, teks di bawah */
    align-items: center;
    text-align: center;
    line-height: 1.3;
  }

  h1 img.section-icon,
  h2 img.section-icon {
    display: block;
    margin: 0 auto 10px; /* jarak bawah antara ikon & teks */
    width: 80px; /* ikon lebih kecil di HP */
    height: auto;
  }
}
