/* -- Variabel Warna & Pengaturan Dasar -- */
:root {
  --primary-color: #437057;
  --secondary-color: #3E5F44;
  --light-green: #e6f4ea;
  --background-color: #fdfaf4;
  --text-color: #2d2d2d;
  --white-color: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.7;
}

/* -- Animasi Scroll -- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -- Header (Hero) -- */
.hero {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: var(--white-color);
  text-align: center;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('pattern-islamic.png');
  background-size: cover;
  opacity: 0.1;
  background-blend-mode: overlay;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 0.3em;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.3em;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
  opacity: 0.9;
}

.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

/* -- Konten Utama -- */
main {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-size: 2.2em;
  font-weight: 700;
}

section {
    margin-bottom: 80px;
}

/* -- Tentang Aplikasi -- */
.about p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1em;
}

/* -- Fitur Unggulan -- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  justify-content: center;
}

.card {
  background-color: var(--white-color);
  padding: 30px 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 4px solid var(--primary-color);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.card i {
  font-size: 3em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.card h3 {
  font-size: 1.2em;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text-color);
}

.card p {
    font-size: 0.95em;
    color: #555;
    margin: 0;
}


/* -- Preview Aplikasi (dengan Frame HP) -- */
.preview .images {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.phone-frame {
  background: #111;
  padding: 15px 10px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.phone-frame:hover {
    transform: scale(1.05);
}

.phone-frame img {
  width: 220px;
  height: auto;
  display: block;
  border-radius: 20px;
}


/* -- Tombol Download -- */
.download {
  text-align: center;
  background-color: var(--light-green);
  padding: 60px 20px;
  border-radius: 20px;
}

.download-button {
  display: inline-block;
  margin-top: 20px;
  background: var(--primary-color);
  color: var(--white-color);
  padding: 18px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(49, 87, 44, 0.4);
}

.download-button:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(49, 87, 44, 0.5);
}

.download-button .fas {
    margin-right: 10px;
}

/* -- Footer -- */
footer {
  text-align: center;
  background-color: #f2efe8;
  padding: 25px;
  margin-top: 40px;
  color: #555;
  font-size: 0.9em;
}

footer strong {
    color: var(--primary-color);
}

/* -- Responsive Layout -- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5em;
  }
  .hero p {
    font-size: 1.1em;
  }
  h2 {
      font-size: 1.8em;
  }
}

@media (max-width: 600px) {
  .logo-title {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .logo-title div {
      text-align: center;
  }

  .phone-frame img {
    width: 180px;
  }
}
