/* ============================================================
   پٹوار ٹولز — اسٹائل
   گہرا سبز + سنہری تھیم، دائیں سے بائیں، نستعلیق فونٹ
   ============================================================ */

@font-face {
  font-family: "JameelNoori";
  src: url("../fonts/JameelNooriNastaleeq.woff2") format("woff2");
  font-display: swap;
}

:root {
  --green-900: #0d3b1e;
  --green-800: #14532d;
  --green-700: #1b5e20;
  --green-600: #2e7d32;
  --gold-500: #d4af37;
  --gold-400: #e6c65a;
  --gold-100: #fdf6e3;
  --cream: #faf7ef;
  --ink: #1a2e1f;
  --muted: #5c6f60;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(13, 59, 30, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "JameelNoori", "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  background: var(--cream);
  color: var(--ink);
  direction: rtl;
  line-height: 2.1;
  overflow-x: hidden;
}

/* ---------- ہیڈر ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.brand-name { font-weight: bold; line-height: 1.4; }
.brand-name small {
  display: block;
  font-size: 0.75rem;
  color: var(--gold-400);
  font-weight: normal;
}
.nav { display: flex; gap: 1.4rem; }
.nav a {
  color: #e8f5e9;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.2s;
}
.nav a:hover { color: var(--gold-400); }

/* مالک کا نام — ہیڈر میں اینیمیٹڈ */
.owner-badge {
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.1rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(110deg, #e6c65a, #fff3c4, #e6c65a, #d4af37, #e6c65a);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border: 1px solid rgba(212, 175, 55, 0.55);
  animation: name-shimmer 3s linear infinite, name-glow 2.2s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes name-shimmer {
  to { background-position: 220% center; }
}
@keyframes name-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(212, 175, 55, 0.35); }
  50%      { box-shadow: 0 0 18px rgba(212, 175, 55, 0.75); }
}

/* ---------- میرے بارے میں ---------- */
.about-box {
  max-width: 680px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem 2rem;
  text-align: center;
  border-top: 5px solid var(--green-700);
}
.about-mark {
  font-size: 3.4rem;
  width: 92px; height: 92px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(13, 59, 30, 0.3);
  border: 3px solid var(--gold-500);
}
.about-box h3 { font-size: 1.9rem; color: var(--green-900); }
.about-place { color: var(--gold-500); font-weight: bold; font-size: 1.15rem; margin-bottom: 0.6rem; }
.about-bio { color: var(--ink); font-size: 1.08rem; max-width: 560px; margin: 0 auto 1.4rem; }
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(180deg, #2bb673 0%, #1da851 45%, #128c4b 100%);
  border-radius: 999px;
  padding: 0.55rem 1.8rem;
  border-bottom: 5px solid #0c6b38;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  box-shadow:
    0 6px 0 #0a5c30,
    0 12px 24px rgba(18, 140, 75, 0.4),
    inset 0 2px 3px rgba(255, 255, 255, 0.35);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
  line-height: 1.7;
}
.whatsapp-btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.whatsapp-btn:active {
  transform: translateY(5px);
  box-shadow:
    0 1px 0 #0a5c30,
    0 4px 10px rgba(18, 140, 75, 0.35),
    inset 0 2px 8px rgba(0, 0, 0, 0.3);
}
.whatsapp-btn .wa-icon { font-size: 1.8rem; }
.whatsapp-btn b { font-size: 1.25rem; letter-spacing: 1px; }

/* ---------- ہیرو ---------- */
.hero {
  background:
    radial-gradient(1000px 400px at 50% -80px, rgba(212, 175, 55, 0.25), transparent),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 60%, var(--green-700) 100%);
  color: #fff;
  text-align: center;
  padding: 4.5rem 1.2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px; right: 0; left: 0;
  height: 40px;
  background: var(--cream);
  clip-path: ellipse(60% 100% at 50% 100%);
}
.hero-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid var(--gold-500);
  color: var(--gold-400);
  border-radius: 999px;
  padding: 0.25rem 1.2rem;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: 3rem;
  line-height: 1.9;
  margin-bottom: 0.4rem;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}
.hero h1 .gold {
  background: linear-gradient(135deg, var(--gold-400), #fff3c4, var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  max-width: 640px;
  margin: 0 auto 1.8rem;
  color: #dcedc8;
  font-size: 1.15rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.15rem;
  border-radius: 999px;
  padding: 0.55rem 2rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #3a2c00;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.45);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.btn-outline:hover { border-color: #fff; }

/* ---------- سیکشن ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 3.5rem 1.2rem 1rem; }
.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--green-800);
  margin-bottom: 0.3rem;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.2rem;
  font-size: 1.1rem;
}
.gold-underline {
  width: 90px; height: 4px; margin: 0.4rem auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

/* ---------- ٹول کارڈز ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.6rem;
}
.tool-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.5rem;
  border-top: 5px solid var(--gold-500);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(13, 59, 30, 0.18);
}
.tool-icon {
  font-size: 2.6rem;
  width: 74px; height: 74px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  box-shadow: inset 0 2px 6px rgba(255,255,255,0.7);
}
.tool-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.tool-head h3 { font-size: 1.45rem; color: var(--green-900); line-height: 1.7; }
.version-badge {
  background: var(--green-700);
  color: #fff;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.1rem 0.8rem;
  line-height: 1.9;
}
.tool-tagline { color: var(--gold-500); font-weight: bold; font-size: 1.05rem; }
.tool-desc { color: var(--ink); font-size: 1.02rem; margin: 0.4rem 0 0.8rem; }
.tool-features { list-style: none; margin-bottom: 1rem; }
.tool-features li {
  position: relative;
  padding-right: 1.6rem;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 2;
}
.tool-features li::before {
  content: "✔";
  position: absolute;
  right: 0;
  color: var(--green-600);
  font-weight: bold;
}
.tool-meta {
  display: flex; gap: 1.2rem;
  font-size: 0.92rem; color: var(--muted);
  margin-bottom: 1.2rem;
  margin-top: auto;
}
.download-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(180deg, #43a047 0%, var(--green-600) 45%, var(--green-800) 100%);
  border-radius: 14px;
  padding: 0.6rem;
  cursor: pointer;
  position: relative;
  overflow: visible;
  /* تھری ڈی بٹن — نیچے موٹی کنارہ */
  border-bottom: 5px solid #0d3b1e;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  box-shadow:
    0 6px 0 #0a2e17,
    0 12px 22px rgba(13, 59, 30, 0.4),
    inset 0 2px 3px rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
}
.download-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 8px 0 #0a2e17,
    0 16px 28px rgba(13, 59, 30, 0.45),
    inset 0 2px 3px rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(0, 0, 0, 0.25);
}
.download-btn:active {
  transform: translateY(5px);
  box-shadow:
    0 1px 0 #0a2e17,
    0 4px 10px rgba(13, 59, 30, 0.35),
    inset 0 2px 8px rgba(0, 0, 0, 0.35);
  filter: brightness(0.95);
}

/* ہیرو کے بٹن بھی تھری ڈی */
.btn-gold {
  background: linear-gradient(180deg, #f4d876 0%, var(--gold-400) 45%, var(--gold-500) 100%);
  color: #3a2c00;
  font-weight: bold;
  border-bottom: 5px solid #8a6d1c;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
  box-shadow:
    0 6px 0 #6e5616,
    0 12px 24px rgba(212, 175, 55, 0.45),
    inset 0 2px 3px rgba(255, 255, 255, 0.5),
    inset 0 -3px 6px rgba(0, 0, 0, 0.12);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-gold:active {
  transform: translateY(5px);
  box-shadow:
    0 1px 0 #6e5616,
    0 4px 10px rgba(212, 175, 55, 0.4),
    inset 0 2px 8px rgba(0, 0, 0, 0.2);
}
.btn-outline:active { transform: translateY(3px); }

/* ---------- اسٹار برسٹ ایفیکٹ ---------- */
.starburst {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-size: 1.1rem;
  animation: burst-fly 0.7s ease-out forwards;
}
@keyframes burst-fly {
  0%   { opacity: 1; transform: translate(0, 0) scale(0.4) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(1.3) rotate(180deg); }
}

/* ---------- ویلکم اسپلش ---------- */
.welcome-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(800px 400px at 50% 30%, rgba(212, 175, 55, 0.25), transparent),
    linear-gradient(160deg, var(--green-900), var(--green-700));
  animation: splash-in 0.5s ease-out;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.welcome-splash.hide { opacity: 0; visibility: hidden; }
@keyframes splash-in {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}
.welcome-inner { text-align: center; color: #fff; }
.welcome-mark {
  font-size: 4rem;
  animation: welcome-bounce 1.2s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
}
@keyframes welcome-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.welcome-title {
  font-size: 3rem;
  margin-top: 0.6rem;
  background: linear-gradient(135deg, var(--gold-400), #fff3c4, var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  line-height: 1.8;
}
.welcome-sub { font-size: 1.4rem; color: #dcedc8; }

/* ---------- وزٹر کاؤنٹر ---------- */
.visitor-counter {
  margin-top: 0.9rem;
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-400);
  border-radius: 999px;
  padding: 0.15rem 1.3rem;
  font-size: 1.05rem;
}
.visitor-counter #visitorCount { font-weight: bold; color: #fff3c4; }

/* ---------- انسٹال گائیڈ ---------- */
.guide-box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.2rem;
  border-right: 6px solid var(--gold-500);
}
.guide-box ol { padding-right: 1.2rem; }
.guide-box li { margin-bottom: 0.9rem; font-size: 1.08rem; }
.guide-box li::marker { color: var(--gold-500); font-weight: bold; }
.guide-box code {
  background: #eef4ee;
  border: 1px solid #d7e5d7;
  border-radius: 6px;
  padding: 0.05rem 0.5rem;
  font-family: monospace;
  direction: ltr;
  display: inline-block;
}
.note {
  margin-top: 1.2rem;
  background: var(--gold-100);
  border: 1px dashed var(--gold-500);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  color: #6b5a1e;
}

/* ---------- قیمتی رائے ---------- */
.feedback-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  border-top: 5px solid var(--gold-500);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feedback-box input,
.feedback-box textarea {
  font-family: inherit;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid #d7e5d7;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  width: 100%;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feedback-box input:focus,
.feedback-box textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}
.feedback-box input.input-error,
.feedback-box textarea.input-error {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}
.feedback-box .btn { align-self: center; }
.feedback-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
}
.feedback-note.note-error { color: #c62828; font-weight: bold; }
.feedback-note.note-ok { color: var(--green-700); font-weight: bold; }

/* ---------- فوٹر ---------- */
.site-footer {
  margin-top: 4rem;
  background: var(--green-900);
  color: #c8e6c9;
  text-align: center;
  padding: 2.2rem 1.2rem;
}
.site-footer .credit { color: var(--gold-400); font-size: 1.15rem; }
.site-footer small { display: block; margin-top: 0.4rem; color: #9db8a2; font-size: 0.95rem; }

/* ---------- اشتہاری جگہ ---------- */
.ad-wrap { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.ad-slot:empty { display: none; }
.ad-slot {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}

/* ---------- سوال جواب ---------- */
.faq-box { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.9rem; }
.faq-box details {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1rem 1.4rem;
  border-right: 5px solid var(--green-600);
}
.faq-box summary {
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--green-900);
}
.faq-box summary::marker { color: var(--gold-500); }
.faq-box details p { margin-top: 0.5rem; color: var(--ink); font-size: 1.05rem; }
.faq-box code {
  background: #eef4ee;
  border: 1px solid #d7e5d7;
  border-radius: 6px;
  padding: 0.05rem 0.5rem;
  font-family: monospace;
  direction: ltr;
  display: inline-block;
}

/* ---------- فوٹر لنکس ---------- */
.footer-links { margin-top: 0.6rem; }
.footer-links a { color: var(--gold-400); text-decoration: none; font-size: 1rem; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- موبائل ---------- */
@media (max-width: 640px) {
  .hero h1 { font-size: 2.1rem; }
  .nav { display: none; }
  .guide-box { padding: 1.4rem 1.2rem; }
  .owner-badge { font-size: 0.85rem; padding: 0.05rem 0.7rem; }
  .header-inner { padding: 0.6rem 0.8rem; }
}
