/* ==========================================
   INDUSTRIES SECTION
========================================== */

.industries-section {

  padding: 60px 0 70px;

  background: #f8fafc;

}


/* ==========================================
   CONTAINER
========================================== */

.industries-section .container {

  max-width: 1200px;

  margin: 0 auto;

  padding: 0 20px;

}


/* ==========================================
   GRID
========================================== */

.industries-grid {

  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  column-gap: 30px;

  row-gap: 55px;

}


/* ==========================================
   FLIP CARD
========================================== */

.industry-card {

  position: relative;

  height: 560px;

  perspective: 1400px;

  scroll-margin-top: 110;

}


/* ==========================================
   CARD INNER
========================================== */

.industry-card-inner {

  position: relative;

  width: 100%;

  height: 100%;

  transform-style: preserve-3d;

  transition:
    transform .65s cubic-bezier(.2, .7, .2, 1);

}


/* ==========================================
   FLIPPED STATE
========================================== */

.industry-card.is-flipped .industry-card-inner {

  transform: rotateY(180deg);

}


/* ==========================================
   CARD FACE
========================================== */

.industry-card-face {

  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  overflow: hidden;

  background: #fff;

  border: 1px solid #e8edf3;

  border-radius: 14px;

  box-shadow:
    0 8px 28px rgba(0, 0, 0, .06);

  backface-visibility: hidden;

  -webkit-backface-visibility: hidden;

}


/* ==========================================
   FRONT
========================================== */

.industry-card-front {

  display: flex;

  flex-direction: column;

}


/* ==========================================
   IMAGE
========================================== */

.industry-image {

  width: 100%;

  height: 220px;

  object-fit: cover;

  display: block;

  flex-shrink: 0;

}


/* ==========================================
   FRONT CONTENT
========================================== */

.industry-content {

  display: flex;

  flex-direction: column;

  flex: 1;

  padding: 26px;

}


.industry-content h2 {

  margin: 0 0 14px;

  color: var(--text-dark);

  font-size: 24px;

  font-weight: 700;

  line-height: 1.3;

}


.industry-content p {

  margin: 0;

  color: #444;

  font-size: 15px;

  line-height: 1.7;

}


/* ==========================================
   INDUSTRY TAGS
========================================== */

.industry-tags {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 18px;

}


.industry-tags span {

  padding: 5px 10px;

  border-radius: 4px;

  background: #eef5ff;

  color: #0A2463;

  font-size: 12px;

  font-weight: 600;

  line-height: 1.4;

}


/* ==========================================
   VIEW PROJECTS
========================================== */

.view-projects-btn {

  display: flex;

  align-items: center;

  justify-content: space-between;

  width: 100%;

  margin-top: auto;

  padding: 16px 0 0;

  border: 0;

  border-top: 1px solid #e8edf3;

  background: transparent;

  color: #0A2463;

  font-family: inherit;

  font-size: 12px;

  font-weight: 500;

  text-align: left;

  cursor: pointer;

}


.view-projects-btn strong {

  font-size: 14px;

  font-weight: 700;

}


.project-arrow {

  font-size: 18px;

  line-height: 1;

  transition:
    transform .2s ease;

}


.view-projects-btn:hover .project-arrow {

  transform: translateX(4px);

}


/* ==========================================
   BACK
========================================== */

.industry-card-back {

  display: flex;

  flex-direction: column;

  padding: 25px 26px;

  transform: rotateY(180deg);

}


/* ==========================================
   BACK HEADER
========================================== */

.project-back-header {

  flex-shrink: 0;

  padding-bottom: 16px;

  border-bottom: 1px solid #e8edf3;

}


.project-back-header h2 {

  margin: 0;

  color: #0A2463;

  font-size: 22px;

  font-weight: 700;

  line-height: 1.3;

}


.project-industry-name {

  display: block;

  margin-top: 5px;

  color: #7b8494;

  font-size: 12px;

  line-height: 1.4;

}


/* ==========================================
   PROJECT LIST
========================================== */

.project-list {

  flex: 1;

  min-height: 0;

  overflow-y: auto;

  padding-right: 6px;

}


/* ==========================================
   PROJECT SCROLLBAR
========================================== */

.project-list::-webkit-scrollbar {

  width: 4px;

}


.project-list::-webkit-scrollbar-track {

  background: transparent;

}


.project-list::-webkit-scrollbar-thumb {

  background: #d5dae2;

  border-radius: 4px;

}


/* ==========================================
   PROJECT ITEM
========================================== */

.project-item {

  position: relative;

  padding: 14px 0 14px 15px;

  border-bottom: 1px solid #edf0f4;

}


.project-item:last-child {

  border-bottom: none;

}


.project-item::before {

  content: "";

  position: absolute;

  left: 0;

  top: 21px;

  width: 5px;

  height: 5px;

  border-radius: 50%;

  background: #0A2463;

}


.project-item strong {

  display: block;

  color: #1b2433;

  font-size: 13px;

  font-weight: 600;

  line-height: 1.5;

}


.project-item span {

  display: block;

  margin-top: 4px;

  color: #7b8494;

  font-size: 11px;

  line-height: 1.4;

}


/* ==========================================
   BACK FOOTER
========================================== */

.project-back-footer {

  flex-shrink: 0;

  display: flex;

  justify-content: flex-end;

  padding-top: 14px;

  border-top: 1px solid #e8edf3;

}


/* ==========================================
   BACK BUTTON
========================================== */

.back-to-industry {

  padding: 0;

  border: 0;

  background: transparent;

  color: #7b8494;

  font-family: inherit;

  font-size: 11px;

  font-weight: 500;

  cursor: pointer;

  transition:
    color .2s ease,
    transform .2s ease;

}


.back-to-industry:hover {

  color: #0A2463;

  transform: translateX(-3px);

}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 992px) {

  .industries-section {

    padding: 55px 0 65px;

  }


  .industries-grid {

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    column-gap: 30px;

    row-gap: 40px;

  }


  .industry-card {

    height: 570px;

  }


  .industry-image {

    height: 220px;

  }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

  .industries-section {

    padding: 45px 0 55px;

  }


  .industries-grid {

    grid-template-columns: 1fr;

    gap: 24px;

  }


  .industry-card {

    height: 560px;

  }


  .industry-image {

    height: 210px;

  }


  .industry-content {

    padding: 22px;

  }


  .industry-content h2 {

    font-size: 22px;

  }


  .industry-content p {

    font-size: 15px;

    line-height: 1.7;

  }


  .industry-tags {

    margin-top: 18px;

  }


  .industry-tags span {

    font-size: 12px;

    padding: 5px 9px;

  }


  .industry-card-back {

    padding: 22px;

  }


  .project-back-header h2 {

    font-size: 21px;

  }


  .project-item strong {

    font-size: 13px;

  }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {

  .industries-section {

    padding: 40px 0 50px;

  }


  .industry-card {

    height: 550px;

  }


  .industry-image {

    height: 200px;

  }


  .industry-content {

    padding: 20px;

  }


  .industry-content h2 {

    font-size: 21px;

  }


  .industry-content p {

    font-size: 14px;

  }


  .industry-card-back {

    padding: 20px;

  }

}


/* ==========================================
   HASH NAVIGATION LOADING
   Prevent top-of-page flash before anchor positioning
========================================== */

html.hash-loading body {
  visibility: hidden;
}


/* ==========================================
   ANCHOR SCROLL OFFSET
   Prevent fixed navbar from covering sections
========================================== */

html {
  scroll-padding-top: 110px;
}