/* Hero section */
.services-hero {
  position: relative;
  min-height: 60vh;
  width: 100%;
}
.services-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 80%;
  background: url("../../assets/images/bg/home-about.svg") no-repeat center
    center;
  background-size: contain;
  opacity: 0.1;
  pointer-events: none;
  z-index: 1;
}
.services-hero .text {
  margin-top: 13%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.services-hero .text .title {
  font-size: 1.4rem;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 5rem;
}
.services-hero .text .subtitle,
.services-hero .text .description {
  opacity: 0.7;
  font-weight: 400;
  line-height: 140%;
}
.services-hero .text .subtitle {
  font-size: 2.506rem;
  margin-bottom: 2rem;
}
.services-hero .text .description {
  font-size: 1.063rem;
  max-width: 45%;
}

/* Industries section */
.services-industries {
  padding: 5rem 4.5rem;
  min-height: 50vh;
  background-color: #f6f6f6;
  position: relative;
}
.services-industries .industries-grid {
  display: flex;
  column-gap: 8rem;
}
.services-industries .industries-grid .col {
  flex: 0.5;
  position: relative;
}

.industry-image-container {
  position: absolute;
  left: 50%;
  width: 320px;
  height: 200px;
  pointer-events: none;
  z-index: 1;
  display: none;
  align-items: flex-start;
  justify-content: flex-start;
}

body.js-enabled .industry-image-container {
  display: flex;
}

.industry-image {
  width: 450px;
  height: 250px;
  object-fit: cover;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-industries .industries-grid .col.col-1 .title {
  text-transform: uppercase;
  margin-bottom: 5rem;
  font-size: 1.375rem;
  font-weight: 400;
}
.services-industries .industries-grid .col.col-1 .subtitle,
.services-industries .industries-grid .col.col-1 .description {
  line-height: 140%;
  opacity: 0.7;
}
.services-industries .industries-grid .col.col-1 .subtitle {
  font-size: 2.506rem;
  max-width: 80%;
  margin-bottom: 0.5rem;
}
.services-industries .industries-grid .col.col-1 .description {
  font-size: 1.063rem;
}
.services-industries .industries-grid .col.col-2 .industries-list {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  white-space: normal;
}

.services-industries .industries-grid .col.col-2 .industries-list li {
  cursor: default;
  display: flex;
  width: fit-content;
  font-weight: 300;
  font-size: 1.875rem;
  padding: 0.1rem 0.3rem;
  line-height: 140%;
  margin-bottom: 1rem;
  transition: background-color 0.3s linear, color 0.3s linear;
  position: relative;
}

.services-industries .industries-grid .col.col-2 .industries-list li:hover {
  background-color: #0ab692;
  color: #fff;
}

/* Services list section */

.services-list-section > .title {
  padding: 6rem 0 0 4.5rem;
  font-size: 2.625rem;
  font-weight: 400;
  text-transform: uppercase;
  background-color: #f6f6f6;
}

.services-list-section .service {
  padding: 2rem 4.5rem;
  position: relative;
  min-height: 40vh;
  height: 100%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
}

.services-list-section .service:nth-child(even) {  
  background-color: #f6f6f6;
}

.services-list-section .service .text {
  position: relative;
  z-index: 10;
  text-align: left;
  flex: 0.6;
}

.services-list-section .service .icon-container {
  flex: 0.4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-list-section .service .icon-container .service-icon {
  min-height: 300px;
}

.services-list-section .service .text .title {
  font-size: 1.688rem;
  font-weight: 400;
  margin-bottom: 2rem;
}
.services-list-section .service .text .description,
.services-list-section .service .text .list {
  font-size: 1.063rem;
  font-weight: 400;
  line-height: 140%;
  max-width: 95%;
}
.services-list-section .service .text .description {
  margin-bottom: 0.5rem;
}
.services-list-section .service .text .list {
  padding-left: 1.5rem;
}

/* How we work section */
.services-how-we-work {
  background: #fff;
  min-height: 70vh;
  width: 100%;
}
.how-we-work-title {
  padding: 6rem 4.5rem 0;
  font-size: 2.625rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
}
.how-we-work-steps {
  width: 100%;
  padding: 0 4.5rem 6rem;
}
.how-we-work-steps .step {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.2);
}
.how-we-work-steps .step:last-child {
  border-bottom: none;
}
.how-we-work-steps .step-num {
  font-family: "Kode Mono", monospace;
  font-size: 1.375rem;
  font-weight: 400;
  opacity: 0.2;
  flex: 0.1;
}
.how-we-work-steps .step-main,
.how-we-work-steps .step-desc {
  line-height: 140%;
  opacity: 0.7;
  flex: 0.45;
}
.how-we-work-steps .step-main {
  font-size: 1.563rem;
}
.how-we-work-steps .step-desc {
  font-size: 1.063rem;
}

/* Technical domains section */
.services-how-we-work .technical-domains {
  display: block;
  position: relative;
  padding: 6rem 4.5rem;
  min-height: 30vh;
  background: #f6f6f6;
}
.services-how-we-work .technical-domains .title {
  text-transform: uppercase;
  font-size: 1.688rem;
  font-weight: 400;
  margin-bottom: 3rem;
}
.services-how-we-work .technical-domains .animated-text {
  font-size: 1.879rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0.2;
  position: absolute;
  left: 0;
  bottom: 5rem;
  transform: none;
  z-index: 0;
  white-space: nowrap;
  display: flex;
  width: max-content;
  animation: animatedTextScrollLoop 30s linear infinite;
  pointer-events: none;
}

/* Animations */
@keyframes animatedTextScrollLoop {
  0% {
    transform: translateX(0) translateY(-50%);
  }
  100% {
    transform: translateX(-50%) translateY(-50%);
  }
}
@keyframes animatedTextScroll {
  0% {
    transform: translateX(100%) translateY(-50%);
  }
  100% {
    transform: translateX(-100%) translateY(-50%);
  }
}

@media screen and (max-width: 1200px) {
  .services-hero .text {
    margin-top: 20%;
  }
}

/* ========================================
   RESPONSIVE DESIGN - SERVICES PAGE
======================================== */

/* Tablet and small desktop styles */
@media screen and (max-width: 1024px) {
  .services-hero .text {
    margin-top: 30%;
  }
  .services-hero .text .title {
    font-size: 1.3rem;
    margin-bottom: 4rem;
  }

  .services-hero .text .subtitle {
    font-size: 2.2rem;
  }

  .services-hero .text .description {
    max-width: 60%;
    font-size: 1rem;
  }

  .services-industries {
    padding: 4rem 3rem;
  }

  .services-industries .industries-grid {
    column-gap: 4rem;
  }

  .services-list-section .service {
    padding: 4rem 3rem;
  }

  .services-how-we-work .how-we-work-title {
    padding: 4rem 3rem 0;
    font-size: 1.5rem;
  }

  .services-how-we-work .how-we-work-steps {
    padding: 0 3rem 4rem;
  }

  .services-how-we-work .technical-domains {
    padding: 4rem 3rem;
  }
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  /* Hero Section */
  .services-hero {
    min-height: 60vh;
    padding: 0 1.5rem;
  }

  .services-hero .text {
    margin-top: 50%;
  }

  .services-hero .text .title {
    font-size: 1.2rem;
    margin-bottom: 3rem;
  }

  .services-hero .text .subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .services-hero .text .description {
    max-width: 90%;
    font-size: 1rem;
  }

  /* Industries Section */
  .services-industries {
    padding: 3rem 1.5rem;
    min-height: auto;
  }

  .services-industries .industries-grid {
    flex-direction: column;
    gap: 3rem;
  }

  .services-industries .industries-grid .col {
    flex: 1;
  }

  .services-industries .industries-grid .col.col-1 .title {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .services-industries .industries-grid .col.col-1 .subtitle {
    font-size: 1.8rem;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .services-industries .industries-grid .col.col-1 .description {
    font-size: 1rem;
  }

  .services-industries .industries-grid .col.col-2 .industries-list li {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    display: block;
    width: 100%;
    padding: 0.5rem;
  }

  /* Hide industry image container on mobile */
  .industry-image-container {
    display: none;
  }

  /* Services List Section */
  .services-list-section .service {
    flex-direction: column;
    align-items: center;
    justify-content: center !important;
    padding: 3rem 1.5rem;
    min-height: 40vh;
  }

  .services-list-section > .title {
    padding: 3rem 0 0 1.5rem;
    font-size: 1.2rem;
  }

  .services-list-section .service .icon-container .service-icon {
    min-height: 150px !important;
  }

  .services-list-section .service .icon-container {
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 2rem;
  }

  .services-list-section .service .text {
    width: 100%;
    order: 2;
  }

  .services-list-section .service .text .title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .services-list-section .service .text .description,
  .services-list-section .service .text .list {
    font-size: 1rem;
    max-width: 100%;
  }

  /* How We Work Section */
  .services-how-we-work .how-we-work-title {
    padding: 3rem 1.5rem 0;
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }

  .services-how-we-work .how-we-work-steps {
    padding: 0 1.5rem 3rem;
  }

  .services-how-we-work .how-we-work-steps .step {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem 0;
  }

  .services-how-we-work .how-we-work-steps .step-num {
    flex: none;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .services-how-we-work .how-we-work-steps .step-main {
    flex: none;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .services-how-we-work .how-we-work-steps .step-desc {
    flex: none;
    font-size: 1rem;
  }

  /* Technical Domains */
  .services-how-we-work .technical-domains {
    display: none;
    padding: 3rem 1.5rem;
    min-height: 30vh;
  }

  .services-how-we-work .technical-domains .title {
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }

  .services-how-we-work .technical-domains .animated-text {
    font-size: 1.2rem;
    bottom: 2rem;
  }
}

/* Small mobile styles */
@media screen and (max-width: 480px) {
  .services-hero {
    min-height: 50vh;
    padding: 0 1rem;
  }

  .services-hero .text {
    margin-top: 60%;
  }

  .services-hero .text .title {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .services-hero .text .subtitle {
    font-size: 1.5rem;
  }

  .services-hero .text .description {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .services-industries {
    padding: 2rem 1rem;
  }

  .services-industries .industries-grid .col.col-1 .title {
    font-size: 1.1rem;
  }

  .services-industries .industries-grid .col.col-1 .subtitle {
    font-size: 1.5rem;
  }

  .services-industries .industries-grid .col.col-2 .industries-list li {
    font-size: 1.1rem;
  }

  .services-list-section .service {
    padding: 2rem 1rem;
    min-height: 40vh;
  }

  .services-list-section .service .text .title {
    font-size: 1.2rem;
  }

  .services-list-section .service .text .description,
  .services-list-section .service .text .list {
    font-size: 0.95rem;
  }

  .services-how-we-work .how-we-work-title {
    padding: 2rem 1rem 0;
    font-size: 1.2rem;
  }

  .services-how-we-work .how-we-work-steps {
    padding: 0 1rem 2rem;
  }

  .services-how-we-work .how-we-work-steps .step-main {
    font-size: 1.1rem;
  }

  .services-how-we-work .technical-domains {
    padding: 2rem 1rem;
  }

  .services-how-we-work .technical-domains .title {
    font-size: 1.2rem;
  }
}

/* ========================================
   LARGE SCREEN OPTIMIZATION (1900px+)
======================================== */
@media screen and (min-width: 1900px) {
  /* Hero section optimization */
  .services-hero {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 6rem;
    min-height: 50vh;
  }

  .services-hero .text {
    margin-top: 30%;
  }

  .services-hero .text .description {
    max-width: 800px;
    margin: 0 auto;
  }

  /* Industries section optimization */
  .services-industries {
    max-width: 1800px;
    margin: 0 auto;
    padding: 6rem;
  }

  .services-industries .industries-grid {
    max-width: 1600px;
    margin: 0 auto;
    column-gap: 6rem;
  }

  .services-industries .industries-grid .col.col-1 .subtitle {
    max-width: 90%;
  }

  /* Services list section optimization */

  .services-list-section > .title {
    max-width: 1800px;
    margin: 0 auto;
    padding: 6rem 0 0 4.5rem;
  }

  .services-list-section .service {
    max-width: 1800px;
    margin: 0 auto;
    padding: 6rem;
    min-height: 40vh;
  }

  .services-list-section .service .text {
    max-width: 800px;
  }

  /* How we work section optimization */
  .services-how-we-work .how-we-work-title {
    max-width: 1800px;
    margin: 0 auto;
    padding: 6rem 6rem 0;
  }

  .services-how-we-work .how-we-work-steps {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 6rem 6rem;
  }

  .services-how-we-work .how-we-work-steps .step {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
  }

  /* Technical domains optimization */
  .services-how-we-work .technical-domains {
    max-width: 1800px;
    margin: 0 auto;
    padding: 6rem;
    min-height: 20vh;
  }

  .services-how-we-work .technical-domains .animated-text {
    font-size: 2rem;
    max-width: 1600px;
  }

  /* Typography optimization for large screens */
  .services-hero .text .title {
    font-size: 1.5rem;
  }

  .services-hero .text .subtitle {
    font-size: 2.6rem;
  }

  .services-industries .industries-grid .col.col-1 .title {
    font-size: 1.5rem;
  }

  .services-industries .industries-grid .col.col-1 .subtitle {
    font-size: 2.6rem;
  }

  .services-list-section .service .text .title {
    font-size: 1.8rem;
  }

  .services-how-we-work .how-we-work-title {
    font-size: 1.8rem;
  }

  .services-how-we-work .technical-domains .title {
    font-size: 1.8rem;
  }

  /* Industry image container optimization */
  .industry-image-container {
    width: 400px;
    height: 250px;
  }

  .industry-image {
    width: 500px;
    height: 300px;
  }
}
