/* ============================================================
   EVERGROW TECHNOLOGIES — Main Stylesheet
   Brand: Primary #0D6EFD | Dark Blue #0A2A6B | Light Blue #5DA9FF
          Green #5BC236 | Light Green #9AE66E | BG #F8FAFC
   ------------------------------------------------------------
   Sections: 1. Tokens  2. Base  3. Preloader  4. Navbar
             5. Hero  6. Buttons  7. Sections  8. Cards
             9. Portfolio  10. Testimonials  11. Blog  12. FAQ
             13. Forms  14. Footer  15. Floating widgets
             16. Extras  17. Utilities  18. Responsive
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  --brand: #0D6EFD;
  --brand-dark: #0A2A6B;
  --brand-light: #5DA9FF;
  --green: #5BC236;
  --green-light: #9AE66E;
  --white: #FFFFFF;
  --bg: #F8FAFC;
  --text: #1E293B;
  --border: #E2E8F0;
  --muted: #64748B;

  --grad: linear-gradient(120deg, #0A2A6B 0%, #0D6EFD 55%, #5BC236 130%);
  --grad-soft: linear-gradient(120deg, #0D6EFD, #5DA9FF);
  --grad-green: linear-gradient(120deg, #5BC236, #9AE66E);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(10, 42, 107, .10);
  --shadow-lg: 0 24px 70px rgba(10, 42, 107, .16);
  --shadow-brand: 0 12px 34px rgba(13, 110, 253, .28);

  --glass: rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .55);
  --nav-h: 78px;
  --font: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', Arial, sans-serif;
  --transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

[data-theme="dark"] {
  --bg: #0B1224;
  --text: #E2E8F0;
  --border: #1E293B;
  --muted: #94A3B8;
  --white: #0F172A;
  --glass: rgba(15, 23, 42, .72);
  --glass-border: rgba(30, 41, 59, .6);
  --shadow: 0 10px 40px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .5);
}
[data-theme="dark"] .bg-soft, [data-theme="dark"] .section-alt { background: #0D1528 !important; }
[data-theme="dark"] .card-glass { background: rgba(15, 23, 42, .6); }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-dark); }
[data-theme="dark"] a:hover { color: var(--brand-light); }
h1, h2, h3, h4, h5, h6 { color: var(--brand-dark); font-weight: 800; line-height: 1.25; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 { color: #F1F5F9; }
::selection { background: var(--brand); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--brand), var(--brand-dark)); border-radius: 8px; }

.bg-soft { background: var(--bg); }
.section-alt { background: linear-gradient(180deg, var(--bg), rgba(13, 110, 253, .05)); }

/* ---------- 3. Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 18px;
  transition: opacity .5s ease, visibility .5s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.eg-loader { width: 58px; height: 58px; position: relative; }
.eg-loader span {
  position: absolute; inset: 0; border-radius: 14px;
  border: 3px solid transparent;
  border-top-color: var(--brand); border-right-color: var(--green);
  animation: egSpin 1s linear infinite;
}
.eg-loader i { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand); animation: egPulse 1.4s ease-in-out infinite; }
@keyframes egSpin { to { transform: rotate(360deg); } }
@keyframes egPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(.8); } }

/* ---------- 4. Navbar ---------- */
.eg-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  height: var(--nav-h);
  transition: var(--transition);
  background: transparent;
}
.eg-nav.scrolled, .eg-nav:not(.eg-nav-top) {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 6px 30px rgba(10, 42, 107, .07);
  height: 68px;
}
.eg-nav .navbar-brand img { height: 44px; transition: var(--transition); }
.eg-nav.scrolled .navbar-brand img { height: 38px; }
.navbar-nav .nav-link {
  color: var(--text); font-weight: 600; font-size: 15px;
  padding: .55rem 1rem !important; position: relative;
}
.navbar-nav .nav-link::after {
  content: ""; position: absolute; left: 1rem; right: 100%; bottom: .35rem;
  height: 2.5px; border-radius: 4px;
  background: var(--grad-soft); transition: right .3s ease;
}
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { right: 1rem; }
.navbar-nav .nav-link.active { color: var(--brand) !important; }

/* Dropdown / Mega menu */
.eg-nav .dropdown-menu {
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--glass); backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg); padding: .6rem;
  min-width: 240px;
}
.eg-nav .dropdown-item { border-radius: 9px; padding: .55rem .9rem; font-weight: 500; color: var(--text); display: flex; gap: .65rem; align-items: center; }
.eg-nav .dropdown-item i { width: 22px; color: var(--brand); text-align: center; }
.eg-nav .dropdown-item:hover { background: rgba(13, 110, 253, .08); color: var(--brand); transform: translateX(4px); }
/* Mega menu must only be visible while the dropdown is open (.show) —
   otherwise display:grid overrides Bootstrap's display:none and the
   menu permanently overlaps the page content. */
.eg-mega.show {
  width: 640px; max-width: 92vw;
  display: grid; grid-template-columns: 1fr 1fr; gap: .3rem;
  /* Never let the tall menu overflow short viewports */
  max-height: calc(100vh - var(--nav-h) - 24px); overflow-y: auto;
}
.eg-mega .mega-head { grid-column: 1 / -1; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--green); font-weight: 800; padding: .3rem .9rem; }

/* Navbar extras */
.eg-nav-actions { display: flex; align-items: center; gap: .6rem; }
.eg-icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--glass);
  color: var(--text); cursor: pointer; font-size: 15px;
  transition: var(--transition);
}
.eg-icon-btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* Dark toggle */
.eg-theme-toggle i.fa-moon { display: inline; }
.eg-theme-toggle i.fa-sun { display: none; }
[data-theme="dark"] .eg-theme-toggle i.fa-moon { display: none; }
[data-theme="dark"] .eg-theme-toggle i.fa-sun { display: inline; color: #fbbf24; }

/* Search overlay */
.eg-search-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10, 20, 45, .92); backdrop-filter: blur(14px);
  display: flex; align-items: flex-start; justify-content: center; padding: 16vh 20px 0;
  opacity: 0; visibility: hidden; transition: all .4s ease;
}
.eg-search-overlay.open { opacity: 1; visibility: visible; }
.eg-search-box { width: 100%; max-width: 720px; }
.eg-search-box input {
  width: 100%; border: none; outline: none;
  background: transparent; color: #fff;
  font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 700;
  border-bottom: 2px solid rgba(255, 255, 255, .25); padding: .8rem 0 .8rem 2.6rem;
}
.eg-search-box .fa-magnifying-glass { position: absolute; left: 0; top: 1.4rem; color: var(--brand-light); font-size: 1.6rem; }
.eg-search-close { position: absolute; top: 30px; right: 34px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); color: #fff; background: transparent; font-size: 18px; cursor: pointer; transition: var(--transition); }
.eg-search-close:hover { background: var(--brand); border-color: var(--brand); transform: rotate(90deg); }

/* Mobile menu */
@media (max-width: 991.98px) {
  .eg-nav .navbar-collapse {
    background: var(--glass); backdrop-filter: blur(24px);
    border-radius: 0 0 18px 18px; padding: 1rem;
    border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .eg-mega.show { grid-template-columns: 1fr; width: 100%; }
}

/* ---------- 5. Hero ---------- */
.eg-hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 80px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(13, 110, 253, .18), transparent 60%),
    radial-gradient(700px 460px at -10% 20%, rgba(91, 194, 54, .12), transparent 55%),
    linear-gradient(180deg, #EDF4FF 0%, var(--bg) 100%);
  overflow: hidden;
}
[data-theme="dark"] .eg-hero { background: radial-gradient(900px 500px at 85% -10%, rgba(13,110,253,.22), transparent 60%), radial-gradient(700px 460px at -10% 20%, rgba(91,194,54,.1), transparent 55%), linear-gradient(180deg, #0B1224, #0D1528); }

.eg-hero-bg { position: absolute; inset: 0; z-index: 0; }
#eg-particles { position: absolute; inset: 0; }
.eg-blob {
  position: absolute; border-radius: 50%; filter: blur(70px);
  opacity: .45; animation: egFloat 14s ease-in-out infinite alternate;
  z-index: 0; pointer-events: none;
}
.eg-blob-1 { width: 420px; height: 420px; background: #5DA9FF; top: -120px; right: -80px; }
.eg-blob-2 { width: 340px; height: 340px; background: #9AE66E; bottom: -100px; left: -60px; animation-delay: -4s; }
.eg-blob-3 { width: 220px; height: 220px; background: #0D6EFD; top: 40%; left: 42%; animation-delay: -8s; opacity: .25; }
@keyframes egFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
  100% { transform: translate(-24px, 30px) scale(.95); }
}
.eg-shape {
  position: absolute; z-index: 1; pointer-events: none; opacity: .7;
  animation: egSpinSlow 22s linear infinite;
}
.eg-shape svg { width: 100%; height: 100%; }
@keyframes egSpinSlow { to { transform: rotate(360deg); } }

.eg-hero-inner { position: relative; z-index: 2; }
.eg-hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  padding: .45rem 1.1rem; border-radius: 50px;
  font-size: 13.5px; font-weight: 700; color: var(--brand-dark);
  box-shadow: var(--shadow);
}
[data-theme="dark"] .eg-hero-badge { color: #E2E8F0; }
.eg-hero-badge i { color: var(--green); }
.eg-hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.1rem);
  font-weight: 800; letter-spacing: -1.5px; margin: 1.4rem 0 1.1rem;
}
.eg-hero h1 .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eg-typewriter {
  color: var(--brand); font-weight: 800;
  border-right: 3px solid var(--green); padding-right: 6px;
  min-height: 1.4em; white-space: nowrap;
}
.eg-hero p.lead { color: var(--muted); font-size: 1.12rem; max-width: 560px; }

/* Hero visual card */
.eg-hero-visual { position: relative; z-index: 2; }
.eg-hero-card {
  background: var(--glass); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: 24px;
  box-shadow: var(--shadow-lg); padding: 2rem; transform: rotate(1.5deg);
}
.eg-hero-card .row > div { transform: rotate(-1.5deg); }
.eg-stat-chip {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: .8rem;
}
.eg-stat-chip .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 18px; flex-shrink: 0; }
.eg-stat-chip h6 { margin: 0; font-size: .86rem; font-weight: 600; color: var(--muted); }
.eg-stat-chip .num { font-weight: 800; font-size: 1.15rem; color: var(--brand-dark); }
[data-theme="dark"] .eg-stat-chip .num { color: #F1F5F9; }

/* Hero trust strip */
.eg-trust { margin-top: 3.2rem; }
.eg-trust .avatar-stack { display: flex; }
.eg-trust .avatar-stack span {
  width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--bg);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px;
  margin-left: -12px; background: var(--grad);
}
.eg-trust .avatar-stack span:first-child { margin-left: 0; }
.eg-trust p { color: var(--muted); font-size: 14px; margin: .8rem 0 0; }
.eg-trust .eg-stars { color: #f6b100; font-size: 13px; }

/* ---------- 6. Buttons ---------- */
.btn { font-weight: 700; border-radius: 12px; padding: .8rem 1.7rem; transition: var(--transition); border: 0; }
.btn-lg { padding: .95rem 2.1rem; font-size: 1rem; }
.btn-brand { background: var(--grad-soft); color: #fff; box-shadow: var(--shadow-brand); }
.btn-brand:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 18px 40px rgba(13, 110, 253, .4); }
.btn-green { background: linear-gradient(120deg, var(--green), #7bd84f); color: #fff; box-shadow: 0 12px 34px rgba(91, 194, 54, .3); }
.btn-green:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 18px 40px rgba(91, 194, 54, .42); }
.btn-outline-brand { border: 2px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; transform: translateY(-3px); }
.btn-outline-light { border: 2px solid rgba(255, 255, 255, .5); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--brand-dark); transform: translateY(-3px); }
.btn-white { background: #fff; color: var(--brand-dark); box-shadow: var(--shadow); }
.btn-white:hover { transform: translateY(-3px); color: var(--brand); }
.btn-ghost { background: rgba(13, 110, 253, .1); color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; transform: translateY(-3px); }

/* ---------- 7. Sections ---------- */
.eg-section { padding: 96px 0; position: relative; }
.eg-section-sm { padding: 64px 0; }
.eg-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: 12.5px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
  color: var(--green); margin-bottom: 1rem;
}
.eg-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--green); border-radius: 4px; }
.eg-section-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.6px; margin-bottom: .9rem; }
.eg-section-sub { color: var(--muted); max-width: 640px; }
.text-center .eg-section-sub { margin-inline: auto; }

/* ---------- 8. Cards ---------- */
.card-glass {
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: var(--transition);
  height: 100%;
}
.card-glass:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.eg-card-icon {
  width: 58px; height: 58px; border-radius: 15px;
  display: grid; place-items: center; font-size: 23px; color: #fff;
  background: var(--grad-soft); box-shadow: var(--shadow-brand);
  transition: var(--transition);
}
.card-glass:hover .eg-card-icon { transform: rotate(-8deg) scale(1.1); }
.eg-icon-green { background: var(--grad-green); color: #0A2A6B; box-shadow: 0 10px 26px rgba(91, 194, 54, .35); }

.eg-service-card { padding: 1.9rem; position: relative; overflow: hidden; }
.eg-service-card::before {
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 110, 253, .14), transparent 70%);
  transition: var(--transition);
}
.eg-service-card:hover::before { transform: scale(1.6); }
.eg-service-card h5 { margin: 1.15rem 0 .6rem; font-size: 1.06rem; }
.eg-service-card p { color: var(--muted); font-size: .93rem; margin-bottom: 1rem; }
.eg-service-card .card-link { font-weight: 700; font-size: .9rem; color: var(--brand); display: inline-flex; align-items: center; gap: .4rem; }
.eg-service-card .card-link i { transition: var(--transition); }
.eg-service-card:hover .card-link i { transform: translateX(5px); }

.eg-industry-card { padding: 1.7rem 1.5rem; text-align: center; }
.eg-industry-card .eg-card-icon { margin: 0 auto 1rem; width: 54px; height: 54px; font-size: 20px; }
.eg-industry-card h6 { font-size: .98rem; margin-bottom: .4rem; }
.eg-industry-card p { color: var(--muted); font-size: .84rem; margin: 0; }

/* Why choose us */
.eg-why-item { display: flex; gap: 1rem; padding: 1.05rem 1.2rem; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow); transition: var(--transition); }
.eg-why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.eg-why-item .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(13, 110, 253, .1); color: var(--brand); font-size: 17px; flex-shrink: 0; }
.eg-why-item h6 { font-size: .98rem; margin-bottom: .15rem; }
.eg-why-item p { color: var(--muted); font-size: .86rem; margin: 0; }

/* Process timeline */
.eg-process { position: relative; }
.eg-process::before {
  content: ""; position: absolute; top: 40px; bottom: 40px; left: 50%;
  width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--brand), var(--green));
  opacity: .3;
}
.eg-process-item { position: relative; margin-bottom: 1.6rem; }
.eg-process-num {
  width: 64px; height: 64px; border-radius: 50%; margin-inline: auto;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
  color: #fff; background: var(--grad); box-shadow: var(--shadow-brand);
  border: 4px solid var(--bg); position: relative; z-index: 2;
}
[data-theme="dark"] .eg-process-num { border-color: #0B1224; }
.eg-process-card { margin-top: 1rem; text-align: center; padding: 1.4rem 1.2rem; }
.eg-process-card .ic { font-size: 22px; color: var(--brand); margin-bottom: .5rem; }
.eg-process-card h6 { margin-bottom: .35rem; }
.eg-process-card p { color: var(--muted); font-size: .88rem; margin: 0; }
@media (min-width: 768px) {
  .eg-process-item:nth-child(odd) .eg-process-card { text-align: right; }
  .eg-process-item:nth-child(even) .eg-process-card { text-align: left; }
  .eg-process-item:nth-child(odd) .col-md-6:last-child { order: 2; }
}

/* ---------- 9. Portfolio ---------- */
.eg-filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.4rem; }
.eg-filter-btn {
  border: 1px solid var(--border); background: var(--glass);
  color: var(--text); padding: .55rem 1.35rem; border-radius: 50px;
  font-weight: 600; font-size: .9rem; transition: var(--transition); cursor: pointer;
}
.eg-filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.eg-filter-btn.active { background: var(--grad-soft); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }

.eg-portfolio-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); display: block; }
.eg-portfolio-card img, .eg-portfolio-card .eg-ph { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform .6s ease; }
.eg-portfolio-card:hover img { transform: scale(1.08); }
.eg-portfolio-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(10, 42, 107, .05), rgba(10, 42, 107, .92));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
  opacity: 0; transition: all .4s ease;
}
.eg-portfolio-card:hover .eg-portfolio-overlay { opacity: 1; }
.eg-portfolio-overlay .cat { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-light); }
.eg-portfolio-overlay h5 { color: #fff; margin: .35rem 0; }
.eg-portfolio-overlay p { color: rgba(255, 255, 255, .85); font-size: .86rem; margin: 0; }
.eg-portfolio-overlay .eg-view { margin-top: .9rem; align-self: flex-start; }

/* Placeholder thumbnails (no image uploaded) */
.eg-ph {
  position: relative;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #0A2A6B, #0D6EFD 55%, #5BC236);
  color: rgba(255, 255, 255, .9); font-size: 34px;
}
.eg-ph::after { content: attr(data-label); position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.75); }

/* ---------- 10. Testimonials ---------- */
.eg-testimonial-card { padding: 2.2rem; position: relative; }
.eg-testimonial-card .quote {
  position: absolute; top: 1.4rem; right: 1.8rem; font-size: 3.4rem;
  color: rgba(13, 110, 253, .14); line-height: 1;
}
.eg-testimonial-card p { color: var(--text); font-style: italic; font-size: 1.02rem; }
.eg-testimonial-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px;
  background: var(--grad); box-shadow: var(--shadow-brand);
}
.eg-testimonial-card h6 { margin: 0; }
.eg-testimonial-card small { color: var(--muted); }
.swiper-pagination-bullet { background: var(--brand); opacity: .3; transition: var(--transition); }
.swiper-pagination-bullet-active { opacity: 1; width: 26px; border-radius: 6px; }
.swiper-button-next, .swiper-button-prev { color: var(--brand); width: 46px; height: 46px; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 15px; font-weight: 900; }

/* ---------- 11. Blog ---------- */
.eg-blog-card { overflow: hidden; }
.eg-blog-card img, .eg-blog-card .eg-ph { height: 220px; }
.eg-blog-card img { object-fit: cover; width: 100%; }
.eg-blog-card .eg-ph { font-size: 26px; }
.eg-blog-body { padding: 1.5rem; }
.eg-blog-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: .7rem; }
.eg-blog-meta i { color: var(--brand); margin-right: .3rem; }
.eg-blog-body h5 { font-size: 1.05rem; line-height: 1.4; margin-bottom: .6rem; }
.eg-blog-body h5 a { color: inherit; }
.eg-blog-body h5 a:hover { color: var(--brand); }
.eg-blog-body p { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.eg-tag { display: inline-block; background: rgba(13, 110, 253, .1); color: var(--brand); font-size: 12px; font-weight: 700; padding: .25rem .7rem; border-radius: 50px; margin: 0 .3rem .4rem 0; }

/* Blog single */
.eg-article { font-size: 1.04rem; }
.eg-article h2, .eg-article h3 { margin: 2rem 0 1rem; }
.eg-article h3 { font-size: 1.4rem; }
.eg-article p { margin-bottom: 1.2rem; }
.eg-article ul, .eg-article ol { margin-bottom: 1.2rem; padding-left: 1.4rem; }
.eg-article li { margin-bottom: .4rem; }
.eg-article blockquote { border-left: 4px solid var(--brand); background: rgba(13, 110, 253, .07); padding: 1rem 1.4rem; border-radius: 0 12px 12px 0; font-style: italic; margin: 1.6rem 0; }
.eg-article img { border-radius: 14px; margin: 1.4rem 0; }
.eg-sidebar-card { padding: 1.6rem; margin-bottom: 1.5rem; }
.eg-sidebar-card h6 { margin-bottom: 1rem; font-size: 1rem; }
.eg-sidebar-card .eg-tag { margin-bottom: .5rem; }

/* ---------- 12. FAQ ---------- */
.eg-accordion .accordion-item {
  border: 1px solid var(--border); border-radius: 14px !important; overflow: hidden;
  margin-bottom: .9rem; background: var(--glass);
  box-shadow: var(--shadow); transition: var(--transition);
}
.eg-accordion .accordion-item:has(.accordion-button:not(.collapsed)) { border-color: rgba(13, 110, 253, .35); box-shadow: var(--shadow-brand); }
.eg-accordion .accordion-button {
  background: transparent; color: var(--text); font-weight: 700; font-size: .98rem;
  padding: 1.15rem 1.4rem; box-shadow: none;
}
.eg-accordion .accordion-button:not(.collapsed) { color: var(--brand); background: rgba(13, 110, 253, .06); }
.eg-accordion .accordion-button::after { filter: hue-rotate(200deg); }
.eg-accordion .accordion-body { color: var(--muted); padding: 0 1.4rem 1.2rem; font-size: .95rem; }

/* ---------- 13. Forms ---------- */
.form-label { font-weight: 700; font-size: .88rem; color: var(--brand-dark); margin-bottom: .4rem; }
[data-theme="dark"] .form-label { color: #E2E8F0; }
.form-control, .form-select {
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: .78rem 1rem; background: var(--glass); color: var(--text);
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px rgba(13, 110, 253, .12);
  background: var(--glass);
}
.form-control::placeholder { color: var(--muted); opacity: .7; }
textarea.form-control { min-height: 130px; resize: vertical; }
.eg-form-card { padding: 2.2rem; position: relative; overflow: hidden; }
.eg-form-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--grad);
}
.eg-float-icon { color: var(--brand); }

/* ---------- 14. Footer ---------- */
.eg-footer {
  background: linear-gradient(160deg, #071537 0%, #0A2A6B 60%, #0B3C92 100%);
  color: #C7D4EC; padding: 76px 0 0; position: relative; overflow: hidden;
}
.eg-footer::before {
  content: ""; position: absolute; top: -140px; right: -140px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 169, 255, .16), transparent 65%);
}
.eg-footer h5 {
  color: #fff; font-size: 1.02rem; letter-spacing: .4px;
  margin-bottom: 1.2rem; position: relative; padding-bottom: .7rem;
}
.eg-footer h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 4px; background: var(--grad-green); }
.eg-footer a { color: #C7D4EC; }
.eg-footer a:hover { color: var(--green-light); padding-left: 4px; }
.eg-footer .eg-link { display: block; padding: .28rem 0; font-size: .93rem; }
.eg-footer p { font-size: .93rem; }
.eg-footer .eg-contact li { display: flex; gap: .8rem; margin-bottom: .85rem; font-size: .92rem; }
.eg-footer .eg-contact i { color: var(--green-light); margin-top: 5px; }
.eg-social a {
  width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  color: #fff; font-size: 15px; margin: 0 .35rem .5rem 0; transition: var(--transition);
}
.eg-social a:hover { background: var(--grad-soft); transform: translateY(-4px); color: #fff; }
.eg-newsletter-input {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  color: #fff; border-radius: 12px; padding: .75rem 1rem;
}
.eg-newsletter-input::placeholder { color: rgba(255, 255, 255, .5); }
.eg-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 56px; padding: 1.3rem 0;
  font-size: .86rem; color: rgba(255, 255, 255, .6);
}

/* ---------- 15. Floating widgets ---------- */
.eg-fab { position: fixed; z-index: 1050; display: grid; place-items: center; border-radius: 50%; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: var(--transition); border: 0; cursor: pointer; }
.eg-fab:hover { transform: scale(1.1); color: #fff; }
.eg-fab-wa { right: 24px; bottom: 96px; width: 56px; height: 56px; font-size: 26px; background: linear-gradient(135deg, #25D366, #128C7E); animation: egWiggle 2.4s ease-in-out infinite; }
.eg-fab-call { right: 24px; bottom: 162px; width: 52px; height: 52px; font-size: 21px; background: linear-gradient(135deg, #0D6EFD, #0A2A6B); }
.eg-fab-chat { right: 24px; bottom: 30px; width: 60px; height: 60px; font-size: 25px; background: var(--grad); }
.eg-fab-chat .eg-chat-dot { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
@keyframes egWiggle {
  0%, 100% { transform: rotate(0); }
  10% { transform: rotate(-12deg); }
  20% { transform: rotate(10deg); }
  30% { transform: rotate(-6deg); }
  40% { transform: rotate(0); }
}
.eg-backtop {
  left: 24px; bottom: 30px; width: 48px; height: 48px; font-size: 17px;
  background: var(--grad-soft); opacity: 0; visibility: hidden; transform: translateY(16px);
}
.eg-backtop.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* Chat panel */
.eg-chat-panel {
  position: fixed; right: 24px; bottom: 104px; z-index: 1050;
  width: 340px; max-width: calc(100vw - 32px);
  background: var(--glass); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.96);
  transition: var(--transition);
}
.eg-chat-panel.open { opacity: 1; visibility: visible; transform: none; }
.eg-chat-head { background: var(--grad); color: #fff; padding: 1rem 1.2rem; display: flex; align-items: center; gap: .8rem; }
.eg-chat-head .av { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.eg-chat-head h6 { color: #fff; margin: 0; font-size: .95rem; }
.eg-chat-head small { opacity: .85; }
.eg-chat-body { padding: 1.2rem; }
.eg-chat-bubble { background: rgba(13, 110, 253, .09); border-radius: 14px; padding: .8rem 1rem; font-size: .88rem; margin-bottom: 1rem; }
.eg-chat-body .btn { width: 100%; margin-bottom: .5rem; }

/* Cookie banner */
.eg-cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 1040;
  max-width: 480px; margin-inline: auto;
  background: var(--glass); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 1.2rem 1.4rem;
  display: flex; gap: 1rem; align-items: center;
  transform: translateY(140%); transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.eg-cookie.show { transform: translateY(0); }
.eg-cookie p { margin: 0; font-size: .85rem; color: var(--muted); flex: 1; }
.eg-cookie i { font-size: 26px; color: var(--brand); }

/* Newsletter popup */
.eg-popup {
  position: fixed; inset: 0; z-index: 2050; display: grid; place-items: center;
  background: rgba(7, 15, 35, .75); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: all .4s ease; padding: 20px;
}
.eg-popup.open { opacity: 1; visibility: visible; }
.eg-popup-card {
  width: 100%; max-width: 520px; border-radius: 22px; overflow: hidden;
  background: var(--glass); backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg);
  transform: translateY(30px) scale(.95); transition: var(--transition);
  position: relative;
}
.eg-popup.open .eg-popup-card { transform: none; }
.eg-popup-banner { background: var(--grad); padding: 2.2rem 2.2rem 1.6rem; text-align: center; color: #fff; position: relative; }
.eg-popup-banner .ic { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-size: 24px; }
.eg-popup-banner h4 { color: #fff; }
.eg-popup-banner p { opacity: .9; font-size: .92rem; margin: 0; }
.eg-popup-body { padding: 1.8rem 2.2rem 2.2rem; }
.eg-popup-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); color: #fff; background: transparent; cursor: pointer; z-index: 2; }
.eg-popup-close:hover { background: rgba(255,255,255,.2); }

/* ---------- 16. Extras ---------- */
/* Page hero / breadcrumb */
.eg-page-hero {
  position: relative; padding: calc(var(--nav-h) + 56px) 0 64px;
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(13, 110, 253, .2), transparent 60%),
    radial-gradient(500px 320px at 0% 100%, rgba(91, 194, 54, .14), transparent 55%),
    linear-gradient(180deg, #EDF4FF, var(--bg));
  overflow: hidden;
}
[data-theme="dark"] .eg-page-hero { background: radial-gradient(700px 400px at 90% 0%, rgba(13,110,253,.22), transparent 60%), radial-gradient(500px 320px at 0% 100%, rgba(91,194,54,.1), transparent 55%), linear-gradient(180deg, #0B1224, #0D1528); }
.eg-page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.8px; }
.eg-breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9rem; margin-top: .8rem; color: var(--muted); }
.eg-breadcrumb a { color: var(--muted); }
.eg-breadcrumb a:hover { color: var(--brand); }
.eg-breadcrumb .sep { color: var(--brand); opacity: .6; }

/* CTA band */
.eg-cta { border-radius: 26px; background: var(--grad); padding: 3.2rem; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.eg-cta::before { content: ""; position: absolute; top: -80px; right: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.eg-cta::after { content: ""; position: absolute; bottom: -90px; left: 30%; width: 200px; height: 200px; border-radius: 50%; background: rgba(154, 230, 110, .18); }
.eg-cta h2 { color: #fff; }
.eg-cta p { color: rgba(255, 255, 255, .88); max-width: 560px; }
.eg-cta .btn { position: relative; z-index: 2; }

/* Counters */
.eg-counter { font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--brand-dark); line-height: 1.1; }
[data-theme="dark"] .eg-counter { color: #F1F5F9; }
.eg-counter-wrap { text-align: center; padding: 1.6rem 1rem; }
.eg-counter-wrap .label { color: var(--muted); font-weight: 600; font-size: .92rem; }
.eg-counter-wrap .ic { font-size: 26px; color: var(--brand); margin-bottom: .6rem; }

/* Stars */
.eg-stars { color: #f6b100; }
.eg-stars .fa-regular { color: var(--border); }

/* 404 */
.eg-404 { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; position: relative; }
.eg-404-code { font-size: clamp(5rem, 18vw, 11rem); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -6px; }
.eg-404 .eg-float-icon { animation: egFloat 6s ease-in-out infinite; }

/* Maintenance */
.eg-maintenance { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(900px 500px at 80% -10%, rgba(13,110,253,.16), transparent 60%), radial-gradient(600px 400px at 0% 110%, rgba(91,194,54,.12), transparent 55%), var(--bg); }
.eg-maintenance .eg-gear { font-size: 5rem; color: var(--brand); animation: egSpinSlow 8s linear infinite; display: inline-block; }
.eg-maintenance .progress { height: 10px; max-width: 420px; margin: 1.4rem auto; border-radius: 20px; }
.eg-maintenance .progress-bar { background: var(--grad); }

/* Pagination */
.eg-pagination .page-link { border: 1px solid var(--border); color: var(--brand); margin: 0 .2rem; border-radius: 10px !important; background: var(--glass); font-weight: 600; }
.eg-pagination .page-item.active .page-link { background: var(--grad-soft); border-color: transparent; color: #fff; box-shadow: var(--shadow-brand); }

/* Case study blocks */
.eg-case-block { border-radius: 18px; padding: 1.8rem; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow); height: 100%; }
.eg-case-block .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 18px; margin-bottom: 1rem; }
.eg-case-block h5 { font-size: 1.02rem; }
.eg-case-block p { color: var(--muted); font-size: .94rem; margin: 0; }
.eg-case-results { background: linear-gradient(135deg, #0A2A6B, #0D6EFD); color: #fff; border: 0; }
.eg-case-results p { color: rgba(255, 255, 255, .85); }
.eg-case-results .ic { background: rgba(255, 255, 255, .15); }

/* Tables (frontend) */
.eg-table-wrap { overflow-x: auto; }
.table-eg { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.table-eg td, .table-eg th { padding: .9rem 1rem; background: var(--glass); }
.table-eg th { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 800; }
.table-eg td { border-bottom: 1px solid var(--glass-border); font-size: .93rem; }

/* Video / gallery */
.eg-lightbox img, .eg-lightbox .eg-ph { cursor: zoom-in; }
.eg-gallery-item { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); display: block; }
.eg-gallery-item:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); }
.eg-gallery-item img, .eg-gallery-item .eg-ph { height: 230px; width: 100%; object-fit: cover; }

/* Map */
.eg-map { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--glass-border); }
.eg-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Job cards */
.eg-job-card { padding: 1.7rem; }
.eg-job-chip { display: inline-flex; align-items: center; gap: .4rem; background: rgba(13, 110, 253, .09); color: var(--brand); font-size: .78rem; font-weight: 700; padding: .3rem .75rem; border-radius: 50px; margin: 0 .4rem .5rem 0; }

/* Soft badges */
.badge-soft-primary { background: rgba(13, 110, 253, .12); color: var(--brand); }
.badge-soft-success { background: rgba(91, 194, 54, .14); color: #3c8f22; }
.badge-soft-danger { background: rgba(220, 53, 69, .12); color: #c82333; }
.badge-soft-warning { background: rgba(255, 193, 7, .16); color: #b8860b; }
.badge-soft-secondary { background: rgba(100, 116, 139, .14); color: var(--muted); }

/* Alert */
.eg-alert { border-radius: 12px; border: 0; }

/* AOS fallback for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 17. Utilities ---------- */
.text-brand { color: var(--brand); }
.text-green { color: var(--green); }
.text-muted-2 { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mt--2 { margin-top: -2rem; }
.glass { background: var(--glass); backdrop-filter: blur(16px); border: 1px solid var(--glass-border); }
.shadow-brand { box-shadow: var(--shadow-brand); }
.rounded-16 { border-radius: var(--radius); }
.z-2 { position: relative; z-index: 2; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1199.98px) {
  .eg-mega.show { width: 560px; }
}
@media (max-width: 991.98px) {
  .eg-section { padding: 72px 0; }
  .eg-hero { text-align: center; }
  .eg-hero p.lead { margin-inline: auto; }
  .eg-process::before { left: 32px; transform: none; }
  .eg-process-item { text-align: left !important; padding-left: 84px; }
  .eg-process-num { margin: 0; position: absolute; left: 0; top: 0; }
}
@media (max-width: 575.98px) {
  .eg-section { padding: 56px 0; }
  .eg-cta { padding: 2.2rem 1.6rem; }
  .eg-hero-card { padding: 1.3rem; }
  .eg-fab-wa { right: 16px; }
  .eg-fab-call { right: 16px; }
  .eg-fab-chat { right: 16px; }
  .eg-backtop { left: 16px; }
}
