/*
Theme Name: TrueAccounts ERP
Theme URI: https://trueaccounts.pk
Author: TrueAccounts Team
Author URI: https://trueaccounts.pk
Description: Custom ultra-fast, lightweight Cloud ERP theme built from scratch for TrueAccounts.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trueaccounts-erp
*/

/* ==========================================================================
   1. RESET & BASE VARIABLES
   ========================================================================== */
:root {
  --primary-navy: #051B34;
  --primary-dark: #0F172A;
  --primary-accent: #6366F1;
  --accent-purple: #7C3AED;
  --accent-blue: #3B82F6;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --border-light: #E2E8F0;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
  --shadow-hero: 0 25px 65px -12px rgba(15, 23, 42, 0.22);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background: linear-gradient(135deg, #07152B 0%, #0C2448 50%, #081B38 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 4px 25px -4px rgba(7, 21, 43, 0.5), 0 1px 0 0 rgba(255, 255, 255, 0.06) inset;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 3px;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-menu > li > a:hover {
  color: #38BDF8;
  background: rgba(255, 255, 255, 0.05);
}

.nav-menu > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 2px solid rgba(255,255,255,0.7);
  border-bottom: 2px solid rgba(255,255,255,0.7);
  transform: rotate(45deg);
  margin-left: 5px;
  margin-top: -3px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nav-menu > li.menu-item-has-children:hover > a::after {
  border-color: #38BDF8;
  transform: rotate(-135deg);
  margin-top: 2px;
}

/* Dropdown Card */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.06);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.nav-menu > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li {
  margin: 2px 0;
}

.nav-menu .sub-menu a {
  display: block;
  color: #1E293B;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
  white-space: normal;
}

.nav-menu .sub-menu a:hover {
  background: #F1F5F9;
  color: var(--accent-purple);
  padding-left: 16px;
  font-weight: 600;
}

/* Header Right: Stacked layout for WhatsApp and Demo Button */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 135px;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #38BDF8;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.2s ease;
  padding: 0 4px;
}

.whatsapp-link:hover {
  color: #7DD3FC;
  transform: translateX(-1px);
}

.whatsapp-icon {
  width: 13px;
  height: 13px;
  fill: #22C55E;
  flex-shrink: 0;
}

.btn-header-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-header-demo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, #1D4ED8 0%, #4338CA 100%);
  color: #FFFFFF;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero-section {
  background: radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 90% 25%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
              var(--bg-light);
  padding: 60px 0 30px 0;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #8B5CF6;
  border-radius: var(--radius-full);
  padding: 6px 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.12);
  font-size: 14px;
  font-weight: 700;
  color: #6D28D9;
}

.hero-badge span {
  color: #4B5563;
  font-weight: 500;
  margin-left: 6px;
}

.hero-title {
  color: var(--primary-dark);
  font-size: 46px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 1000px;
  margin: 0 auto 20px auto;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 17.5px;
  line-height: 1.65;
  max-width: 780px;
  margin: 0 auto 35px auto;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 55px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-primary:link,
.btn-primary:visited {
  background: #0F2038;
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 16px 36px;
  font-size: 15.5px;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(15, 32, 56, 0.25);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #1E293B;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 32, 56, 0.35);
  text-decoration: none;
}

.btn-secondary,
.btn-secondary:link,
.btn-secondary:visited {
  background: #FFFFFF;
  color: var(--primary-dark);
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-full);
  padding: 15px 32px;
  font-size: 15.5px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--bg-light);
  color: var(--accent-purple);
  border-color: #94A3B8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.hero-image-wrapper {
  max-width: 1100px;
  margin: 0 auto 60px auto;
  position: relative;
}

.hero-image-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hero), 0 0 0 1px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image-wrapper img:hover {
  transform: translateY(-4px);
  box-shadow: 0 35px 75px -15px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.1);
}

/* ==========================================================================
   4. METRIC STRIP
   ========================================================================== */
.metrics-strip {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 30px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.metric-item h4 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.metric-item p {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

/* ==========================================================================
   5. SECTIONS & ERP MODULES GRID
   ========================================================================== */
.section-pad {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.section-tag {
  color: var(--accent-purple);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.module-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.module-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.module-card:nth-child(1):hover::before { background: linear-gradient(90deg, #059669, #10B981); }
.module-card:nth-child(2):hover::before { background: linear-gradient(90deg, #2563EB, #6366F1); }
.module-card:nth-child(3):hover::before { background: linear-gradient(90deg, #7C3AED, #A855F7); }
.module-card:nth-child(4):hover::before { background: linear-gradient(90deg, #D97706, #F59E0B); }
.module-card:nth-child(5):hover::before { background: linear-gradient(90deg, #E11D48, #F43F5E); }
.module-card:nth-child(6):hover::before { background: linear-gradient(90deg, #0284C7, #06B6D4); }

.module-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: #FFFFFF;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.module-card:hover .module-icon-box {
  transform: scale(1.12) rotate(3deg);
}

.module-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* Scroll Reveal */
.reveal-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.module-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: #EEF2FF;
  color: var(--accent-purple);
}

.module-icon svg {
  width: 26px;
  height: 26px;
}

.module-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.module-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   6. LOCALIZED & AI ADVANTAGE SECTION
   ========================================================================== */
.advantage-section {
  background: #F8FAFC;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.advantage-content h3 {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.advantage-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-checklist {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 12px;
  font-weight: 500;
}

.feature-checklist svg {
  width: 20px;
  height: 20px;
  fill: #10B981;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--primary-navy);
  color: #94A3B8;
  padding: 70px 0 30px 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h5 {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
}

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

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

.footer-col a {
  color: #94A3B8;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   8. SINGLE POST & BLOG
   ========================================================================== */
.post-header {
  padding: 50px 0 30px 0;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.post-title {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.post-meta {
  color: var(--text-light);
  font-size: 14px;
}

.post-content {
  max-width: 860px;
  margin: 0 auto 60px auto;
  font-size: 16.5px;
  line-height: 1.75;
  color: #334155;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   9. RESPONSIVE ARCHITECTURE & UNIVERSAL MOBILE BOX RULES
   ========================================================================== */

/* Universal Responsive Base Settings */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Architecture Blueprint Grids */
.arch-layer-grid {
  display: grid;
  width: 100%;
}
.arch-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.arch-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.arch-grid-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  text-align: center;
}
.arch-grid-2 {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

/* Responsive Table Wrapper */
.table-responsive,
div[style*="overflow-x: auto"] {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
}

.table-responsive table,
div[style*="overflow-x: auto"] table {
  min-width: 620px;
}

/* Desktop Pricing Cards Default */
.pricing-cards-row {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 40px;
}

.pricing-card {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Medium Screens & Small Laptops (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .arch-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .arch-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Tablets & Stacked Card Breakpoint (max-width: 900px)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* Pricing Cards: Force Clean Vertical Stack */
  .pricing-cards-row {
    flex-direction: column !important;
    gap: 30px !important;
    display: flex !important;
  }
  .pricing-card {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  /* Testimonials Grid: 1 Column */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  /* Architecture Grids */
  .arch-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .arch-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Universal Box Responsive Rule for ALL pages */
  div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns: repeat(3,1fr)"],
  div[style*="grid-template-columns:repeat(3, 1fr)"],
  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  div[style*="grid-template-columns: repeat(4, 1fr)"],
  div[style*="grid-template-columns: repeat(4,1fr)"],
  div[style*="grid-template-columns:repeat(4, 1fr)"],
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  div[style*="grid-template-columns: repeat(5, 1fr)"],
  div[style*="grid-template-columns: repeat(5,1fr)"],
  div[style*="grid-template-columns:repeat(5, 1fr)"],
  div[style*="grid-template-columns:repeat(5,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr;"],
  div[style*="grid-template-columns:1fr 1fr;"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  div[style*="minmax(320px"],
  div[style*="minmax(300px"],
  div[style*="minmax(280px"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* --------------------------------------------------------------------------
   Mobile Phones & Compact Devices (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Layout & Containers */
  .container {
    padding: 0 18px !important;
    max-width: 100% !important;
  }
  
  .section-pad {
    padding: 50px 0 !important;
  }

  /* Navigation Bar */
  .site-header {
    height: auto;
  }
  .header-inner {
    height: 70px;
    padding: 0;
  }
  .site-logo img {
    height: 38px;
  }
  .header-right .whatsapp-link span {
    display: none;
  }
  .btn-header-demo {
    padding: 5px 12px;
    font-size: 11.5px;
  }

  /* Mobile Hamburger Drawer Menu */
  .mobile-toggle {
    display: block !important;
  }
  .primary-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #07152B;
    padding: 24px 20px 60px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
  }
  .primary-nav.nav-open {
    display: block !important;
  }
  .primary-nav .nav-menu {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .primary-nav .nav-menu > li {
    width: 100% !important;
  }
  .primary-nav .nav-menu > li > a {
    font-size: 15.5px !important;
    padding: 12px 14px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
  }
  .primary-nav .nav-menu .sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.04) !important;
    margin: 6px 0 12px 10px !important;
    border-radius: 8px !important;
    padding: 6px !important;
  }
  .primary-nav .nav-menu .sub-menu a {
    color: #CBD5E1 !important;
    font-size: 13.5px !important;
    padding: 8px 12px !important;
  }

  /* Typography */
  .hero-title {
    font-size: 29px !important;
    line-height: 1.3 !important;
    margin-bottom: 16px !important;
  }
  .hero-subtitle {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
  }
  .hero-badge {
    font-size: 12px !important;
    padding: 5px 14px !important;
    margin-bottom: 16px !important;
  }
  .section-title {
    font-size: 26px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }
  .section-desc {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
  .section-head {
    margin-bottom: 35px !important;
  }

  /* CTAs on Mobile */
  .hero-cta-group {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    margin-bottom: 35px !important;
  }
  .hero-cta-group a,
  .hero-cta-group button {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Modules & Architecture */
  .modules-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  .metric-item {
    padding: 16px 12px !important;
  }
  .metric-item h4 {
    font-size: 26px !important;
  }
  .metric-item p {
    font-size: 12.5px !important;
  }

  /* Architecture Layers on Mobile */
  .arch-layer {
    padding: 18px 14px !important;
  }
  .arch-grid-4 {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .arch-grid-5 {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .arch-chip {
    padding: 10px 8px !important;
  }
  .arch-chip strong {
    font-size: 12.5px !important;
  }
  .arch-chip span {
    font-size: 10.5px !important;
  }

  /* 4-Step Roadmap on Mobile */
  .roadmap-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Urdu Highlight Banner */
  .urdu-callout-banner {
    flex-direction: column !important;
    padding: 24px 18px !important;
    text-align: center !important;
    gap: 20px !important;
  }
  .urdu-callout-banner > div {
    text-align: center !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .urdu-callout-banner h3 {
    font-size: 20px !important;
    line-height: 1.5 !important;
  }
  .urdu-callout-banner p {
    font-size: 14.5px !important;
    line-height: 1.7 !important;
  }
  .urdu-callout-banner a {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Universal Box Padding on Mobile */
  .module-card,
  .testimonial-card,
  .pricing-card {
    padding: 24px 18px !important;
    border-radius: 14px !important;
  }

  /* Footer on Mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 14px !important;
    text-align: center !important;
  }
}

/* --------------------------------------------------------------------------
   Small Mobile Viewports (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero-title {
    font-size: 25px !important;
  }
  .metrics-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .arch-grid-4 {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .arch-grid-5 {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .section-title {
    font-size: 23px !important;
  }
  .btn-primary,
  .btn-secondary {
    padding: 13px 20px !important;
    font-size: 14.5px !important;
  }
  .module-card,
  .testimonial-card,
  .pricing-card {
    padding: 20px 14px !important;
  }
}


/* ==========================================================================
   10. SCROLL REVEAL & CREATIVE ANIMATIONS
   ========================================================================== */
/* Base transition: 1.65s (Longer, distinct, cinematic easing) */
.scroll-reveal,
.scroll-reveal-left,
.scroll-reveal-right,
.scroll-reveal-drop,
.scroll-reveal-scale,
.scroll-reveal-swing-left,
.scroll-reveal-swing-right,
.scroll-reveal-flip {
  will-change: opacity, transform !important;
  transition-duration: 1.65s !important;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
  transition-property: opacity, transform, filter !important;
}

/* 1. Bottom-to-Top Rise (75px travel) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(75px);
}

/* 2. Slide from Left (85px travel) */
.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-85px);
}

/* 3. Slide from Right (85px travel) */
.scroll-reveal-right {
  opacity: 0;
  transform: translateX(85px);
}

/* 4. Drop from Top (-65px travel) */
.scroll-reveal-drop {
  opacity: 0;
  transform: translateY(-65px);
}

/* 5. 3D Scale & Zoom (Starts at 80% scale + 50px offset) */
.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.80) translateY(50px);
}

/* 6. Angular Swing from Left (Starts at -75px with -4deg tilt) */
.scroll-reveal-swing-left {
  opacity: 0;
  transform: translateX(-75px) translateY(45px) rotate(-4deg);
}

/* 7. Angular Swing from Right (Starts at 75px with 4deg tilt) */
.scroll-reveal-swing-right {
  opacity: 0;
  transform: translateX(75px) translateY(45px) rotate(4deg);
}

/* 8. 3D Perspective Flip (Unfolds like an executive ledger) */
.scroll-reveal-flip {
  opacity: 0;
  transform: perspective(1200px) rotateX(20deg) translateY(75px) scale(0.90);
  transform-origin: top center;
}

/* REVEALED (ACTIVE) STATES - Reset completely to 0 & 1 */
.scroll-reveal.revealed,
.scroll-reveal-left.revealed,
.scroll-reveal-right.revealed,
.scroll-reveal-drop.revealed,
.scroll-reveal-scale.revealed,
.scroll-reveal-swing-left.revealed,
.scroll-reveal-swing-right.revealed,
.scroll-reveal-flip.revealed {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) rotate(0deg) perspective(1200px) rotateX(0deg) !important;
}

/* Stagger delays across 0.15s to 1.30s */
.stagger-1 { transition-delay: 0.15s !important; }
.stagger-2 { transition-delay: 0.38s !important; }
.stagger-3 { transition-delay: 0.60s !important; }
.stagger-4 { transition-delay: 0.82s !important; }
.stagger-5 { transition-delay: 1.05s !important; }
.stagger-6 { transition-delay: 1.28s !important; }

@keyframes archPulse {
  0%, 100% {
    opacity: 0.65;
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.2);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 14px rgba(56, 189, 248, 0.8);
  }
}

.arch-pulse-line {
  animation: archPulse 2.8s ease-in-out infinite;
}

@keyframes ctaSweep {
  0% { transform: translateX(-150%) skewX(-20deg); }
  25%, 100% { transform: translateX(250%) skewX(-20deg); }
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: ctaSweep 4.5s infinite;
  pointer-events: none;
}

#back-to-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0A192F;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

#back-to-top-btn.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top-btn:hover {
  background: #0C2347;
  border-color: #38BDF8;
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.35);
  transform: translateY(-3px);
  color: #FFFFFF;
}
