/* #Start Hero our projects  */


.our-projects-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100vh;
}

.our-projects-hero::after {
  content: "";
  background-image: linear-gradient(rgba(10, 16, 44, 0.23), rgba(1, 22, 36, 0.112)), url(../images/hero1.webp);
  background-size: cover;
  background-position: center;
  opacity: 95%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.our-projects-hero .container {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}

/* #End Hero our projects  */

/* #Start our projects section */
.ref-case-section {
  margin-top: 80px;
}

.ref-case-main-title {
  color: #333;
  text-transform: uppercase;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

.ref-case-grid {
  display: flex;
  /* flex-wrap: wrap; */
  gap: 30px;
  justify-content: flex-start;
  margin: 0 auto;
}

.ref-case-card {
  width: 100%;
  max-width: 509px !important;
  display: flex;
  flex-direction: column;
  background: white !important;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  min-height: 520px;
  margin-bottom: 0;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.ref-case-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.ref-case-img-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.ref-case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ref-case-stats-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background:linear-gradient(to top, rgb(0 0 0 / 85%) 0%, rgb(0 0 0 / 56%) 60%, #0000008c 100%);
  padding: 20px 15px 15px 15px;
  color: white;
  z-index: 2;
}

.ref-case-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  flex: 1;
}

.ref-case-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 55%;
  transform: translateY(-50%);
  height: 60%;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.4);
}

.ref-case-stat-val {
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 7px;
  color: #fff;
}

.ref-case-stat-lbl {
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.8;
  color: #fff;
}

.ref-case-body {
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  background: white;
  z-index: 1;
}

.ref-case-title {
  margin: 0 0 15px 0;
  padding: 0;
  line-height: 1;
}

.ref-case-title a {
  color: #e66a1f !important;
  font-size: 40px;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  display: block;
}

.ref-case-desc {
  color: #555;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  padding-bottom: 70px;
}

.ref-case-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #e66a1f;
  color: white;
  font-size: 19px;
  text-transform: uppercase;
  padding: 12px 44px 8px 65px;
  clip-path: polygon(63px 0, 100% 0, 100% 100%, 0% 100%);
  transition: background-color 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.ref-case-btn:hover {
  background-color: #d15b15;
  color: white;
}

@media (max-width: 1024px) {
  .ref-case-title a {
    font-size: 32px;
  }

  .ref-case-stat-val {
    font-size: 22px;
  }

  .ref-case-body {
    padding: 20px;
  }

  .ref-case-btn {
    padding: 15px 30px 15px 45px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .ref-case-grid{
    flex-wrap: wrap;
  }

  .ref-case-card {
    max-width: 100% !important;
  }

  .ref-case-img-wrap {
    height: 240px;
  }

  .ref-case-stat-val {
    font-size: 20px;
  }
}

/* #End our projects section  */


/* #Start get-reference-list */

.get-reference-list {
  margin-bottom: 80px;
}

/* #End get-reference-list */


/* ## Start project single page  */

/* #Start single project  */

.single-project-container {
  margin-top: 60px;
  margin-bottom: 60px;
}

.single-project-header {

  color: #212529;
  margin-bottom: 30px;
  text-align: left;
}

.features-main-title {
  margin-bottom: 15px;
}


.single-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 400px);
  gap: 10px;
}

.single-project-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.single-project-image:nth-child(1) {
  grid-column: 1 / 3;
}

.single-project-image:nth-child(4) {
  grid-column: 2 / 4;
}

.single-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .single-project-header {
    font-size: 2rem;
  }

  .single-project-grid {
    /* grid-template-columns: 1fr; */
  }
}

/* #End single project  */

/* #Start project features section */

.project-features-section {

  padding: 25px 0
}

.project-features-section .features-main-title {
  letter-spacing: 2px;
  margin-bottom: 80px;
  color: #1a1a1a;
}

.project-features-section .features-stats-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
}

.project-features-section .stat-item {
  flex: 1;
  position: relative;
}

.project-features-section .stat-number {
  font-size: 72px;
  font-weight: 300;
  color: #ff6b35;
  margin-bottom: 15px;
  display: block;
  border-bottom: var(--primary-color) 1px solid;
}

.project-features-section .stat-label {
  font-size: 16px;
  color: #666;
  padding-top: 15px;
  display: inline-block;
  text-transform: uppercase;
}

.project-features-section .features-section-title {
  letter-spacing: 1.5px;
  margin-bottom: 30px;
  color: #1a1a1a;
  border-bottom: 1px solid #000;

}

.project-features-section .features-description-text {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 60px;
  text-align: justify;
}

.project-features-section .collaboration-section-title {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 1.5px;
  margin-bottom: 30px;
  color: #1a1a1a;
  border-bottom: 1px solid #000;
}

.project-features-section .collaboration-description-text {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}

@media (max-width: 1024px) {
  .project-features-section {
    padding: 40px 40px;
  }

  .project-features-section .features-stats-container {
    flex-direction: column;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .project-features-section {
    padding: 30px 20px;
  }

  .project-features-section .features-main-title {
    margin-bottom: 50px;
  }

  .project-features-section .stat-number {
    font-size: 56px;
  }


  .project-features-section .features-description-text,
  .project-features-section .collaboration-description-text {
    font-size: 15px;
  }
}

/* #End project features section */

/* #Start location showcase */

.location-showcase {
  padding: 60px 0;

}

.location-showcase__header {
  margin-bottom: 50px;
}

.location-showcase__title {

  letter-spacing: 0.5px;
  color: #2c3e50;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.2;
}

.location-showcase__subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #000;
  letter-spacing: 0.3px;
}

.location-showcase__divider {
  width: 100%;
  height: 1px;
  background-color: #000;
  margin-top: 20px;
  margin-bottom: 40px;
}

.location-showcase__map-container {
  width: 100%;
  height: 450px;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background-color: #8890a0;
}

.location-showcase__yandex-map {
  width: 100%;
  height: 100%;
  border: none;
}

/* Loading state */
.location-showcase__map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  pointer-events: none;
  z-index: 1;
}

.location-showcase__map-loading::before {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Custom controls overlay */
.location-showcase__map-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.location-showcase__map-button {
  width: 36px;
  height: 36px;
  background-color: #ffffff;
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #333;
  font-size: 20px;
  font-weight: bold;
}

.location-showcase__map-button:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.location-showcase__map-button:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .location-showcase {
    padding: 40px 20px;
  }

  .location-showcase__title {
    font-size: 28px;
  }

  .location-showcase__map-container {
    height: 350px;
  }

  .location-showcase__map-controls {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .location-showcase__title {
    font-size: 24px;
  }

  .location-showcase__subtitle {
    font-size: 13px;
  }

  .location-showcase__map-container {
    height: 300px;
  }
}

/* End location showcase */

/* #Start single project features */

.single-project-features {
  color: #000;
  display: flex;
  gap: 10px;
  position: relative;
  padding: 40px 0;
  overflow: hidden;
}

.single-project-features::after {
  content: url(../images/bg-s.png);
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  width: 100%;
}

.single-project-features h2 {
  width: 50%;
  font-weight: 100;
  text-transform: uppercase;
  font-size: 37px;
}

.single-project-features .single-project-features-text {
  width: 50%;
}

.single-project-features p {
  text-align: left;
  line-height: 1.6;
  margin-bottom: 30px;
  border-top: #000 1px solid;
}

@media (max-width: 768px) {
  .single-project-features {
    flex-direction: column;
    padding: 40px 20px;
  }

  .single-project-features h2,
  .single-project-features .single-project-features-text {
    width: 100%;
  }

  .single-project-features h2 {
    margin-bottom: 20px;
    font-size: 24px;
  }
}

/* #End single project features */

/* #start single project stages */

.single-project-stages .home-news-card-main-title {
  color: var(--secondary-color);
  padding: 0;
  margin: 0;
}

.single-project-stages h4 {
  text-transform: uppercase;
}

.single-project-stages .home-news-card-main-subtitle {
  margin-top: auto;
}

/* #end single project stages */

/* #Start single project infrastructure */
.single-project-infrastructure {
  display: block;
  padding-top: 40px;
  padding-bottom: 40px;
}

.project-infrastructure-text h3 {
  font-weight: 400;
  text-transform: uppercase;
  color: #1e2633;
  margin-top: 50px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #8e959c;
  line-height: 1.2;
}

.project-infrastructure-text h3:first-child {
  margin-top: 0;
}

.project-infrastructure-text p {
  font-size: 17px;
  line-height: 1.4;
  color: #2F3945;
  margin-bottom: 0;
  text-align: left;
  border: none;
}

@media (max-width: 768px) {
  .project-infrastructure-text h3 {
    font-size: 32px;
  }

  .project-infrastructure-text p {
    font-size: 12px;
  }
}

@media (max-width: 440px) {
  .project-infrastructure-text h3 {
    font-size: 17px;
  }

  .project-infrastructure-text p {
    font-size: 9px;
  }
}


/* #End single project infrastructure */

/* #Start Rutube video */
.rutube-responsive {
  margin-top: 60px;
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 40.25%;
  height: 0;
}

.rutube-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* #End Rutube video */

/* #Start single project testimonial */

.single-project-testimonial {
  padding: 80px 0px;
  font-family: Arial, sans-serif;
}

.single-project-testimonial__container {
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* Sidebar (white box) */
.single-project-testimonial__sidebar {
  flex: 0 0 30%;
  max-width: 30%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  box-sizing: border-box;
}

.single-project-testimonial__title {
  margin: 0;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.2;
  color: #000000;
}

.single-project-testimonial__read-more {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: #000000;
}

/* Content (dark grey box) */

.single-project-testimonial .person-testimonial {
  display: flex;
  gap: 20px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: #fff 1px solid;
}

.single-project-testimonial img {
  max-width: 100px;
  max-height: 100px;
  border-radius: 50%;
}

.single-project-testimonial .person-info-testimonial {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.single-project-testimonial .person-info-testimonial p {
  padding: 0;
  margin: 0;
}

.single-project-testimonial__content {
  flex: 1;
  background: var(--primary-color);
  color: #ffffff;
  padding: 40px;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
}

.single-project-testimonial__content p {
  margin: 0 0 1em 0;
  line-height: 1.6;
  font-size: 16px;
}

/* Next Project link positioned bottom-right */
.single-project-testimonial__next-project {
  margin-top: auto;
  align-self: flex-end;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
}

.single-project-testimonial__next-project {
  margin-bottom: 60px;
  text-align: end;
}

.single-project-testimonial__next-project a {
  color: var(--primary-color);
  font-size: medium;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .single-project-testimonial__container {
    flex-direction: column;
  }

  .single-project-testimonial__sidebar,
  .single-project-testimonial__content {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .single-project-testimonial__sidebar {
    padding: 24px;
  }

  .single-project-testimonial__content {
    padding: 24px;
  }

  .single-project-testimonial__read-more,
  .single-project-testimonial__next-project {
    font-size: 14px;
  }
}

.next-project-container {
  display: flex;
  justify-content: flex-end;
  padding-top: 40px;
  padding-bottom: 60px;
  margin-top: 40px;
}

.next-project-link {
  text-transform: uppercase;
  color: #2F3945;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  transition: opacity 0.3s ease;
  font-size: 20px;
}

@media (min-width: 768px) {
  .next-project-link {
    font-size: 30px;
  }
}

@media (min-width: 1200px) {
  .next-project-link {
    font-size: 30px;
  }
}

.next-project-link:hover {
  opacity: 0.7;
}

.next-project-link .arrow {
  font-size: 1.2em;
  line-height: 1;
  margin-bottom: 5px;
}

/* #End single project testimonial */