/* =============================================
   The Mermaid's Grotto — Styles
   ============================================= */

/* --- Custom Properties --- */
:root {
  --ocean-deep: #0a1628;
  --ocean-mid: #0d2847;
  --ocean-light: #1a4a7a;
  --teal: #2dd4bf;
  --coral: #f472b6;
  --sand: #fde68a;
  --pearl: #f0f9ff;
  --foam: #e0f2fe;

  --pastel-pink: #f9a8d4;
  --mint-green: #6ee7b7;
  --soft-yellow: #fde68a;

  --whatsapp-green: #25D366;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lora', Georgia, serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--pearl);
  background: linear-gradient(180deg, var(--ocean-deep) 0%, var(--ocean-mid) 40%, #0b3058 70%, #0e3d5e 100%);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Container --- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Bubbles Overlay --- */
.bubbles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(255, 255, 255, 0.15),
    rgba(45, 212, 191, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.08);
  bottom: -30px;
  animation: bubbleRise linear infinite;
}

/* --- Sections: Fade-in on scroll --- */
section,
footer {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible,
footer.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero Section --- */
#hero {
  position: relative;
  text-align: center;
  padding: 8rem 0 6rem;
  background: linear-gradient(180deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
  /* Hero starts visible */
  opacity: 1;
  transform: none;
}

#hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--pearl);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px rgba(45, 212, 191, 0.3);
}

.tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--teal);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-intro {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 2rem auto 0;
  color: var(--foam);
  opacity: 0.9;
}

/* --- Wave decorations --- */
.wave-bottom,
.wave-top,
.wave-footer {
  position: relative;
  width: 100%;
  height: 60px;
  overflow: hidden;
}

.wave-bottom::before,
.wave-footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  height: 60px;
  background: var(--ocean-mid);
  clip-path: polygon(
    0% 60%, 5% 50%, 10% 55%, 15% 45%, 20% 50%, 25% 40%,
    30% 48%, 35% 38%, 40% 45%, 45% 35%, 50% 42%, 55% 33%,
    60% 40%, 65% 32%, 70% 38%, 75% 30%, 80% 36%, 85% 28%,
    90% 35%, 95% 27%, 100% 32%, 100% 100%, 0% 100%
  );
  animation: waveShift 8s ease-in-out infinite alternate;
}

.wave-footer::before {
  background: var(--ocean-deep);
}

/* --- Story Section --- */
#story {
  position: relative;
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--ocean-mid) 0%, #0b3058 100%);
}

#story h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 2rem;
  color: var(--sand);
  text-shadow: 0 0 30px rgba(253, 230, 138, 0.2);
}

#story p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--foam);
  opacity: 0.92;
}

#story p:last-child {
  margin-bottom: 0;
}

#story em {
  color: var(--coral);
  font-style: italic;
}

#story strong {
  color: var(--teal);
}

/* --- Shop Section --- */
#shop {
  position: relative;
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, #0b3058 0%, #0e3d5e 50%, var(--ocean-mid) 100%);
}

#shop h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 1rem;
  color: var(--sand);
  text-shadow: 0 0 30px rgba(253, 230, 138, 0.2);
}

.shop-intro {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  color: var(--foam);
  opacity: 0.85;
  font-size: 1.05rem;
}

/* --- Product Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Product Cards (Glassmorphism) --- */
.product-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.8rem;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  animation: cardShimmer 4s ease-in-out infinite;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.3);
}

.card-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 30%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 70%
  );
  animation: shimmerMove 6s ease-in-out infinite;
  pointer-events: none;
}

.product-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--pearl);
  margin-bottom: 0.3rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  background: rgba(45, 212, 191, 0.1);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.product-card p {
  font-size: 0.95rem;
  color: var(--foam);
  opacity: 0.85;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sand);
}

.price-note {
  font-size: 0.82rem;
  color: var(--teal);
  opacity: 0.7;
  font-style: italic;
}

/* --- WhatsApp CTA --- */
.cta-section {
  text-align: center;
  padding-top: 1rem;
}

.cta-text {
  font-size: 1.1rem;
  color: var(--foam);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--whatsapp-green);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow:
    0 4px 20px rgba(37, 211, 102, 0.35),
    0 0 40px rgba(37, 211, 102, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 6px 30px rgba(37, 211, 102, 0.5),
    0 0 60px rgba(37, 211, 102, 0.2);
  background: #22c55e;
}

.whatsapp-btn:active {
  transform: translateY(0) scale(0.98);
}

.whatsapp-icon {
  flex-shrink: 0;
}

/* --- SVG Art --- */
#art-labubu {
  display: block;
  margin: 2rem auto;
  width: 100%;
  height: auto;
  overflow: visible;
}

#art-labubu  { max-width: 600px; }

.site-image {
  display: block;
  margin: 2rem auto;
  width: 100%;
  height: auto;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(45, 212, 191, 0.15);
}

/* Labubu bobbing animation — applied to each positioned group */
.labubu-1 {
  animation: labubuBob1 3s ease-in-out infinite;
}

.labubu-2 {
  animation: labubuBob2 3s ease-in-out infinite;
  animation-delay: -0.8s;
}

.labubu-3 {
  animation: labubuBob3 3s ease-in-out infinite;
  animation-delay: -1.6s;
}

/* Sparkle twinkle */
.sparkle {
  animation: sparkleTwinkle 3s ease-in-out infinite;
}

.sparkle:nth-child(odd) { animation-delay: -1.5s; }

/* --- Footer --- */
#footer {
  position: relative;
  padding: 3rem 0 2rem;
  background: var(--ocean-deep);
  text-align: center;
}

.footer-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--teal);
  margin-bottom: 0.3rem;
}

.footer-sub {
  font-size: 0.95rem;
  color: var(--foam);
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.footer-note {
  font-size: 0.75rem;
  color: var(--foam);
  opacity: 0.35;
}

/* =============================================
   Keyframe Animations
   ============================================= */

/* Bubble rise animation */
@keyframes bubbleRise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-110vh) translateX(var(--sway, 30px));
    opacity: 0;
  }
}

/* Wave horizontal shift */
@keyframes waveShift {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-3%);
  }
}

/* Card border shimmer pulse */
@keyframes cardShimmer {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.1);
  }
  50% {
    border-color: rgba(45, 212, 191, 0.18);
  }
}

/* Internal shimmer sweep on cards */
@keyframes shimmerMove {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Labubu figure bobbing — each includes its base translate to avoid override */
@keyframes labubuBob1 {
  0%, 100% { transform: translate(150px, 120px); }
  50%      { transform: translate(150px, 116px); }
}

@keyframes labubuBob2 {
  0%, 100% { transform: translate(300px, 115px); }
  50%      { transform: translate(300px, 111px); }
}

@keyframes labubuBob3 {
  0%, 100% { transform: translate(450px, 122px); }
  50%      { transform: translate(450px, 118px); }
}

/* Sparkle twinkle */
@keyframes sparkleTwinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.2);
  }
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 599px) {
  #hero {
    padding: 5rem 0 4rem;
  }

  .product-card {
    padding: 1.4rem;
  }

  .whatsapp-btn {
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
  }

  #art-labubu {
    overflow: hidden;
  }

}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
