* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #fcfaf7;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 5rem 0;
}

/* ====== Hero Section ====== */
.hero {
  background: url('Gambar/wallpaper.jpg') no-repeat center/cover;
  color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, #fcfaf7, transparent);
}

.hero-content {
  max-width: 1000px; 
  padding: 0 20px;
  z-index: 2;
  width: 100%; 
  margin: 0 auto; 
  text-align: center; 
}

.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
  color: black;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 1px;
  text-align: center; 
  width: 100%;
  display: block; 
  white-space: normal; 
  position: relative;
  left: 0;
  right: 0; 
  margin-left: auto;
  margin-right: auto; 
}

.hero h1 span {
  color: #ab8663;
}

.hero h1 .anda-text {
  color: black;
  font-size: 3.8rem;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: black;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.btn {
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.explore-btn {
  background: #ab8663;
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(171, 134, 99, 0.3);
}

.explore-btn:hover {
  background: #946e4f;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(171, 134, 99, 0.4);
}

.register-btn {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.register-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* Message Display */
.message {
  padding: 15px;
  margin: 20px 0;
  border-radius: 8px;
  text-align: center;
}

.message.error {
  background-color: #ffeded;
  border-left: 5px solid #f56565;
  color: #c53030;
}

.message.success {
  background-color: #f0fff4;
  border-left: 5px solid #48bb78;
  color: #2f855a;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: #8d6e50;
  font-size: 2.2rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #c79a65;
}

/* ====== Stats Section ====== */
.stats-section {
  background: linear-gradient(to right, #8d6e50, #ab8663);
  color: white;
  text-align: center;
  padding: 4rem 0;
  position: relative;
}

.stats-section::before,
.stats-section::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 60px;
}

.stats-section::before {
  top: 0;
  background: linear-gradient(to bottom, white, transparent);
}

.stats-section::after {
  bottom: 0;
  background: linear-gradient(to top, #fcfaf7, transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #e6c9a8;
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.stat-item p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  font-weight: 300;
}

/* ====== User Actions Section ====== */
.user-actions {
  background: #fff;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.action-card {
  background: #f9f5f0;
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(139, 110, 80, 0.05);
  border: 1px solid #f5ebe1;
}

.action-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(139, 110, 80, 0.1);
  background: #f5ebe1;
}

.action-card i {
  font-size: 2.5rem;
  color: #8d6e50;
  margin-bottom: 1.5rem;
}

.action-card h3 {
  color: #8d6e50;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.action-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.action-btn {
  background: #ab8663;
  color: white;
  padding: 0.7rem 1.5rem;
}

.action-btn:hover {
  background: #8d6e50;
}

/* ====== Footer ====== */
.footer {
  background: #8d6e50;
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, #fcfaf7, transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-brand span {
  color: #e6c9a8;
}

.footer-brand p {
  opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
  display: inline-block;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #e6c9a8;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  padding-left: 5px;
  color: #e6c9a8;
}

.footer-contact p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  color: #e6c9a8;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: #e6c9a8;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ====== Empty State ====== */
.empty-state {
  text-align: center;
  padding: 3rem;
  background: #f9f5f0;
  border-radius: 15px;
  margin: 2rem 0;
}

.empty-state i {
  font-size: 3rem;
  color: #c79a65;
  margin-bottom: 1rem;
}

.empty-state p {
  color: #666;
  margin-bottom: 1.5rem;
}

/* ====== Back to Top Button ====== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #ab8663;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  text-decoration: none;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(139, 110, 80, 0.2);
  z-index: 99;
}

.back-to-top.active {
  opacity: 1;
  animation: pulse 2s infinite;
}

.back-to-top:hover {
  background: #8d6e50;
  transform: translateY(-5px);
}

@keyframes pulse {
  0% {
      box-shadow: 0 0 0 0 rgba(171, 134, 99, 0.4);
  }
  70% {
      box-shadow: 0 0 0 10px rgba(171, 134, 99, 0);
  }
  100% {
      box-shadow: 0 0 0 0 rgba(171, 134, 99, 0);
  }
}

/* ====== Media Queries ====== */
@media (max-width: 992px) {
  .hero h1 {
      font-size: 3rem;
  }
  
  .about-content {
      flex-direction: column;
  }
  
  .about-image, .about-text {
      width: 100%;
  }
}

@media (max-width: 768px) {
  .hero h1 {
      font-size: 2.5rem;
  }
  
  .hero p {
      font-size: 1.1rem;
  }
  
  .hero-buttons {
      flex-direction: column;
      gap: 1rem;
      width: 100%;
      max-width: 300px;
      margin: 0 auto;
  }
  
  section {
      padding: 4rem 0;
  }
  
  .section-title {
      font-size: 1.8rem;
  }
  
  #hamburger-menu {
      display: block !important;
      z-index: 101;
      cursor: pointer;
  }
  
  .navbar {
      padding: 0.8rem 1.5rem;
  }
  
  .navbar-nav {
      display: none;
      position: fixed;
      top: 60px;
      right: 0;
      width: 75%;
      height: calc(100vh - 60px);
      background-color: white;
      flex-direction: column;
      padding: 2rem 1.5rem;
      z-index: 99;
      box-shadow: -5px 0 15px rgba(0,0,0,0.1);
      transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      transform: translateX(100%);
      overflow-y: auto;
      margin: 0;
      border-top-left-radius: 20px;
  }
  
  .navbar-nav.active {
      display: flex !important;
      transform: translateX(0);
  }
  
  .navbar-nav a {
      display: block;
      margin: 10px 0;
      padding: 12px;
      font-size: 16px;
      text-align: left;
      border-bottom: 1px solid #f5ebe1;
  }
  
  .navbar-nav a:last-child {
      border-bottom: none;
  }
  
  .navbar-nav a::after {
      display: none;
  }
  
  .navbar-nav a:hover {
      background-color: #f9f5f0;
      border-radius: 8px;
  }
  
  .cafe-featured-grid {
      grid-template-columns: 1fr;
  }
  
  .reviews-grid, .action-grid, .stats-grid {
      grid-template-columns: 1fr;
  }
  
  .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
  }
  
  .footer-links h4::after, .footer-contact h4::after {
      left: 50%;
      transform: translateX(-50%);
  }
  
  .footer-contact p {
      justify-content: center;
  }
  
  .social-links {
      justify-content: center;
  }
}
  
  @media (max-width: 480px) {
    .hero h1 {
      font-size: 2.2rem;
    }
    
    .section-title {
      font-size: 1.6rem;
    }
    
    .navbar-logo {
      font-size: 1.5rem;
    }
    
    .stat-item {
      padding: 1.5rem;
    }
    
    .stat-item h3 {
      font-size: 2rem;
    }
    
    .back-to-top {
      bottom: 20px;
      right: 20px;
      width: 40px;
      height: 40px;
    }
  }