/* 

Mobile

*/
@font-face {
  font-family: "dinpro-light";
  src: url("../fonts/pfdintextcomppro-light-webfont.ttf") format("truetype");
}

:root {
  --color-primary: #2dc4e3;
  --color-secondary: #543d38;
  --color-white: #fff;

  --color-secondary-darker: hsl(
    from var(--color-secondary) h clamp(0, calc(s + 5), 100)
      clamp(0, calc(l - 5), 100)
  );
  --color-complement: hsl(from var(--color-primary) calc(h - 180) s l);
}

.blue {
  color: var(--color-primary);
}

.brown {
  color: var(--color-secondary);
}

.white {
  color: var(--color-white);
}

.mar-0 {
  margin-left: 0;
  margin-right: 0;
}

.pad-0 {
  padding-left: 0;
  padding-right: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  color: var(--color-secondary);
  font-family: "dinpro-light", sans-serif;
  font-size: 30px;
  line-height: 100%;
}

h1 {
  font-size: 60px;
}

h2 {
  font-size: 45px;
  margin-top: 70px;
  text-align: center;
}

ul {
  list-style-type: none;
}

.btn-lg {
  padding: 2px 30px 0 30px;
  font-size: 30px;
}

.btn-primary {
  &,
  &:link,
  &:visited {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
  }

  &:hover,
  &:active,
  &:active:hover {
    background-color: var(--color-secondary-darker);
    border-color: var(--color-secondary-darker);
  }
}

.va-outer {
  position: relative;
  display: table;
  height: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.va-middle {
  display: table-cell;
  vertical-align: middle;
}

.page-wrapper {
  position: relative;
  min-height: 100%;
}

header {
  text-align: center;

  & .title {
    margin-bottom: 10px;
  }

  & img {
    display: block;
    margin: 80px auto 10px auto;

    @media (min-width: 992px) {
      margin-bottom: 0;
    }
  }

  & .contacts {
    display: flex;
    margin-top: 10px;
    margin-bottom: 80px;
    flex-flow: wrap;
    gap: 15px 30px;
    justify-content: center;

    @media (min-width: 992px) {
      margin-top: 5px;
      margin-bottom: 58px;
      justify-content: flex-start;
    }
  }
}

.text-with-icon {
  display: flex;
}

.icons {
  width: 28px;
  height: 28px;
  background: url(../images/icons.svg) no-repeat;

  &.whatsapp {
    margin-right: 10px;
    background-position: 0px 0px;
  }

  &.email {
    width: 31px;
    margin-right: 10px;
    background-position: -30px 0px;
  }
}

footer {
  & .icons {
    &.whatsapp {
      background-position: 0px -60px;
    }

    &.email {
      background-position: -30px -60px;
    }
  }
}

main {
  padding-bottom: 540px;

  @media (min-width: 992px) {
    padding-bottom: 355px;
  }
}
/*

Major portfolio

*/
#majorPortfolio > h2 {
  position: absolute;
  display: block;
  top: -10px;
  left: 0;
  width: 100%;
  height: auto;
  color: var(--color-white);
}

.carousel {
  position: relative;
  height: 680px;
  overflow: clip;

  & .item {
    height: 680px;
  }
}

.decor-wave {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 640px;
  pointer-events: none;
  background: transparent url(../images/decor-wave.png) no-repeat center bottom;
  background-size: contain;
}

.carousel-indicators {
  bottom: 60px;
  width: 100%;
  margin-left: -50%;

  @media (min-width: 992px) {
    width: 50%;
    margin-left: -25%;
  }

  & li,
  & li.active {
    margin-left: 3px;
    margin-right: 3px;
  }
}

.major-pic {
  position: absolute;
  display: block;
  top: 160px;
  left: 50%;
  margin-left: -160px;
  width: 320px;
  height: 238px;

  &.bg-citi-sdash {
    background: url(../images/major/citi-sdash-low.png) no-repeat center center;
  }

  &.bg-citi-sdash-2 {
    background: url(../images/major/citi-sdash-2-low.png) no-repeat center
      center;
  }

  &.bg-citi-kc {
    background: url(../images/major/citi-kc-low.png) no-repeat center center;
  }

  &.bg-citi-kc-2 {
    background: url(../images/major/citi-kc-2-low.png) no-repeat center center;
  }

  &.bg-markit {
    background: url(../images/major/markit-low.png) no-repeat center center;
  }

  &.bg-markit-2 {
    background: url(../images/major/markit-2-low.png) no-repeat center center;
  }

  &.bg-nord-security {
    background: url(../images/major/nord-security-low.png) no-repeat center
      center;
  }

  &.bg-atomic-invest {
    background: url(../images/major/atomic-invest-low.png) no-repeat center
      center;
  }

  &.bg-oht {
    background: url(../images/major/oht-low.png) no-repeat center center;
  }

  &.bg-nissan {
    background: url(../images/major/nissan-low.png) no-repeat center center;
  }

  &.bg-zutor {
    background: url(../images/major/zutor-low.png) no-repeat center center;
  }

  &.bg-mcfoxy {
    background: url(../images/major/mcfoxy-low.png) no-repeat center center;
  }
}

.carousel-caption {
  right: 5%;
  left: 5%;
  bottom: 100px;
  text-shadow: none;
  color: var(--color-secondary);
}

.carousel-control {
  &.left:focus,
  &.right:focus {
    opacity: 0.5;
  }

  &.left:focus:hover,
  &.right:focus:hover {
    opacity: 0.9;
  }

  & > img {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -42px 0 0 -23px;
  }

  @media (max-width: 450px) {
    visibility: hidden;
  }
}
/*

Minor portfolio

*/
.minor-portfolio {
  & .minor-item {
    position: relative;
    width: 90px;
    height: 60px;
    margin: 15px auto 0 auto;
    cursor: pointer;
    line-height: 90px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;

    &::after {
      content: " ";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      border-radius: 10px;
      box-shadow: inset 0 0 0 2px var(--color-primary);
    }

    & img {
      display: inline-block;
      margin-top: -34px;
      vertical-align: middle;
      filter: contrast(66%) brightness(0.9) sepia(100%) hue-rotate(308deg)
        saturate(20%);
    }
  }
}

.about-me {
  & .about-text {
    margin-top: 5px;
    column-count: 1;
    column-gap: 110px;
    column-rule: 2px solid var(--color-secondary);
    text-align: justify;

    @media (min-width: 992px) {
      margin-top: 20px;
      column-count: 2;
    }
  }
}

footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding-top: 80px;
  padding-bottom: 80px;
  overflow: clip;
  color: var(--color-white);

  & .contacts {
    padding-bottom: 40px;
    display: flex;
    flex-flow: column;
    gap: 15px 30px;
    justify-content: center;
  }

  & .logo {
    text-align: right;
  }

  & .copyright {
    margin-top: 50px;
    text-align: center;
  }
}

.social {
  display: flex;
  flex-flow: wrap;
  gap: 10px 20px;

  @media (min-width: 992px) {
    gap: 10px 30px;
  }

  & a {
    display: block;
    width: 48px;
    height: 48px;
    background: url(../images/icons.svg) no-repeat;
    background-position: -71px -91px;
  }

  & a:hover {
    background-position: -71px -141px;
  }

  & a.d2 {
    background-position: -121px -91px;
  }

  & a.d2:hover {
    background-position: -121px -141px;
  }
}
/*

Tablets

*/
@media (min-width: 640px) {
  .col-sm-1-5th {
    width: 20%;
  }
}

@media (min-width: 992px) {
  header h1 {
    margin-top: 100px;
    font-size: 90px;
    text-align: left;
  }

  h2 {
    font-size: 60px;
  }

  header img {
    margin-top: 96px;
    margin-right: -40px;
  }
  /* 
  
  Major portfolio 
  
  */
  .carousel {
    height: 900px;

    & .item {
      height: 900px;
    }
  }

  .major-pic {
    top: 180px;
    margin-left: -392px;
    width: 784px;
    height: 496px;

    &.bg-citi-sdash {
      background: url(../images/major/citi-sdash-high.png) no-repeat center
        center;
    }

    &.bg-citi-sdash-2 {
      background: url(../images/major/citi-sdash-2-high.png) no-repeat center
        center;
    }

    &.bg-citi-kc {
      background: url(../images/major/citi-kc-high.png) no-repeat center center;
    }

    &.bg-citi-kc-2 {
      background: url(../images/major/citi-kc-2-high.png) no-repeat center
        center;
    }

    &.bg-markit {
      background: url(../images/major/markit-high.png) no-repeat center center;
    }

    &.bg-markit-2 {
      background: url(../images/major/markit-2-high.png) no-repeat center center;
    }

    &.bg-nord-security {
      background: url(../images/major/nord-security-high.png) no-repeat center
        center;
    }

    &.bg-atomic-invest {
      background: url(../images/major/atomic-invest-high.png) no-repeat center
        center;
    }

    &.bg-oht {
      background: url(../images/major/oht-high.png) no-repeat center center;
    }

    &.bg-nissan {
      background: url(../images/major/nissan-high.png) no-repeat center center;
    }

    &.bg-zutor {
      background: url(../images/major/zutor-high.png) no-repeat center center;
    }

    &.bg-mcfoxy {
      background: url(../images/major/mcfoxy-high.png) no-repeat center center;
    }
  }

  .carousel-caption {
    bottom: 70px;
  }

  footer {
    & .contacts {
      padding-bottom: 0;
    }

    & .logo {
      text-align: left;
    }

    & .copyright {
      margin-top: 0;
      text-align: right;
    }
  }
}
/*

Desktop

*/
@media (min-width: 992px) {
  .minor-portfolio {
    & .minor-item {
      width: 180px;
      height: 120px;
      margin: 30px auto 0 auto;
      line-height: 180px;
      border-radius: 20px;

      &::after {
        border-radius: 20px;
        box-shadow: inset 0 0 0 3px var(--color-primary);
      }

      & img {
        margin-top: -65px;
      }
    }
  }
}
/* 

Modal 

*/
#modal {
  text-align: center;
  padding: 0 !important;
  backdrop-filter: blur(50px);

  & img {
    margin: 0 auto;
  }
}

.modal-dialog {
  width: auto;

  @media (max-width: 767px) {
    max-width: 502px;
  }

  .modal-content {
    box-shadow: none;
  }
}

.modal-header {
  border-bottom: 0 none;
}

.modal-body {
  padding: 0;

  @media (min-width: 768px) {
    padding: 0 64px;
  }
}

.modal-footer {
  border-top: 0 none;
}

.modal-backdrop.in {
  opacity: 0.2;
}

.modal.fade .modal-dialog {
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: scale(0.3);
  transition: all 0.5s;
  text-align: left;
  vertical-align: middle;
}

.modal.fade.in .modal-dialog {
  opacity: 1;
  transform: scale(1);
  animation: bounceScale 0.5s;
}

.modal:before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

@media (max-width: 767px) {
  .modal.fade .modal-dialog {
    width: 90%;
  }
}
/* 

Animations

*/
@keyframes appear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  20%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-basic {
  animation: appear 1ms linear;
  animation-timeline: view();
}

@keyframes parallax {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(50%);
  }
}

.parallax {
  position: absolute;
  object-fit: cover;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;

  @media (aspect-ratio > 1) {
    min-height: 100%;
  }

  animation: parallax 1ms linear;
  animation-timeline: view();
  animation-fill-mode: both;
}

@keyframes bounceScale {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
