@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #ff4757; /* Bright Pink/Red */
  --secondary-color: #1e90ff; /* Bright Blue */
  --tertiary-color: #ffa502; /* Orange */
  --bg-color: #fff4f5; /* Light Pink */
  --text-dark: #2f3542;
  --text-light: #ffffff;
  --transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Bouncy */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Fredoka', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  background-image: radial-gradient(#ffeaa7 20%, transparent 20%),
                    radial-gradient(#ffeaa7 20%, transparent 20%);
  background-position: 0 0, 25px 25px;
  background-size: 50px 50px;
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  border-bottom: 4px dashed var(--primary-color);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 2px 2px 0px var(--tertiary-color);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.2rem;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-3px) rotate(-3deg);
  box-shadow: 0 5px 0px #0b68ce; /* 3D effect */
}

/* Hero Section */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('assets/hero-bg.jpg') center/cover;
  padding: 0 5%;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(3px);
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  background: white;
  padding: 3rem;
  border-radius: 40px;
  border: 5px solid var(--tertiary-color);
  box-shadow: 10px 10px 0px var(--primary-color);
}

.hero h1 {
  font-size: 4rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--secondary-color);
  text-shadow: 2px 2px 0px #ffeb3b;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.3rem;
  transition: var(--transition);
  border: 4px solid #fff;
  cursor: pointer;
  box-shadow: 0 8px 0px #c0392b; /* 3D button */
}

.btn:hover {
  transform: translateY(4px);
  box-shadow: 0 4px 0px #c0392b;
}

.btn:active {
  transform: translateY(8px);
  box-shadow: 0 0px 0px #c0392b;
}

/* Sections */
.section {
  padding: 5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 3.5rem;
  margin-bottom: 3rem;
  color: var(--secondary-color);
  text-shadow: 3px 3px 0px #fff, 5px 5px 0px var(--primary-color);
}

/* Featured Flavors / Menu */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.card {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: var(--transition);
  border: 4px solid var(--secondary-color);
  position: relative;
}

.card:hover {
  transform: translateY(-15px) rotate(2deg);
  box-shadow: 10px 15px 0px var(--secondary-color);
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 4px solid var(--secondary-color);
}

.card-content {
  padding: 2rem;
  text-align: center;
}

.card-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.card-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
  background-color: var(--tertiary-color);
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  transform: rotate(-5deg);
}

/* About Section */
.about-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  background: white;
  padding: 3rem;
  border-radius: 40px;
  border: 4px dashed var(--tertiary-color);
  box-shadow: 8px 8px 0px var(--primary-color);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.about-text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.about-image {
  flex: 1;
  height: 400px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  border: 5px solid var(--primary-color);
  transform: rotate(3deg);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 3rem 5%;
  margin-top: 4rem;
  border-top: 5px solid #fff;
  background-image: radial-gradient(rgba(255,255,255,0.2) 20%, transparent 20%);
  background-position: 0 0;
  background-size: 30px 30px;
}

.footer-content h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #ffeb3b;
  text-shadow: 2px 2px 0px #d32f2f;
}

.footer-content p {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  .logo {
    font-size: 1.8rem;
  }
  .nav-links {
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-links a {
    font-size: 1rem;
    padding: 0.3rem 0.7rem;
  }
  .section {
    padding: 3rem 5%;
  }
  .section-title {
    font-size: 2.4rem;
  }
  .hero-content {
    padding: 2rem 1.2rem;
  }
  .about-container {
    padding: 1.5rem;
  }
  .about-image {
    height: 260px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .about-container {
    flex-direction: column;
  }
}

.contact-link {
  color: var(--secondary-color);
  font-weight: 600;
}

/* Tombol WhatsApp melayang */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.3rem;
  border-radius: 50px;
  border: 3px solid #fff;
  box-shadow: 0 6px 0 #1a9b4b, 0 10px 20px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.wa-float:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #1a9b4b;
}
