:root {
  --primary-purple: #6b46c1;
  --deep-purple: #4c1d95;
  --cosmic-blue: #1e293b;
  --star-gold: #f59e0b;
  --mystic-pink: #ec4899;
  --moon-silver: #e5e7eb;
  --dark-space: #0f172a;
  --nebula-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --cosmic-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--dark-space);
  color: var(--moon-silver);
  overflow-x: hidden;
}

/* Animated Background Stars */
.stars-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(2px 2px at 20px 30px, white, transparent),
    radial-gradient(2px 2px at 40px 70px, white, transparent),
    radial-gradient(1px 1px at 90px 40px, white, transparent),
    radial-gradient(1px 1px at 130px 80px, white, transparent),
    radial-gradient(2px 2px at 160px 30px, white, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}

/* Floating Zodiac Symbols */
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-symbol {
  position: absolute;
  font-size: 24px;
  color: var(--star-gold);
  opacity: 0.3;
  animation: float 8s ease-in-out infinite;
}

.floating-symbol:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.floating-symbol:nth-child(2) {
  top: 20%;
  left: 80%;
  animation-delay: 1s;
}
.floating-symbol:nth-child(3) {
  top: 50%;
  left: 5%;
  animation-delay: 2s;
}
.floating-symbol:nth-child(4) {
  top: 70%;
  left: 90%;
  animation-delay: 3s;
}
.floating-symbol:nth-child(5) {
  top: 30%;
  left: 70%;
  animation-delay: 4s;
}
.floating-symbol:nth-child(6) {
  top: 80%;
  left: 20%;
  animation-delay: 5s;
}
.floating-symbol:nth-child(7) {
  top: 15%;
  left: 50%;
  animation-delay: 6s;
}
.floating-symbol:nth-child(8) {
  top: 60%;
  left: 75%;
  animation-delay: 7s;
}
.floating-symbol:nth-child(9) {
  top: 40%;
  left: 15%;
  animation-delay: 8s;
}
.floating-symbol:nth-child(10) {
  top: 85%;
  left: 60%;
  animation-delay: 9s;
}
.floating-symbol:nth-child(11) {
  top: 25%;
  left: 25%;
  animation-delay: 10s;
}
.floating-symbol:nth-child(12) {
  top: 65%;
  left: 45%;
  animation-delay: 11s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Navigation */
.cosmic-nav {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(107, 70, 193, 0.3);
  transition: all 0.3s ease;
}

.cosmic-logo {
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--star-gold) !important;
  text-decoration: none;
}

.cosmic-logo i {
  color: var(--mystic-pink);
  margin-right: 10px;
}

.navbar-nav .nav-link {
  color: var(--moon-silver) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--star-gold) !important;
  transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--primary-purple);
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
  left: 0;
}

.navbar-toggler {
  border: none;
  background: var(--primary-purple);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-family: "Cinzel", serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cosmic-text {
  background: var(--nebula-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cosmic-btn-primary {
  background: var(--nebula-gradient);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(107, 70, 193, 0.4);
}

.cosmic-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(107, 70, 193, 0.6);
  color: white;
}

.cosmic-btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-purple);
  padding: 12px 30px;
  border-radius: 50px;
  color: var(--moon-silver);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cosmic-btn-secondary:hover {
  background: var(--primary-purple);
  color: white;
  transform: translateY(-3px);
}

/* Zodiac Wheel */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.zodiac-wheel {
  position: relative;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 2px solid var(--primary-purple);
  animation: rotate 60s linear infinite;
}

.zodiac-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--nebula-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sun-icon {
  font-size: 2rem;
  color: var(--star-gold);
  animation: pulse 2s ease-in-out infinite;
}

.zodiac-sign {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(107, 70, 193, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--star-gold);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-purple);
}

.zodiac-sign:hover {
  background: var(--primary-purple);
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(107, 70, 193, 0.8);
}

/* Position zodiac signs around the wheel */
.zodiac-sign:nth-child(2) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.zodiac-sign:nth-child(3) {
  top: 7%;
  right: 7%;
}
.zodiac-sign:nth-child(4) {
  top: 25%;
  right: 0;
}
.zodiac-sign:nth-child(5) {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}
.zodiac-sign:nth-child(6) {
  bottom: 25%;
  right: 0;
}
.zodiac-sign:nth-child(7) {
  bottom: 7%;
  right: 7%;
}
.zodiac-sign:nth-child(8) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.zodiac-sign:nth-child(9) {
  bottom: 7%;
  left: 7%;
}
.zodiac-sign:nth-child(10) {
  bottom: 25%;
  left: 0;
}
.zodiac-sign:nth-child(11) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.zodiac-sign:nth-child(12) {
  top: 25%;
  left: 0;
}
.zodiac-sign:nth-child(13) {
  top: 7%;
  left: 7%;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Features Section */
.features-section {
  background: rgba(30, 41, 59, 0.3);
  backdrop-filter: blur(10px);
}

.section-title {
  font-family: "Cinzel", serif;
  font-size: 2.5rem;
  color: var(--star-gold);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 3rem;
}

.feature-card {
  background: rgba(107, 70, 193, 0.1);
  border: 1px solid rgba(107, 70, 193, 0.3);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(107, 70, 193, 0.2);
  box-shadow: 0 15px 35px rgba(107, 70, 193, 0.4);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--nebula-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.feature-card h4 {
  color: var(--star-gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card p {
  opacity: 0.9;
  line-height: 1.6;
}

/* Zodiac Section */
.zodiac-section {
  padding: 80px 0;
}

.zodiac-card {
  background: rgba(107, 70, 193, 0.1);
  border: 1px solid rgba(107, 70, 193, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.zodiac-card:hover {
  transform: translateY(-5px);
  background: rgba(107, 70, 193, 0.2);
  box-shadow: 0 10px 25px rgba(107, 70, 193, 0.4);
}

.zodiac-symbol {
  font-size: 2.5rem;
  color: var(--star-gold);
  margin-bottom: 0.5rem;
}

.zodiac-card h5 {
  color: var(--moon-silver);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.zodiac-card span {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Footer */
.cosmic-footer {
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(107, 70, 193, 0.3);
  margin-top: 50px;
}

.social-links a {
  color: var(--moon-silver);
  font-size: 1.2rem;
  margin-left: 15px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--star-gold);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .zodiac-wheel {
    width: 300px;
    height: 300px;
  }

  .zodiac-sign {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .cosmic-btn-primary,
  .cosmic-btn-secondary {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .zodiac-wheel {
    width: 250px;
    height: 250px;
  }

  .zodiac-sign {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .floating-symbol {
    font-size: 18px;
  }
}
