@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;600;700&family=Poppins:wght@400;600;700;800&display=swap');

:root {
  --primary: #1a7c3e;
  --primary-dark: #145f2f;
  --primary-light: #23a354;
  --gold: #f5a623;
  --gold-dark: #d4891a;
  --dark: #0d1b12;
  --text: #222;
  --text-light: #555;
  --bg: #f4f9f6;
  --white: #fff;
  --border: #d4e8db;
  --shadow: 0 4px 24px rgba(26,124,62,0.10);
}

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

body {
  font-family: 'Noto Nastaliq Urdu', 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 2;
}

/* HEADER */
header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-wrap img {
  height: 52px;
  width: auto;
  border-radius: 10px;
  border: 2px solid var(--gold);
}

.logo-text {
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  direction: ltr;
}

.logo-text span { color: var(--gold); }

.header-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--dark);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(245,166,35,0.4);
  animation: pulse 2s infinite;
}

.header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.6);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(245,166,35,0.4); }
  50% { box-shadow: 0 4px 24px rgba(245,166,35,0.8); }
}

nav {
  background: rgba(0,0,0,0.2);
  padding: 0 24px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

nav ul li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 12px 16px;
  display: block;
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 1rem;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  padding: 70px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 60%);
  animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.hero h1 {
  color: var(--white);
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  line-height: 1.8;
}

.hero h1 span { color: var(--gold); }

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin-bottom: 32px;
  line-height: 2.2;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--dark);
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(245,166,35,0.5);
  transition: all 0.3s;
  animation: bounce 2s infinite;
}

.download-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 40px rgba(245,166,35,0.7);
}

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

.download-btn svg { width: 24px; height: 24px; fill: var(--dark); }

/* BADGES */
.badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
}

/* SCREENSHOTS */
.screenshots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.screenshots img {
  width: 120px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}

.screenshots img:hover { transform: scale(1.06) translateY(-4px); }

/* MAIN CONTENT */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.section { padding: 56px 0; }

.section-title {
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--gold), var(--primary));
  border-radius: 2px;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(26,124,62,0.15);
  border-color: var(--primary-light);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 2;
}

/* ARTICLE SECTION */
.article-content {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.article-content h2 {
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin: 28px 0 14px;
  padding-right: 16px;
  border-right: 4px solid var(--gold);
}

.article-content h3 {
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 1.3rem;
  color: var(--primary);
  margin: 22px 0 12px;
}

.article-content p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 2.4;
  margin-bottom: 18px;
  text-align: justify;
}

.article-content ul, .article-content ol {
  padding-right: 28px;
  margin-bottom: 18px;
}

.article-content li {
  color: var(--text);
  font-size: 1rem;
  line-height: 2.2;
  margin-bottom: 8px;
}

.article-content li::marker { color: var(--gold); }

.article-img {
  width: 100%;
  border-radius: 14px;
  margin: 24px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* INFO BOX */
.info-box {
  background: linear-gradient(135deg, #e8f5ed, #d4edda);
  border: 1px solid #a8d5b5;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
  border-right: 5px solid var(--primary);
}

.info-box p { margin: 0; color: var(--primary-dark); font-weight: 600; }

.warning-box {
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border: 1px solid #ffc107;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
  border-right: 5px solid var(--gold);
}

/* ARTICLES GRID */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(26,124,62,0.15);
}

.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body { padding: 20px; }

.article-card-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.article-card h3 {
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.8;
}

.article-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.article-card:hover .read-more { color: var(--gold-dark); }

/* DOWNLOAD CTA */
.download-cta {
  background: linear-gradient(135deg, var(--dark), var(--primary-dark));
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  color: var(--white);
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.download-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.download-cta h2 {
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 2rem;
  margin-bottom: 16px;
  position: relative;
}

.download-cta p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 32px;
  position: relative;
  line-height: 2.2;
}

.download-cta .download-btn { position: relative; }

/* STATS */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 36px 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.stat-item { color: var(--white); }

.stat-item .stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item .stat-label {
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 1rem;
  opacity: 0.9;
}

/* HOW TO DOWNLOAD */
.steps { counter-reset: step; }

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  direction: rtl;
}

.step-num {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 2;
}

/* FOOTER */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 56px 24px 24px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 2.2;
  color: rgba(255,255,255,0.7);
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 0.95rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:before {
  content: '›';
  color: var(--gold);
  font-size: 1.2rem;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

.footer-logo img { height: 44px; border-radius: 8px; border: 2px solid var(--gold); }

.footer-logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  direction: ltr;
}

.footer-logo-text span { color: var(--gold); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  font-family: 'Noto Nastaliq Urdu', sans-serif;
}

.footer-bottom a { color: var(--gold); text-decoration: none; }

/* PAGE HERO */
.page-hero {
  background: linear-gradient(135deg, var(--dark), var(--primary-dark));
  padding: 48px 24px;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 1rem;
  opacity: 0.8;
  line-height: 2;
}

/* CONTACT */
.contact-form {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.3s;
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  background: var(--white);
}

.form-group textarea { height: 140px; resize: vertical; }

.submit-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 14px 40px;
  border: none;
  border-radius: 30px;
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(26,124,62,0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,124,62,0.4);
}

/* BREADCRUMB */
.breadcrumb {
  background: var(--white);
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb span { color: var(--text-light); }

/* SITEMAP */
.sitemap-section {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.sitemap-section h2 {
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.sitemap-section ul { list-style: none; }

.sitemap-section ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sitemap-section ul li:last-child { border-bottom: none; }

.sitemap-section ul li a {
  color: var(--primary);
  text-decoration: none;
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 1rem;
  transition: color 0.2s;
}

.sitemap-section ul li a:hover { color: var(--gold-dark); }

.sitemap-section ul li::before { content: '📄'; font-size: 1.1rem; }

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  direction: rtl;
}

table th {
  background: var(--primary);
  color: var(--white);
  padding: 14px 18px;
  font-family: 'Noto Nastaliq Urdu', sans-serif;
  font-size: 1rem;
  text-align: right;
}

table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.8;
}

table tr:nth-child(even) { background: var(--bg); }
table tr:hover { background: #e8f5ed; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.6rem; }
  .header-top { padding: 10px 16px; }
  .logo-text { font-size: 1.1rem; }
  .header-btn { padding: 8px 16px; font-size: 0.85rem; }
  nav { padding: 0 12px; }
  nav ul li a { padding: 10px 12px; font-size: 0.9rem; }
  .article-content { padding: 24px 16px; }
  .article-content h2 { font-size: 1.3rem; }
  .download-cta { padding: 40px 20px; }
  .download-cta h2 { font-size: 1.5rem; }
  .screenshots img { width: 90px; height: 160px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-title { font-size: 1.5rem; }
  .contact-form { padding: 24px 16px; }
}

@media (max-width: 480px) {
  .screenshots img { width: 75px; height: 130px; }
  .footer-grid { grid-template-columns: 1fr; }
  .badges { gap: 8px; }
  .badge { font-size: 0.8rem; padding: 5px 12px; }
}
