:root {
  --primary: #ffd700;
  --secondary: #e53935;
  --light: #ffffff;
  --gradient: linear-gradient(135deg, #ffd700 0%, #e53935 100%);
}

body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background-color: var(--light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-nav .nav-link.active {
  font-weight: 700;
  background: linear-gradient(90deg, #ffd700, #ff0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* untuk browser modern */
}

.navbar-toggler {
  border: none;
  background: transparent;
  outline: none;
}

.toggler-icon {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #000; /* hitam biar kelihatan di navbar putih */
  transition: all 0.3s ease;
}

/* Kalau navbar kamu gelap, ubah jadi putih */
.navbar-dark .toggler-icon {
  background-color: #fff;
}

/* Animasi ketika navbar dibuka */
.navbar-toggler[aria-expanded="true"] .top-bar {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .middle-bar {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .bottom-bar {
  transform: rotate(-45deg) translate(5px, -5px);
}

.navbar-brand img {
  height: 40px;
}

.nav-link {
  color: #333 !important;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--gradient);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.btn-primary-custom {
  background: var(--gradient);
  color: white;
  border: none;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 30px;
  transition: all 0.3s;
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.hero {
  background: url("https://hoteltiga-er.com/assets/images/lobby3.jpg") no-repeat
    center center;
  background-size: cover;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  transition: background-image 1s ease-in-out; /* biar halus pas ganti */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  color: white;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Facility Section */
.facility {
  padding: 100px 0;
  background-color: #f9f9f9;
}

.facility-item {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin: 15px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.facility-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.facility-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 30px;
}

/* Room Section */
.room {
  padding: 100px 0;
  background: white;
}

.room .row {
  display: flex;
  justify-content: center;
}


.room-card {
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.room-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.room-img {
  height: 250px;
  overflow: hidden;
}

.room-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.room-card:hover .room-img img {
  transform: scale(1.1);
}

.room-body {
  padding: 20px;
}

.room-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.room-price {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 15px 0;
}

/* Testimoni */
.testimoni {
  padding: 100px 0;
  background: url("https://hoteltiga-er.com/assets/images/parkiran.jpg")
    no-repeat center center;
  background-size: cover;
  position: relative;
  color: white;
}

.testimoni::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.testimoni-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 15px;
  margin: 15px;
  color: #333;
}

.testimoni-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
  border: 3px solid var(--primary);
}

.testimoni-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact */
.contact {
  padding: 100px 0;
  background-color: #f9f9f9;
}

.contact-info {
  background: var(--gradient);
  color: white;
  padding: 40px;
  border-radius: 15px;
  height: 100%;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 20px;
  margin-right: 15px;
}

/* Footer */
footer {
  background: #222;
  color: white;
  padding: 50px 0 0;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 20px;
}

.footer-link {
  color: #aaa;
  text-decoration: none;
  transition: all 0.3s;
  display: block;
  margin-bottom: 10px;
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 5px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: #333;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 10px;
  transition: all 0.3s;
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-5px);
}

.copyright {
  background: #111;
  padding: 20px 0;
  margin-top: 30px;
}

#backToTop {
  right: 15px;   /* kasih jarak dari kanan */
  bottom: 70px;  /* kasih jarak dari bawah */
  position: fixed;
  z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

   #backToTop {
    right: 30px;
    bottom: 30px;
  }
  
}
