/* Enhanced home page styling with dreamy animations and marketing sections */

:root {
  --primary-color: #5c318c;
  --secondary-color: #8e44ad;
  --text-color: #333;
  --light-text: #fff;
  --dark-bg: #1a1a2e;
  --transition-speed: 0.3s;
  --section-bg: rgba(26, 26, 46, 0.95);
  --card-bg: rgba(255, 255, 255, 0.1);
  --card-hover-bg: rgba(255, 255, 255, 0.15);
}

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: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  left: 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.3;
  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;
  width: 100%;
  padding: 0;
}

/* Hero Section */
.hero-section {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--light-text);
  text-shadow: 0 0 20px rgba(138, 43, 226, 0.7);
  animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 20px;
  opacity: 0.95;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Screenshots Section */
.screenshots-section {
  padding: 80px 20px;
  background: var(--section-bg);
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--light-text);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.screenshots-carousel {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.screenshot-item {
  flex: 0 1 250px;
  transition: transform var(--transition-speed);
}

.screenshot-item:hover {
  transform: scale(1.05);
}

.screenshot-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Why Section */
.why-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2c2c54 100%);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-card {
  padding: 30px;
  background: var(--card-bg);
  border-radius: 15px;
  text-align: center;
  transition: all var(--transition-speed);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.why-card:hover {
  transform: translateY(-10px);
  background: var(--card-hover-bg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.why-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

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

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

/* Features Section */
.features-section {
  padding: 80px 20px;
  background: var(--section-bg);
}

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

.feature-card {
  padding: 30px;
  background: var(--card-bg);
  border-radius: 15px;
  transition: all var(--transition-speed);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--card-hover-bg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

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

/* How It Works Section */
.how-it-works-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #2c2c54 0%, #1a1a2e 100%);
  text-align: center;
}

.steps-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.step-item {
  flex: 1;
  min-width: 250px;
  max-width: 280px;
  padding: 30px;
  background: var(--card-bg);
  border-radius: 15px;
  position: relative;
  transition: all var(--transition-speed);
}

.step-item:hover {
  transform: translateY(-10px);
  background: var(--card-hover-bg);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--light-text);
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 5px 15px rgba(92, 49, 140, 0.5);
}

.step-item h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--light-text);
}

.step-item p {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* Blog Section */
.blog-section {
  padding: 80px 20px;
  background: var(--section-bg);
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.blog-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  transition: all var(--transition-speed);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.blog-link {
  text-decoration: none;
  color: var(--light-text);
  display: block;
}

.blog-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.blog-image-placeholder {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-image-icon {
  font-size: 3rem;
}

.blog-content {
  padding: 25px;
  text-align: left;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--light-text);
}

.blog-excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 15px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

.blog-read-more {
  color: var(--secondary-color);
  font-weight: bold;
}

.blog-cta {
  margin-top: 40px;
}

.btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: all var(--transition-speed);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

/* Testimonials Section */
.testimonials-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2c2c54 100%);
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  padding: 30px;
  background: var(--card-bg);
  border-radius: 15px;
  transition: all var(--transition-speed);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  background: var(--card-hover-bg);
}

.testimonial-stars {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
  opacity: 0.95;
}

.testimonial-author {
  font-size: 0.9rem;
  font-weight: bold;
  opacity: 0.8;
}

/* Final CTA Section */
.final-cta-section {
  padding: 100px 20px;
  background: var(--section-bg);
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--light-text);
}

.cta-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Store Badges */
.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;
}

/* Quick Links Section */
.quick-links {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #2c2c54 0%, #1a1a2e 100%);
}

.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: 900px;
  margin: 0 auto;
}

.quick-link-card {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  padding: 30px;
  background: var(--card-bg);
  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: var(--card-hover-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 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 */
.footer {
  padding: 40px 20px;
  font-size: 0.9rem;
  opacity: 0.7;
  text-align: center;
  background: var(--dark-bg);
}

.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));
  }
}

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

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

/* Responsive design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .moon {
    width: 120px;
    height: 120px;
  }
  
  .star {
    width: 35px;
    height: 35px;
  }
  
  .cloud {
    width: 180px;
  }
  
  .screenshot-item {
    flex: 0 1 200px;
  }
  
  .why-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-container {
    flex-direction: column;
    align-items: center;
  }
  
  .store-badge {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .screenshot-item {
    flex: 0 1 100%;
  }
  
  .blog-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .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;
  }
}