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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #0f0c29 0%, #1a1a2e 50%, #2d1b4e 100%);
  color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

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

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ffd700;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

.star:nth-child(1) {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}
.star:nth-child(2) {
  top: 20%;
  left: 80%;
  animation-delay: 0.5s;
}
.star:nth-child(3) {
  top: 30%;
  left: 50%;
  animation-delay: 1s;
}
.star:nth-child(4) {
  top: 40%;
  left: 10%;
  animation-delay: 1.5s;
}
.star:nth-child(5) {
  top: 50%;
  left: 90%;
  animation-delay: 2s;
}
.star:nth-child(6) {
  top: 60%;
  left: 30%;
  animation-delay: 0.3s;
}
.star:nth-child(7) {
  top: 70%;
  left: 70%;
  animation-delay: 0.8s;
}
.star:nth-child(8) {
  top: 80%;
  left: 40%;
  animation-delay: 1.3s;
}
.star:nth-child(9) {
  top: 15%;
  left: 60%;
  animation-delay: 1.8s;
}
.star:nth-child(10) {
  top: 85%;
  left: 15%;
  animation-delay: 2.3s;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  z-index: 1000;
  border-bottom: 2px solid rgba(200, 155, 255, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, #c89bff 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-menu a {
  color: #ffccf9;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #ffd700;
  transform: translateY(-2px);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffd700;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 4rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.magic-text {
  display: block;
  font-size: 1.5rem;
  color: #ffccf9;
  margin-bottom: 0.5rem;
  animation: fadeInUp 1s ease;
}

.main-title {
  display: block;
  font-size: 4rem;
  font-weight: bold;
  background: linear-gradient(135deg, #c89bff 0%, #ffd700 50%, #ffccf9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #ffccf9;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #c89bff 0%, #9b6fd8 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(200, 155, 255, 0.4);
  animation: fadeInUp 1s ease 0.6s backwards;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(200, 155, 255, 0.6);
}

.hero-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 3s ease-in-out infinite;
}

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

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

/* Section Styles */
section {
  position: relative;
  padding: 6rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: bold;
  background: linear-gradient(135deg, #c89bff 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #ffccf9;
}

/* Stories Section */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.story-card {
  background: rgba(200, 155, 255, 0.1);
  border: 2px solid rgba(200, 155, 255, 0.3);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.story-card:hover {
  transform: translateY(-10px);
  border-color: #ffd700;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.story-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.story-title {
  font-size: 1.5rem;
  color: #ffd700;
  margin-bottom: 1rem;
}

.story-description {
  color: #ffccf9;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.story-button {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #1a1a2e;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.story-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
}

/* Kingdoms Section */
.kingdoms-section {
  background: rgba(15, 12, 41, 0.5);
  border-radius: 30px;
  padding: 4rem 2rem;
}

.map-container {
  max-width: 1000px;
  margin: 0 auto;
}

.interactive-map {
  width: 100%;
  height: auto;
}

.kingdom {
  cursor: pointer;
  transition: all 0.3s ease;
}

.kingdom:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

.kingdom:hover circle {
  opacity: 0.6;
}

/* AR Section */
.ar-section {
  background: linear-gradient(135deg, rgba(200, 155, 255, 0.1) 0%, rgba(255, 204, 249, 0.1) 100%);
  border-radius: 30px;
}

.ar-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.ar-text {
  flex: 1;
}

.section-description {
  font-size: 1.1rem;
  color: #ffccf9;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.ar-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.ar-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(26, 26, 46, 0.5);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(200, 155, 255, 0.3);
}

.ar-feature h4 {
  color: #ffd700;
  margin-bottom: 0.25rem;
}

.ar-feature p {
  color: #ffccf9;
  font-size: 0.9rem;
}

.ar-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.floating-toy {
  animation: float 3s ease-in-out infinite;
}

.sparkle {
  animation: sparkleAnimation 2s ease-in-out infinite;
}

@keyframes sparkleAnimation {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Dress Up Section */
.dress-up-container {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.character-display {
  flex: 0 0 300px;
  background: rgba(200, 155, 255, 0.1);
  border: 2px solid rgba(200, 155, 255, 0.3);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.dress-up-options {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.option-category h3 {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.option-item {
  background: rgba(26, 26, 46, 0.5);
  border: 2px solid rgba(200, 155, 255, 0.3);
  border-radius: 15px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffccf9;
  font-size: 0.9rem;
}

.option-item:hover {
  border-color: #ffd700;
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.dress-up-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.secondary-button {
  background: rgba(255, 204, 249, 0.2);
  color: #ffccf9;
  border: 2px solid #ffccf9;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-button:hover {
  background: rgba(255, 204, 249, 0.3);
  transform: translateY(-3px);
}

/* Footer */
.footer {
  background: rgba(15, 12, 41, 0.8);
  border-top: 2px solid rgba(200, 155, 255, 0.3);
  padding: 3rem 4rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: #ffd700;
}

.footer-tagline {
  color: #ffccf9;
  font-size: 0.9rem;
}

.footer-section h4 {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #ffccf9;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #ffd700;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #ffccf9;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #ffd700;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(200, 155, 255, 0.2);
  color: #ffccf9;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 6rem 2rem 4rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .main-title {
    font-size: 3rem;
  }

  .ar-content {
    flex-direction: column;
  }

  .dress-up-container {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .main-title {
    font-size: 2.5rem;
  }

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

  section {
    padding: 4rem 2rem;
  }

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

  .option-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 1rem;
  }

  .nav-menu {
    display: none;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}
