/* ==================================================
   WEB3 THEME – SINGLE COMPILED FILE
   RTL + LTR | LIGHT + DARK | GRID FIX | ANIMATIONS
   SAFE: No PHP / No Logic Dependency
   ================================================== */

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

/* ================= ROOT VARIABLES ================= */
:root {
  --blue: #3B82F6;
  --red: #EF4444;

  /* Light mode */
  --bg: #f8fafc;
  --card: rgba(255,255,255,0.88);
  --text: #020617;
  --border: rgba(0,0,0,0.08);
}

/* Dark mode */
html[data-theme="dark"] {
  --bg: #020617;
  --card: rgba(255,255,255,0.06);
  --text: #ffffff;
  --border: rgba(255,255,255,0.08);
}

/* ================= LANGUAGE DIRECTION ================= */
html[lang="ur"] body {
  direction: rtl;
  font-family: 'Noto Nastaliq Urdu','Inter',system-ui;
}

html:not([lang="ur"]) body {
  direction: ltr;
  font-family: 'Inter',system-ui;
}

/* ================= GLOBAL BASE ================= */
body {
  background: radial-gradient(circle at top, var(--bg), #ffffff);
  color: var(--text);
  transition: background .4s ease, color .4s ease;
}

/* ================= CONTAINER ================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ================= GRID UTILITIES ================= */
.grid {
  display: grid;
  gap: 32px;
}

.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

@media (max-width: 992px) {
  .grid-3,.grid-4 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 576px) {
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
}

/* ================= HEADINGS (SEO SAFE) ================= */
h1 { font-size: clamp(32px,5vw,52px); font-weight:700; }
h2 { font-size: clamp(26px,4vw,36px); font-weight:600; }
h3 { font-size:18px; font-weight:600; }
h4 { font-size:16px; font-weight:500; }

/* Gradient ONLY where class is applied */
.hero-gradient {
  background: linear-gradient(90deg,var(--blue),var(--red));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* ================= BUTTONS ================= */
.btn,button,.btn-primary {
  background: none;
  border-radius: 30px;
  padding: 12px 28px;
  transition: all .35s ease;
}

.gradient-btn {
  background: linear-gradient(135deg,var(--blue),var(--red));
  color:#fff !important;
  border:none;
  box-shadow:0 10px 30px rgba(59,130,246,.25);
}

.gradient-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:0 15px 45px rgba(239,68,68,.35);
}

/* ================= CARDS ================= */
.card,.feature-card,.step-card {
  background: var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:24px;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:all .4s ease;
}

.card:hover,.feature-card:hover,.step-card:hover {
  transform:translateY(-6px);
  box-shadow:0 25px 60px rgba(0,0,0,.25);
}

/* ================= TABLES ================= */
table {
  background: var(--card);
  border-radius:14px;
  overflow:hidden;
}

thead {
  background: linear-gradient(135deg,var(--blue),var(--red));
}

thead th { color:#fff; }

/* ================= SECTIONS ================= */
.section-light { background:#f9fafb; }

.section-driver {
  background: linear-gradient(
    135deg,
    rgba(59,130,246,0.06),
    rgba(239,68,68,0.06)
  );
}

/* ================= MOBILE FIXES ================= */
.hero-actions {
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}

.hero-subtitle,section p {
  max-width:720px;
  margin-inline:auto;
}

/* ================= ANIMATIONS ================= */
.fade-up {
  opacity:0;
  transform:translateY(30px);
  transition:all .9s ease;
}

.fade-up.in-view {
  opacity:1;
  transform:translateY(0);
}

.float-soft {
  animation: floatSoft 6s ease-in-out infinite;
}

@keyframes floatSoft {
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-8px)}
}

/* ================= RTL FIXES ================= */
html[lang="ur"] .grid { direction:rtl; }
html[lang="ur"] .text-left { text-align:right!important; }
html[lang="ur"] .text-right { text-align:left!important; }

/* ================= FOOTER ================= */
.site-footer {
  background:#1f2933;
  color:#d1d5db;
  padding:70px 0 30px;
  font-size:14px;
}

.footer-top {
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:40px;
}

.footer-logo { color:#fff;font-size:22px;margin-bottom:15px; }
.footer-desc { color:#9ca3af;line-height:1.7; }

.footer-col h4 { color:#fff;margin-bottom:15px;font-size:15px; }

.footer-col ul { list-style:none;padding:0;margin:0; }
.footer-col ul li { margin-bottom:10px; }
.footer-col ul li a {
  color:#9ca3af;
  text-decoration:none;
  transition:color .3s ease;
}
.footer-col ul li a:hover { color:var(--blue); }

.footer-divider {
  height:1px;
  background:rgba(255,255,255,.08);
  margin:40px 0 25px;
}

.footer-bottom {
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  font-size:13px;
}

@media (max-width:992px){
  .footer-top{grid-template-columns:1fr 1fr}
}
@media (max-width:576px){
  .footer-top{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;gap:10px}
}
