/* ============================================
   Karwan E Taqi — Coming Soon Styles
   ============================================ */

:root {
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-dark: #8b6914;
  --emerald: #0d4a3a;
  --emerald-light: #1a6b54;
  --emerald-dark: #062e24;
  --cream: #f5f0e6;
  --cream-muted: rgba(245, 240, 230, 0.7);
  --night: #0a1628;
  --night-light: #142238;
  --text-primary: #f5f0e6;
  --text-secondary: rgba(245, 240, 230, 0.65);
  --glass: rgba(13, 74, 58, 0.25);
  --glass-border: rgba(201, 162, 39, 0.2);
  --font-arabic: 'Noto Naskh Arabic', 'Amiri', serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--night);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

/* ---- Background layers ---- */

#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.pattern-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a227' fill-opacity='1'%3E%3Cpath d='M40 0l5 15h16l-13 9 5 15-13-9-13 9 5-15-13-9h16z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  animation: patternDrift 120s linear infinite;
  pointer-events: none;
}

@keyframes patternDrift {
  from { background-position: 0 0; }
  to { background-position: 800px 800px; }
}

.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--emerald-light) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.3) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  animation: orbFloat2 25s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 50px) scale(1.1); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -40px) scale(1.15); }
}

/* ---- Corner arches ---- */

.corner-arch {
  position: fixed;
  width: 120px;
  height: 120px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.15;
}

.corner-arch::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold);
  border-radius: 0;
}

.top-left {
  top: 20px;
  left: 20px;
}
.top-left::before {
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 60px;
}

.top-right {
  top: 20px;
  right: 20px;
}
.top-right::before {
  border-left: none;
  border-bottom: none;
  border-top-right-radius: 60px;
}

.bottom-left {
  bottom: 20px;
  left: 20px;
}
.bottom-left::before {
  border-right: none;
  border-top: none;
  border-bottom-left-radius: 60px;
}

.bottom-right {
  bottom: 20px;
  right: 20px;
}
.bottom-right::before {
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 60px;
}

/* ---- Main container ---- */

.container {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ---- Brand header ---- */

.brand {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 1s var(--transition-smooth) 0.1s forwards;
}

.brand-emblem {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem;
  animation: emblemGlow 4s ease-in-out infinite;
}

@keyframes emblemGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.3)); }
  50% { filter: drop-shadow(0 0 25px rgba(201, 162, 39, 0.6)); }
}

.kaaba-icon {
  width: 64px;
  height: 64px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: kaabaFloat 6s ease-in-out infinite;
}

@keyframes kaabaFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-6px); }
}

.emblem-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  animation: ringPulse 4s ease-in-out infinite;
}

.emblem-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(201, 162, 39, 0.15);
  border-radius: 50%;
  animation: ringRotate 30s linear infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand-arabic {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--gold);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--cream), var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

/* ---- Typography ---- */

.arabic {
  font-family: var(--font-arabic);
  direction: rtl;
}

.bismillah {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 1s var(--transition-smooth) 0.3s forwards;
  letter-spacing: 0.02em;
}

.title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  opacity: 0;
  animation: fadeSlideUp 1s var(--transition-smooth) forwards;
}

.title-line:nth-child(1) { animation-delay: 0.5s; }
.title-line:nth-child(2) { animation-delay: 0.7s; }

.title-line.accent {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideUp 1s var(--transition-smooth) 0.9s forwards;
}

/* ---- Services pills ---- */

.services {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
  opacity: 0;
  animation: fadeSlideUp 1s var(--transition-smooth) 1.1s forwards;
}

.service-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--cream-muted);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s, border-color 0.3s, color 0.3s;
}

.service-pill:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: var(--gold-light);
}

.service-icon {
  font-size: 0.95rem;
}

.arabic-inline {
  font-family: var(--font-arabic);
  color: var(--gold);
  font-size: 1.1em;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Countdown ---- */

.countdown {
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeSlideUp 1s var(--transition-smooth) 1.3s forwards;
}

.countdown-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  padding: 1rem 0.75rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s var(--transition-smooth), border-color 0.3s;
}

.countdown-item:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.5);
}

.countdown-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

.countdown-separator {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.5;
  animation: blink 1s step-end infinite;
  margin-bottom: 1rem;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---- Verse block ---- */

.verse {
  max-width: 500px;
  padding: 2rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, rgba(13, 74, 58, 0.3), rgba(10, 22, 40, 0.5));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  opacity: 0;
  animation: fadeSlideUp 1s var(--transition-smooth) 1.7s forwards;
}

.verse::before,
.verse::after {
  content: '﴾';
  position: absolute;
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0.4;
}

.verse::before { top: 0.5rem; right: 1rem; }
.verse::after {
  content: '﴿';
  bottom: 0.5rem;
  left: 1rem;
}

.verse-arabic {
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  color: var(--cream);
  line-height: 2;
  margin-bottom: 1rem;
}

.verse-translation {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.verse cite {
  font-size: 0.8rem;
  color: var(--gold);
  font-style: normal;
  letter-spacing: 0.05em;
}

/* ---- Notify form ---- */

.notify-section {
  width: 100%;
  max-width: 480px;
  opacity: 0;
  animation: fadeSlideUp 1s var(--transition-smooth) 1.9s forwards;
}

.notify-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.notify-form {
  width: 100%;
}

.input-wrapper {
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-wrapper:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.15);
}

.input-wrapper input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}

.input-wrapper input::placeholder {
  color: rgba(245, 240, 230, 0.35);
}

.submit-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--night);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}

.submit-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
}

.submit-btn:active {
  transform: scale(0.98);
}

.btn-icon {
  transition: transform 0.3s;
}

.submit-btn:hover .btn-icon {
  transform: translateX(4px);
}

.form-message {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  min-height: 1.2em;
  transition: color 0.3s;
}

.form-message.success { color: var(--gold-light); }
.form-message.error { color: #e57373; }

/* ---- Contact strip ---- */

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 600px;
  opacity: 0;
  animation: fadeSlideUp 1s var(--transition-smooth) 2s forwards;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.3s, border-color 0.3s, transform 0.3s, background 0.3s;
}

.contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.contact-item:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.contact-item.whatsapp:hover {
  color: #25d366;
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.08);
}

/* ---- Social links ---- */

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeSlideUp 1s var(--transition-smooth) 2.1s forwards;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: color 0.3s, border-color 0.3s, transform 0.3s, background 0.3s;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
  transform: translateY(-3px);
}

/* ---- Footer ---- */

.footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(201, 162, 39, 0.08);
}

.footer strong {
  color: var(--gold);
  font-weight: 600;
}

.footer-dua {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .container {
    padding: 2rem 1rem 1.5rem;
  }

  .countdown {
    gap: 0.25rem;
  }

  .countdown-item {
    min-width: 58px;
    padding: 0.75rem 0.4rem;
  }

  .countdown-separator {
    font-size: 1.5rem;
  }

  .input-wrapper {
    flex-direction: column;
    border-radius: 16px;
  }

  .submit-btn {
    justify-content: center;
    border-radius: 0 0 16px 16px;
  }

  .corner-arch {
    width: 60px;
    height: 60px;
  }

  .contact-strip {
    flex-direction: column;
    align-items: center;
  }

  .contact-item {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .services {
    gap: 0.4rem;
  }

  .service-pill {
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
  }
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
