:root {
  /* Enhanced Color Palette */
  --primary: #1e3a8a;
  --primary-light: #3b5bdb;
  --primary-dark: #0f1f47;
  --primary-2: #2b54c8;
  --accent: #dc2626;
  --accent-light: #ff6b6b;
  --accent-2: #ff5a5a;
  --success: #0f766e;
  --success-light: #14b8a6;
  --warning: #f59e0b;
  --info: #3b82f6;
  
  /* Neutral Colors - Better Contrast */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  --bg: #f3f7ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --text-secondary: #52607a;
  --muted: #52607a;
  --line: #dce5ff;
  
  /* Shadow System - Enhanced */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 42px rgba(30, 58, 138, 0.16);
  --shadow-lg: 0 28px 70px rgba(30, 58, 138, 0.2);
  --shadow-xl: 0 35px 80px rgba(30, 58, 138, 0.25);
  --shadow-hover: 0 20px 50px rgba(30, 58, 138, 0.22);
  
  /* Border Radius - Consistent */
  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 32px;
  --radius-full: 999px;
  
  /* Spacing System */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  
  /* Typography */
  --font-display: "Sohne", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Menlo", "Monaco", monospace;
  
  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.65;
  background: radial-gradient(circle at top left, rgba(30, 58, 138, 0.16), transparent 28%),
              radial-gradient(circle at top right, rgba(220, 38, 38, 0.14), transparent 24%),
              linear-gradient(180deg, #e9f0ff 0%, #eef3ff 100%);
}
body.dark-mode {
  --primary: #8dacff;
  --primary-2: #7d9aff;
  --accent: #ff6b6b;
  --accent-2: #ff8b8b;
  --white: #e4ecff;
  --bg: #0a1126;
  --surface: rgba(16, 26, 52, 0.86);
  --surface-strong: #111d3e;
  --text: #deebff;
  --muted: #9ab0db;
  --line: #304278;
  --shadow-sm: 0 8px 20px rgba(1, 8, 22, 0.56);
  --shadow-md: 0 16px 36px rgba(1, 8, 22, 0.56);
  --shadow-lg: 0 30px 66px rgba(1, 8, 22, 0.64);
  background:
    radial-gradient(circle at 8% 14%, rgba(93, 126, 225, 0.22), transparent 30%),
    radial-gradient(circle at 90% 4%, rgba(255, 90, 90, 0.16), transparent 25%),
    linear-gradient(180deg, #090f21 0%, #0d1835 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-title { margin: 0 0 10px; font-size: clamp(1.9rem, 2.8vw, 2.8rem); letter-spacing: -0.02em; color: var(--primary); }
.section-subtitle { margin: 0 0 30px; max-width: 780px; color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}
body.dark-mode .site-header { background: #f4f6fb; }
.site-header .inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 0 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(0,0,0,0.08);
}
.brand-logo {
  height: 46px;
  width: auto;
  display: block;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.nav-links a { padding: 12px 18px; border-radius: 999px; color: #1f3154; font-size: .95rem; font-weight: 600; transition: all .25s ease; }
.nav-links a:hover, .nav-links a.is-active { background: rgba(31,49,84,.08); color: #112146; transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(31,49,84,.06); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta .btn { min-width: 150px; }
.btn-secondary { color: #132f60; background: rgba(255,255,255,0.96); }
.btn-secondary:hover { background: #f4f7ff; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 90px;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(46, 69, 156, 0.95), transparent 30%),
              radial-gradient(circle at top right, rgba(220, 38, 38, 0.35), transparent 20%),
              linear-gradient(135deg, #07235b 0%, #173f8b 45%, #1f5abc 100%);
}
.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  filter: blur(28px);
}
.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: -60px;
  bottom: -90px;
  border-radius: 50%;
  background: rgba(255, 90, 90, 0.18);
  filter: blur(24px);
}
.hero h1 { margin: 0 0 16px; font-size: clamp(2.6rem, 4.8vw, 4.5rem); line-height: 1.02; letter-spacing: -.045em; max-width: 860px; text-shadow: 0 25px 80px rgba(0,0,0,.18); }
.hero p { margin: 0 0 34px; max-width: 720px; color: rgba(241,247,255,.88); font-size: 1.05rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-badge { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.94); font-size: .85rem; letter-spacing: .01em; text-transform: uppercase; font-weight: 700; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}
.card h3 { margin: 0 0 10px; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.card h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--accent)); box-shadow: 0 0 0 4px rgba(43,84,200,.13); }
/* ==========================
   Responsive improvement block
   - Stronger header layout
   - Hero typography scaling
   - 2x2 stats grid on small screens
   - Touch-friendly buttons
   - Laptop-specific polish
   ========================== */

:root{
  --max-width: 1200px;
  --container-padding: 20px;
  --brand-height: 56px;
  --brand-height-lg: 72px;
  --radius: 14px;
  --soft-shadow: 0 12px 30px rgba(15,23,42,0.06);
  --accent: linear-gradient(90deg,#ff6b6b,#ff8a65);
}

/* Global container centering */
.container, .inner {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Header: desktop first then mobile adjustments */
.site-header {
  background: transparent;
  position: relative;
  z-index: 60;
}
.site-header .inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 18px 0;
}
.brand { display:flex; align-items:center; gap:12px; }
.brand .brand-logo { height: var(--brand-height); width: auto; display:block; }
.main-navigation { display:flex; align-items:center; gap:18px; }
.nav-links { display:flex; gap:16px; align-items:center; }
.nav-cta { display:flex; gap:12px; align-items:center; }

/* Hero typography scaling */
.hero h1 { font-size: clamp(28px, 5vw, 56px); line-height:1.02; margin:0 0 18px 0; }
.hero p { font-size: clamp(14px, 2.2vw, 18px); max-width: 70ch; }

/* Buttons touch-friendly */
.btn { padding: 12px 22px; border-radius: 999px; font-weight:600; }
.btn.btn-primary { box-shadow: 0 8px 24px rgba(255,107,107,0.18); }

/* Stats/cards general */
.stats { display:grid; grid-template-columns: repeat(4,1fr); gap:20px; align-items:stretch; }
.stats .card { border-radius: var(--radius); padding:18px; background: linear-gradient(180deg, #ffffff, #f6f9ff); box-shadow: var(--soft-shadow); }
.stats .card .value { font-size: 28px; font-weight:800; color:#17325a; }

/* Cards inside sections */
article.card { border-radius: var(--radius); padding:20px; box-shadow:var(--soft-shadow); background: linear-gradient(180deg,#fff,#fbfdff); }

/* Laptop viewport polish (>= 1024px) */
@media (min-width:1024px){
  .container { padding-left: 32px; padding-right:32px; }
  .hero { padding-top: 48px; padding-bottom:48px; }
  .brand .brand-logo { height: var(--brand-height-lg); }
  .stats { grid-template-columns: repeat(4,1fr); }
  .site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  }
  .site-header .inner {
    padding: 18px 0;
    gap: 20px;
  }
  .nav-links {
    display: flex;
    justify-content: center;
    gap: 14px;
  }
  .nav-links a {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  .nav-cta .btn {
    min-width: 140px;
  }
  .menu-toggle {
    display: none;
  }
}

/* Tablet and Mobile: stack and simplify */
@media (max-width: 1023px){
  .main-navigation { gap:12px; }
  .nav-links { display:none; }
  .menu-toggle { display:inline-flex; }
  .site-header .inner { position: relative; }
  .nav-links.show {
    display:flex;
    flex-direction:column;
    align-items: stretch;
    gap: 10px;
    position: absolute;
    top: 100%;
    right: 16px;
    width: calc(100% - 32px);
    max-width: 420px;
    background: rgba(255,255,255,0.96);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--soft-shadow);
  }
}

@media (max-width: 767px){
  /* Header: logo left, hamburger right */
  .site-header .inner { padding: 14px 0; }
  .brand { margin-right:auto; }
  .brand .brand-logo { height: 56px !important; }
  .menu-toggle { order: 2; margin-left:auto; }
  .main-navigation { position: absolute; top: 86px; right: 18px; width: calc(100% - 36px); max-width: 420px; }
  .nav-links.show { display:block; background:#fff; border-radius: var(--radius); box-shadow: var(--soft-shadow); padding:18px; }

  /* Stats to 2x2 grid */
  .stats { grid-template-columns: repeat(2,1fr) !important; gap:14px !important; }
  .stats .card { padding:18px; }

  /* Increase tappable areas for buttons */
  .btn { padding:14px 20px; width: auto; display:inline-block; }

  /* Hero spacing */
  .hero { padding: 36px 0 28px 0; }
  .hero h1 { text-align:left; }
  .hero .actions { display:flex; flex-direction:column; gap:12px; align-items:flex-start; }
}

/* Force important fallbacks for stubborn styles */
@media (max-width: 767px){
  .grid.grid-4.stats { display:grid !important; grid-template-columns: repeat(2,1fr) !important; }
  .site-header .inner { justify-content: space-between !important; }
}

/* small touch polish for fixed WA button */
.whatsapp-float { right:14px !important; bottom:14px !important; }

.card p { margin: 0 0 8px; color: #2e3d5f; }
body.dark-mode .card p { color: #c8d8ff; }

.icon-tile {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 12px;
  background: linear-gradient(135deg,var(--primary),var(--accent));
  box-shadow: var(--shadow-sm);
}

.stats { margin-top: 30px; }
.stat-number { font-size: 2.1rem; font-weight: 900; color: var(--primary); letter-spacing: -.01em; }

.btn { border: none; border-radius: 999px; padding: 14px 26px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; text-decoration: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(15,23,42,0.15); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #ff4156 0%, #ff7154 100%); box-shadow: 0 16px 38px rgba(255,65,86,0.22); }
.btn-secondary { color: #1d2f5d; background: rgba(255,255,255,0.95); box-shadow: 0 12px 30px rgba(15,23,42,0.08); }
.btn-secondary:hover { background: #ffffff; }

.button-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }

.card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.06);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 38px 78px rgba(15, 23, 42, 0.14);
  border-color: rgba(255,255,255,.95);
}
.card h3 { margin: 0 0 12px; color: var(--primary); display: flex; align-items: center; gap: 12px; }
.card h3::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 0 0 6px rgba(43,84,200,.08); }
.card p { margin: 0 0 10px; color: #30425e; }

.testimonial { padding: 26px 28px; background: rgba(255,255,255,.92); border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.72); box-shadow: 0 24px 58px rgba(15,23,42,.06); transition: transform .25s ease, box-shadow .25s ease; }
.testimonial:hover { transform: translateY(-3px); box-shadow: 0 28px 70px rgba(15,23,42,.10); }
.testimonial + .testimonial { margin-top: 18px; }

.section { padding: 94px 0; }
.section-sm { padding: 72px 0; }

@media (max-width: 760px) {
  .button-row { flex-direction: column; }

  .site-header .inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
  }
  .brand {
    padding: 10px 14px;
  }
  .brand-logo {
    height: 52px;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    background: rgba(255,255,255,0.98);
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 16px 16px;
    border-radius: 14px;
    color: #0f2361;
    font-size: .95rem;
    transition: all .2s ease;
  }
  .nav-links a:hover,
  .nav-links a.is-active {
    background: rgba(31,49,84,.12);
    color: #0f2361;
    transform: translateX(2px);
  }
  .nav-cta {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 14px;
  }
  .nav-cta .btn {
    flex: 1 1 calc(50% - 12px);
    min-width: 140px;
    width: auto;
    padding: 14px 18px;
    font-size: .95rem;
  }
  .menu-toggle {
    display: inline-flex;
    position: relative;
    right: 0;
    top: 0;
    background: #102146;
    color: #ffffff;
    border: none;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15,23,42,0.18);
    cursor: pointer;
    transition: all .2s ease;
  }
  .menu-toggle:hover {
    background: #1a3a6a;
    transform: scale(1.05);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card {
    padding: 22px;
    border-radius: 16px;
  }
  .hero { padding: 84px 0 64px; }
  
  /* Additional mobile improvements */
  .section { padding: 60px 0; }
  .section-sm { padding: 40px 0; }
  .btn { padding: 16px 24px; font-size: .95rem; min-height: 48px; }
  .testimonial { padding: 18px; margin-top: 12px; }
  .cta-banner { padding: 24px; flex-direction: column; text-align: center; }
  .cta-banner .btn { width: 100%; }
}

/* Ultra-mobile optimization (< 480px) */
@media (max-width: 480px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: clamp(24px, 6vw, 36px); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .btn { padding: 14px 20px; width: 100%; min-height: 48px; }
  .card { padding: 18px; border-radius: 14px; }
  .section { padding: 40px 0; }
  .footer-grid { gap: 24px; }
  .site-footer .upper { padding: 36px 0 24px; }
  .site-header .inner { padding: 10px 12px; }
  .brand .brand-logo { height: 48px; }
  .hero .actions { flex-direction: column; width: 100%; }
  .hero .actions .btn { width: 100%; }
}

/* Mobile touch improvements (< 600px) */
@media (max-width: 600px) {
  /* Increase touch target sizes */
  .btn, a { min-height: 44px; display: inline-flex; align-items: center; }
  .nav-links a, .footer-links a { min-height: 40px; }
  
  /* Better spacing for mobile cards */
  .card { margin-bottom: 14px; }
  .card:last-child { margin-bottom: 0; }
  
  /* Improved form inputs */
  input, textarea, select { 
    font-size: 16px; /* Prevents zoom on focus */
    padding: 14px 12px; 
    min-height: 44px;
  }
  
  /* Better CTA button spacing */
  .button-row { gap: 12px; margin-top: 24px; }
  .button-row .btn { flex: 1 1 100%; min-width: auto; }
  
  /* Testimonials on mobile */
  .testimonial { padding: 18px; margin-top: 14px; }
  
  /* Hero badge adjustments */
  .badge-row { flex-direction: column; }
  .hero-badge { width: 100%; text-align: center; }
}

/* Medium tablet optimization (< 900px) */
@media (max-width: 900px) {
  .container { max-width: 100%; padding-left: 24px; padding-right: 24px; }
  .section { padding: 70px 0; }
  
  /* Better grid wrapping */
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  
  /* Wider buttons on tablet */
  .btn { padding: 14px 24px; min-width: 140px; }
}

/* Admin layout mobile */
@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { 
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform .3s ease;
    border-right: none;
  }
  .sidebar.show { transform: translateX(0); }
  .admin-main { padding: 20px; }
}

/* Better typography scaling */
@media (max-width: 600px) {
  .section-title { font-size: clamp(24px, 5vw, 36px); }
  .section-subtitle { font-size: 15px; }
  h1, h2, h3 { letter-spacing: -.01em; }
}

/* Hover states improvement */
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); }
  .btn:hover { transform: translateY(-2px); }
  .social-icons a:hover { transform: translateY(-4px); }
}

/* Touch devices optimization */
@media (hover: none) {
  .card:active { transform: scale(0.98); }
  .btn:active { transform: scale(0.96); }
  .footer-links a:active { color: #ffffff; }
}

/* Landscape mobile optimization */
@media (max-height: 600px) {
  .hero { padding: 40px 0 30px; }
  .section { padding: 40px 0; }
  .site-header .inner { min-height: 60px; }
}

.chip { display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--accent); background: rgba(220,38,38,.12); }

.cta-banner {
  background: linear-gradient(118deg,#1e3a8a 2%,#2f55c9 56%,#5f75dc 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.2);
  padding: 34px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Modern homepage theme for index page */
.page-index .hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
  color: #fff;
  background: radial-gradient(circle at 13% 18%, rgba(130, 120, 255, 0.28), transparent 25%),
              radial-gradient(circle at 92% 12%, rgba(79, 152, 255, 0.18), transparent 18%),
              linear-gradient(135deg, #0b1849 0%, #1d3a7e 42%, #2e5bc8 100%);
}
.page-index .hero::before,
.page-index .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(34px);
  opacity: .84;
}
.page-index .hero::before {
  width: 520px;
  height: 520px;
  top: -210px;
  left: -140px;
  background: rgba(255,255,255,0.12);
}
.page-index .hero::after {
  width: 320px;
  height: 320px;
  right: -110px;
  bottom: -110px;
  background: rgba(255,93,97,0.18);
}
.page-index .hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(320px, 0.8fr);
  gap: 36px;
  align-items: center;
}
.page-index .hero-copy {
  position: relative;
  z-index: 1;
}
.page-index .hero-eyebrow {
  display: inline-flex;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.94);
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  font-weight: 700;
}
.page-index .hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.04;
  max-width: 12ch;
  text-shadow: 0 42px 80px rgba(18, 31, 69, 0.2);
}
.page-index .hero p {
  margin: 1.6rem 0 2rem;
  max-width: 60rem;
  color: rgba(255,255,255,0.86);
  font-size: 1.08rem;
}
.page-index .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-index .btn-primary {
  background: linear-gradient(135deg, #6c62ff, #3a8cff);
  color: #fff;
  box-shadow: 0 20px 50px rgba(61, 95, 255, 0.24);
}
.page-index .btn-secondary {
  color: #1c2c58;
  background: rgba(255,255,255,0.96);
}
.page-index .hero-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 2rem;
}
.page-index .hero-pillars span {
  display: inline-flex;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}
.page-index .hero-panel {
  position: relative;
  z-index: 1;
}
.page-index .hero-panel-card {
  padding: 32px;
  border-radius: 28px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 30px 70px rgba(6, 20, 70, 0.18);
  backdrop-filter: blur(20px);
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.page-index .hero-panel-card.appear {
  opacity: 1;
  transform: translateY(0);
}
.page-index .panel-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(220, 240, 255, 0.88);
}
.page-index .hero-panel-card h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 2.2vw, 2.2rem);
  line-height: 1.16;
  color: #fff;
}
.page-index .hero-panel-card p {
  margin: 0 0 1.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
}
.page-index .panel-stats {
  display: grid;
  gap: 1rem;
}
.page-index .panel-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}
.page-index .panel-stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}
.page-index .panel-stat span {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
}
.page-index .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.page-index .stats-grid .card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 24px 40px rgba(12, 33, 75, 0.12);
}
.page-index .stats-grid .card p {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.78);
  font-size: 0.96rem;
}
.page-index .stats-grid .stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}
.page-index .section-title {
  color: #17284f;
}
.page-index .section-subtitle {
  color: #4f6b96;
}
.page-index .card {
  background: #fff;
  border: none;
  color: #1f2937;
  box-shadow: 0 24px 40px rgba(45, 74, 131, 0.08);
}
.page-index .icon-tile {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #5f79ff, #7d5bfd);
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
  box-shadow: 0 18px 40px rgba(95, 121, 255, 0.18);
}
.page-index .chip {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: #eef4ff;
  color: #223a79;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.page-index .testimonial {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.page-index .testimonial.active {
  opacity: 1;
  transform: none;
}
.page-index .cta-banner {
  background: linear-gradient(135deg, #5164ff, #9d4eff);
  border-radius: 28px;
  padding: 36px 36px;
  color: #fff;
}
.page-index .cta-banner p {
  color: rgba(255,255,255,0.86);
}
.page-index .cta-banner .btn-secondary {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.page-index .reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.page-index .reveal.visible {
  opacity: 1;
  transform: none;
}
.page-index .hero-copy > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.page-index .hero-copy > *.appear,
.page-index .hero-panel-card.appear {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 980px) {
  .page-index .hero-grid {
    grid-template-columns: 1fr;
  }
  .page-index .hero-pillars {
    grid-template-columns: 1fr;
  }
  .page-index .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .page-index .hero {
    padding: 70px 0 40px;
  }
  .page-index .hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.6rem);
  }
  .page-index .hero-panel-card {
    padding: 26px;
  }
  .page-index .stats-grid {
    grid-template-columns: 1fr;
  }
}
textarea { min-height: 130px; resize: vertical; }

.site-footer {
  margin-top: 80px;
  color: #dbe8ff;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, #0f1f47 0%, #1a2e5a 40%, #25356e 100%);
  overflow: hidden;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46, 86, 200, 0.15), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
}
.site-footer::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.08), transparent 70%);
  border-radius: 50%;
  filter: blur(35px);
  z-index: 0;
}
.site-footer > * { position: relative; z-index: 1; }
.site-footer .upper { padding: 80px 0 50px; }
.site-footer .lower { border-top: 1px solid rgba(255,255,255,0.1); padding: 28px 0; font-size: .93rem; color: rgba(255,255,255,0.7); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.6fr 1.1fr 1.1fr 1.2fr; }
.footer-title { margin: 0 0 18px; color: #ffffff; font-size: 1.05rem; letter-spacing: .02em; font-weight: 700; }
.footer-links { display: grid; gap: 13px; }
.footer-links a { color: rgba(255,255,255,0.78); font-size: .95rem; transition: all .3s ease; display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: #ffffff; transform: translateX(4px); }
.social-icons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.social-icons a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(46, 86, 200, 0.8), rgba(220, 38, 38, 0.7));
  border: 1px solid rgba(255,255,255,.15);
  transition: all .3s ease;
  text-decoration: none;
}
.social-icons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(46, 86, 200, 0.25);
  background: linear-gradient(135deg, #2e56c8, #dc2626);
  border-color: rgba(255,255,255,.3);
}

.whatsapp-float {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 99999 !important;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none !important;
}
.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.6);
  color: #fff;
}
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    right: 15px !important;
    bottom: 15px !important;
  }
  .whatsapp-float svg { width: 28px; height: 28px; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .upper { padding: 48px 0 32px; }
  .site-footer .lower { flex-direction: column; text-align: center; padding: 20px 0; }
  .footer-title { margin: 0 0 14px; font-size: .98rem; }
  .footer-links { gap: 10px; }
  .footer-links a { font-size: .92rem; }
  .social-icons { justify-content: flex-start; margin-top: 12px; }
  .social-icons a { width: 40px; height: 40px; font-size: .8rem; }
}

/* Unique hero panels for inner pages */
body.page-about .page-hero,
body.page-services .page-hero,
body.page-products .page-hero,
body.page-portfolio .page-hero,
body.page-contact .page-hero,
body.page-blog .page-hero {
  position: relative;
  overflow: hidden;
  padding: 46px;
  border-radius: var(--radius-lg);
  color: #edf3ff;
  box-shadow: var(--shadow-lg);
}
body.page-about .page-hero { background: linear-gradient(130deg,#1e3a8a,#4366d8 58%,#6f7ee0); }
body.page-services .page-hero { background: linear-gradient(130deg,#1e3a8a,#3460cf 55%,#0f7a99); }
body.page-products .page-hero { background: linear-gradient(130deg,#1f4ba1,#3b6ce4 56%,#dc2626); }
body.page-portfolio .page-hero { background: linear-gradient(130deg,#243b8f,#355fd4 58%,#9752d9); }
body.page-contact .page-hero { background: linear-gradient(130deg,#1e3a8a,#2d5ccc 58%,#dc2626); }
body.page-blog .page-hero { background: linear-gradient(130deg,#1b3a8a,#2746a6 58%,#ef4444); }
.page-hero .section-title, .page-hero .section-subtitle { color: #edf3ff; }
.page-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -70px;
  bottom: -110px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,255,255,.24), transparent 66%);
}

/* Admin */
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; background: linear-gradient(180deg,#edf2ff 0%, #f6f9ff 100%); }
.sidebar {
  padding: 22px 16px;
  color: #e8efff;
  border-right: 1px solid rgba(148,163,184,.2);
  background:
    radial-gradient(circle at 22% 0%, rgba(98,128,233,.34), transparent 34%),
    linear-gradient(172deg,#101b45 0%,#0f172a 100%);
}
.sidebar h3 { margin: 0 0 14px; color: #f4f8ff; }
.sidebar a { display: block; margin-bottom: 6px; padding: 9px 10px; border-radius: 10px; color: #dbe8ff; }
.sidebar a:hover, .sidebar a.is-active { background: rgba(200,219,255,.16); }
.admin-main { padding: 28px; }
.admin-topbar { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.metric { font-size: 2rem; font-weight: 900; color: var(--primary); }
.admin-chart-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chart-card { min-height: 300px; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e7edff; }
th { background: #f7f9ff; color: #34446a; }
small { color: #5b6d92; }

.reveal { opacity: 0; transform: translateY(15px); transition: transform .5s ease, opacity .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 70; }
  .admin-main { padding: 20px; }
  .admin-chart-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 54px 0; }
  .hero { padding: 90px 0 72px; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 24px !important; }

  .site-header .inner { flex-direction: column; align-items: stretch; padding: 14px 18px; }
  .brand { justify-content: center; width: 100%; }
  .brand-logo { height: 36px; }
  .nav-links { width: 100%; flex-direction: column; gap: 10px; margin-top: 10px; background: rgba(255,255,255,0.08); padding: 12px; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); backdrop-filter: blur(12px); }
  .nav-links a { width: 100%; font-size: .92rem; padding: 14px 16px; color: #fff; }
  .nav-links a:hover, .nav-links a.is-active { background: rgba(255,255,255,0.16); }
  .nav-cta { width: 100%; flex-direction: column; }
  .nav-cta .btn { width: 100%; }
  .menu-toggle { display: inline-flex; position: absolute; right: 18px; top: 22px; background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.18); padding: 10px 14px; border-radius: 14px; box-shadow: 0 14px 32px rgba(0,0,0,0.18); }
}

/* Admin UI Upgrades */
.sidebar-brand { padding: 20px; font-size: 1.2rem; font-weight: 900; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 10px; }
.sidebar-brand span { color: var(--accent); }
.sidebar-nav a i { margin-right: 12px; width: 20px; text-align: center; opacity: 0.8; }
.nav-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 15px 10px; }

.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.metric-card { display: flex; align-items: center; gap: 15px; padding: 20px; }
.metric-icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; color: #fff; }
.metric-icon.blue { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.metric-icon.red { background: linear-gradient(135deg, #ef4444, #991b1b); }
.metric-icon.green { background: linear-gradient(135deg, #10b981, #065f46); }
.metric-icon.purple { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.metric-info h3 { margin: 0; font-size: 0.9rem; color: var(--muted); }
.metric-info h3::before { display: none; }

.quick-actions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.action-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 15px; border-radius: 12px; background: rgba(30,58,138,0.05); transition: all 0.2s; text-align: center; }
.action-item:hover { background: rgba(30,58,138,0.1); transform: translateY(-3px); }
.action-item i { font-size: 1.2rem; color: var(--primary); }
.action-item span { font-size: 0.85rem; font-weight: 600; color: var(--text); }

.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.admin-table th { background: transparent; padding: 15px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border-bottom: 2px solid var(--line); }
.admin-table td { padding: 15px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.admin-table tr:last-child td { border-bottom: none; }

.badge { padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-open { background: rgba(59,130,246,0.1); color: #3b82f6; }
.badge-in_progress { background: rgba(245,158,11,0.1); color: #f59e0b; }
.badge-closed { background: rgba(16,185,129,0.1); color: #10b981; }

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.small-link { font-size: 0.85rem; color: var(--primary); font-weight: 600; }


/* ============================================================
   MOBILE RESPONSIVENESS OVERHAUL
   ============================================================ */

@media (max-width: 768px) {
  /* 1. Public Header & Navigation */
  .site-header {
    padding: 0 14px;
  }
  .site-header .inner {
    padding: 12px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    position: relative;
  }
  .brand { font-size: 1rem; }
  .nav-links {
    display: none; /* Hidden by default on mobile */
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    background: var(--surface-strong);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--text);
    background: rgba(255,255,255,.92);
    transition: background .2s ease, transform .2s ease;
  }
  .nav-links a:hover,
  .nav-links a.is-active {
    background: rgba(43, 84, 200, .12);
    color: var(--primary);
    transform: translateX(2px);
  }
  .nav-cta {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: stretch;
  }
  .nav-cta .btn {
    width: 100%;
    min-width: 0;
  }

  /* Hamburger Menu Button */
  .menu-toggle {
    display: inline-flex;
    position: absolute;
    right: 16px;
    top: 22px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
  }

  /* Footer improvements on mobile */
  .site-footer .upper { padding: 42px 0 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 10px; }
  .footer-links a { display: inline-block; }
  .social-icons { justify-content: flex-start; }

  /* 2. Admin Sidebar as Drawer */
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: -270px;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 10px 0 30px rgba(0,0,0,0.2);
  }
  .sidebar.show {
    left: 0;
  }
  .admin-main {
    padding: 15px;
  }
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  /* Admin Sidebar Toggle */
  .sidebar-toggle {
    display: inline-flex;
    margin-bottom: 15px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
  }

  /* 3. Tables & Grids */
  .admin-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
  }
  .metric-card {
    padding: 15px;
  }

  /* 4. Footer */
  .site-footer .upper { padding: 45px 0 25px; }
  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 35px;
  }
  .footer-title {
    font-size: 1.15rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
  }
  .footer-title::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
  }
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .footer-links a {
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: 100%;
    max-width: 250px;
    transition: background 0.2s;
  }
  .footer-links a:hover { background: rgba(255, 255, 255, 0.1); }
  .social-icons {
    justify-content: center;
    margin-top: 18px;
    gap: 15px;
  }
  .social-icons a {
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
    border-radius: 12px;
  }
}

/* Base adjustment for mobile toggle (hidden on desktop) */
.menu-toggle, .sidebar-toggle { display: none; }
@media (max-width: 768px) {
  .menu-toggle, .sidebar-toggle { display: inline-flex; }
}

/* Mobile homepage overrides: ensure header logo left and stats show 2x2 */
@media (max-width: 760px) {
  /* Force header row layout and left-aligned logo */
  .site-header .inner {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
  }
  .brand {
    padding: 8px 12px !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 30px rgba(15,23,42,0.06) !important;
    margin-right: 12px;
    width: auto !important;
    justify-content: flex-start !important;
  }
  .brand-logo { height: 56px !important; }

  /* Keep hamburger on the right and hide expanded nav by default */
  .menu-toggle {
    display: inline-flex !important;
    position: relative !important;
    right: 0 !important;
    top: 0 !important;
    background: #102146 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 28px rgba(15,23,42,0.14) !important;
  }
  .nav-links { display: none !important; }
  .nav-links.show { display: flex !important; }

  /* Keep header CTAs compact or hidden in header to avoid large stacks */
  .nav-cta { display: none !important; }

  /* Stats grid 2x2 */
  .stats { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .stats .card { padding: 18px !important; border-radius: 14px !important; }
  .stat-number { font-size: 1.9rem !important; }

  /* Ensure other content stacks nicely */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .grid.grid-3 .card, .grid.grid-2 .card { margin-bottom: 12px; }
}

