/* ================= Services Page  ================= */

.cad-what-we-do-sec-bg {
  background-image: url(../../assets/images/services/cad-services/cad-what-we-do-sec-bg.png);
  background-size: 80%;
  background-repeat: no-repeat;
  background-position: left 130% top 60%;
}

.wwd-card-block {
  position: relative;
  top: 30%;
}

.wwd-card {
  background-color: #000;
  border-radius: 0%;
  text-align: left;
  font-size: 14px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  transition: all 0.5s ease;
  overflow: hidden;
  /* transition:
    border-image 0.3s ease,
    border-color 0.3s ease; */
}

.wwd-card img {
  filter: blur(1px);
}

.wwd-card:hover img {
  filter: blur(0px);
}

.wwd-card:hover {
  border: 1px solid transparent;
  border-image: linear-gradient(
    134.94deg,
    rgb(241 135 33 / 50%) 0.05%,
    rgb(216 32 41 / 50%) 99.95%
  );
  border-image-slice: 1;
}

.wwd-card h4 {
  background: linear-gradient(90deg, #ffffff -7.03%, #d82029 107.35%);
  background-size: 200% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: #ffffff;
  background-clip: text;
}

.wwd-card:hover h4 {
  background: linear-gradient(90deg, #ffffff -7.03%, #d82029 107.35%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  background-position: 100% center;
  transition-delay: 0.15s;
}

.services-hero-section {
  margin-left: 1.1%;
  margin-right: 1.1%;
  position: relative;
  margin-top: 0;
  padding: 15% 0 0%;
  border-radius: 0px 0px 25px 25px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

/* ---- Keep content above all bg layers ---- */
.services-hero-section .container {
  position: relative;
  z-index: 2;
}

/* ---- ::before used for left-edge warm strip (subtle, matches Figma left bleed) ---- */
.services-hero-section::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 3%;
  width: 60%;
  height: 60%;
  background-image: url(../../assets/images/services/hero-sec-left-corner-image.png);
  background-repeat: no-repeat;
  background-position: left;
  background-size: 100% 100%;
}

/* ---- ::after = bottom border glow line ---- */
.services-hero-section::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 0%;
  width: 70%;
  height: 75%;
  background-image: url(../../assets/images/services/hero-sec-right-corner-image.png);
  background-repeat: no-repeat;
  background-position: left;
  background-size: 100% 100%;
}

.services-hero-section h1 {
  font-family: var(--secondary-font);
}

.services-hero-section h1 span {
  color: var(--primary-color);
  font-family: var(--secondary-font);
}

.services-hero-section p {
  font-family: var(--primary-font);
  font-weight: 400;
  text-align: center;
}

.circle-gradient-bg {
  background-image: url("../../assets/images/services/circle-gradient-bg.png"); /* change path if needed */
  background-size: contain;
  background-position: left 10% top -10%;
  background-repeat: no-repeat;
}

.cad-text-wrapper {
  position: relative;
  height: 100%;
}

/* CAD text */
.cad-text {
  font-size: 110px;
  color: var(--body-bg);
  text-transform: capitalize;
  background: linear-gradient(360deg, #f18721 12.14%, #d82029 99.95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 2px transparent;
  writing-mode: vertical-rl; /* fallback */
  writing-mode: sideways-lr;
  position: absolute;
  bottom: 1%;
  margin: auto 5%;
}

/* Our Approach Section */

.banner-svg {
  width: 100%;
  display: block;
}

/* Text inside foreignObject */
.svg-text {
  font-size: 16px;
  font-weight: 400;
  color: white;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.01em;
}

/* ── Mobile fallback ── */
.mobile-layout {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 20px;
}

.mobile-icon {
  width: 64px;
  height: 64px;
}

.mobile-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  width: 100%;
  max-width: 560px;
}

.mobile-text-item {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
  text-align: center;
}

/* Full-width container — SVG fills it and scales naturally */
.industries-root {
  width: 100%;
  max-width: 1920px;
  padding: 0;
}

#industries-svg {
  width: 100%;
  height: auto;
  max-height: 100vh;
  display: block;
  overflow: visible;
}

/* foreignObject inner node layout */
.node-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.node-icon {
  width: 39px;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 10px;
}

.node-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.node-icon.sm {
  width: 34px;
  height: 34px;
  margin-bottom: 15px;
}

.node-label {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  color: #ffffff;
  font-variation-settings: "opsz" 14;
  white-space: nowrap;
}

#text_ind {
  font-size: clamp(60px, 17vw, 182px);
  opacity: 0.15;
  user-select: none;
}

.our-approch-block-style {
  /* margin-top: -4%; */
}

.our-approach_main img {
  border: 1px solid green;
}
.ref-1 {
  position: absolute;
  left: -6px;
  bottom: -6px;
  z-index: -1;
}
.ref-2 {
  position: absolute;
  left: -6px;
  bottom: -6px;
  z-index: -1;
}
.ref-3 {
  position: absolute;
  left: 10px;
  bottom: -6px;
  z-index: -1;
  width: 92% !important;
}
.ref-4 {
  position: absolute;
  left: 6px;
  bottom: -6px;
  z-index: -1;
}
.ref-5 {
  position: absolute;
  left: 6px;
  bottom: -6px;
  z-index: -1;
}

.our-approach-btn {
  display: flex;
  justify-content: center;
  margin-top: -2%;
  pointer-events: auto;
  z-index: 1;
}

.our-approach_main {
  position: relative;
  z-index: 1;
}

/* Left image shadow */
.our-approach_main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(270deg, rgba(7, 11, 8, 0) 0%, #070b08 100%);
  background-size: contain;
  z-index: 9999;
}

/* Right image shadow */
.our-approach_main::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0px;
  width: 40%;
  height: 100%;
  background: linear-gradient(270deg, rgba(7, 11, 8, 0) 0%, #070b08 100%);
  transform: matrix(-1, 0, 0, 1, 0, 0);
  background-size: contain;
  z-index: 9999;
}

.services-stat-number {
  font-family: var(--secondary-font);
  position: relative;
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(134.94deg, #f18721 0.05%, #d82029 99.95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* text-shadow: 0 8px 20px rgba(255, 102, 0, 0.3); */
}
.services-stat-number::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 60px;
  background: linear-gradient(
    180deg,
    rgba(7, 11, 8, 0) 38%,
    rgb(7 11 8 / 74%) 100%
  );
}

/* Common Question */

.cq-section {
  padding: 80px 0;
  color: #fff;
}

/* Triangle Section */

.experience-card {
  position: relative;
  padding: 45px 40px;
}

/* Gradient Number */
.exp-number {
  font-size: 52px;
  font-weight: 700;
  background: linear-gradient(134.94deg, #f18721 0.05%, #d82029 99.95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Subtitle */
.exp-badge-wrapper {
  padding: 1.4px;
  border-radius: 14px;
  background: linear-gradient(
    136deg,
    rgba(180, 180, 180, 0.55) 15%,
    rgba(100, 100, 100, 0.15) 33%,
    rgba(50, 50, -7, 0.08) 75%,
    rgba(130, 130, 130, 0.55) 97%
  );
  background-color: transparent;
  width: fit-content;
  position: absolute;
  left: 5.5%;
}

.exp-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 25px 8px;
  border-radius: 12px;
  background: var(--body-bg);
  gap: 1px;
  position: relative;
  overflow: hidden;
}

.exp-badge .years {
  font-family: var(--secondary-font);
  background: linear-gradient(134.94deg, #f18721 0.05%, #d82029 99.95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 24px;
  font-weight: 500;
}

.exp-badge .label {
  color: #fff;
}

.triangle-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.canvas-scaler {
  width: 100%;
  max-width: 1650px;
  overflow: hidden;
}

.canvas {
  position: relative;
  width: 1650px;
  height: 620px;
  transform-origin: top left;
}

/* All children are absolutely positioned matching the original px values */
.canvas > * {
  position: absolute;
}

/* ── Masked background glow blobs ── */
.masked-blob {
  position: absolute;
  pointer-events: none;
}

/* ── Big outer triangle (gradient stroke) ── */
.big-triangle {
  left: 519px;
  top: 0;
  width: 612px;
  height: 526px;
}

/* ── Connector lines ── */
.line-top-right {
  left: 901.5px;
  top: 53px;
  width: 321.5px;
  height: 93.5px;
}
.line-mid-right {
  left: 1055px;
  top: 372px;
  width: 227.5px;
  height: 41.5px;
}
.line-left {
  left: 420px;
  top: 207.5px;
  width: 173.5px;
  height: 205.5px;
}

/* ── Small inner triangles ── */
.tri-top {
  left: 678px;
  top: 12px;
  width: 293px;
  height: 254px;
}
.tri-bottom-left {
  left: 532px;
  top: 265px;
  width: 293px;
  height: 254px;
}
.tri-bottom-right {
  left: 824px;
  top: 265px;
  width: 293px;
  height: 254px;
}

#tri-top,
#tri-bl,
#tri-br {
  stroke: rgba(220, 220, 220, 0.75);
  stroke-width: 0.5;
}

#tri-top:hover,
#tri-bl:hover,
#tri-br:hover {
  stroke: rgba(220, 220, 220, 0.75);
  stroke-width: 0.7;
  fill: rgba(200, 200, 200, 0.1);
}

/* ── Text labels inside triangles ── */
.tri-label {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  line-height: normal;
  transform: translateX(-50%);
  pointer-events: none;
}
.label-top {
  left: calc(50% + 0px);
  top: 200px;
}
.label-bl {
  left: 677.86px;
  top: 444px;
}
.label-br {
  left: 971.36px;
  top: 444px;
}

/* ── Centre logo ── */
.triangle-sec-logo {
  top: 46.17%;
  right: 44.74%;
  bottom: 37.68%;
  left: 48.12%;
  transform: translateX(-28px);
}

/* ── Description texts ── */

.desc {
  font-weight: 400;
  font-size: 18px;
  color: #fff;
  line-height: normal;
}
.desc-top-right {
  left: calc(50% + 445px);
  top: 12px;
  width: 353px;
}
.desc-left {
  left: calc(50% - 445px);
  top: 173px;
  width: 353px;
  text-align: right;
  transform: translateX(-100%);
}
.desc-bottom-right {
  left: calc(50% + 494px);
  top: 337px;
  width: 353px;
}

/* ── Responsive scaling ── */
/* We scale the 1650px canvas down to fit the viewport */
@media (max-width: 1650px) {
  .canvas-scaler {
    overflow: visible;
  }
}

/* ── Hover image: hidden by default, shown on active ── */
.hover-img {
  width: 100%; /* fill the full desc panel width */
  max-width: 100%;
  display: block;
  margin-top: 10px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 0.35s ease,
    max-height 0.35s ease,
    margin-top 0.35s ease;
  border-radius: 4px;
}

.desc.active .hover-img {
  opacity: 1;
  max-height: 400px; /* large enough to show full image naturally */
  margin-top: 10px;
}

.desc.active .hover-img {
  display: block;
  opacity: 1;
}

/* Accordion box */
.custom-accordion .accordion-item {
  background: transparent;
  border: 0.1px solid rgb(255 255 255 / 0.2);
  margin-bottom: 20px;
  border-radius: 0px;
}

/* Question */
.custom-accordion .accordion-button {
  background: transparent;
  color: rgb(255 255 255 / 60%);
  font-size: 16px;
  font-weight: 500;
  padding: 15px 25px;
  box-shadow: none;
}

.accordion-item:first-of-type .accordion-button {
  border: 0.1px solid rgb(255 255 255 / 0.05%);
  border-radius: 0px;
}

button.accordion-button.collapsed {
  border: 0.1px solid rgb(255 255 255 / 0.1%);
}

.accordion-header .accordion-button {
  border: 0.1px solid rgba(0, 0, 0, 0.1);
}

.custom-accordion .accordion-item:hover {
  border: 0.1px solid rgba(255, 255, 255, 0.4);
}

.custom-accordion .accordion-item:hover .accordion-button {
  color: #fff;
}

.custom-accordion .accordion-item:has(.accordion-collapse.show) {
  border: 0.1px solid rgb(255 255 255 / 60%);
}

/* Open question */
.custom-accordion .accordion-button:not(.collapsed) {
  color: #ffffff;
}

/* Answer */
.custom-accordion .accordion-body {
  color: #fff;
  font-size: 16px;
  padding: 15px 25px;
  border-top: 0.3px solid rgb(255 255 255 / 50%);
}

/* Remove bootstrap blue */
.accordion-button:focus {
  box-shadow: none;
  border: none;
}

.custom-accordion .accordion-button:not(.collapsed)::after {
  border-image-source: linear-gradient(
    134.94deg,
    #d82029 0.05%,
    #f18721 99.95%
  );
}

/* Arrow icon style */
.accordion-button::after {
  margin-left: auto;
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid;
  border-right: 2px solid;
  border-image-source: rgb(255 255 255 / 50%);
  border-image-slice: 1;
  transform: rotate(135deg);
}

/* Rotate arrow when open */
.custom-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(315deg);
}
