:root {
  --primary: #2d5a27;
  --secondary: #d4af37;
  --bg-color: #fffdd0;
  --text-dark: #333333;
  --text-light: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

#home {
  text-align: center;
  padding: 110px 20px 110px;
  background:
    linear-gradient(rgba(45, 90, 39, 0.75), rgba(45, 90, 39, 0.9)),
    url("https://images.unsplash.com/photo-1564144004907-fb4a36be5b5c?auto=format&fit=crop&w=1920&q=80")
      center/cover no-repeat;
  color: var(--text-light);
  margin-bottom: 60px;
  position: relative;
}

#home::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: var(--bg-color);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 50% 100%, 0 0);
}

#home h1 {
  font-size: clamp(2.2rem, 10vw, 3.5rem);
  color: var(--secondary);
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  animation: fadeInDown 1s ease;
}

#home p {
  font-size: clamp(1rem, 4vw, 1.3rem);
  font-weight: 400;
  line-height: 1.8;
  color: #fdfdfd;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

#fitur {
  padding: 40px 5% 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  color: var(--primary);
  margin-bottom: 50px;
  font-size: clamp(1.8rem, 6vw, 2.2rem);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
  margin: 15px auto 0;
  border-radius: 2px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 80%, 300px), 1fr));
  gap: 20px;
}

.card {
  background: #ffffff;
  border-radius: 15px;
  padding: 40px 25px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 4px solid transparent;
}

.card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-bottom: 4px solid var(--secondary);
}

.card-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 25px;
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1);
  color: var(--secondary);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 25px;
  flex-grow: 1;
}

.btn-buka {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease;
}

.btn-buka:hover {
  background-color: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
}

footer {
  background-color: var(--primary);
  color: var(--text-light);
  text-align: center;
  padding: 60px 20px calc(25px + env(safe-area-inset-bottom, 0));
  margin-top: 50px;
  position: relative;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.quote {
  font-style: italic;
  color: var(--secondary);
  margin-bottom: 30px;
  font-size: 1.2rem;
  line-height: 1.8;
  padding: 0 20px;
}

.social-links {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 1.4rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background-color: var(--secondary);
  color: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 25px;
  opacity: 0.8;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  #home {
    padding: 90px 20px 90px;
  }

  #home h1 {
    font-size: 2.5rem;
  }

  #home p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}
