/* style.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #0b3d20;
  color: white;
  overflow-x: hidden;
}

/* LOADER */

.loader {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: #0b3d20;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: 1s;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 80px;
  height: 80px;
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-top: 8px solid #7dffae;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* HEADER */

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 15px 8%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.logo h2 {
  font-size: 18px;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: #7dffae;
}

/* HERO */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 8%;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?q=80&w=1400&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 850px;
  animation: fadeUp 1.5s ease;
}

.hero h4 {
  color: #7dffae;
  margin-bottom: 15px;
  font-size: 20px;
}

.hero h1 {
  font-size: 60px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #7dffae;
}

.hero p {
  line-height: 1.8;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* BUTTON */

.btn-primary,
.btn-secondary {
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.4s;
}

.btn-primary {
  background: #27d366;
  color: white;
}

.btn-secondary {
  border: 2px solid white;
  color: white;
}

.btn-primary:hover {
  transform: translateY(-5px);
}

.btn-secondary:hover {
  background: white;
  color: #0b3d20;
}

/* SECTION */

section {
  padding: 100px 8%;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 42px;
}

.line {
  width: 100px;
  height: 5px;
  background: #7dffae;
  margin: 15px auto;
  border-radius: 20px;
}

/* TENTANG */

.tentang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.tentang-text h3 {
  font-size: 35px;
  margin-bottom: 20px;
}

.tentang-text p {
  line-height: 1.9;
  margin-bottom: 20px;
}

.tentang-image img {
  width: 100%;
  border-radius: 25px;
}

/* VISI */

.visi {
  background: #0f4f2a;
}

.visi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.card {
  background: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 25px;
  text-align: center;
  transition: 0.4s;
}

.card:hover {
  transform: translateY(-10px);
}

.card img {
  width: 90px;
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 15px;
  font-size: 28px;
}

/* SUPPLIER */

.supplier-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.supplier-image img {
  width: 100%;
  border-radius: 25px;
}

.supplier-content h3 {
  font-size: 35px;
  margin-bottom: 20px;
}

.supplier-content p {
  line-height: 1.9;
  margin-bottom: 20px;
}

.supplier-content ul {
  margin-bottom: 30px;
}

.supplier-content li {
  list-style: none;
  margin-bottom: 10px;
}

/* AC */

.cuciac {
  background: #0f4f2a;
}

.ac-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.ac-content h3 {
  font-size: 35px;
  margin-bottom: 20px;
}

.ac-content p {
  line-height: 1.9;
  margin-bottom: 20px;
}

.benefit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.benefit span {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 15px;
}

.ac-image img {
  width: 100%;
  border-radius: 25px;
}

/* ALAMAT */

.alamat {
  background: #0d4726;
}

.alamat-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.alamat-image img {
  width: 100%;
  border-radius: 25px;
}

.alamat-content h3 {
  font-size: 35px;
  margin-bottom: 20px;
}

.alamat-content p {
  line-height: 1.9;
  margin-bottom: 20px;
}

.alamat-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* KONTAK */

.kontak-box {
  max-width: 700px;
  margin: auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 50px;
  border-radius: 30px;
}

.kontak-box img {
  width: 100px;
  margin-bottom: 20px;
}

.kontak-box h3 {
  font-size: 35px;
  margin-bottom: 15px;
}

.kontak-box p {
  margin-bottom: 30px;
  line-height: 1.8;
}

/* FOOTER */

footer {
  background: #082715;
  text-align: center;
  padding: 40px;
}

/* ANIMATION */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */

@media (max-width: 991px) {
  .tentang-grid,
  .visi-grid,
  .supplier-box,
  .ac-grid,
  .alamat-container {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 45px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 35px;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .benefit {
    grid-template-columns: 1fr;
  }
}
