body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  text-align: center;

  /* Air effect */
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 180, 255, 0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 200, 255, 0.1), transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(0, 150, 255, 0.1), transparent 50%),
    linear-gradient(to bottom, #ffffff, #e6f7ff);

  overflow-x: hidden;
}

/* HEADER */
header {
  background: linear-gradient(90deg, #00ff99, #00ccff, #ff66cc, #ffcc00);
  color: white;
  padding: 20px;
  animation: colorShift 8s infinite alternate;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
  background: linear-gradient(45deg, #ff0000, #ff9900, #33cc33, #3399ff, #cc33ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px white;
  font-weight: bold;
}

header p {
  margin: 5px 0 0;
  font-size: 1.2em;
}

@keyframes colorShift {
  0% {background-position: 0%;}
  100% {background-position: 100%;}
}

/* CONTENT */
.content {
  padding: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolom */
  gap: 20px;
  max-width: 900px;
  margin: 20px auto;
}

.gallery img {
  width: 200px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

video {
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.promo {
  font-size: 1.1em;
  margin: 20px 0;
  line-height: 1.5;
}

/* BUTTON */
.whatsapp-btn {
  display: inline-block;
  background: #25D366;
  color: white;
  padding: 15px 25px;
  font-size: 1.2em;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
  animation: vibrate 1s infinite;
}

.whatsapp-btn:hover {
  background: #1ebe5d;
}

@keyframes vibrate {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

/* WAVE */
.wave {
  position: fixed;
  left: 0;
  width: 200%;
  height: 180px;
  background: radial-gradient(circle at 50% 0%, rgba(0,180,255,0.4), transparent 70%);
  opacity: 0.6;
  border-radius: 40%;
  animation: waveMove 8s linear infinite;
  bottom: 0;
  z-index: -1;
}

.wave:nth-child(2) {
  bottom: 30px;
  animation-duration: 12s;
  opacity: 0.4;
}

@keyframes waveMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* BUBBLES */
.bubbles {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.bubbles span {
  position: absolute;
  bottom: -50px;
  border-radius: 50%;
  background: rgba(0, 150, 255, 0.25);
  animation: bubbleUp linear infinite;
}

.bubbles span:nth-child(1) { left: 10%; width: 10px; height: 10px; animation-duration: 6s; }
.bubbles span:nth-child(2) { left: 25%; width: 15px; height: 15px; animation-duration: 8s; }
.bubbles span:nth-child(3) { left: 40%; width: 8px; height: 8px; animation-duration: 5s; }
.bubbles span:nth-child(4) { left: 60%; width: 20px; height: 20px; animation-duration: 10s; }
.bubbles span:nth-child(5) { left: 80%; width: 12px; height: 12px; animation-duration: 7s; }

@keyframes bubbleUp {
  0% {
    transform: translateY(0);
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100vh);
    opacity: 0;
  }
}

/* IKAN */
/* IKAN SIMPLE (RINGAN) */
.fish {
  position: fixed;
  width: 70px;
  z-index: -2;
  pointer-events: none;
}

/* ikan dari kiri ke kanan */
.fish-left {
  top: 30%;
  left: -100px;
  animation: swimRight 18s linear infinite;
}

/* ikan dari kanan ke kiri */
.fish-right {
  top: 65%;
  left: 110%;
  animation: swimLeft 22s linear infinite;
}

.fish img {
  width: 100%;
}

/* animasi kanan */
@keyframes swimRight {
  0% {
    left: -100px;
    transform: scaleX(1);
  }
  100% {
    left: 110%;
    transform: scaleX(1);
  }
}

/* animasi kiri */
@keyframes swimLeft {
  0% {
    left: 110%;
    transform: scaleX(-1);
  }
  100% {
    left: -100px;
    transform: scaleX(-1);
  }
}
/* CAUSTICS (cahaya air) */
.caustics {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: 
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.02) 20px, transparent 40px),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0px, transparent 50px);
  animation: causticMove 8s linear infinite;
  z-index: 0;
}

@keyframes causticMove {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 200px 200px, -200px 200px;
  }
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wa-foto {
  margin-top: 8px;
  background: #25D366;
  color: white;
  padding: 8px 12px;
  font-size: 0.9em;
  border-radius: 6px;
  text-decoration: none;
}

.wa-foto:hover {
  background: #1ebe5d;
}

.content,
header {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr); /* tablet */
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr; /* HP */
  }
}

.wave::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.2) 0px,
    rgba(255,255,255,0.1) 20px,
    transparent 40px
  );
  animation: ripple 6s linear infinite;
}

@keyframes ripple {
  0% { transform: translateX(0); }
  100% { transform: translateX(-200px); }
}

video {
  display: block;
  margin: 30px auto;
}

.gallery {
  margin-bottom: 40px;
}
.whatsapp-btn {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* animasi kedip */
@keyframes blink {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 1; }
}

.blink-text {
  font-size: 0.9em;
  color: #555;
  animation: blinkSmooth 1.5s infinite;
}

@keyframes blinkSmooth {
  0%   { opacity: 1; }
  50%  { opacity: 0.3; }
  100% { opacity: 1; }
}

video {
  cursor: pointer;
}

footer {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-align: center;
  padding: 15px 10px;
  font-size: 0.9em;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

footer p {
  margin: 0;
}

footer {
  box-shadow: 0 -2px 10px rgba(0, 200, 255, 0.3);
}

.map-container {
  display: flex;
  flex-direction: column; /* ⬅️ bikin turun ke bawah */
  align-items: center;
}

.map-btn {
  display: block;          /* ⬅️ ini kuncinya */
  width: fit-content;      /* biar nggak full */
  margin: 15px auto 0;     /* center + jarak dari map */
  background: #4285F4;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9em;
  transition: 0.3s;
}

.map-btn:hover {
  background: #3367d6;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;

  width: 100%;        /* ⬅️ FULL layar */
  padding: 0 20px;    /* ⬅️ jarak dikit biar nggak nempel banget */
  box-sizing: border-box;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

.footer-right a {
  color: #00e0ff;
  text-decoration: none;
  font-weight: bold;
}

.footer-right a:hover {
  text-decoration: underline;
}

.foto-box {
  position: relative;
}

/* badge status */
.status {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  font-size: 0.8em;
  font-weight: bold;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

/* warna READY */
.status.READY {
  background: #28a745;
}

/* warna SOLD */
.status.SOLD {
  background: #dc3545;
}

/* efek sold (gambar redup) */
.foto-box img {
  transition: 0.3s;
}

.foto-box .status.SOLD ~ img,
.foto-box .status.SOLD + img {
  opacity: 0.5;
}

.footer-right a {
  display: inline-block;
  margin-top: 5px;
}

.foto-box .status.SOLD ~ a {
  pointer-events: none;
  opacity: 0.5;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 20px auto;
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 🔥 INI PENTING */
.foto-box img {
  width: 100%;
  max-width: 200px;
  display: block;
}

.gallery img {
  width: 100%;
  height: auto;
}

#visitor-counter {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%); /* ⬅️ biar benar-benar tengah */

  background: rgba(0, 0, 0, 0.7);
  color: #00e0ff;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.85em;
  text-align: center;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.archive-link {
  margin: 20px 0;
}

.archive-link a {
  display: inline-block;
  background: #444;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.archive-link a:hover {
  background: #222;
}

/* tombol kanan atas */
.back-top {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 999;
}

.back-top a {
  background: #333;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85em;
}

/* tombol kanan bawah */
.back-bottom {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 999;
}

.back-bottom a {
  background: #00aaff;
  color: white;
  padding: 10px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* efek hover */
.back-top a:hover {
  background: #111;
}

.back-bottom a:hover {
  background: #008ecc;
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    text-align: center;
  }
}

#report-box {
  position: fixed;
  left: 50%;
  bottom: 70px; /* di atas visitor counter */
  transform: translateX(-50%);
  z-index: 999;
}

#report-box button {
  background: #ff9800;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 0.85em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#report-box button:hover {
  background: #e68900;
}

#report-box button {
  background: linear-gradient(45deg, #ff9800, #ff5722);
  font-weight: bold;
}

/* tombol umum */
.back-top a,
.back-bottom a {
  transition: all 0.3s ease;
}

/* 🔥 efek hover KEMBALI KE HOME (atas) */
.back-top a:hover {
  background: #111;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* 🔥 efek hover HOME (bawah) */
.back-bottom a:hover {
  background: #008ecc;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,170,255,0.6);
}

.back-top a:active,
.back-bottom a:active {
  transform: scale(0.95);
}

.back-bottom a {
  animation: floatBtn 2s infinite ease-in-out;
}

@keyframes floatBtn {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}