:root {
  --primary-color: #DC2626; /* Merah Tajam */
  --secondary-color: #FFFFFF; /* Putih */
  --dark-color: #950101; /* Hitam Pekat */
  --gray-color: #f3f4f6; /* Abu-abu muda */
  --text-color: #374151;
}

/* CSS Reset and Basic Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-color);
  overflow-x: hidden; /* Mencegah scroll horizontal */
}

/* Background Animation "GB" */
body::before {
  content: 'GB';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40vw;
  font-weight: 900;
  color: rgba(220, 38, 38, 0.05);
  z-index: -1;
  animation: bg-text-animation 20s linear infinite;
}

@keyframes bg-text-animation {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and Navigation */
header {
  background-color: var(--secondary-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark-color);
}

.logo img {
  width: 50px;
  height: 50px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.contact-btn {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: #991B1B; /* Merah lebih gelap */
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Mobile Navigation Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(220, 38, 38, 0.95);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  padding: 0;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-header {
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  width: 100%;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-nav-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.mobile-nav .close-btn {
  position: absolute;
  top: 0;
  right: 2rem;
  font-size: 2rem;
  color: var(--secondary-color);
  cursor: pointer;
  height: 82px; /* Match header height (50px logo + 1.5rem*2 padding) */
  line-height: 82px; /* Vertically center the 'x' */
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  padding: 0;
}

.mobile-nav-links li {
  margin: 1.5rem 0;
}

.mobile-nav-links a {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
}

.mobile-contact-btn {
  margin-top: 2.5rem;
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background-color: var(--gray-color);
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}
.hero-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}
.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.hero h1 {
  font-size: 4rem;
  color: var(--dark-color);
  font-weight: 900;
}
.hero .typing-effect {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-top: 1rem;
  height: 2rem;
  font-weight: 600;
}

/* Typing animation */
.typing-effect span {
  border-right: .1em solid var(--primary-color);
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% { border-color: transparent; }
}

/* Sections General Styling */
section {
  padding: 5rem 0;
}

#hero { /* ID selector for specificity */
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--dark-color);
}

/* Stats Section */
#stats {
  background-color: var(--gray-color);
  padding: 3rem 0;
}
.stat-item {
  text-align: center;
}
.stat-item h3 {
  font-size: 1.5rem;
  color: var(--text-color);
}
#sales-counter {
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary-color);
  margin: 0.5rem 0;
}
.stat-item span {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.8;
}

/* Video Preview Section */
#video-preview {
  padding: 5rem 0;
  background-color: var(--secondary-color);
}
.video-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  cursor: pointer;
}
.preview-video {
  width: 100%;
  height: 100%;
  display: block;
}
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}
.video-wrapper:hover .video-overlay {
  background: rgba(0,0,0,0.1);
}
.video-overlay i {
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.3s;
}
.video-wrapper:hover .video-overlay i {
  transform: scale(1.1);
}


/* About Us Section */
#tentang .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}
#tentang .about-image img {
  max-width: 400px;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
#tentang .about-text h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Gallery Sections */
.gallery-section {
  background-color: var(--gray-color);
}
.gallery-section h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.gallery-slider {
  overflow: hidden;
  padding: 1rem 0;
  position: relative;
  width: 100%;
}
.gallery-slider:hover .gallery-track {
  animation-play-state: paused;
}
.gallery-track {
  display: flex;
  /* (item width + margin) * item count * 2 */
  width: calc(320px * 10); 
  animation: gallery-scroll 40s linear infinite;
}
.gallery-item-marquee {
  width: 300px;
  margin: 0 10px;
  flex-shrink: 0;
}
.gallery-item-marquee img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.gallery-item-marquee img:hover {
  transform: scale(1.05);
}
@keyframes gallery-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-320px * 5)); }
}


/* Menu Section */
#menu {
  background-color: var(--secondary-color);
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.menu-item {
  background: var(--secondary-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.menu-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.product-slider {
  position: relative;
  width: 100%;
  height: 300px;
}
.product-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  cursor: pointer;
}
.product-slider img.active {
  opacity: 1;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.menu-item-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.menu-item-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.menu-item-content .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}
.live-sales {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.live-sales i {
  color: var(--primary-color);
  margin-right: 0.25rem;
  animation: fire-flicker 1.5s infinite ease-in-out;
}
@keyframes fire-flicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}
.menu-item-content p:not(.price):not(.live-sales) {
  flex-grow: 1;
}
.order-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: 1.5rem; /* Jarak tambahan di atas tombol */
}
.order-btn:hover {
  background-color: #991B1B;
}

/* Drinks Section */
#minuman {
  background-color: var(--gray-color);
}
.horizontal-scroll-container {
  display: flex;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--gray-color);
}
.horizontal-scroll-container::-webkit-scrollbar {
  height: 8px;
}
.horizontal-scroll-container::-webkit-scrollbar-track {
  background: var(--gray-color);
}
.horizontal-scroll-container::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
  border: 2px solid var(--gray-color);
}
.drink-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
}
.drink-item {
  flex: 0 0 250px;
  background: var(--secondary-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.drink-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.drink-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.drink-info {
  padding: 1rem;
}
.drink-info h3 {
  font-size: 1.25rem;
}
.drink-info .price {
  color: var(--primary-color);
  font-weight: 700;
  margin: 0.25rem 0 0 0;
}
.drink-info .live-sales {
  margin-bottom: 1rem;
}
.drink-info .order-btn {
  width: 100%;
  margin-top: 0;
  padding: 0.5rem;
}


/* Testimonial Section */
#testimoni {
  background-color: var(--secondary-color);
}
.testimonial-slider {
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
  width: 100%;
}
.testimonial-track {
  display: flex;
  width: calc(310px * 14); /* (card width + margin) * cards * 2 */
  animation: scroll 40s linear infinite;
}
.testimonial-card {
  width: 280px;
  flex-shrink: 0;
  background: var(--gray-color);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 0 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.testimonial-card p {
  font-style: italic;
  flex-grow: 1;
}
.author-profile {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}
.author-profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}
.author-profile .author-name {
  font-weight: 700;
}
.stars {
  color: #facc15; /* yellow-400 */
  margin-bottom: 0.5rem;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-310px * 7)); }
}
.testimonial-slider:hover .testimonial-track {
  animation-play-state: paused;
}

/* Owner Section */
#owner {
  background-color: var(--gray-color);
}
.owner-container {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.owner-image {
  flex-basis: 40%;
}
.owner-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.owner-details {
  flex-basis: 60%;
}
.owner-details h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.owner-details p {
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Payment Section */
#pembayaran {
  background-color: var(--secondary-color);
}
.qris-container {
  text-align: center;
}
.qris-image {
  max-width: 300px;
  border: 5px solid white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-radius: 1rem;
  margin-bottom: 2rem;
}
.qris-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.qris-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-color);
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.qris-btn.download {
  background-color: transparent;
  color: var(--primary-color);
}
.qris-btn:hover {
  transform: translateY(-3px);
}
.rekening-info {
  margin-top: 3rem;
  background-color: var(--gray-color);
  padding: 1.5rem;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
}
.rekening-info p {
  margin-bottom: 0.5rem;
}
#rekening-number {
  font-weight: 700;
  font-size: 1.2rem;
}
#copy-btn {
  background-color: var(--dark-color);
  border: 1px solid var(--dark-color);
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background-color 0.3s;
}
#copy-btn:hover {
  background-color: #374151;
}

/* Contact Section */
#kontak {
  background-color: var(--gray-color);
}
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}
.contact-info-item {
  background: var(--secondary-color);
  padding: 2rem;
  border-radius: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact-info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.contact-info-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.contact-info-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.social-icons a {
  color: var(--text-color);
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 0.3s;
}
.social-icons a:hover {
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--secondary-color);
  padding: 3rem 0;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-logo img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}
.footer-video {
  margin: 1.5rem 0;
}
.footer-video video {
  border-radius: 0.5rem;
  max-width: 100%;
  height: auto;
  border: 2px solid var(--secondary-color);
}
.copyright {
  margin-top: 2rem;
}

/* Modals (Pop-ups) */
.modal {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  display: none; /* Initially hidden */
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.modal.active {
  display: flex;
}
.modal-content {
  background-color: var(--secondary-color);
  padding: 2rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 500px;
  text-align: center;
  position: relative;
  animation: modal-fade-in 0.3s ease;
}

@keyframes modal-fade-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
}

/* Order Modal Specifics */
#order-modal .modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
#order-modal .modal-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.whatsapp-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: background-color 0.3s ease;
}
.whatsapp-btn:hover {
  background-color: #128C7E;
}
.whatsapp-btn i {
  margin-right: 0.5rem;
}

/* Image Preview Modal Specifics */
#image-preview-modal .modal-content {
  background: transparent;
  padding: 0;
  box-shadow: none;
}
#preview-image {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 0.5rem;
}
#image-preview-modal .modal-close {
  color: white;
  top: -2.5rem;
  right: 0;
  font-size: 2rem;
}

/* Scroll to Top Button */
#scroll-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

#scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links, .contact-btn:not(.mobile-contact-btn) {
      display: none;
  }
  .hamburger {
      display: block;
  }
  .hero-content {
    flex-direction: column-reverse; /* Stack image on top of text */
    text-align: center;
  }
  .hero-text {
      text-align: center; /* Center text on mobile */
  }
  .hero h1 {
      font-size: 2.5rem;
  }
  .hero .typing-effect {
      font-size: 1.2rem;
      height: 1.5rem;
  }
  .section-title {
      font-size: 2rem;
  }
  #tentang .container, .owner-container {
      flex-direction: column;
  }
  #tentang .about-image img, .owner-image img {
      max-width: 100%;
  }
  .menu-grid {
      grid-template-columns: 1fr;
  }
  .owner-details {
      text-align: center;
  }
  .owner-details .section-title {
      text-align: center;
  }

  .gallery-track {
      /* On mobile, use the marquee animation */
      animation: gallery-scroll 30s linear infinite;
  }

  .drink-item {
      flex: 0 0 70%;
      max-width: 220px;
  }
}