@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

/* ========== RESET DASAR ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    background-image: url('https://ulfanet.online/img/bg1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ===== HEADER ===== */
header {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.logo img {
  height: 70px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li {
  position: relative;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  font-weight: 500;
  transition: all 0.3s;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

ul.dropdown {
  display: none;
  position: absolute;
  top: 35px;
  background-color: rgba(0, 0, 0, 0.95);
  border-radius: 5px;
  overflow: hidden;
}

nav ul li:hover > ul.dropdown {
  display: block;
}

ul.dropdown li {
  width: 150px;
}

ul.dropdown a {
  padding: 10px;
}


/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    height: 100vh !important;

    background-image: url('https://ulfanet.online/img/bg1.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    border: 5px solid red;
}

.hero-content {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 850px;
  width: 90%;
  padding: 40px 30px;
  background-color: rgba(0, 0, 0, 0.55);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  text-align: center;
}

.intro-text {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
  line-height: 1.4;
}

.brand-title {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffd700; /* kuning emas */
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.desc-text {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 25px;
  line-height: 1.6;
  color: #ffffff;
}

.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ffb700;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e09f00;
}

/* tambahkan kalau belum ada */
.has-submenu {
  position: relative;
}

ul.dropdown {
  display: none;
  position: absolute;
  top: 35px;
  background-color: rgba(0, 0, 0, 0.95);
  border-radius: 5px;
  overflow: hidden;
  flex-direction: column;
  z-index: 99;
}

.has-submenu:hover > .dropdown {
  display: block;
}

ul.dropdown li {
  width: 150px;
}

ul.dropdown a {
  padding: 10px;
  display: block;
}

/* ===== FOOTER ===== */
footer {
  background-color: rgba(0, 0, 0, 0.85);
  padding: 20px 30px;
  text-align: center;
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .footer-container {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== ANIMASI HALUS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.cta-button {
  /* sudah ada sebelumnya */
  animation: fadeInUp 1.5s ease-out both;
}

footer {
  animation: fadeInUp 1.8s ease-out both;
}

html {
  scroll-behavior: smooth;
}

/* ===== TOMBOL WHATSAPP FLOATING ===== */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: #25d366;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: popIn 0.6s ease-out;
  transition: transform 0.3s;
}

.wa-float img {
  width: 40px;
  height: 40px;
}

.wa-float:hover {
  transform: scale(1.1);
}

/* animasi muncul */
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.hero {
  background-attachment: fixed;
}

/* MENU TOGGLE */
.menu-toggle {
  display: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
}
.menu-toggle {
  display: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
  position: absolute;
  right: 30px;
  top: 20px;
  z-index: 999;
}

.has-submenu .arrow {
  transition: transform 0.3s;
}

.has-submenu.open .arrow {
  transform: rotate(180deg);
}

/* RESPONSIVE: MOBILE */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background-color: rgba(0,0,0,0.95);
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    border-radius: 10px;
    padding: 10px;
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
  }
}

@media (max-width: 768px) {
  .has-submenu .dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    position: static;
    background-color: rgba(0, 0, 0, 0.9);
    margin-top: 5px;
    padding-left: 10px;
    border-left: 2px solid orange;
  }

  .has-submenu.open .dropdown {
    max-height: 500px; /* cukup besar untuk semua submenu */
    opacity: 1;
  }

  .has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.has-submenu .arrow {
  transition: transform 0.3s;
}

.has-submenu.open .arrow {
  transform: rotate(180deg);
}

/* ===== ANIMASI SUBMENU ===== */
ul.dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.has-submenu:hover > ul.dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav {
  overflow: visible;
}
