/* ===============================
   ROOT VARIABLES
=============================== */
:root {
  --bg: #0b0f14;
  --bg-soft: #121821;
  --grid: rgba(255,255,255,0.04);
  --primary: #00d1b2;
  --text: #e6e6e6;
  --muted: #9aa4b2;
  --card: #151c26;
  --border: rgba(255,255,255,0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===============================
   GRID BACKGROUND
=============================== */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ===============================
   ISLAMIC LOADER
=============================== */
#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #111827, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-content {
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.urdu {
  font-family: "Noto Nastaliq Urdu", serif;
  margin-bottom: 10px;
}

.loader-content h1 {
  font-size: 2rem;
}

.loader-content p {
  font-size: 1.4rem;
  opacity: 0.9;
}

.progress-bar {
  margin-top: 25px;
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #38bdf8);
  transition: width 0.3s ease;
}

/* ===============================
   NAVBAR
=============================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 6%;
  background: rgba(11,15,20,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo {
  height: 45px;
}

.navbar nav a {
  margin-left: 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.85;
}

.navbar nav a.active,
.navbar nav a:hover {
  color: var(--primary);
  opacity: 1;
}

/* ===============================
   HERO
=============================== */
.hero {
  padding: 100px 6% 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 15px;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
}

.muted {
  font-size: 0.95rem;
}

/* ===============================
   SECTIONS (GLOBAL)
=============================== */
section {
  padding: 70px 6%;
  position: relative;
  z-index: 1;
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

/* ===============================
   CAPABILITIES
=============================== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.cap-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 25px;
  transition: transform 0.3s ease, border 0.3s ease;
}

.cap-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

/* ===============================
   QUICK LINKS
=============================== */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.quick-card {
  background: linear-gradient(180deg, var(--card), #0f1622);
  border-radius: 18px;
  padding: 25px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.quick-card:hover {
  transform: translateY(-6px);
}

.quick-card span,
.quick-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* ===============================
   STATS
=============================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}

.stat h3 {
  font-size: 2rem;
  color: var(--primary);
}

/* ===============================
   WHY US
=============================== */
.why-us ul {
  max-width: 600px;
  margin: auto;
  list-style: none;
}

.why-us li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

/* ===============================
   CALCULATOR
=============================== */
.calculator {
  max-width: 400px;
  margin: auto;
  text-align: center;
}

.calculator input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  margin-bottom: 15px;
}

.calculator button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

/* ===============================
   FAQ
=============================== */
.faq details {
  max-width: 700px;
  margin: 10px auto;
  background: var(--card);
  border-radius: 12px;
  padding: 15px;
}

/* ===============================
   MAP
=============================== */
.map iframe {
  width: 100%;
  height: 350px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 768px) {
  .navbar nav {
    display: none;
  }
}
