/* ===================================================
   NI9.XYZ — Premium Design System
   Tailwind CDN used as base; this file adds custom
   animations, premium gradients, glass-morphism,
   and brand identity.
   =================================================== */

:root {
  --brand-primary: #0d9488;     /* teal-600 */
  --brand-primary-dark: #0f766e;
  --brand-accent: #d97706;       /* amber-600 */
  --brand-gold: #c79a3f;
  --brand-deep: #0b3d3a;
  --brand-cream: #faf7f0;
  --brand-ink: #0f172a;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background: #ffffff;
  overflow-x: hidden;
}
.font-display { font-family: 'Poppins', 'Inter', sans-serif; }
.font-urdu { font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif; line-height: 2.4; }

/* ---------- Premium gradient text ---------- */
.gradient-text {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #c79a3f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text-gold {
  background: linear-gradient(135deg, #d97706 0%, #c79a3f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Hero backgrounds ---------- */
.hero-mesh {
  background-color: #0b3d3a;
  background-image:
    radial-gradient(at 20% 20%, rgba(13, 148, 136, 0.55) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(199, 154, 63, 0.35) 0px, transparent 50%),
    radial-gradient(at 0% 90%, rgba(15, 118, 110, 0.45) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(217, 119, 6, 0.25) 0px, transparent 50%);
}
.hero-light {
  background:
    radial-gradient(at 0% 0%, rgba(13, 148, 136, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(199, 154, 63, 0.10) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(13, 148, 136, 0.06) 0px, transparent 50%),
    #ffffff;
}

/* ---------- Glass card ---------- */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.glass-dark {
  background: rgba(11, 61, 58, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* ---------- Premium card hover ---------- */
.p-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.75rem;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease, border-color .4s ease;
  overflow: hidden;
}
.p-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(199, 154, 63, 0.05));
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.p-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px -22px rgba(13, 148, 136, 0.35);
  border-color: rgba(13, 148, 136, 0.4);
}
.p-card:hover::before { opacity: 1; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: .65rem;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
  box-shadow: 0 12px 28px -10px rgba(13, 148, 136, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 18px 40px -12px rgba(13, 148, 136, 0.7); }
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: .65rem;
  background: linear-gradient(135deg, #d97706 0%, #c79a3f 100%);
  color: #fff;
  font-weight: 600;
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
  box-shadow: 0 12px 28px -10px rgba(217, 119, 6, 0.6);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: .65rem;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  font-weight: 600;
  transition: background .3s ease, border-color .3s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- Animated background blobs ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .45;
  animation: float 14s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-40px) scale(1.1); }
  66% { transform: translate(-25px,25px) scale(0.95); }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

/* ---------- Number counter ---------- */
.counter { font-variant-numeric: tabular-nums; }

/* ---------- Calculator input styling ---------- */
.calc-input {
  width: 100%;
  padding: .9rem 1rem;
  border-radius: .75rem;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb;
  font-size: 1rem;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.calc-input:focus {
  outline: none;
  border-color: #0d9488;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}
.calc-label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 600;
  color: #0f766e;
  font-size: .95rem;
}

/* ---------- Result card ---------- */
.result-card {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 20px 50px -20px rgba(13, 148, 136, 0.5);
}
.result-value {
  font-size: 2.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

/* ---------- Pills / badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.badge-teal { background: rgba(13, 148, 136, 0.12); color: #0f766e; }
.badge-gold { background: rgba(199, 154, 63, 0.15); color: #92660c; }
.badge-new  { background: rgba(217, 119, 6, 0.12); color: #b45309; }

/* ---------- Article prose ---------- */
.prose-urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  line-height: 2.6;
  font-size: 1.2rem;
  color: #1f2937;
}
.prose-urdu p { margin-bottom: 1.4rem; }
.prose-urdu h2, .prose-urdu h3 { color: #0f766e; margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; }

.prose-eng {
  font-family: 'Inter', sans-serif;
  line-height: 1.85;
  color: #1f2937;
}
.prose-eng p { margin-bottom: 1.3rem; font-size: 1.06rem; }
.prose-eng h2 { font-size: 1.85rem; font-weight: 700; color: #0f766e; margin-top: 2.5rem; margin-bottom: 1rem; }
.prose-eng h3 { font-size: 1.4rem; font-weight: 600; color: #0f766e; margin-top: 2rem; margin-bottom: .8rem; }
.prose-eng ul, .prose-eng ol { margin: 1rem 0 1.5rem 1.5rem; }
.prose-eng li { margin-bottom: .6rem; }
.prose-eng strong { color: #0f172a; font-weight: 600; }

/* ---------- Marquee ---------- */
.marquee { display: flex; gap: 3rem; animation: marquee 32s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid #e5e7eb; }
.faq-q { cursor: pointer; padding: 1.25rem 0; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #0f172a; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; color: #4b5563; }
.faq-item.open .faq-a { max-height: 600px; padding-bottom: 1.25rem; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .3s ease; color: #0d9488; }

/* ---------- Animated underline ---------- */
.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, #0d9488, #c79a3f);
  transition: width .3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(#0d9488, #0f766e); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(#0f766e, #0b3d3a); }

/* ---------- Shimmer for skeletons ---------- */
.shimmer {
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- Pulse dot ---------- */
.pulse-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); }
  70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; background: rgba(11, 61, 58, 0.98);
  backdrop-filter: blur(20px); z-index: 100;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.mobile-menu.open { transform: translateX(0); }

/* ---------- Tab buttons ---------- */
.tab-btn {
  padding: .75rem 1.25rem; border-radius: .65rem; font-weight: 600;
  transition: all .3s ease; color: #4b5563;
}
.tab-btn.active {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff; box-shadow: 0 8px 20px -8px rgba(13, 148, 136, 0.6);
}
.tab-btn:not(.active):hover { background: #f1f5f9; color: #0f766e; }

/* ---------- Hide number input arrows ---------- */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* ---------- Print friendly ---------- */
@media print {
  header, footer, .no-print { display: none !important; }
  body { background: #fff; }
}
