/* ==========================================================================
   Projects Section
   Extracted from style.css — scoped styles for ProjectsSection.tsx
   ========================================================================== */

/*------------------- Project Area -------------------*/
.project-area {
  position: relative;
  background-color: white;
}

/*------------------- Project Card -------------------*/
.project-card {
  position: relative;
  --space: 40px;
  overflow: hidden;
}

.project-card.style2 {
  /* Extra small devices */
  /* Extra small devices */
}

@media (max-width: 575px) {
  .project-card.style2 {
    --space: 30px;
  }
}

@media (max-width: 375px) {
  .project-card.style2 {
    --space: 20px;
  }
}

.project-card.style2 .project-content {
  position: absolute;
  top: var(--space);
  left: var(--space);
  width: calc(100% - var(--space)*2);
  height: calc(100% - var(--space)*2);
  z-index: 2;
  background: var(--theme-color);
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: end;
      -ms-flex-pack: end;
          justify-content: end;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  padding: 30px;
  -webkit-transform: scale(0);
      -ms-transform: scale(0);
          transform: scale(0);
  -webkit-transition: 0.4s ease-in-out;
  transition: 0.4s ease-in-out;
}

.project-card.style2:hover .project-content {
  -webkit-transform: scale(1);
      -ms-transform: scale(1);
          transform: scale(1);
}

.project-card.style3 .project-img {
  position: relative;
  border-radius: 24px;
  -webkit-transition: 0.4s ease-in-out;
  transition: 0.4s ease-in-out;
}

.project-card.style3 .project-img:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background-color: rgba(22, 25, 33, 0.6);
  -webkit-transition: 0.4s ease-in-out;
  transition: 0.4s ease-in-out;
  -webkit-transform: scaleX(0);
      -ms-transform: scaleX(0);
          transform: scaleX(0);
  visibility: hidden;
  opacity: 0;
}

.project-card.style3 .project-img img {
  border-radius: 24px;
}

.project-card.style3 .icon-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--theme-color);
  color: var(--white-color);
  border-radius: 12px;
  border: none;
  width: 46px;
  height: 46px;
  line-height: 46px;
  font-size: 20px;
  -webkit-transition: 0.4s ease-in-out;
  transition: 0.4s ease-in-out;
  visibility: hidden;
  opacity: 0;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.project-card.style3 .icon-btn:hover {
  background-color: var(--white-color);
  color: var(--theme-color);
}

.project-card.style3:hover .project-img:before {
  opacity: 1;
  visibility: visible;
  -webkit-transform: scaleX(1);
      -ms-transform: scaleX(1);
          transform: scaleX(1);
}

.project-card.style3:hover .icon-btn {
  opacity: 1;
  visibility: visible;
}

.project-card .project-img img {
  width: 100%;
}

.project-card_wrapp:nth-child(2) {
  margin-top: 60px;
  /* Small devices */
}

@media (max-width: 767px) {
  .project-card_wrapp:nth-child(2) {
    margin-top: 30px;
  }
}

.project-card_wrapp:nth-child(3) {
  margin-top: 120px;
  /* Large devices */
  /* Small devices */
}

@media (max-width: 1199px) {
  .project-card_wrapp:nth-child(3) {
    margin-top: 0px;
  }
}

@media (max-width: 767px) {
  .project-card_wrapp:nth-child(3) {
    margin-top: 30px;
  }
}

.project-card .box-title {
  color: var(--white-color);
  width: 200px;
  border-bottom: 1px solid var(--white-color);
  margin-bottom: 10px;
  padding-bottom: 15px;
}

.project-card .box-title a {
  color: inherit;
}

.project-card .box-subtitle {
  color: var(--white-color);
  font-size: 14px;
  margin-bottom: -0.3rem;
}

.project-card .project-content {
  position: absolute;
  left: var(--space);
  bottom: -40px;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.project-card .project-icon {
  position: absolute;
  top: 30px;
  right: 30px;
}

.project-card .icon-btn {
  border: 1px solid var(--white-color);
  color: var(--white-color);
}

.project-card .icon-btn:hover {
  background-color: var(--white-color);
  color: var(--title-color);
}

.project-card:hover .project-content {
  opacity: 1;
  bottom: var(--space);
  visibility: visible;
}

/*------------------- Project Button -------------------*/
.th-btn.project-btn {
  color: var(--white-color);
  border-radius: 50%;
  padding: 31px 35px;
  width: 266px;
  position: absolute;
  bottom: 120px;
  /* Large devices */
}

@media (max-width: 1199px) {
  .th-btn.project-btn {
    position: relative;
    bottom: 0;
    margin-top: 30px;
  }
}

.sec-text5 {
  color: #7A8392;
}

/*------------------- Filter Menu -------------------*/
.filter-menu {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 35px;
  text-align: center;
  margin-top: -20px;
  margin-bottom: 60px;
  /* Large devices */
  /* Medium devices */
}

@media (max-width: 1199px) {
  .filter-menu {
    margin-bottom: 50px;
  }
}

@media (max-width: 991px) {
  .filter-menu {
    margin-top: -10px;
    margin-bottom: 45px;
    gap: 6px;
  }
}

.filter-menu .tab-btn {
  position: relative;
  background-color: transparent;
  border: none;
  border-radius: 8px;
  font-family: var(--body-font);
  font-weight: 500;
  font-size: 16px;
  color: var(--body-color);
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

.filter-menu .tab-btn:before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--theme-color);
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

.filter-menu .tab-btn:hover,
.filter-menu .tab-btn.active {
  color: var(--theme-color);
}

.filter-menu .tab-btn:hover:before,
.filter-menu .tab-btn.active:before {
  width: 53px;
  opacity: 1;
  visibility: visible;
}

/*------------------- Portfolio Box -------------------*/
.portfolio-box {
  position: relative;
  border-radius: 30px;
  --space: 30px;
  overflow: hidden;
  z-index: 9;
  /* Medium devices */
}

@media (max-width: 991px) {
  .portfolio-box {
    --space: 20px;
  }
}

.portfolio-box:before {
  content: "";
  position: absolute;
  inset: 0;
  background: #0A0A0A;
  border-radius: inherit;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

.portfolio-box .box-img {
  /* Medium devices */
}

.portfolio-box .box-img img {
  width: 100%;
}

@media (max-width: 991px) {
  .portfolio-box .box-img {
    margin-bottom: 0;
  }
}

.portfolio-box .box-title {
  color: var(--white-color);
  font-size: 22px;
  margin-bottom: 10px;

}

.portfolio-box .box-subtitle {
  color: var(--white-color);
  font-size: 14px;
  margin-bottom: -0.3rem;
}

.portfolio-box .box-content {
  position: absolute;
  left: var(--space);
  bottom: -40px;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  z-index: 2;
}

.portfolio-box .icon-btn {
  background-color: var(--white-color);
  border: none;
  font-size: 18px;
  position: absolute;
  right: var(--space);
  top: -30px;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.portfolio-box .icon-btn:hover {
  background-color: var(--theme-color);
  color: var(--white-color);
}

.portfolio-box:hover:before {
  opacity: 0.6;
  visibility: visible;
}

.portfolio-box:hover .box-content {
  opacity: 1;
  bottom: var(--space);
  visibility: visible;
}

.portfolio-box:hover .icon-btn {
  top: var(--space);
  opacity: 1;
  visibility: visible;
}

/*------------------- Project Details -------------------*/
.project-info {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(27, 31, 37, 0.1);
  padding: 20px 0;
  /* Medium Large devices */
  /* Extra small devices */
}

.project-info-wrap {
  position: absolute;
  right: 80px;
  top: 80px;
  background-color: var(--white-color);
  border-radius: 20px;
  padding: 40px;
  /* Medium devices */
}

@media (max-width: 1399px) {
  .project-info-wrap {
    right: 40px;
    top: 40px;
    padding: 30px;
  }
}

@media (max-width: 991px) {
  .project-info-wrap {
    position: relative;
    right: unset;
    left: 0;
    top: 0;
    margin-top: 30px;
    padding: 10px 30px 30px 0;
  }
}

.project-info:last-child {
  padding-bottom: 0;
  margin-bottom: -0.3rem;
}

@media (max-width: 1299px) {
  .project-info {
    gap: 15px;
  }
}

@media (max-width: 575px) {
  .project-info {
    padding-left: 0;
  }
}

.project-info_icon i {
  width: 50px;
  height: 50px;
  line-height: 50px;
  color: var(--theme-color);
  background-color: rgba(64, 102, 242, 0.1);
  border: none;
  border-radius: 50%;
  text-align: center;
  -webkit-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

.project-info_icon i:hover {
  background-color: var(--theme-color);
  color: var(--white-color);
}

.project-info_subtitle {
  margin-bottom: 0;
}

.project-info_title {
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 0;
}

.project-info_title a {
  color: inherit;
}

.project-info_title a:hover {
  color: var(--theme-color);
}

.project-nav {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
  border-top: 1px solid #EDEDED;
  border-bottom: 1px solid #EDEDED;
  padding: 17px 0;
  margin-top: 22px;
}

.project-nav .icon-btn {
  --btn-size: 55px;
  font-size: 16px;
  border-radius: 99px;
  border: none;
  background-color: transparent;
  border: 1px solid #EDEDED;
  color: var(--title-color);
  /* Extra small devices */
}

@media (max-width: 375px) {
  .project-nav .icon-btn {
    --btn-size: 45px;
  }
}

.project-nav .icon-btn:hover {
  background-color: var(--theme-color);
  color: var(--white-color);
}

.project-nav .nav-btn {
  color: var(--body-color);
  font-family: var(--title-font);
  font-weight: 500;
  /* Extra small devices */
}

@media (max-width: 375px) {
  .project-nav .nav-btn {
    font-size: 14px;
  }
}

.project-nav .nav-btn:first-child .icon-btn {
  margin-right: 10px;
}

.project-nav .nav-btn:last-child .icon-btn {
  margin-left: 10px;
}

.project-nav .nav-btn:hover {
  color: var(--theme-color);
}

/*------------------- Project Section Leader Cards (equal height fix) -------------------*/

/* All columns stretch to match the tallest card in the row */
#project-sec .row {
  align-items: stretch;
}

/* Each column is a flex container so the card fills full column height */
#project-sec .col-xl-4,
#project-sec .col-md-6 {
  display: flex;
}

/* Card fills the full height of its column */
#project-sec .th-team.team-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Fixed-height image container — all cards share the same image area height */
#project-sec .th-team.team-card .box-img {
  height: 420px;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
  flex-shrink: 0;
}

/* Image fills the container and crops to cover without distorting */
#project-sec .th-team.team-card .box-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Content area grows to push everything flush with the bottom of the tallest card */
#project-sec .th-team.team-card .box-content {
  flex: 1;
}

@media (max-width: 991px) {
  #project-sec .th-team.team-card .box-img {
    height: 360px;
  }
}

@media (max-width: 575px) {
  #project-sec .th-team.team-card .box-img {
    height: 300px;
  }
}
