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

:root {
  --cosmic-deep: #0a0118;
  --cosmic-purple: #2d1b69;
  --cosmic-blue: #1e3a8a;
  --mystic-violet: #7c3aed;
  --celestial-cyan: #06b6d4;
  --star-gold: #fbbf24;
  --ethereal-white: #f8fafc;
  --cosmic-gray: #94a3b8;
}

body {
  font-family: "Lato", sans-serif;
  background-color: var(--cosmic-deep);
  color: var(--ethereal-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Cinzel", serif;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 1, 24, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--star-gold);
}

.logo-icon {
  font-size: 1.8rem;
}

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

.nav-menu a {
  color: var(--ethereal-white);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 400;
}

.nav-menu a:hover {
  color: var(--mystic-violet);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--ethereal-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px;
}

.stars-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent), radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent), radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent), radial-gradient(1px 1px at 15% 90%, white, transparent);
  background-size: 200% 200%;
  animation: twinkle 8s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--star-gold), var(--mystic-violet), var(--celestial-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--cosmic-gray);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--mystic-violet), var(--cosmic-purple));
  color: var(--ethereal-white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--mystic-violet);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

/* Sections */
section {
  padding: 6rem 0;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--star-gold);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--cosmic-gray);
  max-width: 700px;
  margin: 0 auto 4rem;
}

/* Zodiac Section */
.zodiac-section {
  background: linear-gradient(180deg, var(--cosmic-deep) 0%, var(--cosmic-purple) 100%);
}

.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.zodiac-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  backdrop-filter: blur(10px);
}

.zodiac-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
  border-color: var(--mystic-violet);
}

.zodiac-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--star-gold);
}

.zodiac-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--ethereal-white);
}

.zodiac-date {
  color: var(--celestial-cyan);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.zodiac-desc {
  color: var(--cosmic-gray);
  line-height: 1.6;
}

/* Predictions Section */
.predictions-section {
  background: var(--cosmic-deep);
}

.predictions-grid {
  display: grid;
  gap: 3rem;
}

.prediction-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.prediction-card:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.2);
}

.prediction-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prediction-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prediction-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--star-gold);
}

.prediction-content p {
  color: var(--cosmic-gray);
  line-height: 1.8;
  font-size: 1.1rem;
}

/* Insights Section */
.insights-section {
  background: linear-gradient(180deg, var(--cosmic-deep) 0%, var(--cosmic-blue) 100%);
}

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

.insight-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(10px);
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.insight-icon {
  font-size: 3rem;
  /* Added font family and styling for better Unicode symbol rendering */
  font-family: "Arial Unicode MS", "Lucida Sans Unicode", "DejaVu Sans", sans-serif;
  color: var(--celestial-cyan);
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.insight-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--celestial-cyan);
}

.insight-card p {
  color: var(--cosmic-gray);
  line-height: 1.7;
}

/* Added styles for moon phase calculator */
.moon-phase-section {
  background: linear-gradient(180deg, var(--cosmic-deep) 0%, #1a0a2e 100%);
  padding: 6rem 0;
}

.moon-calculator {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 20px;
  padding: 3rem;
  backdrop-filter: blur(10px);
}

.moon-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

#moonCanvas {
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.4);
}

.moon-info {
  text-align: center;
}

.moon-info h3 {
  font-size: 2rem;
  color: var(--star-gold);
  margin-bottom: 0.5rem;
}

.moon-info p {
  color: var(--cosmic-gray);
  max-width: 300px;
}

.moon-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.moon-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  min-width: 300px;
}

.stat-label {
  color: var(--celestial-cyan);
  font-weight: 600;
}

.stat-value {
  color: var(--ethereal-white);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Added styles for interactive star map */
.starmap-section {
  background: var(--cosmic-deep);
  padding: 6rem 0;
}

.starmap-container {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

#starCanvas {
  background: radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.3), rgba(10, 1, 24, 0.9));
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  box-shadow: inset 0 0 50px rgba(6, 182, 212, 0.2);
}

.constellation-info {
  flex: 1;
  padding: 2rem;
}

.constellation-info h3 {
  font-size: 2rem;
  color: var(--celestial-cyan);
  margin-bottom: 1rem;
}

.constellation-info p {
  color: var(--cosmic-gray);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.constellation-btn {
  background: linear-gradient(135deg, var(--celestial-cyan), var(--cosmic-blue));
  color: var(--ethereal-white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.constellation-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
}

/* Added styles for daily horoscope section */
.daily-horoscope-section {
  background: linear-gradient(180deg, var(--cosmic-deep) 0%, var(--cosmic-purple) 100%);
  padding: 6rem 0;
}

.horoscope-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.sign-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--ethereal-white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.sign-btn:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--mystic-violet);
  transform: translateY(-2px);
}

.sign-btn.active {
  background: linear-gradient(135deg, var(--mystic-violet), var(--cosmic-purple));
  border-color: var(--mystic-violet);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.horoscope-display {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 20px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  max-width: 900px;
  margin: 0 auto;
}

.horoscope-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}

.horoscope-icon {
  font-size: 4rem;
  color: var(--star-gold);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 50%;
}

.horoscope-header h3 {
  font-size: 2.5rem;
  color: var(--star-gold);
  margin-bottom: 0.25rem;
}

.horoscope-date {
  color: var(--celestial-cyan);
  font-size: 0.9rem;
}

.horoscope-content {
  display: grid;
  gap: 2rem;
}

.horoscope-card {
  background: rgba(124, 58, 237, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.horoscope-card h4 {
  color: var(--mystic-violet);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.horoscope-card p {
  color: var(--cosmic-gray);
  line-height: 1.7;
}

.horoscope-ratings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(124, 58, 237, 0.3);
}

.rating-item {
  text-align: center;
}

.rating-item span {
  display: block;
  color: var(--celestial-cyan);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stars {
  color: var(--star-gold);
  font-size: 1.5rem;
}

/* Footer */
.footer {
  background: rgba(10, 1, 24, 0.95);
  border-top: 1px solid rgba(124, 58, 237, 0.3);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: var(--star-gold);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.footer-section p {
  color: var(--cosmic-gray);
  line-height: 1.7;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--cosmic-gray);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--mystic-violet);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--cosmic-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 1, 24, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    border-top: 1px solid rgba(124, 58, 237, 0.3);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

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

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

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

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

  .prediction-card {
    grid-template-columns: 1fr;
  }

  .prediction-img {
    height: 250px;
  }

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

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

  /* Updated responsive styles for new sections */
  .moon-calculator {
    flex-direction: column;
    padding: 2rem;
  }

  .moon-stat {
    min-width: 100%;
  }

  .starmap-container {
    flex-direction: column;
  }

  #starCanvas {
    width: 100%;
    height: auto;
  }

  .horoscope-selector {
    gap: 0.5rem;
  }

  .sign-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .horoscope-display {
    padding: 2rem 1.5rem;
  }

  .horoscope-header {
    flex-direction: column;
    text-align: center;
  }

  .horoscope-ratings {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

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

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

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