/* ATHARVKASTRO Premium Styling Sheet */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --color-purple-primary: #3a0ca3;
  --color-purple-deep: #1e1b4b;
  --color-purple-dark: #060413;
  --color-gold-bright: #f59e0b;
  --color-gold-dark: #d97706;
  --color-text-light: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-glass-bg: rgba(6, 4, 19, 0.45);
  --color-glass-border: rgba(245, 158, 11, 0.18);
  
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

/* Base Styles */
body {
  font-family: var(--font-sans);
  background-color: var(--color-purple-dark);
  color: var(--color-text-light);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Selection and custom scrollbars */
::selection {
  background-color: var(--color-purple-primary);
  color: var(--color-text-light);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-purple-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-purple-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-bright);
}

/* Background Particle Canvas positioning */
#constellation-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Typography & luxury text styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
}

.text-gold {
  color: var(--color-gold-bright);
  background: linear-gradient(135deg, #f59e0b 0%, #fef08a 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.gradient-text-purple {
  background: linear-gradient(135deg, #c084fc 0%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-muted-custom {
  color: var(--color-text-muted);
}

/* Header & Navigation Styles */
.navbar-custom {
  background: rgba(15, 12, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}
.navbar-custom .navbar-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 1px;
}
.navbar-custom .nav-link {
  color: var(--color-text-light);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--color-gold-bright) !important;
}

/* Glassmorphism Card System */
.glass-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 40px 0 rgba(245, 158, 11, 0.15);
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold-dark) 100%);
  color: var(--color-purple-deep) !important;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, var(--color-gold-dark) 0%, var(--color-gold-bright) 100%);
}

.btn-outline-glass {
  background: transparent;
  color: var(--color-text-light) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 10px 24px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}
.btn-outline-glass:hover {
  border-color: var(--color-gold-bright);
  color: var(--color-gold-bright) !important;
  background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-section {
  padding: 160px 0 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-vector-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.zodiac-wheel-svg {
  width: 85%;
  max-width: 450px;
  animation: spinSlow 60s linear infinite;
  filter: drop-shadow(0 0 30px rgba(58, 12, 163, 0.6));
}

.hero-planet {
  position: absolute;
  animation: floatPlanet 6s ease-in-out infinite;
}
.hero-planet-1 {
  top: 10%;
  right: 15%;
  width: 40px;
  animation-delay: 0s;
}
.hero-planet-2 {
  bottom: 15%;
  left: 10%;
  width: 60px;
  animation-delay: 2s;
}

/* Floating WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}
.whatsapp-widget:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
.whatsapp-widget i {
  color: #fff;
  font-size: 32px;
}

/* Forms styling in glass cards */
.form-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--color-text-light);
  padding: 12px 16px;
  transition: all 0.3s ease;
}
.form-glass::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.form-glass:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-gold-bright);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
  color: var(--color-text-light);
  outline: none;
}

/* Animations */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes floatPlanet {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(10deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Astrologers Page & Profiles */
.astrologer-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-online {
  background: rgba(37, 211, 102, 0.2);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.4);
}
.badge-busy {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.badge-offline {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.astrologer-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-gold-bright);
}

/* Testimonials Carousel */
.testimonial-carousel .carousel-item {
  padding: 20px 40px;
}

/* Footer styling */
footer {
  background: rgba(15, 12, 32, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 20px 0;
  position: relative;
  z-index: 2;
}

/* Dark Mode toggler ready classes */
.light-mode {
  --color-purple-dark: #f8fafc;
  --color-purple-deep: #f1f5f9;
  --color-text-light: #0f172a;
  --color-text-muted: #64748b;
  --color-glass-bg: rgba(255, 255, 255, 0.82);
  --color-glass-border: rgba(15, 23, 42, 0.1);
}
.light-mode .text-light {
  color: var(--color-text-light) !important;
}
.light-mode .text-muted-custom {
  color: var(--color-text-muted) !important;
}
.light-mode .glass-card {
  box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08) !important;
}
.light-mode .btn-outline-glass {
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
  color: var(--color-text-light) !important;
}
.light-mode .btn-outline-glass:hover {
  background: rgba(15, 23, 42, 0.05) !important;
  border-color: var(--color-gold-bright) !important;
  color: var(--color-gold-dark) !important;
}
.light-mode .navbar-custom {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.light-mode .navbar-custom .nav-link {
  color: #0f172a;
}
.light-mode .form-glass {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #0f172a;
}
.light-mode .form-glass:focus {
  background: rgba(0, 0, 0, 0.05);
}

/* Redesigned Hero Section Details */
.hero-section {
  position: relative;
  overflow: hidden;
}

/* Glowing Nebula Orbs */
.nebula-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  animation: pulseGlow 15s ease-in-out infinite alternate;
}
.nebula-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(58,12,163,0.6) 0%, rgba(6,4,19,0) 70%);
  top: -10%;
  left: -5%;
}
.nebula-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(217,119,6,0.2) 0%, rgba(6,4,19,0) 70%);
  bottom: 10%;
  right: -5%;
  animation-delay: -3s;
}
.nebula-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(58,12,163,0.4) 0%, rgba(6,4,19,0) 70%);
  top: 30%;
  left: 45%;
  animation-delay: -6s;
}

/* Light mode overrides for Nebulas */
.light-mode .nebula-glow {
  opacity: 0.15;
}

/* Hero Glass Content Container */
.hero-glass-container {
  position: relative;
  z-index: 5;
  background: rgba(6, 4, 19, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  animation: slideInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.light-mode .hero-glass-container {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
}

.hero-headline {
  font-size: 3.5rem;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.star-sparkle {
  display: inline-block;
  color: var(--color-gold-bright);
  animation: sparkleTwinkle 2s ease-in-out infinite;
}

/* Right Column Zodiac Layering */
.zodiac-glow-layer {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(58, 12, 163, 0.2) 50%, rgba(6,4,19,0) 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  animation: rotateGlow 30s linear infinite;
}

.light-mode .zodiac-glow-layer {
  opacity: 0.3;
}

/* Redesigned Floating Planets */
.hero-planet {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px var(--glow-color, rgba(245, 158, 11, 0.4));
  transition: transform 0.5s ease;
}
.hero-planet-1 {
  --glow-color: rgba(245, 158, 11, 0.5);
  background: radial-gradient(circle at 30% 30%, #fef08a 0%, #f59e0b 80%) !important;
  animation: floatPlanet1 8s ease-in-out infinite;
}
.hero-planet-2 {
  --glow-color: rgba(58, 12, 163, 0.7);
  background: radial-gradient(circle at 30% 30%, #c084fc 0%, #3a0ca3 80%) !important;
  animation: floatPlanet2 10s ease-in-out infinite;
}

/* Redesigned buttons with animations */
.hero-glass-container .btn-gold {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}
.hero-glass-container .btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}
.hero-glass-container .btn-outline-glass:hover {
  transform: translateY(-3px);
}

/* Animations */
@keyframes pulseGlow {
  0% { transform: scale(0.9) translate(0, 0); opacity: 0.35; }
  100% { transform: scale(1.1) translate(20px, -20px); opacity: 0.55; }
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes sparkleTwinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.3) rotate(180deg); opacity: 1; filter: drop-shadow(0 0 5px #fff); }
}

@keyframes slideInLeft {
  0% { transform: translateX(-50px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes floatPlanet1 {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-15px) scale(1.05) rotate(180deg); }
}

@keyframes floatPlanet2 {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(20px) scale(0.95) rotate(-180deg); }
}

/* Responsive fixes */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 120px;
    text-align: center;
  }
  .navbar-collapse {
    background: rgba(15, 12, 32, 0.95);
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .zodiac-wheel-svg {
    margin-top: 40px;
  }
}
