* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #0d0d0d;
  color: #ffffff;
    overflow-x: hidden;
}

.page {
  display: flex;
  gap: 24px;
  padding: 24px;
  align-items: flex-start;
}

/* SIDEBAR */

.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #1c1c1f, #151517);
  border: 1px solid #2c2c2f;
  border-radius: 28px;
  padding: 28px 24px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.top {
  position: relative;
}

.avatar-box {
  width: 120px;
  height: 120px;
  background: #2a2a2d;
  border-radius: 28px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-box img {
  width: 78px;
  border-radius: 50%;
}

.name {
  text-align: center;
  font-size: 22px;
  margin: 22px 0 10px;
  font-weight: 600;
}

.role {
  width: fit-content;
  margin: 0 auto;
  background: #2a2a2d;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: #ededed;
}

.line {
  height: 1px;
  background: #2f2f34;
  margin: 28px 0;
}

.info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #1d1d20;
  color: #f2c94c;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.label {
  margin: 0 0 4px;
  font-size: 12px;
  color: #8d8d94;
}

.value {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

#mapContainer {
  transition: 0.3s;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
  cursor: pointer;
}

.socials i {
  color: #f2c94c;
  font-size: 18px;
}

/* MAIN CARD */
.main-card {
  flex: 1;
  min-width: 0;
  background: linear-gradient(180deg, #1c1c1f, #151517);
  border: 1px solid #2c2c2f;
  border-radius: 28px;
  padding: 34px 28px 28px;
  position: relative;
}

.tabs-wrapper {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  /* keeps it right side */
  z-index: 100;
}

.tabs {
  position: sticky;
  top: 0;
  /* right: 0;*/
  margin-left: auto;
  background: #202023;
  border-bottom-left-radius: 24px;
  border-top-right-radius: 28px;
  padding: 18px 28px;
  display: flex;
  gap: 28px;
  z-index: 10;
}

.tabs a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: #ccc;
  transition: 0.3s;

}

/* underline */
.tabs a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #facc15;
  transition: 0.3s;
}

.tabs a.active {
  color: #f2c94c;
}

.tabs a.active::after {
  width: 100%;
}

.tabs a:hover {
  color: #facc15;
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.7);


}

.tabs a:hover::after {
  width: 100%;
}

.section {
  margin-bottom: 34px;
}

.section h2,
.section h3 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 700;
}

.underline {
  width: 42px;
  height: 5px;
  background: #f2c94c;
  border-radius: 999px;
  margin-bottom: 22px;
}

.section p {
  color: #dddddf;
  line-height: 1.9;
  font-size: 15px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  background: linear-gradient(180deg, #202024, #1a1a1d);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid #242428;
}

.service-icon {
  color: #f2c94c;
  font-size: 28px;
  margin-bottom: 12px;
}

.service-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.service-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}


.testimonial-grid {
  display: flex;
  gap: 22px;
  width: max-content;

}

.testimonial-card {
  background: linear-gradient(180deg, #202024, #1a1a1d);
  border-radius: 22px;
  padding: 24px;
  position: relative;
  border: 1px solid #242428;
    flex-shrink: 0;
      width: 280px;
}

.testimonial-avatar {
  width: 74px;
  height: 74px;
  background: #2a2a2d;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -38px;
  margin-bottom: 12px;
}

.testimonial-avatar img {
  width: 52px;
  border-radius: 50%;
}

.testimonial-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.testimonial-card p {
  margin: 0;
}

/* Popup*/
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-overlay.active {
  display: flex;
}


.card_popup {
  background: #1e1e21;
  border: 1px solid #2f2f34;
  border-radius: 24px;
  padding: 28px;
  width: 90%;
  max-width: 560px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.popup-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.popup-avatar {
  width: 90px;
  height: 90px;
  background: #2a2a2d;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.popup-avatar img {
  width: 70px;
  border-radius: 50%;
}

.popup-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}

.popup-date {
  color: #8d8d94;
  font-size: 14px;
  margin: 0;
}


.popup-body {
  color: #dddddf;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  background: #2a2a2d;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-close:hover {
  background: #3a3a3d;
}

/* Testimonial horizontal scroll */
.testimonial-scroll-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  padding-bottom: 8px;
}

.testimonial-scroll-wrapper::-webkit-scrollbar {
  display: none;
  
}

.testimonial-scroll-wrapper:active {
  cursor: grabbing;
}

.seg-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 20px;
  margin-left: 20%;
  width: fit-content;
}
 
.seg-slider .seg {
  height: 6px;
  width: 52px;
  background: #2a2a2d;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.3s, transform 0.2s;
  flex-shrink: 0;
}
 
.seg-slider .seg:hover {
  background: #3a3a3d;
}
 
.seg-slider .seg.active {
  background: #f2c94c;
  transform: scaleY(1.4);
}


.testimonial-scroll-wrapper {
  scroll-behavior: smooth;
}

/*Client*/
.client-scroll-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  scroll-behavior: smooth;
}
 
.client-scroll-wrapper::-webkit-scrollbar {
  display: none;
}
 
.client-scroll-wrapper:active {
  cursor: grabbing;
}
.client-grid {
 display: flex;
  gap: 18px;
  align-items: center;
  width: max-content;
}

.client-item img {
 filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: filter 0.3s, opacity 0.3s;
}

 
.client-item img:hover {
  filter: brightness(0) invert(2) sepia(1) saturate(5) hue-rotate(350deg);
  opacity: 1;
}


.slider-line {
  width: 58%;
  height: 6px;
  background: #2a2a2d;
  border-radius: 999px;
  margin: 22px auto 0;
  overflow: hidden;
}

.slider-line span {
  display: block;
  width: 0%;
  height: 100%;
  background: #f2c94c;
  border-radius: 999px;
}

.slider-line span.long {
  width: 68%;
}

.toggle-btn {
  display: none;
  border: none;
  background: #202023;
  color: #f2c94c;
  width: 42px;
  height: 42px;
  border-radius: 0 18px 0 18px;
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
}

.toggle-btn.active i {
  transform: rotate(180deg);
}

.toggle-btn i {
  transition: 0.3s;
}


/* MOBILE + TABLET */

@media (max-width: 1024px) {
  .page {
    flex-direction: column;
    padding: 14px 14px 90px;
  }

  .main-card {
    width: 100%;
    z-index: 1;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }

  .sidebar {
    width: 100%;
    padding: 18px 18px 16px;
    border-radius: 24px;
    z-index: 2;
    box-sizing: border-box;
    position:  relative !important;
    top: unset;
  }

  .top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 52px;
    position: relative;
  }

  .avatar-box {
    width: 88px;
    height: 88px;
    margin: 0;
    border-radius: 22px;
  }

  .avatar-box img {
    width: 60px;
  }

  .top-text {
    flex: 1;
  }

  .name {
    text-align: left;
    margin: 0 0 10px;
    font-size: 18px;
  }

  .role {
    margin: 0;
    font-size: 13px;
  }

  .toggle-btn {
    display: block;
  }

  .sidebar-content {
    display: none;
  }

  .sidebar-content.active {
    display: block;
  }

  .main-card {
    padding: 28px 16px 24px;
    border-radius: 24px;
  }

  .tabs-wrapper {
    position: static;
    display: block;
  }

  .tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    display: flex;
    justify-content: space-around;
    gap: 6px;
    padding: 14px 8px;
    background: rgba(32, 32, 35, 0.97);
    border-top: 1px solid #2f2f34;
    border-radius: 18px 18px 0 0;
    backdrop-filter: blur(10px);
    z-index: 999;
  }

  .tabs a {
    font-size: 12px;
  }

  .section h2,
  .section h3 {
    font-size: 22px;
  }

  .service-grid
 {
    grid-template-columns: 1fr;
  }

    .testimonial-grid {
          grid-template-columns: 1fr;
  
  }

   
  
  .client-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .slider-line {
    width: 88%;
  }
}