/* =====================================================
   Mahadev Book — Landing Page Styles
   css/style.css
   ===================================================== */

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #050505;
  background-image: radial-gradient(ellipse at center, rgba(26, 21, 37, 0.8) 0%, rgba(5, 5, 5, 1) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Particle Canvas ── */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ── Page Wrapper ── */
.page-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 16px;
}

/* ── Card ── */
.card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 24px;
  padding: 32px 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

/* ── Card Top Glow ── */
.card__glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 192px;
  height: 192px;
  background: #d4af37;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.2;
  pointer-events: none;
}

/* ── Logo Ring ── */
.logo-ring {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.7);
  padding: 4px;
  margin-bottom: 32px;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
  position: relative;
  flex-shrink: 0;
}

.logo-ring__inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  display: block;
}

.logo-ring__shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.3) 100%);
  pointer-events: none;
  opacity: 0.5;
}

/* ── Headline ── */
.headline {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  line-height: 1.2;
}

/* ── Subheadline with Decorative Lines ── */
.subheadline-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 40px;
}

.subheadline-line {
  height: 1px;
  flex: 1;
}

.subheadline-line--left {
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.6));
}

.subheadline-line--right {
  background: linear-gradient(to left, transparent, rgba(212, 175, 55, 0.6));
}

.subheadline {
  font-size: 0.68rem;
  font-weight: 500;
  color: #d4af37;
  text-align: center;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── WhatsApp Button ── */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background-color: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 16px 24px;
  border-radius: 50px;
  margin-bottom: 20px;
  border: none;
  cursor: pointer;
  animation: whatsapp-pulse 2.5s ease-in-out infinite;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.whatsapp-btn:hover {
  background-color: #20bd5a;
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(37, 211, 102, 0.4);
  animation-play-state: paused;
}

.whatsapp-btn:active {
  transform: scale(0.95);
  animation-play-state: paused;
}

.whatsapp-btn__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

/* ── Support Text ── */
.support-text {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 8px;
}

.support-text__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
  flex-shrink: 0;
  display: inline-block;
  animation: dot-pulse 1.5s ease-in-out infinite;
}

/* ── Fade-in Animation ── */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fade-in {
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── WhatsApp Pulse Animation ── */
@keyframes whatsapp-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
}

/* ── Support Dot Pulse ── */
@keyframes dot-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}

/* ── Responsive: Small Phones (≤ 360px wide) ── */
@media (max-width: 360px) {
  .card {
    padding: 24px 20px 32px;
  }

  .headline {
    font-size: 1.7rem;
  }

  .logo-ring {
    width: 96px;
    height: 96px;
    margin-bottom: 24px;
  }

  .subheadline {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .whatsapp-btn {
    font-size: 1rem;
    padding: 14px 20px;
  }
}

/* ── Responsive: Short Screens (≤ 650px tall) ── */
@media (max-height: 650px) {
  .card {
    padding: 20px 24px 28px;
  }

  .logo-ring {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
  }

  .subheadline-wrapper {
    margin-bottom: 24px;
  }

  .headline {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .whatsapp-btn {
    padding: 12px 20px;
    font-size: 1rem;
    margin-bottom: 14px;
  }
}
