/* assets/css/style.css */

body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   ✅ CALM TECH ORNAMENT (MINIMAL, PREMIUM, NOT DIZZY)
===================================================== */
.section-title{
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  letter-spacing: .10em;
  text-transform: uppercase;
  isolation: isolate;
}

.section-title::after{
  content:"";
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 140px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(56,189,248,0),
    rgba(56,189,248,.78),
    rgba(99,102,241,.55),
    rgba(56,189,248,.78),
    rgba(56,189,248,0)
  );
  opacity: .9;
  animation: calmGlow 6s ease-in-out infinite;
  box-shadow: 0 10px 24px rgba(56,189,248,.10);
}

.section-title::before{
  content:"";
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  bottom: -7px;
  width: 200px;
  height: 1px;
  border-radius: 999px;
  background: rgba(15,23,42,.12);
}

.section-title{
  background-image:
    radial-gradient(circle, rgba(56,189,248,.55) 2px, transparent 3px),
    radial-gradient(circle, rgba(99,102,241,.45) 2px, transparent 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  background-position: calc(50% - 110px) calc(100% + 9px), calc(50% + 110px) calc(100% + 9px);
}

@keyframes calmGlow{
  0%,100% { opacity: .70; filter: drop-shadow(0 10px 18px rgba(56,189,248,.08)); }
  50%     { opacity: 1;    filter: drop-shadow(0 14px 22px rgba(56,189,248,.12)); }
}

@media (prefers-reduced-motion: reduce){
  .section-title::after{ animation: none; }
}

/* =====================================================
   HERO: FULL WIDTH SLIDER
===================================================== */
.heroBgSwiper,
.heroBgSwiper .swiper-wrapper,
.heroBgSwiper .swiper-slide{
  width:100%;
  height:100%;
}

.hero-slide-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

/* Dark hero backgrounds (logo-blue theme) */
.hero-bg-1{
  background:
    radial-gradient(900px circle at 20% 40%, rgba(56,189,248,.18), transparent 60%),
    radial-gradient(700px circle at 80% 35%, rgba(99,102,241,.12), transparent 62%),
    linear-gradient(to bottom, rgba(2,6,23,.92), rgba(2,6,23,.75));
}
.hero-bg-2{
  background:
    radial-gradient(900px circle at 25% 40%, rgba(14,165,233,.18), transparent 60%),
    radial-gradient(700px circle at 80% 35%, rgba(59,130,246,.12), transparent 62%),
    linear-gradient(to bottom, rgba(2,6,23,.92), rgba(2,6,23,.75));
}
.hero-bg-3{
  background:
    radial-gradient(900px circle at 25% 40%, rgba(99,102,241,.16), transparent 60%),
    radial-gradient(700px circle at 78% 35%, rgba(56,189,248,.10), transparent 62%),
    linear-gradient(to bottom, rgba(2,6,23,.92), rgba(2,6,23,.75));
}

/* Wave canvas (IOPEX-style mesh) */
.hero-wave-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:10;
  pointer-events:none;
}

/* Overlay: keep text readable but allow wave visible */
.hero-dark-overlay{
  position:absolute;
  inset:0;
  z-index:20;
  background:
    radial-gradient(900px circle at 35% 25%, rgba(56,189,248,.10), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,.40), rgba(0,0,0,.55));
  pointer-events:none;
}

/* =====================================================
   HERO PAGINATION + CLICK ZONES
===================================================== */
.hero-pagination{
  position:absolute;
  left:0;
  right:0;
  bottom:18px;
  display:flex;
  justify-content:center;
  gap:8px;
  z-index:40;
}

.heroBgSwiper .swiper-pagination-bullet{
  width:8px;
  height:8px;
  border-radius:999px;
  opacity:.35;
  background:#fff;
}

.heroBgSwiper .swiper-pagination-bullet-active{
  opacity:1;
  background:#38bdf8;
}

.hero-prev,
.hero-next{
  position:absolute;
  top:0;
  width:14%;
  height:100%;
  z-index:40;
}
.hero-prev{ left:0; }
.hero-next{ right:0; }

/* =====================================================
   HERO INFO CARD
===================================================== */
.hero-info-card{
  box-shadow: 0 30px 80px rgba(2,6,23,.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* =====================================================
   OUR CLIENTS - MARQUEE STYLE (SMOOTH, CONTINUOUS)
===================================================== */
.clientsSwiper{
  width: 100%;
  padding: 6px 0;
  overflow: hidden;
}

.clientsSwiper .swiper-wrapper{
  align-items: center;
  transition-timing-function: linear !important;
}

.clientsSwiper .swiper-slide{
  width: auto !important;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo-card{
  height: 56px;
  min-width: 170px;
  padding: 10px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo-card img{
  height: 100%;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  opacity: .92;
  filter: grayscale(100%);
  transition: filter .2s ease, opacity .2s ease;
}

.client-logo-card:hover img{
  filter: grayscale(0%);
  opacity: 1;
}

/* =====================================================
   OUR TEAM: CARDS (IMAGE + NAME + POSITION)
===================================================== */
.team-card{
  border: 1px solid #e2e8f0;
  background:#fff;
  border-radius: 24px;
  overflow:hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.team-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(2,6,23,.10);
}
.team-photo{
  width:100%;
  height: 240px;
  background:#f1f5f9;
}
.team-photo img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.team-body{
  padding: 18px 18px 20px;
}
.team-name{
  font-weight: 900;
  color:#0f172a;
  line-height: 1.2;
  letter-spacing: .02em;
}
.team-role{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color:#475569;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* =====================================================
   TESTIMONIALS - SIDE CONTROLS (LEFT/RIGHT) ✅ ID BASED
===================================================== */
.testimonial-side-btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  z-index: 50;
  height: 46px;
  width: 46px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.72);
  color: #0f172a;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 18px 40px rgba(2,6,23,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .18s ease;
  opacity: .95;
}

.testimonial-side-btn:hover{
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 26px 60px rgba(2,6,23,.18);
  border-color: rgba(56,189,248,.38);
}

#testimonialPrev{ left: 14px; }
#testimonialNext{ right: 14px; }

/* =====================================================
   ✅ PREMIUM MODALS (ASSESSMENT + APPOINTMENT)
===================================================== */
.ip-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.ip-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(2,6,23,.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: ipFade .18s ease-out;
}

.ip-modal__panel{
  position: relative;
  max-width: 860px;
  width: calc(100% - 32px);
  margin: 80px auto 24px;
  border-radius: 26px;
  border: 1px solid rgba(148,163,184,.28);
  background:
    radial-gradient(900px circle at 10% 0%, rgba(56,189,248,.10), transparent 45%),
    radial-gradient(900px circle at 90% 10%, rgba(99,102,241,.10), transparent 55%),
    rgba(255,255,255,.92);
  box-shadow:
    0 30px 90px rgba(2,6,23,.35),
    0 10px 24px rgba(2,6,23,.12);
  overflow: hidden;
  animation: ipPop .22s ease-out;
}

.ip-modal__head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 22px 12px;
  border-bottom: 1px solid rgba(148,163,184,.25);
}

.ip-modal__kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  color: rgba(30,41,59,.72);
  text-transform: uppercase;
}

.ip-modal__title{
  margin-top: 6px;
  font-size: 22px;
  font-weight: 950;
  color: #0f172a;
  letter-spacing: .02em;
}

.ip-modal__sub{
  margin-top: 6px;
  color: rgba(30,41,59,.70);
  font-size: 14px;
  line-height: 1.45;
}

.ip-modal__close{
  height: 42px;
  width: 42px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.35);
  background: rgba(255,255,255,.85);
  color: #0f172a;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow: 0 10px 24px rgba(2,6,23,.10);
}
.ip-modal__close:hover{
  transform: translateY(-1px);
  border-color: rgba(56,189,248,.40);
  box-shadow: 0 18px 40px rgba(2,6,23,.14);
}

.ip-modal__form{
  padding: 18px 22px 22px;
}

.ip-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ip-col-span-2{ grid-column: span 2; }

.ip-label{
  display:block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  color: rgba(30,41,59,.65);
  text-transform: uppercase;
}

.ip-input, .ip-textarea{
  width: 100%;
  margin-top: 6px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.35);
  background: rgba(255,255,255,.94);
  padding: 12px 14px;
  outline: none;
  color: #0f172a;
  font-weight: 600;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ip-input:focus, .ip-textarea:focus{
  border-color: rgba(56,189,248,.65);
  box-shadow: 0 0 0 6px rgba(56,189,248,.12);
}
.ip-textarea{
  min-height: 120px;
  resize: vertical;
}

.ip-modal__foot{
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(148,163,184,.22);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

.ip-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

.ip-btn{
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(148,163,184,.30);
  background: rgba(255,255,255,.85);
  color: #0f172a;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, opacity .15s ease;
  box-shadow: 0 12px 26px rgba(2,6,23,.10);
}
.ip-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(56,189,248,.38);
  box-shadow: 0 18px 40px rgba(2,6,23,.14);
}
.ip-btn:disabled{
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.ip-btn--primary{
  background: linear-gradient(90deg, rgba(15,23,42,1), rgba(2,6,23,1));
  color: #fff;
  border-color: rgba(15,23,42,.22);
}

.ip-btn--ghost{
  background: rgba(255,255,255,.85);
  color: #0f172a;
}

.ip-msg{
  font-size: 13px;
  font-weight: 800;
  color: rgba(30,41,59,.75);
}
.ip-msg--ok{ color: #065f46; }
.ip-msg--bad{ color: #991b1b; }

html.ip-modal-open,
body.ip-modal-open{
  overflow: hidden !important;
}

@keyframes ipFade{
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ipPop{
  from { transform: translateY(10px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Mobile tweaks */
@media (max-width: 640px){
  .client-logo-card{ height: 50px; min-width: 150px; padding: 8px 12px; }
  .client-logo-card img{ max-width: 150px; }
  .team-photo{ height: 220px; }
  .testimonial-side-btn{ height: 42px; width: 42px; border-radius: 14px; }
  #testimonialPrev{ left: 10px; }
  #testimonialNext{ right: 10px; }

  .section-title::after{ width: 120px; }
  .section-title::before{ width: 180px; }

  .ip-grid{ grid-template-columns: 1fr; }
  .ip-col-span-2{ grid-column: span 1; }
  .ip-modal__panel{ margin: 68px auto 18px; }
  .ip-modal__foot{ flex-direction: column; align-items: stretch; }
  .ip-actions{ justify-content: flex-end; }
}

/* FORCE Facebook Messenger Chat visibility */
#fb-root,
.fb_dialog,
.fb_dialog_content,
.fb_customer_chat_bubble,
.fb_customer_chat_icon,
.fb-customerchat,
iframe[src*="facebook.com"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 2147483647 !important;
}

.fb_dialog iframe {
  bottom: 80px !important;
  right: 18px !important;
}
