/* portfolio projects section */
.portfolio-main-section {
  padding: 50px 0 0;
}

.portfolio-header-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  width: 100%;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.portfolio-main-heading-container {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.portfolio-main-title {
  font-family: 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 100%;
  font-variant: small-caps;
  color: #393939;
  margin: 0;
  position: relative;
  display: inline-block;
}

.portfolio-title-gradient-underline {
  position: absolute;
  width: 83px;
  height: 27px;
  left: -0.27px;
  bottom: 10px;
  background: linear-gradient(90deg, #0c47a0 0%, #8fecfc 100%);
  border-radius: 30px;
  z-index: -1;
}

.portfolio-subtitle-description {
  flex: 0 1 auto;
  max-width: 392px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 100%;
  color: #939393;
}

.portfolio-filter-menu-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 50px;
}

.portfolio-filter-button-active {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 6px 10px;
  height: 39px;
  border: 1px solid #0c47a0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  color: #0c47a0;
  white-space: nowrap;
}

.portfolio-filter-button-default {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 6px 10px;
  height: 39px;
  border: 1px solid #393939;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  color: #393939;
  white-space: nowrap;
}

.portfolio-filter-primary-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  width: 100%;
  justify-content: flex-start;
}

.portfolio-filter-secondary-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  width: 100%;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.portfolio-filter-primary-row .portfolio-filter-button-active,
.portfolio-filter-primary-row .portfolio-filter-button-default {
  flex: 1 1 auto;
  min-width: fit-content;
}

.portfolio-filter-secondary-row .portfolio-filter-button-active,
.portfolio-filter-secondary-row .portfolio-filter-button-default {
  padding-left: 30px;
  padding-right: 30px;
}

.portfolio-projects-container-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.portfolio-project-card-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  border-radius: 20px;
  flex-wrap: wrap;
}

.portfolio-project-image-wrapper {
  flex: 1 1 600px;
  min-width: 270px;
  height: 563px;
  border-radius: 14px;
  overflow: hidden;
}

.portfolio-project-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-project-info-sidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 0 0 347px;
  min-width: 270px;
  height: 563px;
}

.portfolio-project-header-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 16px 20px;
  width: 100%;
  min-height: 100px;
  background: #f4f4f4;
  border-radius: 10px;
}

.portfolio-project-title-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

.portfolio-project-icon-title-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.portfolio-project-icon-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  background: #a5c6f6;
  border-radius: 10px;
  overflow: hidden;
}

.portfolio-project-icon-large {
  flex: 0 0 135px;
  width: 135px;
}

.portfolio-project-icon-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.portfolio-project-heading-text {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 150%;
  text-transform: capitalize;
  color: #393939;
  flex: 1;
  word-wrap: break-word;
}

.portfolio-project-details-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  gap: 16px;
  width: 100%;
  flex: 1;
  background: #f4f4f4;
  border-radius: 10px;
}

.portfolio-project-tags-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 8px;
  width: 100%;
}

.portfolio-project-tag-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 4px 10px;
  height: 29px;
  border: 1px solid #393939;
  border-radius: 16px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 150%;
  color: #393939;
  white-space: nowrap;
}

.portfolio-project-details-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 6px 10px;
  width: 100%;
  height: 60px;
  background: #0c47a0;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  gap: 6px;
}

.portfolio-button-text-label {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: #ffffff;
}

.portfolio-button-arrow-icon {
  width: 24px;
  height: 24px;
  transform: rotate(90deg);
  flex-shrink: 0;
}

.portfolio-icon-dark-background {
  background: #393939;
}

@media (max-width: 1180px) {
  .portfolio-filter-menu-section {
    gap: 8px;
  }
}

@media (max-width: 1200px) {
  .portfolio-project-image-wrapper {
    flex: 1 1 500px;
  }
}

@media (max-width: 992px) {
  .portfolio-main-section {
    padding: 30px 0 0 0;
  }

  .portfolio-header-wrapper {
    gap: 12px;
  }

  .portfolio-project-card-container {
    flex-direction: column;
  }

  .portfolio-project-image-wrapper {
    flex: 1 1 auto;
    width: 100%;
    height: 400px;
  }

  .portfolio-project-info-sidebar {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .portfolio-project-card-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .portfolio-project-image-wrapper {
    flex: 1 1 auto;
    width: 100%;
    height: 184px;
    border-radius: 14px;
  }

  .portfolio-project-info-sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    height: auto;
    flex: none;
    background: #f4f4f4;
    border-radius: 10px;
  }

  .portfolio-project-header-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 24px 24px 0 24px;
    width: 100%;
    min-height: auto;
    background: transparent;
    border-radius: 0;
  }

  .portfolio-project-icon-title-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .portfolio-project-icon-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    background: #1f1f1f;
    border-radius: 10px;
  }

  .portfolio-project-icon-large {
    flex: 0 0 52px;
    width: 52px;
  }

  .portfolio-project-heading-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 150%;
    text-transform: capitalize;
    color: #393939;
    flex: 1;
  }

  .portfolio-project-details-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 24px 24px;
    gap: 20px;
    width: 100%;
    height: auto;
    background: #f4f4f4;
    border-radius: 0 0 10px 10px;
  }

  .portfolio-project-details-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 24px 24px;
    gap: 20px;
    width: 100%;
    height: auto;
    background: transparent;
    border-radius: 0;
  }

  .portfolio-header-wrapper {
    flex-direction: column;
  }

  .portfolio-project-tags-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    gap: 8px;
    width: 100%;
  }

  .portfolio-project-tag-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 4px 10px;
    height: 23px;
    border: 1px solid #393939;
    border-radius: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 10px;
    line-height: 150%;
    color: #393939;
    white-space: nowrap;
    text-align: center;
  }

  .portfolio-project-details-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    gap: 8px;
    width: auto;
    height: 50px;
    background: transparent;
    border-radius: 0;
    border: none;
    cursor: pointer;
    margin-top: -14px;
    margin-bottom: 14px;
    padding: 20px;
  }

  .portfolio-button-arrow-icon {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 5px 6px;
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .portfolio-button-arrow-icon svg {
    width: 16px;
    height: 16px;
    transform: rotate(-90deg);
  }

  .arrow-big {
    display: none;
  }

  .portfolio-button-arrow-icon path {
    fill: #0c47a0;
    stroke: #0c47a0;
  }

  .portfolio-button-text-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 150%;
    font-variant: small-caps;
    color: #393939;
  }

  .portfolio-projects-container-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .portfolio-project-image-wrapper,
  .portfolio-project-info-sidebar {
    width: 100%;
  }

  .portfolio-project-details-card {
    padding: 20px;
  }

  .portfolio-button-text-label {
    font-size: 16px;
  }
}

.contacts-main-heading-title {
  font-family: 'Segoe UI';
  font-style: normal;
  font-weight: 600;
  font-size: 40px;
  line-height: 100%;
  color: #393939;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.contacts-main-heading-title .heading {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 828px) {
  .contacts-main-heading-title {
    width: 100%;
    font-size: 28px;
    gap: 8px;
    flex-wrap: wrap;
  }
}

@media (max-width: 630px) {
  .portfolio-main-section {
    padding: 10px 0 0 0;
  }

  .portfolio-header-wrapper .hero-title-block {
    display: block !important;
  }

  .portfolio-header-wrapper {
    gap: 6px;
  }

  .contacts-main-heading-title {
    display: block;
    font-size: 30px;
    gap: 8px;
  }

  .contacts-main-heading-title .heading {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    line-height: 100% !important;
    font-variant: small-caps;
    color: #393939;
    font-size: 30px;
    letter-spacing: 1.05px;
    -webkit-text-stroke: 0.6px #393939;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .contacts-main-heading-title .heading::first-letter {
    font-weight: 500;
    font-family: 'Segoe UI', sans-serif;
    -webkit-text-stroke: 0.7px #393939;
  }

  .geo-icon-small {
    bottom: 0.4rem;
    width: 55px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    margin-bottom: -10px;
  }

  .hero-title-block p svg {
    top: -10px;
    left: 5px;
  }

  .portfolio-header-wrapper {
    padding-top: 10px;
  }

  .geo-icon-small {
    position: relative;
    top: -0.45rem !important;
    left: 0.4rem;
  }
}

@media (min-width: 1616px) {
  .portfolio-filter-secondary-row .portfolio-filter-button-default {
    padding: 6px 50px;
  }

  .portfolio-project-image-wrapper {
    height: 500px;
  }

  .portfolio-project-info-sidebar {
    height: 500px;
  }
}

@media (min-width: 980px) and (max-width: 1616px) {
  .portfolio-project-image-wrapper {
    height: 430px;
  }

  .portfolio-project-info-sidebar {
    height: 430px;
  }
}

@media (max-width: 370px) {
  .big-letter {
    font-size: 1.9rem;
  }

  .geo-icon-small {
    width: 57px !important;
    top: -8px !important;
  }
}
