* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #050816;
  color: white;
  font-family: Inter, sans-serif;
  overflow-x: hidden;
}

/* background */

body::before {
  content: "";

  position: fixed;

  left: 0;
  top: 0;

  width: 100%;
  height: 100%;

  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);

  background-size: 50px 50px;

  z-index: -3;
}

/* glow */

body::after {
  content: "";

  position: fixed;

  width: 700px;
  height: 700px;

  background: #0047ff55;

  filter: blur(180px);

  left: -250px;
  top: -250px;

  border-radius: 50%;

  animation: moveGlow 12s infinite alternate;

  z-index: -2;
}

@keyframes moveGlow {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(600px, 300px);
  }
}

nav {
  position: fixed;

  top: 0;

  width: 100%;

  padding: 30px 70px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  z-index: 999;

  backdrop-filter: blur(12px);
}

.logo {
  font-size: 24px;

  font-family: "Space Grotesk";

  font-weight: 700;

  letter-spacing: 1px;
}

.logo span {
  color: #ffd54f;
}

nav ul {
  display: flex;

  gap: 35px;

  list-style: none;
}

nav a {
  color: white;

  text-decoration: none;

  opacity: 0.8;

  transition: 0.3s;
}

nav a:hover {
  opacity: 1;
}

.hero {
  height: 100vh;

  display: flex;

  justify-content: center;

  align-items: center;

  text-align: center;

  padding: 0 20px;

  position: relative;

  overflow: hidden;
}

.hero-content {
  max-width: 900px;

  z-index: 2;
}

.small {
  color: #ffd54f;

  letter-spacing: 5px;

  margin-bottom: 20px;

  font-size: 14px;

  text-transform: uppercase;
}

.hero h1 {
  font-family: "Space Grotesk";

  font-size: 80px;

  line-height: 1.05;

  font-weight: 700;

  margin-bottom: 25px;
}

.hero h1 span {
  color: #ffd54f;
}

.hero p {
  font-size: 22px;

  line-height: 1.8;

  opacity: 0.8;

  max-width: 760px;

  margin: auto;
}

.btn {
  display: inline-block;
  margin-top: 60px;
  padding: 18px 45px;
  border-radius: 50px;
  text-decoration: none;
  background: #eae60d; /* hijau */
  color: #000000; /* teks putih */
  font-weight: bold;
  transition: 0.35s;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(5, 145, 22, 0.35);
}

.btn:hover {
  transform: translateY(-5px);

  box-shadow: 0 20px 60px rgba(255, 213, 79, 0.35);
}

/* cube */

.scene {
  position: absolute;

  right: 10%;

  top: 50%;

  transform: translateY(-50%);

  width: 220px;

  height: 220px;

  perspective: 900px;
}

.cube {
  width: 220px;

  height: 220px;

  position: relative;

  transform-style: preserve-3d;

  animation: rotateCube 14s linear infinite;
}

.face {
  position: absolute;

  width: 220px;

  height: 220px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(15px);

  display: flex;

  align-items: center;

  justify-content: center;

  font-family: "Space Grotesk";

  font-size: 22px;
}

.front {
  transform: translateZ(110px);
}
.back {
  transform: rotateY(180deg) translateZ(110px);
}
.left {
  transform: rotateY(-90deg) translateZ(110px);
}
.right {
  transform: rotateY(90deg) translateZ(110px);
}
.top {
  transform: rotateX(90deg) translateZ(110px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(110px);
}

@keyframes rotateCube {
  0% {
    transform: rotateX(-20deg) rotateY(0deg);
  }

  100% {
    transform: rotateX(-20deg) rotateY(360deg);
  }
}

/* scroll */

.scroll {
  position: absolute;

  bottom: 40px;

  left: 50%;

  transform: translateX(-50%);

  opacity: 0.7;

  font-size: 13px;

  letter-spacing: 3px;
}

.mouse {
  width: 28px;

  height: 46px;

  border: 2px solid white;

  border-radius: 40px;

  margin: auto;

  margin-bottom: 15px;

  position: relative;
}

.mouse::before {
  content: "";

  position: absolute;

  width: 5px;

  height: 10px;

  background: white;

  left: 50%;

  top: 8px;

  transform: translateX(-50%);

  border-radius: 20px;

  animation: wheel 1.6s infinite;
}

@keyframes wheel {
  0% {
    opacity: 1;

    top: 8px;
  }

  100% {
    opacity: 0;

    top: 25px;
  }
}

/* responsive */

@media (max-width: 900px) {
  .hero h1 {
    font-size: 48px;
  }

  .hero p {
    font-size: 18px;
  }

  .scene {
    display: block; /* tampilkan cube di mobile */
    margin-top: 40px;
    width: 150px;
    height: 150px;
  }

  nav {
    padding: 20px;
  }

  nav ul {
    display: none;
  }
}

#about {
  background: linear-gradient(180deg, #94c4ee, #e6eef7);
  color: #0a2a66; /* biru tua dari logo */
}

#about h2,
#about p {
  color: #0a2a66; /* pastikan heading & paragraf ikut gelap */
}

#about h2,
#about p {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

#service {
  background: linear-gradient(180deg, #f4c542, #ffd966);
  color: #0a2a66; /* biru tua dari logo */
}

#service h2,
#service h3,
#service p {
  color: #0a2a66; /* pastikan heading & paragraf ikut gelap */
}

#portfolio {
  background: linear-gradient(180deg, #0a2a66, #050816);
  color: #fff;
}

#product {
  background: linear-gradient(180deg, #e6eef7, #94c4ee);
  color: #0a2a66; /* biru tua dari logo */
}

#product h2,
#product p {
  color: #0a2a66;
}

#contact {
  background: linear-gradient(180deg, #0fe91d, #f4c542);
  color: #0a2a66; /* biru tua dari logo */
}

#contact h2,
#contact p,
#contact a.btn {
  color: #0a2a66;
}

/* Default: sembunyikan hamburger di desktop */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* Mobile: tampilkan hamburger, sembunyikan menu */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 20px;
    border-radius: 8px;
  }

  nav ul.show {
    display: flex;
  }
}

@media (max-width: 900px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 20px;
    border-radius: 8px;
  }

  .menu-toggle {
    display: block;
    color: white;
  }

  nav ul.show {
    display: flex;
  }
}
.logo img {
  transition: opacity 0.3s ease;
}
