:root{
  --bg:#0b1320;
  --text:#e9eef7;
  --muted: rgba(233,238,247,.70);
  --border: rgba(255,255,255,.10);
}

/* Page transition + base */
body{
  letter-spacing: .15px;
  background: radial-gradient(1000px 500px at 15% 10%, rgba(47,110,219,.18), transparent 60%),
              linear-gradient(180deg, #070c14, var(--bg));
  color: var(--text);
  opacity: 1;
  transition: opacity .22s ease;
}
body.page-fade-out{ opacity: 0; }

h1, h2, h3, h4, h5{ letter-spacing: .2px; }
.text-white-50{ line-height: 1.75; }

/* Navbar glass + spacing + smooth shadow */
.nav-glass{
  backdrop-filter: blur(10px);
  background: rgba(11,19,32,.55) !important;
  border-bottom: 1px solid var(--border);
}

.navbar{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 92px;
  transition: box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.navbar.nav-scrolled{
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}

.navbar-brand{
  display:flex;
  align-items:center;
  padding: 8px 0 !important;
  margin: 0 !important;
}

/* ===== Brand sizing (ALL pages) ===== */
:root{
  --brand-logo-h: 64px;     /* desktop logo height */
  --brand-logo-w: 260px;    /* desktop max width  */
  --brand-slogan: 13px;     /* desktop slogan size */
}

.navbar-brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap: 2px;
  padding: 8px 0 !important;
  margin: 0 !important;
  line-height: 1.1;
}

.navbar-brand img{
  display:block;
  height: var(--brand-logo-h) !important;
  max-height: var(--brand-logo-h) !important;
  width:auto !important;
  max-width: var(--brand-logo-w) !important;
  object-fit: contain;

  filter: drop-shadow(0 10px 22px rgba(0,0,0,.25));
  transform-origin: left center;
  animation: logoIn .7s ease both;
  transition: transform .25s ease, filter .25s ease, opacity .25s ease;
}

.brand-slogan{
  font-size: var(--brand-slogan);
  font-weight: 600;
  color: rgba(233,238,247,.75);
  letter-spacing: .2px;
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 520px){
  :root{
    --brand-logo-h: 48px;
    --brand-logo-w: 210px;
    --brand-slogan: 12px;
  }
}
@media (max-width: 380px){
  :root{
    --brand-logo-h: 42px;
    --brand-logo-w: 190px;
    --brand-slogan: 11px;
  }
}

.navbar-brand:hover img{
  transform: translateY(-1px) scale(1.01);
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.35));
}
@keyframes logoIn{
  from{ opacity:0; transform: translateY(6px); }
  to{ opacity:1; transform: translateY(0); }
}

/* Nav link polish */
.navbar .nav-link{
  padding: .65rem .9rem;
  border-radius: .9rem;
}
.navbar .nav-link:hover{
  background: rgba(255,255,255,.06);
}

/* Active link subtle underline (optional premium) */
.navbar .nav-link.active{
  font-weight: 600;
}
.navbar .nav-link.active::after{
  content:"";
  display:block;
  height:2px;
  width:18px;
  margin: 6px auto 0;
  border-radius: 2px;
  background: rgba(47,110,219,.95);
}

/* Reveal animations */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Hero mini */
.hero-mini{
  max-width: 980px;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(30,79,163,.25), rgba(47,110,219,.10));
}

/* Cards & lists */
.soft-card{
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
}

.list-group-item{
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-color: var(--border);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.list-group-item:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
}

/* Badges + form */
.badge-soft{
  background: rgba(47,110,219,.18);
  border: 1px solid rgba(47,110,219,.35);
  color:#cfe0ff;
}

.form-control, .form-select{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
  color: var(--text);
}
.form-control::placeholder{ color: rgba(233,238,247,.55); }

/* Footer */
footer{
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* WhatsApp floating button */
.whatsapp-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
  transition: transform .2s ease;
}
.whatsapp-float:hover{ transform: translateY(-2px); }
.whatsapp-float svg{ width: 28px; height: 28px; }

/* Mobile */
@media (max-width: 520px){
  .navbar{ min-height: 74px; }
  .navbar .navbar-brand img{
    height: 36px;
    max-width: 150px;
  }
}

/* Brand: logo + slogan (all pages) */
.brand-block{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.brand-slogan{
  margin-top:4px;
  font-size:12px;
  font-weight:600;
  color:rgba(233,238,247,.75);
}

/* Fix big empty hero height on small devices */
.hero-card .carousel-item img{
  height:420px;
  object-fit:cover;
}
@media (max-width: 576px){
  .hero-card .carousel-item img{ height:360px; }
}

/* Industry Experts: 2 columns, nice spacing */
.industry-grid .list-group-item{
  border-radius:14px;
  margin-bottom:10px;
}

/* Tables styling */
.table.table-dark{
  --bs-table-bg: rgba(255,255,255,.03);
  --bs-table-border-color: rgba(255,255,255,.10);
}
.table.table-dark th{
  background: rgba(255,255,255,.06);
}

/* =========================
   Client logos ticker
========================= */
.client-ticker{
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  padding: 14px 12px;
}

.client-track{
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: clientScroll 28s linear infinite; /* slow */
}

.client-logo{
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.25));
  opacity: .92;
}

@keyframes clientScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); } /* because we duplicated the set */
}

/* Optional: pause on hover (desktop) */
@media (hover:hover){
  .client-ticker:hover .client-track{ animation-play-state: paused; }
}

/* Mobile sizing */
@media (max-width: 576px){
  .client-logo{ height: 42px; max-width: 150px; }
  .client-track{ gap: 18px; animation-duration: 34s; } /* slightly slower on mobile */
}

/* ===== Services 3-column table style ===== */

.industry-table{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
}

.industry-col{
  padding: 18px 20px;
  border-right: 1px solid rgba(255,255,255,.10);
}

.industry-col:last-child{
  border-right: none;
}

.industry-header{
  font-weight: 700;
  letter-spacing: .6px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.industry-col ul{
  padding-left: 18px;
  margin: 0;
}

.industry-col li{
  margin: 8px 0;
  color: rgba(233,238,247,.85);
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 992px){
  .industry-table{
    grid-template-columns: 1fr;
  }

  .industry-col{
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  .industry-col:last-child{
    border-bottom: none;
  }
}

/* ===== Industry Expertise Grid Lines ===== */

.industry-col ul{
  list-style: none;          /* remove default bullets */
  padding: 0;
  margin: 0;
}

.industry-col li{
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(233,238,247,.88);
  line-height: 1.6;
  position: relative;
  padding-left: 18px;
}

/* Custom bullet */
.industry-col li::before{
  content: "•";
  position: absolute;
  left: 0;
  color: rgba(233,238,247,.55);
}

/* Remove bottom border from last item */
.industry-col li:last-child{
  border-bottom: none;
}

/* ===== Industry Expertise Matrix (connected grid lines + premium hover) ===== */

.industry-matrix{
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,.10);
  transition: box-shadow .25s ease, transform .25s ease;
}

/* Soft glow on section hover */
.industry-matrix:hover{
  box-shadow: 0 18px 60px rgba(47,110,219,.12);
  transform: translateY(-1px);
}

/* Rows */
.matrix-row{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,.08); /* FULL-WIDTH joined line */
}

/* Remove top border on first row (header) */
.matrix-row:first-child{
  border-top: none;
}

/* Cells */
.matrix-cell{
  padding: 14px 16px;
  color: rgba(233,238,247,.88);
  line-height: 1.7;
  border-right: 1px solid rgba(255,255,255,.08); /* vertical dividers */
}

/* No divider on last column */
.matrix-cell:last-child{
  border-right: none;
}

/* Header */
.matrix-head{
  background: rgba(255,255,255,.03);
}
.matrix-title{
  font-weight: 800;
  letter-spacing: .4px;
  color: rgba(233,238,247,.95);
  text-transform: uppercase;
}

/* Alternating row background (table feel) */
.matrix-row:nth-child(even):not(.matrix-head){
  background: rgba(255,255,255,.02);
}

/* Subtle hover highlight per row */
.matrix-row:not(.matrix-head):hover{
  background: rgba(47,110,219,.08);
}

/* Make hover feel smooth */
.matrix-row{
  transition: background .18s ease;
}

/* Responsive: stack to 1 column on small devices */
@media (max-width: 768px){
  .matrix-row{
    grid-template-columns: 1fr;
  }
  .matrix-cell{
    border-right: none;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .matrix-row .matrix-cell:first-child{
    border-top: none;
  }
  .matrix-head{
    display: none; /* hide header on mobile to reduce clutter */
  }
}

/* ===== Services page: Industry Expertise blocks (match Industry Experts style) ===== */

.industry-split{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  overflow: hidden; /* makes the panels look like one joined table */
  background: rgba(255,255,255,.02);
}

/* Each panel inside the joined container */
.industry-panel{
  padding: 0;
}

/* Vertical divider between the two top columns */
@media (min-width: 768px){
  .industry-split .industry-panel + .industry-panel{
    border-left: 1px solid rgba(255,255,255,.10);
  }
}

/* Section titles */
.industry-panel-head{
  padding: 14px 16px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(233,238,247,.95);
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}

/* Bulleted list styled like table rows */
.industry-bullets{
  list-style: disc;
  margin: 0;
  padding: 0;
}

.industry-bullets li{
  list-style-position: inside;
  padding: 14px 16px;
  margin: 0;
  color: rgba(233,238,247,.88);
  border-bottom: 1px solid rgba(255,255,255,.10); /* horizontal grid lines */
  background: transparent;
  transition: background .18s ease;
}

/* Remove last divider */
.industry-bullets li:last-child{
  border-bottom: none;
}

/* Alternating row background (table feel) */
.industry-bullets li:nth-child(even){
  background: rgba(255,255,255,.02);
}

/* Subtle hover highlight per row */
.industry-bullets li:hover{
  background: rgba(47,110,219,.08);
}

/* Soft glow on block hover */
.industry-split:hover{
  box-shadow: 0 18px 60px rgba(47,110,219,.12);
  transform: translateY(-1px);
  transition: box-shadow .25s ease, transform .25s ease;
}

/* Mobile spacing: keep it clean */
@media (max-width: 767px){
  .industry-split{
    border-radius: 14px;
  }
  .industry-split .industry-panel + .industry-panel{
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.10);
  }
}

/* =========================
   Product nav - 2 columns
========================= */
.product-nav{
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

.product-nav .navbar-collapse{
  display: block !important;
  width: 100%;
}

.product-nav-list{
  list-style: none;
  margin: 0;
  padding: .75rem 0;

  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px;

  width: 100%;
}

.product-nav-list > .nav-item{
  display: block !important;
  width: 100%;
  margin: 0;
}

.product-nav .nav-link{
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;

  text-align: center;
  color: rgba(233,238,247,.82);
  font-size: .92rem;
  line-height: 1.3;
  padding: .7rem .85rem;

  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  white-space: normal;
  transition: all .2s ease;
}

.product-nav .nav-link:hover,
.product-nav .nav-link:focus{
  color: #fff;
  background: rgba(47,110,219,.18);
  border-color: rgba(47,110,219,.28);
}

/* tablet */
@media (max-width: 991.98px){
  .product-nav-list{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* mobile */
@media (max-width: 575.98px){
  .product-nav-list{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .product-nav .nav-link{
    min-height: 50px;
    font-size: .82rem;
    padding: .6rem .45rem;
  }
}