/* ByteSpark Infotech — navigation, popup, homepage upgrades */
:root {
  --bs-primary: #1791C8;
  --bs-primary-dark: #106f9c;
  --bs-dark: #101014;
  --bs-ink: #152239;
  --bs-muted: #718096;
  --bs-line: #e8edf4;
  --bs-soft: #f7f9fc;
}

/* ---- Sticky mega navbar ---- */
.bs-navbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--bs-line);
  /* backdrop-filter: blur(12px); */
  transition: box-shadow .25s ease;
}

.bs-mega {
  position: static;
}
.bs-mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: none;
  padding: 1.4rem 0 1.6rem;
  background: #fff;
  border-top: 1px solid var(--bs-line);
  border-bottom: 1px solid var(--bs-line);
  box-shadow: 0 24px 50px rgba(16,24,40,.1);
}
.bs-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.bs-mega-col h6 {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bs-primary);
  margin-bottom: .85rem;
  font-weight: 800;
}
.bs-mega-link {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .55rem .4rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}
/* ---- Contact popup ---- */
.bs-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 16, 32, .55);
}
.bs-popup-backdrop.is-open { display: flex; }
.bs-popup {
  width: min(920px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
}
.bs-popup-left {
  background: linear-gradient(160deg, #0b1428, #12385f);
  color: #fff;
  padding: 2rem;
}
.bs-popup-left img { height: 42px; filter: brightness(0) invert(1); margin-bottom: 1.25rem; }
.bs-popup-left h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: .75rem; }
.bs-popup-left p { color: #a9bbd2; font-size: .9rem; line-height: 1.7; }
.bs-popup-meta { margin-top: 1.5rem; display: grid; gap: .7rem; font-size: .86rem; }
.bs-popup-meta a { color: #d7e8ff; text-decoration: none; }
.bs-popup-right { padding: 2rem; position: relative; }
.bs-popup-close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  width: 36px;
  height: 36px;
  border: 1px solid var(--bs-line);
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}
.bs-popup-right h3 { font-size: 1.35rem; font-weight: 800; color: var(--bs-ink); }
.bs-popup-right > p { color: var(--bs-muted); font-size: .88rem; }
.bs-popup .form-control,
.bs-popup .form-select {
  border-radius: 10px;
  border-color: #dbe3ee;
  padding: .7rem .85rem;
}
.bs-popup .btn-submit {
  background: var(--bs-primary);
  border: 0;
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: .75rem 1.1rem;
  width: 100%;
}
.bs-popup .honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
body.bs-popup-open { overflow: hidden; }

@media (max-width: 767.98px) {
  .bs-popup { grid-template-columns: 1fr; }
  .bs-popup-left { padding: 1.35rem 1.25rem; }
  .bs-popup-right { padding: 1.35rem 1.25rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bs-navbar, .bs-mega-panel, .bs-popup-backdrop { transition: none !important; }
}

/* ---- Shared homepage section utilities ---- */
.bs-home-section { padding: 96px 0; }
.bs-home-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--bs-primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.bs-home-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--bs-primary);
  border-radius: 2px;
}
.bs-home-title {
  color: var(--bs-ink);
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.15;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  margin-bottom: .85rem;
}
.bs-home-title span { color: var(--bs-primary); }
.bs-home-lead {
  color: var(--bs-muted);
  font-size: .95rem;
  line-height: 1.8;
  max-width: 560px;
}
.bs-card-soft {
  height: 100%;
  background: #fff;
  border: 1px solid var(--bs-line);
  border-radius: 14px;
  padding: 1.4rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.bs-card-soft:hover {
  transform: translateY(-6px);
  border-color: rgba(23,145,200,.35);
  box-shadow: 0 18px 40px rgba(23,48,82,.08);
}
.bs-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f3f9ff, #e8f3ff);
  color: var(--bs-primary);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  border: 1px solid #dceeff;
}
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bs-card-soft { transition: none; }
  .bs-card-soft:hover { transform: none; }
}
/* INNER PAGE BANNER - REFERENCE WAVE CURVE */
.page-banner {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}

.page-banner::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 65px;
    z-index: 2;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 100' preserveAspectRatio='none'%3E%3Cpath d='M0 55 C220 30 420 22 650 30 C900 40 1120 38 1320 20 C1430 10 1520 5 1600 0 L1600 100 L0 100 Z' fill='white'/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%;
}

.page-banner > .container {
    position: relative;
    z-index: 3;
}

@media (max-width: 767.98px) {
    .page-banner::before {
        height: 38px;
    }
}
.page-banner::before,
.page-banner::after {
    outline: none !important;
    box-shadow: none !important;
}

/* GLOBAL INNER PAGE BANNER - CONSISTENT HEIGHT */
.page-banner {
    min-height: 534px !important;
    height: auto !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
}

.page-banner > .container {
    width: 100%;
}

@media (max-width: 767.98px) {
    .page-banner {
        min-height: 390px !important;
        height: auto !important;
    }
}

/* OUR TEAM BANNER - MATCH ABOUT US TYPOGRAPHY AND SPACING */
.team-banner {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 500px;
    padding: 115px 0 100px;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(ellipse at 78% 45%, rgba(0,126,211,.25), transparent 42%), linear-gradient(115deg, #061426 0%, #062a49 55%, #063957 100%);
}
.team-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle, rgba(0,174,255,.65) 1.5px, transparent 2px) left 75px top 90px / 22px 22px no-repeat, radial-gradient(circle, rgba(0,174,255,.65) 1.5px, transparent 2px) right 15px bottom 95px / 22px 22px no-repeat;
    opacity: .8;
}
.team-banner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 100px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 120' preserveAspectRatio='none'%3E%3Cpath d='M0 78 C260 5 460 55 720 65 C1030 85 1300 10 1600 5 L1600 120 L0 120 Z' fill='white'/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%;
}
.team-banner .container {
    position: relative;
    z-index: 2;
}
.team-banner-content {
    width: 100%;
    max-width: 850px;
    text-align: left;
}
.team-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    margin-bottom: 14px;
    border: 1px solid rgba(23,145,200,.4);
    border-radius: 50px;
    background: rgba(23,145,200,.15);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.team-banner-badge i {
    color: #20c5ff;
    font-size: 17px;
}
.team-banner-title {
    position: relative;
    display: inline-block;
    margin: 0 0 18px !important;
    color: #fff !important;
    font-size: clamp(3rem, 5vw, 4.25rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -2px !important;
}
.team-banner-title span {
    position: relative;
    display: inline-block;
    color: #12b9f4;
}
.team-banner-title span::after {
    content: "";
    position: absolute;
    width: 105%;
    height: 11px;
    left: 0;
    bottom: -7px;
    border-bottom: 4px solid #079eea;
    border-radius: 50%;
    transform: rotate(-8deg);
}
.team-banner-description {
    max-width: 530px;
    margin: 0 0 25px;
    color: #e5edf7;
    font-size: 18px;
    line-height: 1.5;
}
.team-banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}
.team-banner-btn, .team-banner-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 13px 27px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: .25s ease;
}
.team-banner-btn {
    color: #fff !important;
    background: linear-gradient(100deg, #1765ef, #079fe8);
}
.team-banner-btn:hover {
    color: #fff !important;
    box-shadow: 0 8px 25px rgba(0,153,255,.25);
}
.team-banner-btn-outline {
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.75);
    background: transparent;
}
.team-banner-btn-outline:hover {
    color: #fff !important;
    background: rgba(255,255,255,.1);
}
.team-banner-btn-outline i {
    font-size: 20px;
}
.team-banner-features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.team-banner-features div {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.team-banner-features div i {
    color: #fff;
    font-size: 22px;
}
.team-feature-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,.4);
}
.team-banner-scroll {
    position: absolute;
    z-index: 4;
    bottom: 20px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    color: #087ce8;
    font-size: 23px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,130,255,.2);
    transform: translateX(-50%);
}
@media (max-width: 767.98px) {
    .team-banner {
        min-height: 500px;
        padding: 65px 0 95px;
    }
    .team-banner-title {
        font-size: clamp(2.8rem, 11vw, 3.5rem) !important;
        letter-spacing: -1.5px !important;
    }
    .team-banner-description {
        font-size: 16px;
        line-height: 1.55;
    }
    .team-banner-actions {
        gap: 10px;
        margin-bottom: 28px;
    }
    .team-banner-btn, .team-banner-btn-outline {
        min-height: 48px;
        padding: 11px 17px;
        font-size: 13px;
    }
    .team-banner-features {
        gap: 12px;
        font-size: 11px;
    }
    .team-banner-features div i {
        font-size: 18px;
    }
    .team-feature-divider {
        display: none;
    }
    .team-banner::after {
        height: 65px;
    }
    .team-banner-scroll {
        width: 42px;
        height: 42px;
        bottom: 12px;
        font-size: 19px;
    }
}
