/* Reset dasar */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f9;
  color: #333;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* Header */
header {
  position: relative;
  text-align: center;
  padding: 20px;
  background: #333;
  color: white;
}
header img {
  height: 50px;
  vertical-align: middle;
  margin-right: 10px;
}
header h1 {
  display: inline-block;
  vertical-align: middle;
  font-size: 1.8rem;
}
header p { font-size: 1rem; opacity: 0.85; }

/* Dark mode button */
.dark-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

/* Navbar */
nav {
  display: flex;
  justify-content: center;
  background: #333;
  padding: 10px;
  gap: 20px;
}
nav a {
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}
nav a:hover { background: #555; }

/* Hero section dengan banner */
.hero {
  background: url("img/banner.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;     /* batas lebar biar tidak melebar */
  margin: 0 auto;       /* otomatis center */
  text-align: center;   /* pastikan teks rata tengah */
}
.hero h1 { font-size: 2.5rem; margin-bottom: 15px; }
.hero p { font-size: 1.2rem; margin-bottom: 25px; }
.btn-primary {
  background: white;
  color: #4f46e5;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.2s;
}
.btn-primary:hover { background: #e0e7ff; color: #3730a3; }

/* Container */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
}
.container h2 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #4f46e5;
}
.container p {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #444;
}

/* Search bar */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.search-bar input,
.search-bar select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}
.search-bar input { flex: 1; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* Card */
.software-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.software-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.software-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.card-content {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-content h2 { font-size: 1.2rem; margin-bottom: 5px; color: #222; }
.badge {
  display: inline-block;
  background: #e0e7ff;
  color: #4338ca;
  padding: 2px 8px;
  font-size: 0.8rem;
  border-radius: 12px;
  margin-bottom: 10px;
}
.card-content p { font-size: 0.9rem; color: #555; margin-bottom: 10px; }
.details { list-style: none; font-size: 0.85rem; color: #444; margin-bottom: 15px; }
.details li { margin: 4px 0; }

.download-btn {
  display: block;
  text-align: center;
  padding: 10px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}
.download-btn:hover {
  background: linear-gradient(135deg, #3730a3, #0891b2);
}

/* About page */
.about-hero {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  text-align: center;
  padding: 60px 20px;
  border-radius: 10px 10px 0 0;
}
.about-hero h1 { font-size: 2rem; margin-bottom: 10px; }
.about-hero p { font-size: 1.1rem; opacity: 0.9; }
.mission-box {
  background: #f9fafb;
  border-left: 5px solid #4f46e5;
  padding: 15px;
  margin-top: 20px;
  border-radius: 6px;
}
.mission-box h3 { margin-bottom: 8px; color: #4f46e5; }

/* Contact page */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form label { font-weight: bold; margin-top: 8px; }
.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}
.contact-form button { align-self: flex-start; }
.success-message { display: none; color: green; margin-top: 10px; }

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #333;
  color: white;
  margin-top: 30px;
  font-size: 0.9rem;
}

/* Dark mode */
.dark-mode { background: #1f2937; color: #f9fafb; }
.dark-mode header { background: #111827; }
.dark-mode nav { background: #111827; }
.dark-mode .software-card { background: #374151; color: #f9fafb; }
.dark-mode .card-content p,
.dark-mode .details { color: #ddd; }
.dark-mode footer { background: #111827; }
