/*
Theme Name: NosibFly Coming Soon
Theme URI: https://nosibfly.com
Author: NosibFly Team
Author URI: https://nosibfly.com
Description: A beautiful Islamic Halal-themed coming soon page for NosibFly — a multi-purpose halal digital platform from Bangladesh. Features animated Arabic geometric patterns, countdown timer, and email capture.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nosibfly-coming-soon
Tags: coming-soon, one-page, full-width-template, custom-background, custom-colors
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --emerald:       #1B6B4A;
  --emerald-deep:  #0F4730;
  --emerald-light: #2D9E6F;
  --gold:          #C9A84C;
  --gold-light:    #E8C97A;
  --gold-pale:     #F5E4A8;
  --cream:         #FAF6EE;
  --cream-dark:    #F0E8D6;
  --white:         #FFFFFF;
  --ink:           #1A1A1A;
  --ink-soft:      #3D3D3D;
  --ink-muted:     #6B6B6B;

  --font-arabic:   'Amiri', 'Scheherazade New', serif;
  --font-display:  'Playfair Display', 'Georgia', serif;
  --font-body:     'Lato', 'Helvetica Neue', sans-serif;

  --radius:        12px;
  --shadow-glow:   0 0 60px rgba(201,168,76,0.18);
  --shadow-card:   0 8px 40px rgba(0,0,0,0.12);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--emerald-deep);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ============================================================
   ANIMATED BACKGROUND LAYERS
   ============================================================ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Deep gradient base */
.bg-gradient {
  background: radial-gradient(ellipse at 20% 30%, #1B6B4A 0%, #0F4730 40%, #081e14 100%);
  position: fixed; inset: 0; z-index: 0;
}

/* Star field */
.stars {
  position: fixed; inset: 0; z-index: 1;
  overflow: hidden;
}
.star {
  position: absolute;
  background: var(--gold-light);
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50%       { opacity: 0.9;  transform: scale(1.4); }
}

/* Geometric SVG pattern overlay */
.geo-pattern {
  position: fixed; inset: 0; z-index: 2;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23C9A84C' stroke-width='0.8'%3E%3Cpolygon points='60,5 115,32.5 115,87.5 60,115 5,87.5 5,32.5'/%3E%3Cpolygon points='60,20 100,42 100,78 60,100 20,78 20,42'/%3E%3Cpolygon points='60,35 85,51 85,69 60,85 35,69 35,51'/%3E%3Cline x1='60' y1='5' x2='60' y2='35'/%3E%3Cline x1='115' y1='32.5' x2='85' y2='51'/%3E%3Cline x1='115' y1='87.5' x2='85' y2='69'/%3E%3Cline x1='60' y1='115' x2='60' y2='85'/%3E%3Cline x1='5' y1='87.5' x2='35' y2='69'/%3E%3Cline x1='5' y1='32.5' x2='35' y2='51'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  animation: patternDrift 40s linear infinite;
}
@keyframes patternDrift {
  from { background-position: 0 0; }
  to   { background-position: 120px 120px; }
}

/* Glowing orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat var(--dur, 12s) ease-in-out infinite var(--delay, 0s);
  z-index: 1;
}
.orb-1 { width: 500px; height: 500px; background: rgba(201,168,76,0.08); top: -10%; left: -10%; --dur: 15s; }
.orb-2 { width: 400px; height: 400px; background: rgba(27,107,74,0.25);  bottom: -5%; right: -5%; --dur: 18s; --delay: -6s; }
.orb-3 { width: 300px; height: 300px; background: rgba(201,168,76,0.06); top: 40%; right: 10%; --dur: 20s; --delay: -10s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 30px) scale(0.95); }
}

/* ============================================================
   CRESCENT MOON DECORATION
   ============================================================ */
.crescent-wrap {
  position: fixed;
  top: 30px; right: 40px;
  z-index: 3;
  opacity: 0.35;
  animation: crescentGlow 4s ease-in-out infinite;
}
@keyframes crescentGlow {
  0%,100% { filter: drop-shadow(0 0 8px var(--gold)); opacity: 0.35; }
  50%      { filter: drop-shadow(0 0 20px var(--gold)); opacity: 0.6; }
}

/* ============================================================
   MAIN WRAPPER
   ============================================================ */
#nosibfly-wrap {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 60px;
}

/* ============================================================
   CARD / GLASS PANEL
   ============================================================ */
.nf-card {
  position: relative;
  width: 100%;
  max-width: 780px;
  background: rgba(15,71,48,0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 24px;
  padding: 60px 56px 52px;
  box-shadow: var(--shadow-glow), var(--shadow-card), inset 0 1px 0 rgba(201,168,76,0.15);
  text-align: center;
  animation: cardReveal 1.2s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Gold border shimmer */
.nf-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  background: linear-gradient(135deg, rgba(201,168,76,0.4) 0%, transparent 40%, transparent 60%, rgba(201,168,76,0.3) 100%);
  pointer-events: none;
  animation: shimmerBorder 6s linear infinite;
}
@keyframes shimmerBorder {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}

/* Top ornament line */
.nf-card::after {
  content: '✦  بِسۡمِ ٱللَّهِ ٱلرَّحۡمَٰنِ ٱلرَّحِيمِ  ✦';
  font-family: var(--font-arabic);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  position: absolute;
  top: 20px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0.75;
  animation: fadeIn 2s ease both 0.3s;
}

/* ============================================================
   LOGO & BRAND
   ============================================================ */
.nf-logo-wrap {
  margin-bottom: 10px;
  animation: fadeInDown 0.9s ease both 0.4s;
}
.nf-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.nf-logo-icon {
  width: 52px; height: 52px;
  animation: logoSpin 12s linear infinite;
}
@keyframes logoSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.nf-logo-text {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-pale));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.nf-logo-dot {
  color: var(--emerald-light);
  -webkit-text-fill-color: var(--emerald-light);
}

/* ============================================================
   HALAL BADGE
   ============================================================ */
.halal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(201,168,76,0.08));
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 100px;
  padding: 5px 16px 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeIn 1s ease both 0.7s;
}
.halal-badge svg { width: 18px; height: 18px; }

/* ============================================================
   BISMILLAH / ARABIC HEADING
   ============================================================ */
.nf-arabic {
  font-family: var(--font-arabic);
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 8px;
  line-height: 1.6;
  opacity: 0.88;
  animation: fadeIn 1s ease both 0.6s;
}

/* ============================================================
   MAIN HEADING
   ============================================================ */
.nf-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--cream);
  margin-bottom: 20px;
  animation: fadeInUp 0.9s ease both 0.6s;
}
.nf-headline .highlight {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
.nf-headline .highlight::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: lineGrow 1s ease both 1.2s;
  transform-origin: center;
}
@keyframes lineGrow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* ============================================================
   DESCRIPTION
   ============================================================ */
.nf-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(250,246,238,0.78);
  max-width: 560px;
  margin: 0 auto 36px;
  animation: fadeIn 1s ease both 0.9s;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.nf-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto 36px;
  max-width: 400px;
  animation: fadeIn 1s ease both 0.8s;
}
.nf-divider::before, .nf-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.nf-divider-star {
  color: var(--gold);
  font-size: 1.1rem;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   COUNTDOWN TIMER
   ============================================================ */
.nf-countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease both 1s;
}
.countdown-box {
  background: rgba(15,71,48,0.7);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  padding: 16px 20px 12px;
  min-width: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.countdown-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(201,168,76,0.2);
}
.countdown-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.countdown-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  display: block;
  transition: transform 0.15s ease;
}
.countdown-num.flip {
  animation: numFlip 0.3s ease;
}
@keyframes numFlip {
  0%  { transform: rotateX(0); opacity: 1; }
  50% { transform: rotateX(-90deg); opacity: 0; }
  51% { transform: rotateX(90deg); opacity: 0; }
  100%{ transform: rotateX(0); opacity: 1; }
}
.countdown-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  display: block;
  margin-top: 6px;
}

/* ============================================================
   SERVICES PILLS
   ============================================================ */
.nf-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  animation: fadeIn 1s ease both 1.1s;
}
.service-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(27,107,74,0.4);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(250,246,238,0.85);
  transition: all 0.3s ease;
  cursor: default;
}
.service-pill:hover {
  background: rgba(201,168,76,0.18);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}
.service-pill .icon { font-size: 1rem; }

/* ============================================================
   EMAIL FORM
   ============================================================ */
.nf-email-form {
  margin-bottom: 36px;
  animation: fadeInUp 1s ease both 1.2s;
}
.nf-email-form p {
  font-size: 0.88rem;
  color: var(--gold-light);
  margin-bottom: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.form-row {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.nf-input {
  flex: 1;
  background: rgba(15,71,48,0.6);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 100px;
  padding: 14px 22px;
  font-size: 0.9rem;
  color: var(--cream);
  font-family: var(--font-body);
  outline: none;
  transition: all 0.3s ease;
}
.nf-input::placeholder { color: rgba(250,246,238,0.4); }
.nf-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  background: rgba(15,71,48,0.8);
}
.nf-btn {
  background: linear-gradient(135deg, var(--gold), #a07830);
  color: var(--emerald-deep);
  border: none;
  border-radius: 100px;
  padding: 14px 28px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.nf-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.nf-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.4); }
.nf-btn:hover::after { opacity: 1; }
.nf-btn:active { transform: translateY(0); }
.success-msg {
  display: none;
  color: var(--gold-light);
  font-size: 0.88rem;
  margin-top: 10px;
  animation: fadeIn 0.5s ease;
}
.success-msg.show { display: block; }

/* ============================================================
   SOCIAL LINKS
   ============================================================ */
.nf-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
  animation: fadeIn 1s ease both 1.3s;
}
.social-link {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,71,48,0.6);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 50%;
  color: rgba(250,246,238,0.7);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.social-link:hover {
  background: rgba(201,168,76,0.2);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 20px rgba(201,168,76,0.25);
}

/* ============================================================
   FOOTER TEXT
   ============================================================ */
.nf-footer-text {
  font-size: 0.78rem;
  color: rgba(250,246,238,0.38);
  letter-spacing: 0.06em;
  animation: fadeIn 1s ease both 1.4s;
}
.nf-footer-text a {
  color: rgba(201,168,76,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.nf-footer-text a:hover { color: var(--gold-light); }

/* ============================================================
   BOTTOM CRESCENT ORNAMENT
   ============================================================ */
.nf-ornament {
  margin-top: 32px;
  color: var(--gold);
  opacity: 0.35;
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  animation: fadeIn 1s ease both 1.5s;
}

/* ============================================================
   SCROLL PARTICLES
   ============================================================ */
.particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  animation: particleFloat var(--dur, 10s) ease-in-out infinite var(--delay, 0s);
}
@keyframes particleFloat {
  0%,100% { transform: translateY(0) rotate(0deg); opacity: var(--opa, 0.4); }
  50%      { transform: translateY(-30px) rotate(180deg); opacity: calc(var(--opa, 0.4) * 0.5); }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .nf-card {
    padding: 56px 28px 40px;
    border-radius: 18px;
  }
  .nf-card::after {
    font-size: 0.7rem;
    top: 14px;
  }
  .nf-logo-text { font-size: 1.9rem; }
  .nf-arabic { font-size: 1.5rem; }
  .countdown-box { min-width: 68px; padding: 12px 14px 10px; }
  .countdown-num { font-size: 2rem; }
  .form-row { flex-direction: column; }
  .nf-btn { width: 100%; }
  .crescent-wrap { top: 16px; right: 16px; transform: scale(0.7); transform-origin: top right; }
}

@media (max-width: 400px) {
  .nf-card { padding: 50px 18px 32px; }
  .nf-headline { font-size: 1.7rem; }
}
