/* Nindiya Tales Website Styles */
/* Design inspired by the iOS app */

:root {
  /* Theme Colors from NindiyaTheme */
  --deep-indigo: #141029;
  --soft-lavender: #947AC7;
  --moon-glow: #F0EBFA;
  --starlight: #C2B3EB;
  --deep-purple: #1F1447;
  --mid-purple: #2E1F59;
  --cream: #FFF8DC;
  
  /* Typography */
  --font-primary: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --container-width: 1000px;
  --section-padding: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: linear-gradient(180deg, var(--deep-indigo) 0%, var(--deep-purple) 50%, var(--mid-purple) 100%);
  min-height: 100vh;
  color: var(--moon-glow);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Stars Background */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

/* Generate stars dynamically with CSS */
.star:nth-child(1) { width: 2px; height: 2px; top: 5%; left: 10%; animation-delay: 0s; }
.star:nth-child(2) { width: 3px; height: 3px; top: 12%; left: 25%; animation-delay: 0.5s; }
.star:nth-child(3) { width: 2px; height: 2px; top: 8%; left: 45%; animation-delay: 1s; }
.star:nth-child(4) { width: 1px; height: 1px; top: 15%; left: 60%; animation-delay: 0.3s; }
.star:nth-child(5) { width: 3px; height: 3px; top: 3%; left: 75%; animation-delay: 0.7s; }
.star:nth-child(6) { width: 2px; height: 2px; top: 18%; left: 85%; animation-delay: 1.2s; }
.star:nth-child(7) { width: 1px; height: 1px; top: 25%; left: 5%; animation-delay: 0.4s; }
.star:nth-child(8) { width: 2px; height: 2px; top: 30%; left: 20%; animation-delay: 0.9s; }
.star:nth-child(9) { width: 3px; height: 3px; top: 22%; left: 40%; animation-delay: 1.5s; }
.star:nth-child(10) { width: 1px; height: 1px; top: 35%; left: 55%; animation-delay: 0.2s; }
.star:nth-child(11) { width: 2px; height: 2px; top: 28%; left: 70%; animation-delay: 0.8s; }
.star:nth-child(12) { width: 2px; height: 2px; top: 40%; left: 90%; animation-delay: 1.3s; }
.star:nth-child(13) { width: 1px; height: 1px; top: 45%; left: 8%; animation-delay: 0.6s; }
.star:nth-child(14) { width: 3px; height: 3px; top: 50%; left: 30%; animation-delay: 1.1s; }
.star:nth-child(15) { width: 2px; height: 2px; top: 55%; left: 50%; animation-delay: 0.1s; }
.star:nth-child(16) { width: 1px; height: 1px; top: 48%; left: 65%; animation-delay: 0.5s; }
.star:nth-child(17) { width: 2px; height: 2px; top: 60%; left: 80%; animation-delay: 1.4s; }
.star:nth-child(18) { width: 3px; height: 3px; top: 65%; left: 15%; animation-delay: 0.3s; }
.star:nth-child(19) { width: 1px; height: 1px; top: 70%; left: 35%; animation-delay: 0.9s; }
.star:nth-child(20) { width: 2px; height: 2px; top: 75%; left: 55%; animation-delay: 1.6s; }
.star:nth-child(21) { width: 2px; height: 2px; top: 68%; left: 75%; animation-delay: 0.7s; }
.star:nth-child(22) { width: 1px; height: 1px; top: 80%; left: 92%; animation-delay: 1.2s; }
.star:nth-child(23) { width: 3px; height: 3px; top: 85%; left: 12%; animation-delay: 0.4s; }
.star:nth-child(24) { width: 2px; height: 2px; top: 90%; left: 40%; animation-delay: 0.8s; }
.star:nth-child(25) { width: 1px; height: 1px; top: 88%; left: 60%; animation-delay: 1.0s; }

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header / Navigation */
.header {
  padding: 24px 0;
  position: relative;
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--soft-lavender), var(--mid-purple));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(148, 122, 199, 0.3);
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--moon-glow);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--starlight);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
  opacity: 0.8;
}

.nav-links a:hover {
  color: var(--moon-glow);
  opacity: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 0 100px;
}

.hero-moon {
  width: 200px;
  height: 200px;
  margin: 0 auto 40px;
  position: relative;
}

.hero-moon::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(240, 235, 250, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-moon-svg {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(123, 92, 184, 0.4), 0 0 80px rgba(240, 235, 250, 0.2);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--moon-glow) 0%, var(--starlight) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 20px;
  color: var(--starlight);
  opacity: 0.8;
  margin-bottom: 12px;
  font-weight: 600;
}

.hero-tagline-multi {
  font-size: 14px;
  color: var(--starlight);
  opacity: 0.5;
  margin-bottom: 48px;
}

.app-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.app-badge {
  height: 52px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
.section {
  padding: var(--section-padding) 0;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
  color: var(--moon-glow);
}

/* FAQ / Features Section */
.faq-grid {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(240, 235, 250, 0.08);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item.featured {
  padding: 32px 0;
  border-bottom: 1px solid rgba(148, 122, 199, 0.2);
}

.faq-item.featured h3 {
  font-size: 22px;
  color: var(--soft-lavender);
}

.faq-item.featured p {
  font-size: 16px;
  opacity: 0.85;
  line-height: 1.8;
}

.faq-text-extra {
  margin-top: 12px;
}

.faq-icon {
  font-size: 24px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.faq-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--moon-glow);
  margin-bottom: 12px;
}

.faq-item p {
  color: var(--starlight);
  opacity: 0.7;
  font-size: 15px;
  line-height: 1.7;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 48px;
  max-width: 800px;
  margin: 48px auto 0;
}

.feature-card {
  text-align: center;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--moon-glow);
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--starlight);
  opacity: 0.6;
  font-size: 13px;
  line-height: 1.5;
}

/* Language Pills */
.language-pills {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.language-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(240, 235, 250, 0.1);
  border: 2px solid transparent;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: var(--moon-glow);
  opacity: 0.7;
  cursor: pointer;
  transition: all 0.25s ease;
}

.language-pill:hover {
  opacity: 1;
  background: rgba(240, 235, 250, 0.15);
  transform: translateY(-2px);
}

.language-pill.active {
  background: var(--soft-lavender);
  border-color: var(--starlight);
  opacity: 1;
  box-shadow: 0 4px 20px rgba(148, 122, 199, 0.4);
}

.language-pill.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(148, 122, 199, 0.5);
}

/* Footer */
.footer {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid rgba(240, 235, 250, 0.08);
  margin-top: 60px;
}

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

.footer-links a {
  color: var(--starlight);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

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

.footer-divider {
  color: var(--starlight);
  opacity: 0.3;
}

.footer-copyright {
  color: var(--starlight);
  font-size: 13px;
  opacity: 0.4;
}

/* Page Styles - Privacy & Contact */
.page-header {
  text-align: center;
  padding: 0 0 40px;
}

.page-header h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--moon-glow);
  margin-bottom: 16px;
}

.page-header p {
  color: var(--starlight);
  opacity: 0.7;
  font-size: 16px;
}

.content-card {
  max-width: 680px;
  margin: 0 auto 32px;
}

.content-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--moon-glow);
  margin-bottom: 16px;
  margin-top: 32px;
}

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

.content-card p {
  color: var(--starlight);
  opacity: 0.8;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-card ul {
  color: var(--starlight);
  opacity: 0.8;
  font-size: 15px;
  line-height: 1.8;
  margin-left: 24px;
  margin-bottom: 16px;
}

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

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--moon-glow);
  opacity: 0.9;
}

.form-group input,
.form-group textarea {
  background: rgba(240, 235, 250, 0.08);
  border: 1px solid rgba(240, 235, 250, 0.15);
  border-radius: 12px;
  padding: 16px;
  font-size: 15px;
  color: var(--moon-glow);
  font-family: var(--font-primary);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--soft-lavender);
  background: rgba(240, 235, 250, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--starlight);
  opacity: 0.4;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-primary);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--soft-lavender), rgba(148, 122, 199, 0.8));
  color: white;
  box-shadow: 0 8px 24px rgba(148, 122, 199, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(148, 122, 199, 0.4);
}

/* Contact Info Cards */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.contact-method {
  background: rgba(240, 235, 250, 0.04);
  border: 1px solid rgba(240, 235, 250, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(148, 122, 199, 0.3), rgba(148, 122, 199, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-method-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--moon-glow);
  margin-bottom: 4px;
}

.contact-method-info p {
  font-size: 14px;
  color: var(--starlight);
  opacity: 0.7;
  margin: 0;
}

.contact-method-info a {
  color: var(--soft-lavender);
  text-decoration: none;
}

.contact-method-info a:hover {
  text-decoration: underline;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--starlight);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 24px;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 20px;
  }
  
  .nav-links {
    gap: 20px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero-tagline {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  
  .contact-methods {
    grid-template-columns: 1fr;
  }
  
  .language-pills {
    flex-wrap: wrap;
  }
  
  .app-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* Animation on scroll (optional enhancement) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

