@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==========================================
   DYNAMIC LIGHT / DARK THEME VARIABLES
   ========================================== */
:root, [data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #cbd5e1;
  --border-subtle: #e2e8f0;
  --text-main: #0f172a;
  --text-sub: #475569;
  --navbar-bg: rgba(255, 255, 255, 0.92);
  --input-bg: #ffffff;
  --input-text: #0f172a;
  --modal-bg: #ffffff;
  --logo-blue: #0b3c7d;
  --logo-green: #48bb37;
  --logo-green-glow: rgba(72, 187, 55, 0.25);
  --hero-bg: radial-gradient(circle at 10% 20%, rgba(11, 60, 125, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(72, 187, 55, 0.08) 0%, transparent 50%);
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
  --shadow-float: 0 15px 35px -10px rgba(0, 0, 0, 0.08);
  --mockup-bg: #0f172a;
}

[data-theme="dark"] {
  --bg-main: #06121e;
  --bg-card: #0d2137;
  --border-color: rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text-main: #ffffff;
  --text-sub: #94a3b8;
  --navbar-bg: rgba(13, 33, 55, 0.92);
  --input-bg: #06182a;
  --input-text: #ffffff;
  --modal-bg: #0d2137;
  --logo-blue: #38bdf8;
  --logo-green: #48bb37;
  --logo-green-glow: rgba(72, 187, 55, 0.35);
  --hero-bg: radial-gradient(circle at 10% 20%, rgba(11, 60, 125, 0.25) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(72, 187, 55, 0.15) 0%, transparent 50%);
  --shadow-card: 0 15px 35px -5px rgba(0, 0, 0, 0.3);
  --shadow-float: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  --mockup-bg: #020617;
}

/* ==========================================
   GLOBAL STYLES & OVERFLOW FIXES
   ========================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

body.lang-urdu {
  font-family: 'Noto Nastaliq Urdu', 'Plus Jakarta Sans', sans-serif !important;
  direction: rtl;
  text-align: right;
}

.text-theme-main { color: var(--text-main) !important; }
.text-theme-sub { color: var(--text-sub) !important; }
.text-green { color: var(--logo-green) !important; }

/* ==========================================
   FLOATING CAPSULE NAVBAR (RESPONSIVE FIX)
   ========================================== */
.navbar-capsule-wrapper {
  position: sticky;
  top: 16px;
  z-index: 1030;
  padding: 0 12px;
}

.navbar-capsule {
  background: var(--navbar-bg) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 10px 24px;
  box-shadow: var(--shadow-float);
  transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
  .navbar-capsule {
    border-radius: 24px;
    padding: 12px 20px;
  }
  .navbar-collapse {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 16px;
    margin-top: 12px;
  }
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.navbar-brand-text {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  color: var(--text-main) !important;
}

.nav-link {
  color: var(--text-sub) !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 16px !important;
  border-radius: 20px;
  transition: all 0.2s ease;
}
.nav-link:hover {
  color: var(--logo-green) !important;
  background: rgba(72, 187, 55, 0.08);
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
  transform: scale(1.08);
  border-color: var(--logo-green);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-attendify {
  padding: 70px 0 65px 0;
  background: var(--hero-bg);
}

.product-pill {
  display: inline-block;
  background: rgba(72, 187, 55, 0.12);
  color: var(--logo-green);
  border: 1px solid rgba(72, 187, 55, 0.3);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-mockup-wrapper {
  position: relative;
}

.browser-frame {
  background: var(--mockup-bg);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-left: 6px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.app-screenshot {
  width: 100%;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
}
body.lang-urdu .floating-badge {
  left: auto;
  right: -20px;
}

.floating-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(72, 187, 55, 0.15);
  color: var(--logo-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* ==========================================
   CARDS & FEATURES
   ========================================== */
.card-attendify {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 30px;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card-attendify:hover {
  transform: translateY(-5px);
  border-color: var(--logo-green);
  box-shadow: 0 15px 35px var(--logo-green-glow);
}

.icon-box-green {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(72, 187, 55, 0.12);
  color: var(--logo-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.mini-ui-box {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 18px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-tech {
  background: rgba(11, 60, 125, 0.12);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.3);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}
[data-theme="dark"] .badge-tech {
  background: rgba(11, 60, 125, 0.4);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

/* ==========================================
   COMPARISON TABLE STYLES (RESPONSIVE MIN-WIDTH)
   ========================================== */
.table-comparison {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  min-width: 680px;
}
.table-comparison th {
  background: rgba(11, 60, 125, 0.05);
  color: var(--text-main);
  font-weight: 700;
  padding: 18px 20px;
  border-bottom: 2px solid var(--border-color);
}
[data-theme="dark"] .table-comparison th {
  background: rgba(255, 255, 255, 0.05);
}
.table-comparison td {
  padding: 16px 20px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.table-comparison tr:last-child td {
  border-bottom: none;
}
.highlight-col {
  background: rgba(72, 187, 55, 0.05) !important;
  font-weight: 700;
  color: var(--text-main) !important;
}

/* ==========================================
   ROI CALCULATOR STYLES
   ========================================== */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.range-slider-green {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: var(--border-color);
  outline: none;
}
.range-slider-green::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--logo-green);
  cursor: pointer;
  box-shadow: 0 0 12px var(--logo-green-glow);
}

/* ==========================================
   PRICING CARDS
   ========================================== */
.card-pricing {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 38px 28px;
  height: 100%;
  position: relative;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card-pricing:hover {
  transform: translateY(-6px);
  border-color: var(--logo-green);
}

.card-pricing.popular {
  border: 2px solid var(--logo-green);
  box-shadow: 0 15px 35px var(--logo-green-glow);
  transform: translateY(-8px);
}
.card-pricing.popular:hover {
  transform: translateY(-12px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--logo-green);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 18px;
  border-radius: 20px;
  box-shadow: 0 4px 12px var(--logo-green-glow);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}
.pricing-currency {
  font-size: 1.25rem;
  font-weight: 700;
  vertical-align: super;
  margin-right: 2px;
}
.pricing-period {
  font-size: 0.85rem;
  color: var(--text-sub);
  font-weight: 600;
}

/* Buttons */
.btn-green-glow {
  background: var(--logo-green);
  color: #ffffff !important;
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 30px;
  box-shadow: 0 0 20px var(--logo-green-glow);
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  display: inline-block;
}
.btn-green-glow:hover {
  background: #389e2b;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(72, 187, 55, 0.5);
}

.btn-blue-outline {
  background: rgba(11, 60, 125, 0.08);
  border: 1px solid var(--logo-blue);
  color: var(--text-main);
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 30px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-blue-outline:hover {
  background: var(--logo-blue);
  color: #ffffff;
}

/* Floating WhatsApp Widget */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 1050;
  transition: all 0.3s ease;
  text-decoration: none;
}
body.lang-urdu .whatsapp-float {
  right: auto;
  left: 25px;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: #ffffff;
}

/* Form Controls */
.form-attendify {
  background: var(--input-bg) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--input-text) !important;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.9rem;
}
.form-attendify::placeholder {
  color: var(--text-sub) !important;
  opacity: 0.7;
}
.form-attendify:focus {
  border-color: var(--logo-green) !important;
  box-shadow: 0 0 0 3px var(--logo-green-glow) !important;
}

/* Modal */
.modal-content {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px;
}