/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hero */
body {
  font-family: Arial;
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  /* anti ketimpa ads */
  padding-top: 80px;
  padding-bottom: 80px;

background: url('images/hero.jpg') no-repeat center center fixed;
  background-size: cover;
}

/* Header */
header {
  background: #222;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 15px 30px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav a {
  color: white;
  text-decoration: none;
}

/* Main */
main {
  flex: 1;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px;
  background: orange;
  color: white;
}

/* Services */
.services {
  padding: 50px;
  text-align: center;
}

.service-list {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.service {
  width: 220px;
  background: #eee;
  padding: 15px;
  border-radius: 10px;
  transition: 0.3s;
}

.service img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.service:hover {
  transform: translateY(-5px);
}

/* Projects */
.projects {
  padding: 50px;
  text-align: center;
}

.gallery {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.gallery img {
  width: 250px;
  border-radius: 10px;
}

/* Contact */
.contact {
  padding: 50px;
  text-align: center;
}

.contact form {
  max-width: 400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Footer */
.footer {
  background: #111;
  color: #ccc;
  padding: 20px 30px;

  display: flex;
  justify-content: space-between; /* kiri - kanan */
  align-items: center;
  flex-wrap: wrap; /* biar aman di HP */
}

.footer-left {
  font-size: 14px;
}

.footer-right {
  text-align: right;
  font-size: 14px;
}

.footer a {
  color: orange;
  text-decoration: none;
}

/* Fade */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
  transition: 1s;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .gallery {
    flex-direction: column;
    align-items: center;
  }
}

.wa-btn {
  background: #25D366;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s;
}

.wa-btn:hover {
  background: #1ebe5d;
  transform: scale(1.05);
}

.wa-btn span {
  font-size: 20px;
}

/* EMBOSS + OUTLINE */
.emboss-text {
  font-size: 40px;
  font-weight: bold;
  color: #ffffff;

  /* outline (border huruf) */
  -webkit-text-stroke: 1px black;

  /* emboss effect */
  text-shadow:
    1px 1px 0 #999,
    2px 2px 0 #777,
    3px 3px 0 #555,
    4px 4px 6px rgba(0,0,0,0.5);

  letter-spacing: 2px;
}

/* SUBTITLE */
.emboss-sub {
  font-size: 24px; /* dari 18px → lebih besar */
  font-weight: 600;

  color: #FFD700;

  -webkit-text-stroke: 0.6px black;

  text-shadow:
    2px 2px 4px rgba(0,0,0,0.9),
    0 0 6px rgba(0,0,0,0.7);

  background: rgba(0, 0, 0, 0.5);
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;

  line-height: 1.4;
}

.hero {
  position: relative;
  background: url('images/hero.jpg') center/cover;
  color: white;
  text-align: center;
  padding: 120px 20px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
}

.hero * {
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* tengah horizontal */
  justify-content: center;
  gap: 15px;
}

.btn:hover {
  background: darkorange;
  transform: scale(1.05);
}

.services,
.projects,
.contact {
  background: rgba(255,255,255,0.85);
  margin: 20px;
  border-radius: 10px;
}

.emboss-sub {
  font-size: clamp(18px, 2.5vw, 28px);
}

@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-right {
    text-align: center;
  }
}

.footer a:hover {
  color: #FFD700;
}

.logo {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: bold;
  letter-spacing: 1px;

  color: #fff;

  text-shadow:
    1px 1px 2px rgba(0,0,0,0.6);
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.3s;
}

/* hover biasa */
nav a:hover {
  color: orange;
}

/* MENU AKTIF */
nav a.active {
  color: #FFD700;

  /* efek glow */
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8),
              0 0 20px rgba(255, 165, 0, 0.6);

  background: rgba(255, 165, 0, 0.2);
}

.contact {
  padding-bottom: 120px;
}

section {
  scroll-margin-top: 100px;
}

#visitor-box {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%); /* biar benar-benar di tengah */

  background: rgba(0,0,0,0.7);
  color: white;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 9999;
  text-align: center;
}

#visitor-box a {
  display: block;
  margin-top: 5px;
  color: #25D366;
  text-decoration: none;
}

@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap; /* biar turun ke bawah */
    justify-content: center;
  }

  nav ul li {
    margin: 5px 10px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  nav ul li {
    margin: 0;
  }

  nav a {
    font-size: 14px;
    padding: 6px 8px;
  }
}