/* ===== CSS Variables ===== */
:root {
  --color-primary: #4ECDC4;
  --color-primary-dark: #3DB8B0;
  --color-coral: #FF6B6B;
  --color-gold: #FFD700;
  --color-orange: #FFA94D;
  --color-background: #FFF5F0;
  --color-text-primary: #2C3E50;
  --color-text-secondary: #7F8C8D;
  --color-white: #FFFFFF;
  --color-light-teal: #E8F9F7;
  --font-family: 'Nunito', sans-serif;
  --border-radius: 20px;
  --border-radius-sm: 12px;
  --shadow: 0 10px 40px rgba(78, 205, 196, 0.2);
  --shadow-sm: 0 4px 15px rgba(78, 205, 196, 0.15);
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Animations ===== */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes wiggle {
  0%, 100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

@keyframes floatShape {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -10px) rotate(90deg);
  }
  50% {
    transform: translate(0, -20px) rotate(180deg);
  }
  75% {
    transform: translate(-10px, -10px) rotate(270deg);
  }
}

/* ===== Floating Background Shapes ===== */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  top: -100px;
  right: -100px;
  animation: floatShape 20s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--color-coral);
  bottom: 20%;
  left: -50px;
  animation: floatShape 15s ease-in-out infinite reverse;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: var(--color-gold);
  top: 40%;
  right: 10%;
  animation: floatShape 18s ease-in-out infinite;
}

.shape-4 {
  width: 100px;
  height: 100px;
  background: var(--color-primary);
  bottom: 10%;
  right: 20%;
  animation: floatShape 12s ease-in-out infinite reverse;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.hero-content {
  animation: fadeIn 1s ease-out;
}

.mascot {
  width: 280px;
  height: auto;
  animation: float 3s ease-in-out infinite;
  margin-bottom: 30px;
  filter: drop-shadow(0 20px 40px rgba(78, 205, 196, 0.3));
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 15px;
  text-shadow: 2px 2px 0 var(--color-white);
}

.hero .tagline {
  font-size: 1.4rem;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  font-weight: 600;
}

.store-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  background: var(--color-text-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.store-btn svg {
  width: 28px;
  height: 28px;
}

.store-btn .store-text {
  text-align: left;
}

.store-btn .store-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
}

.store-btn .store-text span {
  display: block;
  font-size: 1.1rem;
}

/* ===== Section Styles ===== */
section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 50px;
}

.section-title span {
  color: var(--color-primary);
}

/* ===== Features Section ===== */
.features {
  background: var(--color-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.feature-card {
  background: var(--color-background);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--color-light-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.5rem;
}

.feature-card:nth-child(2) .feature-icon {
  background: #FFF0E8;
}

.feature-card:nth-child(3) .feature-icon {
  background: #FFF8E0;
}

.feature-card:nth-child(4) .feature-icon {
  background: #FFE8E8;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text-primary);
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

/* ===== Stats Section ===== */
.stats {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
}

.stats .section-title {
  color: var(--color-white);
}

.stats .section-title span {
  color: var(--color-gold);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  display: block;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 600;
}

/* ===== Categories Section ===== */
.categories-preview {
  overflow: hidden;
}

.categories-scroll {
  display: flex;
  gap: 20px;
  animation: scroll 30s linear infinite;
  width: max-content;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.category-card {
  flex-shrink: 0;
  width: 160px;
  padding: 25px 20px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.category-emoji {
  font-size: 3rem;
  margin-bottom: 10px;
  display: block;
}

.category-name {
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: 1rem;
}

/* ===== CTA Section ===== */
.cta {
  text-align: center;
  background: var(--color-white);
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-text-primary);
}

.cta p {
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-text-primary);
  color: var(--color-white);
  padding: 40px 20px;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-tagline {
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-tagline span {
  color: var(--color-coral);
}

/* ===== Privacy Policy Page ===== */
.privacy-page {
  min-height: 100vh;
  padding: 40px 20px;
}

.privacy-header {
  text-align: center;
  margin-bottom: 50px;
  padding-top: 40px;
}

.privacy-header h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.privacy-header p {
  color: var(--color-text-secondary);
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 50px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.privacy-content h2 {
  color: var(--color-text-primary);
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-light-teal);
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content p,
.privacy-content ul {
  color: var(--color-text-secondary);
  margin-bottom: 15px;
  line-height: 1.8;
}

.privacy-content ul {
  padding-left: 25px;
}

.privacy-content li {
  margin-bottom: 8px;
}

.privacy-content a {
  color: var(--color-primary);
  text-decoration: none;
}

.privacy-content a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 30px;
  transition: gap 0.3s ease;
}

.back-link:hover {
  gap: 12px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }

  .mascot {
    width: 220px;
  }

  .section-title {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .privacy-content {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .mascot {
    width: 180px;
  }

  section {
    padding: 60px 15px;
  }

  .feature-card {
    padding: 30px 20px;
  }
}

/* ===== Scroll Animation Classes ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Floating Jingle Button ===== */
.jingle-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(78, 205, 196, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}

.jingle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(78, 205, 196, 0.5);
}

.jingle-btn:active {
  transform: scale(0.95);
}

.jingle-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--color-white);
}

.jingle-btn.playing {
  animation: pulse 1s ease-in-out infinite;
}

.jingle-btn .icon-pause {
  display: none;
}

.jingle-btn.playing .icon-play {
  display: none;
}

.jingle-btn.playing .icon-pause {
  display: block;
}

@media (max-width: 480px) {
  .jingle-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .jingle-btn svg {
    width: 24px;
    height: 24px;
  }
}
