@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&family=Poppins:wght@300;400;600&display=swap");

:root {
  --primary-blue: #00468c;
  --accent-blue: #00a8e8;
  --dark-navy: #001d3d;
  --light-bg: #f8faff;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: #333;
  background-color: var(--light-bg);
  overflow-x: hidden;
}

/* --- NAVBAR --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: rgba(255, 255, 255, 0.95);
  position: fixed;
  width: 100%;
  z-index: 2000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent-blue);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: var(--dark-navy);
  padding: 10px 15px;
  font-weight: 600;
  transition: 0.3s;
}

/* Tombol Burger (Hanya muncul di Mobile) */
.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--primary-blue);
  margin: 5px;
  transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 70, 140, 0.8), rgba(0, 29, 61, 0.8)),
    url("image/background.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem); /* Ukuran teks otomatis mengecil di HP */
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  transition: 0.3s;
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
}
.btn-secondary {
  border: 2px solid white;
  color: white;
}

/* --- ABOUT & SERVICES SECTION --- */

/* Pengaturan Umum Section */
section {
  padding: 100px 8%;
  overflow: hidden; /* Mencegah elemen dekorasi keluar layar */
}

/* Judul Utama */
.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-align: center;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: -1px;
}

/* Subtitle yang Lebih Elegan */
.subtitle {
  text-align: center;
  display: block;
  max-width: 600px;
  margin: 0 auto 50px;
  color: #777;
  font-size: 1.1rem;
  line-height: 1.6;
  position: relative;
}

.subtitle::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-blue);
  margin: 15px auto 0;
  border-radius: 10px;
}

/* --- ABOUT GRID --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  position: relative;
}

/* Efek Bingkai di Belakang Gambar */
.about-img::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-top: 5px solid var(--accent-blue);
  border-left: 5px solid var(--accent-blue);
  z-index: -1;
}

.about-img img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease;
}

.about-img img:hover {
  transform: scale(1.02);
}

.about-text h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: var(--dark-navy);
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
  text-align: justify;
}

/* --- SERVICE CARD MODERN --- */
.service-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f0;
  position: relative;
  z-index: 1;
}

/* Garis Warna yang Muncul saat Hover */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--primary-blue);
  border-radius: 20px;
  z-index: -1;
  transition: 0.4s;
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  transform: translateY(-15px);
  color: white;
}

.service-card i {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
  transition: 0.4s;
}

.service-card:hover i {
  color: var(--accent-blue);
  transform: rotateY(360deg);
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-family: "Montserrat", sans-serif;
}

.service-card p {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .about-text p {
    text-align: center;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

/* --- GALLERY SECTION --- */
.gallery {
  background-color: #f0f4f8; /* Warna background beda sedikit agar variatif */
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 70, 140, 0.7); /* Biru Moon Racing dengan transparansi */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay span {
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

/* Hover Effects */
.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

/* Penyesuaian Mobile */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }
  .gallery-item {
    height: 150px;
  }
}

/* --- PRODUCTS --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 70, 140, 0.15);
}

.product-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-info {
  padding: 25px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.product-info p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1; /* Menjaga tombol tetap sejajar di bawah */
}

/* --- FOOTER SOCIAL LINKS --- */
.social-links {
  display: flex;
  gap: 15px; /* Jarak antar ikon */
  margin-top: 25px;
}

.social-links a {
  width: 55px; /* Ukuran lingkaran lebih besar */
  height: 55px; /* Ukuran lingkaran lebih besar */
  background: rgba(255, 255, 255, 0.1); /* Latar belakang transparan elegan */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Bentuk lingkaran */
  color: var(--white);
  font-size: 26px; /* Ukuran ikon di dalam lingkaran */
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Warna & Animasi saat kursor menyentuh ikon (Hover) */
.social-links a:hover {
  background: var(--accent-blue);
  color: var(--white);
  transform: translateY(-8px) scale(1.1); /* Melompat dan membesar */
  box-shadow: 0 8px 20px rgba(0, 168, 232, 0.5);
  border-color: var(--accent-blue);
}

/* Memberikan warna khas masing-masing aplikasi saat di-hover */
.social-links a:hover .fa-whatsapp {
  color: #25d366;
}
.social-links a:hover .fa-instagram {
  color: #e4405f;
}
.social-links a:hover .fa-tiktok {
  color: #000000;
}
.social-links a:hover .fa-shopping-bag {
  color: #ee4d2d;
} /* Warna Shopee */

/* Penyesuaian agar ikon ke tengah di tampilan Mobile */
@media (max-width: 992px) {
  .social-links {
    justify-content: center;
    margin-bottom: 20px;
  }
  .social-links a {
    width: 60px; /* Lebih besar lagi di HP agar mudah ditekan */
    height: 60px;
    font-size: 30px;
  }
}

/* Tombol Pesan Sekarang (WhatsApp) */
.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(45deg, #25d366, #128c7e); /* Gradasi hijau WA */
  color: white !important;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  border: none;
}

.btn-buy i {
  font-size: 1.1rem;
}

.btn-buy:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  filter: brightness(1.1);
}

.btn-buy:active {
  transform: scale(0.98);
}

/* --- FOOTER --- */
footer {
  background: var(--dark-navy);
  color: var(--white);
  padding: 60px 8% 20px;
}
.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
}

/* --- RESPONSIVE MOBILE (PENTING!) --- */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    right: 0px;
    height: 100vh;
    top: 0;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70%;
    transform: translateX(100%);
    transition: transform 0.5s ease;
    box-shadow: -10px 0 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links li {
    margin: 20px 0;
  }
  .burger {
    display: block;
    z-index: 2001;
  }

  /* Saat menu aktif */
  .nav-active {
    transform: translateX(0%);
  }

  .about-grid,
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Animasi Burger */
.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
  opacity: 0;
}
.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Tombol WhatsApp Melayang */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3000;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #128c7e;
}

/* Sembunyikan tulisan di HP agar hanya ikonnya saja yang muncul */
@media (max-width: 768px) {
  .whatsapp-float span {
    display: none;
  }
  .whatsapp-float {
    padding: 15px;
    border-radius: 50%;
  }
}
