/* Home page styling with dreamy animations */

:root {
  --primary-color: #5c318c;
  --secondary-color: #8e44ad;
  --text-color: #333;
  --light-text: #fff;
  --dark-bg: #1a1a2e;
  --transition-speed: 0.3s;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-bg) 0%, #2c2c54 100%);
  color: var(--light-text);
  overflow-x: hidden;
}

.dream-container {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.night-sky {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.moon {
  position: absolute;
  width: 180px;
  height: 180px;
  top: 15%;
  right: 15%;
  z-index: 1;
  animation: glow 10s infinite alternate ease-in-out;
}

.star {
  position: absolute;
  width: 50px;
  height: 50px;
  z-index: 1;
  opacity: 0.8;
  animation: twinkle 8s infinite alternate ease-in-out;
}

.star-1 {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.star-2 {
  top: 25%;
  left: 40%;
  animation-delay: 1s;
}

.star-3 {
  top: 15%;
  left: 70%;
  animation-delay: 2s;
}

.star-4 {
  top: 40%;
  left: 15%;
  animation-delay: 3s;
}

.star-5 {
  top: 60%;
  left: 75%;
  animation-delay: 4s;
}

.star-6 {
  top: 70%;
  left: 35%;
  animation-delay: 5s;
}

.cloud {
  position: absolute;
  z-index: 2;
  opacity: 0.75;
  animation: float 30s infinite linear;
}

.cloud-1 {
  width: 250px;
  top: 15%;
  animation-duration: 120s;
}

.cloud-2 {
  width: 300px;
  top: 25%;
  animation-duration: 140s;
  animation-delay: -20s;
}

.cloud-3 {
  width: 280px;
  top: 40%;
  animation-duration: 110s;
  animation-delay: -50s;
}

.cloud-4 {
  width: 230px;
  top: 60%;
  animation-duration: 130s;
  animation-delay: -80s;
}

.cloud-5 {
  width: 270px;
  top: 75%;
  animation-duration: 150s;
  animation-delay: -100s;
}

.cloud-6 {
  width: 290px;
  top: 45%;
  animation-duration: 160s;
  animation-delay: -130s;
}

.content-wrapper {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 50px auto;
  padding: 50px 20px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  backdrop-filter: blur(3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-section {
  padding: 60px 0;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: var(--light-text);
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.7);
}

.hero-description {
  font-size: 1.4rem;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.5;
  opacity: 0.9;
}

.app-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 60px;
}

.info-card {
  flex: 1;
  min-width: 240px;
  padding: 25px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: transform var(--transition-speed);
}

.info-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.info-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--light-text);
}

.info-card p {
  font-size: 1.1rem;
  line-height: 1.5;
}

.cta-buttons {
  margin: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.store-badge-link {
  display: inline-block;
  transition: all var(--transition-speed);
  text-decoration: none;
}

.store-badge-link:hover {
  transform: translateY(-5px);
  filter: brightness(1.1);
}

.store-badge {
  height: 60px;
  width: auto;
  display: block;
}

.app-store-badge {
  /* App Store PNG badges */
  max-width: 100%;
  height: auto;
}

.play-store-badge {
  /* Google Play PNG badges */
  max-width: 100%;
  height: auto;
}

/* Fallback button styles if images fail to load */
.app-store-button {
  display: inline-block;
  padding: 15px 30px;
  margin: 0 10px 15px;
  background-color: var(--primary-color);
  color: var(--light-text);
  font-size: 1.2rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all var(--transition-speed);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.app-store-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Quick Links Section */
.quick-links {
  margin: 60px 0;
  text-align: center;
}

.quick-links h3 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--light-text);
}

.links-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.quick-link-card {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  text-decoration: none;
  color: var(--light-text);
  transition: all var(--transition-speed);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-link-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.quick-link-card h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #fff;
}

.quick-link-card p {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.5;
}

.footer {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 40px 0 20px;
}

.footer-links {
  margin: 1rem 0;
}

.footer-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.contact-info {
  margin-top: 20px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.contact-info a {
  color: var(--light-text);
  text-decoration: underline;
  opacity: 0.9;
  transition: opacity var(--transition-speed);
}

.contact-info a:hover {
  opacity: 1;
}

/* Animations */
@keyframes glow {
  0% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
    transform: scale(1);
  }
  100% {
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.9));
    transform: scale(1.05);
  }
}

@keyframes twinkle {
  0% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateX(-300px);
  }
  100% {
    transform: translateX(calc(100vw + 300px));
  }
}

/* Responsive design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.2rem;
  }
  
  .moon {
    width: 120px;
    height: 120px;
  }
  
  .star {
    width: 35px;
    height: 35px;
  }
  
  .cloud {
    width: 180px;
  }
  
  .content-wrapper {
    padding: 30px 15px;
  }
  
  .store-badge {
    height: 50px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .info-card {
    min-width: 100%;
  }
  
  .quick-links {
    margin: 40px 20px;
  }
  
  .quick-links h3 {
    font-size: 1.6rem;
  }
  
  .links-grid {
    gap: 20px;
  }
  
  .quick-link-card {
    min-width: 100%;
    padding: 20px;
  }
  
  .quick-link-card h4 {
    font-size: 1.2rem;
  }
  
  .store-badge {
    height: 45px;
  }
  
  .cta-buttons {
    gap: 15px;
  }
}