/* ==========================================================================
   ASTROBHUDEV APP - "COMING SOON" HIGH-PERFORMANCE NO-SCROLL APPLICATION
   LUMINOUS WHITE & VIBRANT FIRE THEME (NO BLACK THEME)
   Brand Colors:
     - Main Colour (Orange): #FF7A00
     - Second Colour (Deep Red): #DC2626
     - Highlight (Gold): #F59E0B / #D97706
     - Light Background: #FFFFFF / #FFFDF9 / #FFF8F0
     - Text Primary: #0F172A / #1E293B
     - Text Secondary: #475569
   ========================================================================== */

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

:root {
  --color-orange: #FF7A00;
  --color-orange-light: #FF9429;
  --color-red: #DC2626;
  --color-gold: #D97706;
  --color-gold-light: #F59E0B;
  --color-cream: #FFFDF9;
  --color-bg-white: #FFFFFF;
  --color-text-dark: #0F172A;
  --color-text-slate: #334155;
  --color-text-muted: #64748B;
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   STRICT NO-SCROLL SYSTEM (MOBILE & DESKTOP)
   ========================================================================== */
html, body {
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  touch-action: none !important;
  overscroll-behavior: none !important;
  -webkit-overflow-scrolling: auto;
  user-select: none;
  font-family: var(--font-sans);
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
}

/* ==========================================================================
   LUMINOUS WHITE & FIRE ATMOSPHERE BACKGROUND
   ========================================================================== */
.stage-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF9 60%, #FFF5EB 100%);
  z-index: 1;
}

/* Dynamic Live Fire Aurora & Warm Glow (Moving on White Background) */
.bg-fire-mesh {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  background: 
    radial-gradient(circle at 50% 20%, rgba(255, 122, 0, 0.32) 0%, transparent 55%),
    radial-gradient(circle at 15% 75%, rgba(220, 38, 38, 0.26) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(245, 158, 11, 0.28) 0%, transparent 48%),
    radial-gradient(circle at 50% 85%, rgba(255, 148, 41, 0.24) 0%, transparent 55%);
  z-index: 0;
  animation: fireBreathe 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes fireBreathe {
  0% { transform: scale(1) rotate(0deg); opacity: 0.85; }
  50% { transform: scale(1.06) rotate(1.5deg); opacity: 1; }
  100% { transform: scale(1.02) rotate(-1.5deg); opacity: 0.9; }
}

/* ==========================================================================
   PROMINENT 3 TO 4 BACKGROUND APP SCREENS (VISIBLE BUT BLURRED)
   ========================================================================== */
.bg-app-gallery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* 4 Distinct Floating Mockups Positioned in Viewport Corners / Margins */
.mockup-card {
  position: absolute;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(220, 38, 38, 0.16), 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: #FFFFFF;
  filter: blur(5px) brightness(0.98);
  opacity: 0.82;
  transition: transform 6s ease-in-out;
}

.mockup-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card 1: Top Left - Home Dashboard with Ask AI / Panchang */
.card-top-left {
  top: -2%;
  left: -2%;
  width: clamp(260px, 28vw, 380px);
  aspect-ratio: 9 / 15;
  transform: rotate(-7deg);
  animation: floatSlow1 14s ease-in-out infinite alternate;
}

/* Card 2: Top Right - Janam Kundli Form */
.card-top-right {
  top: -3%;
  right: -2%;
  width: clamp(260px, 28vw, 380px);
  aspect-ratio: 9 / 15;
  transform: rotate(8deg);
  animation: floatSlow2 16s ease-in-out infinite alternate;
}

/* Card 3: Bottom Left - Aaj Ka Panchang & Rashifal */
.card-bottom-left {
  bottom: -4%;
  left: 2%;
  width: clamp(250px, 26vw, 360px);
  aspect-ratio: 9 / 14;
  transform: rotate(5deg);
  animation: floatSlow3 15s ease-in-out infinite alternate;
}

/* Card 4: Bottom Right - Shubh Muhurat Categories */
.card-bottom-right {
  bottom: -4%;
  right: 2%;
  width: clamp(250px, 26vw, 360px);
  aspect-ratio: 9 / 14;
  transform: rotate(-6deg);
  animation: floatSlow1 18s ease-in-out infinite alternate-reverse;
}

@keyframes floatSlow1 {
  0% { transform: translateY(0px) rotate(-7deg); }
  100% { transform: translateY(-20px) rotate(-5.5deg); }
}

@keyframes floatSlow2 {
  0% { transform: translateY(0px) rotate(8deg); }
  100% { transform: translateY(18px) rotate(9.5deg); }
}

@keyframes floatSlow3 {
  0% { transform: translateY(0px) rotate(5deg); }
  100% { transform: translateY(-16px) rotate(3.8deg); }
}

/* Frosted Glassmorphism Shield (Over Screenshots, Under Foreground) */
.bg-glass-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(10px) saturate(135%);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 253, 249, 0.88) 85%);
  z-index: 2;
  pointer-events: none;
}

/* Floating Gold Particle Dust */
#particlesCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* ==========================================================================
   FOREGROUND MAIN VIEWPORT (FIXED, NO SCROLL)
   ========================================================================== */
.main-viewport {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 24px 16px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

/* App Header */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.brand-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 24px;
  padding: 3px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-gold-light), var(--color-red));
  box-shadow: 
    0 10px 30px rgba(255, 122, 0, 0.32),
    0 4px 12px rgba(220, 38, 38, 0.2);
  animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { box-shadow: 0 8px 24px rgba(255, 122, 0, 0.25), 0 3px 10px rgba(220, 38, 38, 0.15); }
  100% { box-shadow: 0 14px 38px rgba(255, 122, 0, 0.45), 0 6px 16px rgba(220, 38, 38, 0.3); }
}

.brand-icon-img {
  width: 100%;
  height: 100%;
  border-radius: 21px;
  display: block;
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #991B1B 0%, #C2410C 50%, #9A3412 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 2px rgba(255, 122, 0, 0.25));
}

/* Center Hero Section */
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 780px;
  width: 100%;
  margin: auto 0;
}

.coming-soon-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.05;
  text-transform: uppercase;
  background: linear-gradient(135deg, #DC2626 0%, #FF7A00 45%, #D97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(255, 122, 0, 0.3));
}

.coming-soon-slogan {
  font-size: clamp(0.92rem, 1.8vw, 1.12rem);
  line-height: 1.55;
  font-weight: 500;
  color: var(--color-text-slate);
  max-width: 680px;
}

/* ==========================================================================
   3D MECHANICAL FLIP CLOCK COUNTDOWN
   ========================================================================== */
.timer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.2vw, 22px);
  margin-top: 6px;
  width: 100%;
  max-width: 680px;
}

.flip-unit {
  flex: 1;
  min-width: 72px;
  max-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.flip-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.12;
  perspective: 500px;
  -webkit-perspective: 500px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  box-shadow: 
    0 12px 32px rgba(255, 122, 0, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Mechanical Side Notches & Horizontal Split Slit */
.flip-card::before, .flip-card::after {
  content: '';
  position: absolute;
  top: calc(50% - 4px);
  width: 6px;
  height: 8px;
  background: #F1F5F9;
  border-radius: 4px;
  z-index: 30;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
.flip-card::before { left: -3px; }
.flip-card::after { right: -3px; }

/* Upper & Lower Static Halves */
.card-half {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
  background: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-top {
  top: 0;
  height: 50%;
  border-top-left-radius: 17px;
  border-top-right-radius: 17px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF8 100%);
  align-items: flex-end;
}

.card-bottom {
  bottom: 0;
  height: 50%;
  border-bottom-left-radius: 17px;
  border-bottom-right-radius: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, #FAF7F2 0%, #FFFFFF 100%);
  align-items: flex-start;
}

/* Number Placement Alignment */
.card-top .digit, .flip-front .digit {
  transform: translateY(50%);
  display: block;
}

.card-bottom .digit, .flip-back .digit {
  transform: translateY(-50%);
  display: block;
}

.digit {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  color: #991B1B;
  background: linear-gradient(180deg, #B91C1C 0%, #991B1B 65%, #7F1D1D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: 0.04em;
}

/* 3D Flipping Leaf (Flap that drops down) */
.flip-leaf {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  transform-origin: bottom;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  z-index: 20;
  border-top-left-radius: 17px;
  border-top-right-radius: 17px;
}

.flip-leaf.flipping {
  animation: flipCardDown 0.5s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

@keyframes flipCardDown {
  0% { transform: rotateX(0deg); }
  100% { transform: rotateX(-180deg); }
}

.leaf-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #FFFFFF;
  display: flex;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-front {
  border-top-left-radius: 17px;
  border-top-right-radius: 17px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF8 100%);
  align-items: flex-end;
}

.flip-back {
  transform: rotateX(180deg);
  border-bottom-left-radius: 17px;
  border-bottom-right-radius: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, #FAF7F2 0%, #FFFFFF 100%);
  align-items: flex-start;
}

/* Unit Label */
.flip-label {
  margin-top: 8px;
  font-size: clamp(0.7rem, 1.25vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.timer-separator {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: var(--color-orange);
  margin-top: -24px;
  animation: blinkDots 1s step-end infinite;
}

@keyframes blinkDots {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ==========================================================================
   FOOTER (CLEAN REDIRECTS TO STANDALONE WHITE PAGES)
   ========================================================================== */
.brand-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.legal-link {
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(245, 158, 11, 0.45);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.legal-link:hover {
  color: var(--color-orange);
  text-decoration-color: var(--color-orange);
}

.footer-dot {
  color: rgba(245, 158, 11, 0.45);
  font-size: 0.72rem;
}

.footer-copy {
  font-size: 0.74rem;
  color: #94A3B8;
}

/* ==========================================================================
   RESPONSIVE (STRICT ZERO-SCROLL FOR MOBILE SCREENS)
   ========================================================================== */
@media (max-height: 720px) {
  .brand-icon-wrapper {
    width: 66px;
    height: 66px;
    border-radius: 20px;
  }
  .brand-icon-img {
    border-radius: 17px;
  }
  .brand-name {
    font-size: 1.35rem;
  }
  .hero-center {
    gap: 10px;
  }
  .coming-soon-heading {
    font-size: clamp(2rem, 5vw, 3.2rem);
  }
  .coming-soon-slogan {
    font-size: 0.88rem;
  }
  .flip-card {
    border-radius: 14px;
  }
  .digit {
    font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  }
}

@media (max-width: 480px) {
  .main-viewport {
    padding: 14px 16px 12px 16px;
  }
  .brand-icon-wrapper {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }
  .brand-icon-img {
    border-radius: 15px;
  }
  .brand-name {
    font-size: 1.25rem;
    letter-spacing: 0.12em;
  }
  .coming-soon-heading {
    font-size: 2.2rem;
  }
  .coming-soon-slogan {
    font-size: 0.85rem;
    padding: 0 4px;
  }
  .timer-container {
    gap: 8px;
  }
  .flip-unit {
    min-width: 58px;
  }
  .flip-card {
    border-radius: 12px;
  }
  .digit {
    font-size: 1.75rem;
  }
  .flip-label {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }
  .timer-separator {
    font-size: 1.3rem;
    margin-top: -16px;
  }
  .legal-link {
    font-size: 0.74rem;
  }
  .footer-copy {
    font-size: 0.68rem;
  }
}
