/* ==========================================================================
   ASTROLOGIA / DIPANKAR GOSWAMI - COMING SOON PAGE STYLESHEET
   Celestial Luxury, Cosmic Depth, Glassmorphism & Gold Accents
   ========================================================================== */

:root {
  --bg-primary: #05040d;
  --bg-secondary: #0c0a1f;
  --bg-tertiary: #130f30;
  
  --gold-primary: #f5d77f;
  --gold-secondary: #d4af37;
  --gold-dark: #8c6d1f;
  --gold-glow: rgba(245, 215, 127, 0.45);
  --gold-gradient: linear-gradient(135deg, #fff3c4 0%, #f5d77f 35%, #d4af37 70%, #aa820a 100%);
  --gold-gradient-hover: linear-gradient(135deg, #ffffff 0%, #fae69e 40%, #e2be4a 80%, #b88e13 100%);
  
  --purple-glow: rgba(147, 51, 234, 0.35);
  --cyan-glow: rgba(56, 189, 248, 0.25);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-gold: #f5d77f;
  
  --glass-bg: rgba(16, 12, 38, 0.65);
  --glass-border: rgba(245, 215, 127, 0.18);
  --glass-hover-border: rgba(245, 215, 127, 0.45);
  --glass-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px rgba(147, 51, 234, 0.12);
  
  --font-serif: 'Cinzel', Georgia, serif;
  --font-display: 'Cinzel Decorative', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Cosmic Canvas & Nebulae */
#celestial-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.cosmic-nebula {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: 
    radial-gradient(circle at 18% 25%, rgba(112, 26, 117, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 82% 35%, rgba(67, 56, 202, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(15, 118, 110, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(30, 27, 75, 0.4) 0%, transparent 70%);
  animation: nebulaPulse 18s ease-in-out infinite alternate;
}

@keyframes nebulaPulse {
  0% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05) translate(10px, -5px); }
  100% { opacity: 0.8; transform: scale(0.98) translate(-10px, 5px); }
}

/* Cosmic Noise/Grain Overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Ambient Audio Toggle Button */
.sound-toggle-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 50;
  background: rgba(18, 14, 40, 0.75);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  color: var(--gold-primary);
  padding: 10px 18px;
  border-radius: 9999px;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.sound-toggle-btn:hover {
  border-color: var(--gold-secondary);
  background: rgba(30, 24, 66, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--gold-glow);
}

.sound-waves {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.sound-waves span {
  display: block;
  width: 2px;
  height: 4px;
  background: var(--gold-primary);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.sound-toggle-btn.playing .sound-waves span:nth-child(1) { animation: wave 1s infinite 0.1s ease-in-out; }
.sound-toggle-btn.playing .sound-waves span:nth-child(2) { animation: wave 1s infinite 0.3s ease-in-out; }
.sound-toggle-btn.playing .sound-waves span:nth-child(3) { animation: wave 1s infinite 0.2s ease-in-out; }
.sound-toggle-btn.playing .sound-waves span:nth-child(4) { animation: wave 1s infinite 0.4s ease-in-out; }

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* Page Layout Container - Beautifully balanced */
.page-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 36px 24px 28px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header & Brand Emblem */
.brand-header {
  text-align: center;
  padding-top: 10px;
  margin-bottom: 20px;
}

.brand-emblem-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 12px;
  position: relative;
}

.emblem-ring-outer {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(245, 215, 127, 0.4);
  border-radius: 50%;
  animation: rotateClockwise 25s linear infinite;
}

.emblem-ring-inner {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(245, 215, 127, 0.25);
  border-radius: 50%;
  animation: rotateCounter 18s linear infinite;
}

.emblem-center-icon {
  width: 36px;
  height: 36px;
  color: var(--gold-primary);
  filter: drop-shadow(0 0 10px var(--gold-glow));
  animation: pulseGold 3s ease-in-out infinite alternate;
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateCounter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes pulseGold {
  from { transform: scale(0.96); filter: drop-shadow(0 0 6px var(--gold-glow)); }
  to { transform: scale(1.05); filter: drop-shadow(0 0 16px rgba(245, 215, 127, 0.8)); }
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
}

.brand-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  color: var(--text-muted);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Main Content Area */
.main-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
}

/* Hero Section */
.hero-content {
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.badge-celestial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 215, 127, 0.08);
  border: 1px solid rgba(245, 215, 127, 0.25);
  border-radius: 9999px;
  padding: 6px 18px;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 22px;
  box-shadow: 0 0 20px rgba(245, 215, 127, 0.1);
}

.badge-sparkle {
  font-size: 0.9rem;
  animation: spinSlow 8s linear infinite;
}

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

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 35px rgba(245, 215, 127, 0.2);
}

.hero-heading span.gradient-word {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
  filter: drop-shadow(0 0 20px rgba(245, 215, 127, 0.4));
}

.hero-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  color: #cbd5e1;
  font-weight: 300;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 32px;
}

/* Astrological Zodiac Wheel Graphic */
.zodiac-wheel-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zodiac-wheel-svg {
  width: 100%;
  height: 100%;
  animation: rotateWheel 90s linear infinite;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
}

@keyframes rotateWheel {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.zodiac-wheel-center {
  position: absolute;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 27, 85, 0.9) 0%, rgba(13, 10, 31, 0.95) 100%);
  border: 1px solid var(--gold-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 15px var(--gold-glow), 0 0 25px rgba(245, 215, 127, 0.25);
  text-align: center;
}

.center-constellation-icon {
  width: 30px;
  height: 30px;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.center-text {
  font-family: var(--font-serif);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
}

/* Countdown Timer */
.countdown-section {
  margin-bottom: 20px;
  width: 100%;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 580px;
  margin: 0 auto;
}

.countdown-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 18px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.countdown-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-hover-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 215, 127, 0.25);
}

.countdown-card:hover::before {
  opacity: 1;
}

.countdown-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 4px;
}

.countdown-label {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Footer */
.page-footer {
  text-align: center;
  padding: 24px 0 10px;
  border-top: 1px solid rgba(245, 215, 127, 0.1);
  width: 100%;
  max-width: 800px;
  margin-top: 20px;
}

.footer-copyright {
  font-size: 0.82rem;
  color: #64748b;
  letter-spacing: 0.05em;
}

.footer-quote {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: rgba(245, 215, 127, 0.65);
  margin-top: 6px;
  font-style: italic;
  letter-spacing: 0.04em;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 24px 16px;
  }
  
  .sound-toggle-btn {
    top: 14px;
    right: 14px;
    padding: 8px 14px;
    font-size: 0.75rem;
  }
  
  .countdown-grid {
    gap: 10px;
  }
  
  .countdown-card {
    padding: 14px 8px;
  }
  
  .zodiac-wheel-wrapper {
    width: 210px;
    height: 210px;
    margin-bottom: 24px;
  }
  
  .zodiac-wheel-center {
    width: 85px;
    height: 85px;
  }
}

@media (max-width: 480px) {
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .zodiac-wheel-svg,
  .emblem-ring-outer,
  .emblem-ring-inner {
    animation: none !important;
  }
}
