:root {
    --primary: hsl(217, 98%, 18%);
    --secondary: hsl(217, 99%, 29%);
    --third: hsl(217, 99%, 39%);
    --highlight: #67a1fe;
    --btn-color: var(--highlight);

    --pre-bg: #e9edf4;             /* hero background */
    --pre-primary: #1b2f6b;        /* deep navy (nav/heading) */
    --pre-accent: #536dff;         /* button/indigo glow */
    --pre-text: #2d2d2d;           /* body text */
    --pre-shadow: 0 20px 60px rgba(83,109,255,.35); /* purple/indigo glow */

    --c-bg: #e9edf4;          /* page bg */
    --c-card: #ffffff;        /* card bg */
    --c-border: rgba(27,47,107,.15);
    --c-primary: #1b2f6b;     /* deep navy */
    --c-accent: #536dff;      /* indigo accent */

    --v-card-bg:#fff;
    --v-border: rgba(27,47,107,.12);
    --v-shadow: 0 10px 30px rgba(83,109,255,.12);
    --v-shadow-hover: 0 18px 48px rgba(83,109,255,.20);
    --v-primary:#1b2f6b;   /* deep navy */
    --v-accent:#536dff;    /* indigo accent */
    --v-text:#2d2d2d;

    --w-card-bg:#fff;
    --w-border:rgba(27,47,107,.12);
    --w-shadow:0 10px 30px rgba(83,109,255,.10);
    --w-shadow-hover:0 18px 48px rgba(83,109,255,.18);
    --w-primary:#1b2f6b;   /* deep navy */
    --w-accent:#536dff;    /* indigo */
    --w-text:#2d2d2d;
}

.text-justify {
  text-align: justify;
  text-justify: inter-word;
}

.text-primary {
  color: var(--primary) !important;
}

img { 
    object-fit: cover !important;
}

/* =============================
    Loading Screen Style
================================ */

/* ===== Container ===== */
#preloader{
    position: fixed;
    inset: 0;
    background: var(--pre-bg);
    display: grid;
    place-items: center;
    z-index: 9999;
    transition: opacity .5s ease, visibility .5s ease;
  }
  #preloader.preloader--hide{
    opacity: 0; visibility: hidden;
  }
  
  /* ===== Card ===== */
  .preloader-card{
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: var(--pre-shadow);
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100vh;
  }
  
  .preloader-logo{
    height: 36px;
    width: auto;
    display: block;
    margin: 0 auto 10px;
    filter: saturate(0) brightness(.15); /* subtle monochrome to match hero */
  }
  .preloader-brand{
    display: block;
    font-size: 14px;
    letter-spacing: .08em;
    color: var(--pre-primary);
    opacity: .9;
    margin-bottom: 18px;
    text-transform: uppercase;
  }
  
  /* ===== Spinner (hero-like stroke) ===== */
  .preloader-spinner{
    width: 72px; height: 72px;
    margin: 0 auto 14px;
  }
  .preloader-spinner svg{ width:100%; height:100%; }
  .preloader-spinner .ring{
    fill: none;
    stroke: rgba(27,47,107,.15); /* faint navy */
    stroke-width: 4;
  }
  .preloader-spinner .arc{
    fill: none;
    stroke: var(--pre-accent);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 110;
    stroke-dashoffset: 82;
    transform-origin: 50% 50%;
    animation: spin 1.1s linear infinite;
  }
  @keyframes spin{
    to { transform: rotate(360deg); }
  }
  
  /* ===== Dots pulse ===== */
  .preloader-dots{
    display: inline-flex;
    gap: 8px;
    margin-top: 6px;
  }
  .preloader-dots span{
    width: 8px; height: 8px;
    border-radius: 999px;
    background: var(--pre-primary);
    opacity: .25;
    animation: pulse 1.2s ease-in-out infinite;
  }
  .preloader-dots span:nth-child(2){ animation-delay: .15s; }
  .preloader-dots span:nth-child(3){ animation-delay: .3s; }
  
  @keyframes pulse{
    0%,100%{ transform: translateY(0); opacity:.25; }
    50%    { transform: translateY(-6px); opacity:1; }
  }
  
  /* ===== A11y helpers ===== */
  .sr-only{
    position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
  }
  
  /* ===== Respect reduced motion ===== */
  @media (prefers-reduced-motion: reduce){
    .preloader-spinner .arc,
    .preloader-dots span{ animation: none; }
  }

  
/******
*******/

.logo {
    flex: 1;
} 
@media only screen and (max-width: 991px) {
  .logo {
    flex: 3;
  }
}

/******
Contact Message Form
*******/
#form-message {
  display: none;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 500;
}
#form-message.success {
  display: block;
  background: #d1e7dd;
  border: 1px solid #badbcc;
  color: #0f5132;
}
#form-message.error {
  display: block;
  background: #f8d7da;
  border: 1px solid #f5c2c7;
  color: #842029;
}

/**************
Values Section
**************/

/* grid */
.values-grid{
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 18px;
}
@media (max-width: 991px){
  .values-grid{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 575px){
  .values-grid{ grid-template-columns: 1fr; }
}

/* card */
.value-card{
  background: var(--v-card-bg);
  border: 1px solid var(--v-border);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: var(--v-shadow);
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.value-card:hover{
  transform: translateY(-4px);
  border-color: var(--v-accent);
  box-shadow: var(--v-shadow-hover);
}

/* icon */
.value-icon{
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(83,109,255,.16), rgba(27,47,107,.10));
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.value-icon svg{
  width: 24px; height: 24px;
  fill: var(--v-primary);
}

/* text */
.value-title{
  font-size: 18px;
  margin: 2px 0 6px;
  color: var(--v-text);
  font-weight: 700;
}
.value-text{
  margin: 0;
  color: #4a4a4a;
  line-height: 1.6;
  font-size: 15px;
}

/* RTL tweaks */
html[dir="rtl"] .value-text,
body[dir="rtl"] .value-text{
  letter-spacing: 0;
}

/**************
Why Section
**************/
/* badges row */
.why-badges{
  display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:10px;
  }
  .why-badge{
  font-size:12px; letter-spacing:.06em; text-transform:uppercase;
  background: rgba(83,109,255,.10);
  color: var(--w-primary);
  border: 1px solid rgba(83,109,255,.25);
  padding: 6px 10px; border-radius: 999px;
  }

  /* grid */
  .why-grid{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:18px;
  }
  @media (max-width: 991px){ .why-grid{ grid-template-columns: repeat(2,1fr); } }
  @media (max-width: 575px){ .why-grid{ grid-template-columns: 1fr; } }

  /* card */
  .why-card{
  background:var(--w-card-bg);
  border:1px solid var(--w-border);
  border-radius:16px;
  padding:22px 22px 18px;
  text-align:center;
  box-shadow:var(--w-shadow);
  height:100%;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  .why-card:hover{
  transform: translateY(-4px);
  border-color: var(--w-accent);
  box-shadow: var(--w-shadow-hover);
  }

  /* icon */
  .why-icon{
  width:46px; height:46px; border-radius:12px;
  background: linear-gradient(135deg, rgba(83,109,255,.16), rgba(27,47,107,.10));
  display:grid; place-items:center; margin:0 auto 12px;
  }
  .why-icon svg{ width:24px; height:24px; fill: var(--w-primary); }

  /* text */
  .why-title{
  font-size:18px; font-weight:700; color:var(--w-text); margin:4px 0 6px;
  }
  .why-text{
  margin:0; color:#4a4a4a; line-height:1.6; font-size:15px;
  }

  /* RTL tweaks */
  html[dir="rtl"] .why-text,
  body[dir="rtl"] .why-text{ letter-spacing:0; }


  /* =============================
        2.12 - Clients Style
================================ */
#Clients .subtitle{ letter-spacing:.18em; }

/* wrapper spacing */
.clients-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 10px;
}

/* responsive grid */
.clients-grid{
  display: flex;
  /* grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); */
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

/* cards (text only) */
.client-card{
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
  font-weight: 600;
  color: #2d2d2d;
  box-shadow: 0 6px 20px rgba(83,109,255,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* subtle interaction */
.client-card:hover{
  transform: translateY(-3px);
  border-color: var(--c-accent);
  box-shadow: 0 12px 34px rgba(83,109,255,.20);
}

/* RTL niceties (if you set dir="rtl" on <html> or body) */
html[dir="rtl"] .client-card,
body[dir="rtl"] .client-card{

}

/*****
Team
*****/
.team-bio {
  max-height: 0px; /* collapsed height */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.team-bio.expanded {
  max-height: 500px; /* enough space for full text */
}