/*
  Global page styling and background effects
*/
:root {
  --page-bg: #ffffff;
  --accent-green: #0F7A3D;
  --accent-gold: #D4AF37;
  --text-dark: #12221d;
  --text-soft: #4b5563;
  --glass: rgba(255, 255, 255, 0.78);
  --shadow-soft: 0 32px 80px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: radial-gradient(circle at top left, rgba(15, 122, 61, 0.14), transparent 24%),
    radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.14), transparent 20%),
    #ffffff;
  overflow-x: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

/* Main landing container */
.landing-page {
  position: relative;
  width: 100%;
  max-width: 1024px;
  padding: 1.25rem;
  margin: 0 auto;
}

.card-surface {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(15, 122, 61, 0.08);
}

/* Floating background geometry */
.shape-circle,
.shape-square,
.shape-lines {
  position: absolute;
  opacity: 0.55;
  pointer-events: none;
  filter: blur(0.5px);
}

.shape-circle {
  border-radius: 50%;
  border: 1px solid rgba(15, 122, 61, 0.18);
  animation: floatY 12s ease-in-out infinite;
}

.shape-square {
  width: 96px;
  height: 96px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  transform: rotate(17deg);
  animation: floatX 14s ease-in-out infinite;
}

.shape-lines {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(15, 122, 61, 0.18) 0%, transparent 70%);
  transform: rotate(45deg);
  animation: floatY 18s ease-in-out infinite reverse;
}

.shape-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(15, 122, 61, 0.16);
}

/* Content layout */
.hero-content {
  position: relative;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 4vw, 3rem) 3rem;
  display: grid;
  place-items: center;
  gap: 1.5rem;
}

.logo-hero {
  position: relative;
  width: min(260px, 70vw);
  height: min(260px, 70vw);
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.2);
  animation: spin 18s linear infinite;
}

.ring::before,
.ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(15, 122, 61, 0.18);
}

.ring::before {
  inset: 16%;
}

.ring::after {
  inset: 28%;
}

.logo-center {
  position: relative;
  width: 54%;
  max-width: 180px;
  animation: pulse 2.1s ease-in-out infinite;
  z-index: 1;
}

.logo-center img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.title-group {
  text-align: center;
  max-width: 680px;
}

.title-group h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.title-group p {
  margin: 1rem auto 0;
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 560px;
  line-height: 1.75;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 0.35s;
}

/* Loading module */
.loading-panel {
  width: 100%;
  max-width: 700px;
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 122, 61, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 0.5s;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 122, 61, 0.08);
  overflow: hidden;
}

.progress-bar {
  width: 30%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15,122,61,1) 0%, rgba(212,175,55,0.95) 100%);
  animation: progressMove 2.4s ease-in-out infinite;
}

.loading-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.status-text {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.loading-dots {
  display: flex;
  gap: 0.5rem;
}

.loading-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-green);
  opacity: 0.25;
  animation: dotPulse 1s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.16s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.32s;
}

/* Mosque silhouette */
.mosque-row {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.mosque-shape {
  width: min(230px, 80vw);
  height: auto;
}

.footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .hero-content {
    padding: 2rem 1.25rem 2rem;
    gap: 1.25rem;
  }

  .title-group {
    max-width: 100%;
  }

  .title-group p {
    max-width: 100%;
    font-size: clamp(0.95rem, 2.2vw, 1rem);
  }

  .loading-panel {
    padding: 1.5rem;
  }

  .loading-status {
    flex-direction: column;
    align-items: stretch;
  }

  .loading-status .status-text,
  .loading-status .loading-dots {
    width: 100%;
  }

  .shape-circle,
  .shape-square,
  .shape-lines,
  .shape-dot {
    transform: none !important;
  }
}

@media (max-width: 520px) {
  body {
    padding: 0.75rem;
  }

  .landing-page {
    padding: 0.9rem;
  }

  .hero-content {
    padding: 1.5rem 1rem 1.5rem;
  }

  .logo-hero {
    width: 180px;
    height: 180px;
  }

  .shape-circle {
    width: 120px;
    height: 120px;
  }

  .shape-square {
    width: 70px;
    height: 70px;
  }

  .shape-lines {
    width: 90px;
    height: 90px;
  }

  .shape-dot {
    width: 10px;
    height: 10px;
  }
}

.footer {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 0.7s;
}

.footer a {
  color: var(--accent-green);
  text-decoration: none;
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes progressMove {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(110%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 0.25;
    transform: scale(0.88);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatY {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes floatX {
  0%, 100% {
    transform: translateX(0) rotate(17deg);
  }
  50% {
    transform: translateX(18px) rotate(17deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content {
    padding: 2rem 1.5rem 2rem;
  }

  .loading-panel {
    padding: 1.6rem;
  }
}

@media (max-width: 520px) {
  .logo-hero {
    width: 70vw;
    height: 70vw;
  }

  .hero-content {
    padding: 1.6rem 1.2rem 1.8rem;
  }

  .title-group h1 {
    font-size: 2rem;
  }

  .loading-status {
    flex-direction: column;
    align-items: stretch;
  }
}
