.graphy-footer-container {
  z-index: 999;
}

.carousel .list .item::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #00000040;
}

.content {
  z-index: 1;
}

.fs-40 {
  font-size: 32px;
}

/* Tabs Styling */
.nav-pills-custom {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 50px;
  display: inline-flex;
  padding: 5px;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}

.nav-pills-custom .nav-link {
  border-radius: 50px;
  color: #777;
  padding: 10px 25px;
  transition: 0.3s;
  white-space: nowrap;
}

.nav-pills-custom .nav-link.active {
  background-color: #b3cb1c;
  color: #000000;
  font-weight: 600;
}

/* Swiper Slider Styling */
.swiper {
  width: 100%;
  /* height: 370px; */
  border-radius: 20px;
}

.clinet-bg {
  background-color: #000;
  z-index: 99;
  position: relative;
}

/* Content Styling */
/* .content-right {
            padding-left: 30px;
        } */

.sub-heading {
  color: #b3cb1c;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.6px;
  line-height: 140%;
}

.blg-cnt h3 {
  font-size: 30px;
}

.main-heading {
  font-weight: 700;
  margin: 0;
  font-family: "Raleway";
  color: #000;
  font-size: 32px;
  line-height: 1.3;
}

.description {
  color: #666;
  line-height: 1.7;
  margin: 20px 0;
}

.action-link {
  color: #6a5acd;
  text-decoration: none;
  font-weight: 600;
}

/* --- ANIMATIONS --- */

/* 1. Animation for the Image (Left to Right) */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 2. Animation for the Text (Right to Left) */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply animations only when the tab is 'active' */
.tab-pane.active .animate-left {
  border-radius: 20px;
  /* border: 3px dashed #b3cb1c; */
  /* padding: 20px; */
  animation: slideInLeft 0.8s ease-out forwards;
  /* background-color: #000; */
  position: relative;
  right: -50px;
  z-index: 99;
}

.tab-pane.active .animate-right {
  animation: slideInRight 0.8s ease-out forwards;
  background-color: #fff;
  padding: 40px 40px 40px 80px;
  border-radius: 20px;
  min-height: 460px;
  box-shadow: inset -4px -4px 0px 5px #b3cb1c;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hide initially to prevent flickering before animation starts */
.animate-left,
.animate-right {
  opacity: 0;
}

@media (max-width: 767px) {
  .tab-pane.active .animate-left {
    right: 0;
    margin-bottom: 20px;
  }

  .tab-pane.active .animate-right {
    padding: 30px;
    min-height: auto;
    box-shadow: inset 0px 0px 0px 3px #b3cb1c;
  }

  .content-right {
    padding-left: 0;
  }

  .swiper {
    height: 100%;
  }

  .main-heading {
    font-size: 24px;
    line-height: 32px;
  }

  .nav-pills-custom {
    max-width: 90%;
  }

  .description {
    font-size: 15px;
  }

  .about-section {
    padding: 120px 0 !important;
  }

  .tab-content {
    padding: 20px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .tab-pane.active .animate-left {
    right: -20px;
  }

  .tab-pane.active .animate-right {
    padding: 30px 30px 30px 40px;
    min-height: auto;
  }
}

.image-wrapper {
  position: relative;
  padding: 0 30px;
  margin-bottom: 30px;
}

.vd1 {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0.07;
  /* background-attachment: fixed; */
  height: 160vh;
  z-index: -2;
  margin-top: -8vh;
}

.stats-section {
  background: transparent;
  position: relative;
  z-index: 3;
}

.latest-portfolio {
  padding: 40px 0px 80px 0px !important;
  border-radius: 50px -1px 0 0;
  margin-top: 0px;
  z-index: 100;
  position: relative;
  width: 100%;
}

.about-section {
  margin-top: -50px;
  /* background: #2d2d2d; */
  margin-bottom: -50px;
  padding: 120px 0 !important;
}

.product-section {
  overflow: hidden;
}

/* Clean Room Partition page only */
.crp-banner {
  height: 100vh;
  border-radius: 0;
  /* match pre-engineering banner height */
}

.crp-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

@media (max-width: 991px) {
  .crp-banner {
    height: 100vh;
    /* match pre-engineering banner height */
  }
}


/* Header Section */
.section-header {
  padding: 80px 20px 40px;
  /* max-width: 1400px; */
  margin: 0 auto;
  position: relative;
  background-color: #000;
  width: 100%;
}

.section-label {
  color: #b3cb1c;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-label::before {
  content: "";
  width: 60px;
  height: 2px;
  background-color: #b3cb1c;
}

.section-title {
  font-size: 56px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  max-width: 800px;
}

.section-subtitle {
  color: #888888;
  font-size: 18px;
  margin-top: 20px;
  max-width: 600px;
  line-height: 1.6;
}

/* Split Section Layout */
.spec-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  position: relative;
  /* border-bottom: 1px solid #2e2e2e; */
}

.spec-section:last-child {
  border-bottom: none;
}

/* Left Content Side */
.spec-content {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
}

.spec-number {
  font-size: 120px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px #2e2e2e;
  position: absolute;
  top: 40px;
  left: 60px;
  line-height: 1;
  z-index: 0;
  transition: all 0.4s ease;
}

.spec-section:hover .spec-number {
  -webkit-text-stroke: 2px #b3cb1c;
  color: rgba(179, 203, 28, 0.05);
}

.spec-category-tag {
  display: inline-block;
  background-color: rgba(179, 203, 28, 0.1);
  border: 1px solid rgba(179, 203, 28, 0.3);
  color: #b3cb1c;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  width: fit-content;
}

.spec-title {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 25px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.spec-description {
  color: #aaaaaa;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  max-width: 90%;
}

.spec-features {
  list-style: none;
  position: relative;
  z-index: 1;
}

.spec-features li {
  color: #cccccc;
  font-size: 15px;
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  border-bottom: 1px solid rgba(46, 46, 46, 0.5);
}

.spec-features li:last-child {
  border-bottom: none;
}

.spec-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #b3cb1c;
  font-weight: 700;
}

.cta-button {
  margin-top: 35px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #b3cb1c;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  width: fit-content;
}

.cta-button::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #b3cb1c;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.cta-button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Right Image Side */
.spec-image-container {
  position: relative;
  overflow: hidden;
  background-color: #2e2e2e;
  min-height: 500px;
}

.spec-image-swiper {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border-radius: 0;
}

.spec-image-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
}

.spec-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.spec-section:hover .spec-image,
.spec-image-swiper .swiper-slide:hover .spec-image {
  transform: scale(1.05);
}

.spec-image-nav {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 12px;
}

.spec-image-nav .swiper-button-prev,
.spec-image-nav .swiper-button-next {
  position: static;
  width: 46px;
  height: 46px;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(179, 203, 28, 0.55);
  background: rgba(0, 0, 0, 0.55);
  color: #b3cb1c;
  backdrop-filter: blur(6px);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.spec-image-nav .swiper-button-prev:hover,
.spec-image-nav .swiper-button-next:hover {
  transform: translateY(-2px);
  background: rgba(179, 203, 28, 0.14);
  border-color: #b3cb1c;
}

.spec-image-nav .swiper-button-prev::after,
.spec-image-nav .swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
}

.spec-image-pagination {
  position: absolute;
  right: 24px;
  bottom: 28px !important;
  left: auto !important;
  width: auto !important;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.spec-image-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.spec-image-pagination .swiper-pagination-bullet-active {
  background: #b3cb1c;
  box-shadow: 0 0 10px rgba(179, 203, 28, 0.45);
}

.spec-image-container .image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2e2e2e 100%);
  color: #555555;
  position: relative;
  overflow: hidden;
}

.image-placeholder::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(179, 203, 28, 0.03) 10px,
    rgba(179, 203, 28, 0.03) 20px
  );
  animation: slide 20s linear infinite;
}

@keyframes slide {
  0% {
    transform: translate(-50%, -50%);
  }

  100% {
    transform: translate(0, 0);
  }
}

.placeholder-icon {
  font-size: 64px;
  margin-bottom: 20px;
  color: #b3cb1c;
  opacity: 0.3;
  z-index: 1;
}

.placeholder-text {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666666;
  z-index: 1;
  font-weight: 600;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  pointer-events: none;
}

.image-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background-color: #b3cb1c;
  color: #000000;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  z-index: 2;
}

/* Alternating Layout */
.spec-section.reverse {
  direction: rtl;
}

.spec-section.reverse > * {
  direction: ltr;
}

.spec-section.reverse .spec-number {
  left: auto;
  right: 60px;
}

/* Featured Section Highlight */
.spec-section.featured .spec-content {
  background: linear-gradient(
    135deg,
    rgba(179, 203, 28, 0.05) 0%,
    #000000 100%
  );
  border-left: 4px solid #b3cb1c;
}

.spec-section.featured.reverse .spec-content {
  border-left: none;
  border-right: 4px solid #b3cb1c;
}

/* Responsive */
@media (max-width: 1024px) {
  .spec-section {
    grid-template-columns: 1fr;
  }

  .spec-section.reverse {
    direction: ltr;
  }

  .spec-content {
    padding: 60px 40px;
    order: 2;
  }

  .spec-image-container {
    min-height: 400px;
    order: 1;
  }

  .spec-image-swiper {
    min-height: 400px;
  }

  .spec-number {
    font-size: 80px;
    top: 20px;
    left: 40px;
  }

  .spec-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .spec-content {
    padding: 40px 20px;
  }

  .spec-title {
    font-size: 28px;
  }

  .spec-number {
    font-size: 60px;
    left: 20px;
  }

  .section-header {
    padding: 60px 20px 30px;
  }

  .section-title {
    font-size: 32px;
  }

  .spec-image-nav {
    left: 16px;
    bottom: 16px;
    gap: 10px;
  }

  .spec-image-nav .swiper-button-prev,
  .spec-image-nav .swiper-button-next {
    width: 40px;
    height: 40px;
  }

  .spec-image-pagination {
    right: 16px;
    bottom: 20px !important;
  }

  .char-heading .col-6 {
    width: 100%;
    margin-top: 50px;
  }

  .custom-card {
    padding-bottom: 30px;
  }

  .char-heading {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* Animation */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.spec-content {
  animation: fadeInLeft 0.8s ease forwards;
}

.spec-image-container {
  animation: fadeInRight 0.8s ease forwards;
}

/* Scroll Progress Indicator */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: #b3cb1c;
  z-index: 1000;
  transition: width 0.1s;
}

/* Make that section solid black */
.inner-page-radius.tm-bg {
  background: #000 !important;
  background-image: none !important;
  /* removes tm-bg image layer */
}

.inner-page-radius.tm-bg .custom-card {
  background: #000 !important;
}

.char-heading {
  background-color: #000;
  position: relative;
  padding-left: 45px;
  padding-right: 45px;
}

.inner-page-bg {
  margin-top: 0px;
}

.section-header {
  text-align: center;
}

.section-label {
  justify-content: center;
  /* was flex-start/default */
}

.section-title {
  margin: 0 auto;
  /* keep it centered if max-width is set */
}

.section-subtitle {
  margin: 20px auto 0;
  /* centers subtitle with max-width */
}

.container-1385 {
  max-width: 1385px !important;
  margin: 0 auto !important;
}

.section-header.top-border {
  border-top: 3px solid #a3c644;
  border-bottom: 0;
}

/* Make parent relative */
.nav-services {
  position: relative;
  cursor: pointer;
}

/* Dropdown box */
.services-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 240px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}

/* Dropdown links */
.services-dropdown a {
  display: block;
  padding: 10px 0px;
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

/* .services-dropdown a:hover {
    background-color: #f5f5f5;
    color: #000;
} */

/* Show dropdown on hover */
.nav-services:hover .services-dropdown a {
  color: #fff;
}

.nav-services:hover .services-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  background-color: #ffffff36;
  backdrop-filter: blur(18px);
  z-index: 10;
  color: #fff;
  top: 60px;
}

.upgrade-showcase {
  position: relative;
  padding: 90px 20px;
  background: #000;
  overflow: hidden;
}

.upgrade-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: 0.22;
  pointer-events: none;
}

.upgrade-shell {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.upgrade-story {
  position: relative;
  padding: 0;
  min-height: auto;
}

.upgrade-hero-copy {
  max-width: 620px;
}

.upgrade-hero-copy h2 {
  font-size: clamp(2.2rem, 3.5vw, 3.6rem);
  line-height: 1.2;
  color: #ffffff;
  font-weight: 400;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.upgrade-hero-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 28px;
}

.upgrade-points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  max-width: 620px;
}

.upgrade-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.6;
}

.upgrade-panel {
  position: relative;
  padding: 38px;
  border-radius: 8px;
  background: rgb(213 213 213 / 7%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.upgrade-title {
  font-size: 2rem;
  line-height: 1.3;
  color: #b3cb1c;
  margin-bottom: 18px;
  font-weight: 500;
}

.upgrade-intro {
  color: #ffff;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 22px;
}

.upgrade-points li i {
  color: #b3cb1c;
  margin-top: 4px;
}

@media (max-width: 767px) {
  .spec-description {
    margin-bottom: 0;
  }

  .char-heading {
    padding-top: 0;
  }

  .latest-portfolio {
    padding-top: 0 !important;
  }
}
