/* 🌸 Goodbye Kitty Cafe - Home Page (Clean + Corrected) */

@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

/* ===== Global Styles ===== */
body {
  background: linear-gradient(to bottom, hsl(330, 100%, 95%), hsl(330, 100%, 99%));
  font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
}

/* ===== Navigation Bar (Matches Menu Page) ===== */
nav.custom-nav {
  background: linear-gradient(90deg, #ffb6d5, #ffe1f0);
  border-bottom: 3px solid #ff69b4;
  padding: 0.75rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo / Brand */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

/* Brand Title */
.brand-title {
  font-size: 1.5rem;
  color: #e6007e;
  margin: 0;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Bow Animation */
.bow {
  width: 40px;
  animation: rotateBow 8s linear infinite;
}

@keyframes rotateBow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Navbar Links */
.navbar-nav a,
.nav-links a {
  text-decoration: none;
  color: #e6007e !important;
  font-weight: bold;
  transition: color 0.3s, transform 0.2s;
}

.navbar-nav a:hover,
.nav-links a:hover {
  color: #ff69b4 !important;
  transform: scale(1.1);
}

/* Order Button */
.nav-button {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: white;
  border: 2px solid #e6007e;
  color: #e6007e;
  font-weight: bold;
  transition: 0.3s;
}

.nav-button:hover {
  background: #e6007e;
  color: white;
}

/* ===== MAIN CONTENT ===== */
main {
  text-align: center;
  padding: 30px;
}

/* Fade-in Intro */
.intro {
  opacity: 0;
  transform: translateY(20px);
  transition: 2s ease-in-out;
}
.intro.visible {
  opacity: 1;
  transform: translateY(0);
}

/* TEXT STYLES */
h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 5px #ffc0cb;
}

h2 {
  font-size: 1.8rem;
  color: #e75480;
  font-style: italic;
  margin-top: 30px;
}

p {
  line-height: 1.6;
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 15px;
}

/* ===== PRODUCT GRID ===== */
.featured-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
  padding: 20px;
  justify-items: center;
}

.product-card {
  background: #fff;
  border: 2px solid #ffb6d5;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(255, 182, 213, 0.4);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  max-width: 300px;
  opacity: 0;
  transform: translateX(-100%);
  animation: slideIn 1s forwards;
}

.product-card:nth-child(1) { animation-delay: 0.2s; }
.product-card:nth-child(2) { animation-delay: 0.4s; }
.product-card:nth-child(3) { animation-delay: 0.6s; }

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 182, 213, 0.6);
}

.product-card img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 10px;
  transition: 0.3s;
}
.product-card img:hover {
  transform: scale(1.05);
}

@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: #e6007e;
  border-top: 3px solid #ff69b4;
  padding-top: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav.custom-nav {
    text-align: center;
  }

  .navbar-nav,
  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  .featured-products {
    grid-template-columns: 1fr;
  }
}

/* ===== Sparkle Animation ===== */
.sparkle-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.sparkle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: sparkleMagic 3s linear infinite;
}

@keyframes sparkleMagic {
  0% { transform: translate(0, 0) scale(var(--size)); opacity: 0; }
  25% { opacity: 1; }
  50% { transform: translate(var(--x), var(--y)) scale(var(--size)); opacity: 0.8; }
  100% { transform: translate(calc(var(--x)*2), calc(var(--y)*2)) scale(var(--size)); opacity: 0; }
}