.container {
  max-width: 1280px;
  padding: 0 1.5rem;
  margin: auto;
  overflow: hidden;
}

.btn-main,
.btn-light,
.btn-dark {
  display: inline-block;
  padding: 0.8rem 2rem;
  transition: all 0.5s;
  border: none;
  cursor: pointer;
}

.btn-main {
  color: #333;
  background-color: #ffbc00;
}

.btn-light {
  color: #333;
  background-color: #f4f4f4;
}

.btn-dark {
  color: #f4f4f4;
  background-color: #333;
}

button[class^="btn-"]:hover,
a[class^="btn-"]:hover,
input[class^="btn-"]:hover {
  background-color: #ffbc00;
}

.bg-main {
  background: #ffbc00;
  color: #fff;
}

.bg-dark {
  background: #333;
  color: #fff;
}

.bg-light {
  background: #f4f4f4;
  color: #000;
}

.bg-medium {
  background: #ccc;
  color: #000;
}

.lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left !important;
}

.py-1 {
  padding: 1rem 0;
}

.py-2 {
  padding: 2rem 0;
}

.py-3 {
  padding: 3rem 0;
}

.py-4 {
  padding: 4rem 0;
}

.my-1 {
  margin: 1rem 0;
}

.my-2 {
  margin: 2rem 0;
}

.my-3 {
  margin: 3rem 0;
}

.my-4 {
  margin: 4rem 0;
}

.section-title {
  font-size: 2rem;
  display: block;
  text-align: center;
  font-weight: 100;
  text-transform: uppercase;
}

.bottom-line {
  height: 5px;
  width: 5rem;
  background: #ffbc00;
  display: block;
  margin: 0 auto 0.5px auto;
}

.line-1x {
  position: relative;
  left: -50px;
  top: 5px;
}

.line-2x {
  position: relative;
  left: 50px;
}

.line-3x {
  position: relative;
  left: -50px;
}

.line-4x {
  position: relative;
  left: 50px;
  top: -5px;
}

.line-1y {
  position: relative;
  left: -75px;
  top: 5px;
  width: 7.8rem;
}

.line-2y {
  position: relative;
  left: 75px;
  width: 7.8rem;
}

.line-3y {
  position: relative;
  left: -75px;
  width: 7.8rem;
}

.line-4y {
  position: relative;
  left: 75px;
  top: -5px;
  width: 7.8rem;
}

* {
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  font-family: "Dosis", sans-serif;
  line-height: 1.6;
  background: #fff;
}

a {
  text-decoration: none;
  color: #333;
}

ul {
  list-style: none;
}

h2,
h3,
h4 {
  text-transform: uppercase;
}

img {
  width: 100%;
}

.fab {
  display: flex;
  padding-top: 1rem;
  font-size: 35px;
  text-transform: uppercase;
}

#main-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
}
#main-nav ul {
  display: flex;
  font-size: 1rem;
  font-weight: bold;
}
#main-nav li {
  padding: 0.8rem;
}
#main-nav a {
  color: #fff;
  text-transform: uppercase;
  border-bottom: 3px transparent solid;
  padding-bottom: 0.5rem;
  transition: border-color 0.5s;
}
#main-nav a:hover {
  border-color: #ccc;
}
#main-nav a.current {
  border-color: #ffbc00;
}

#header-home {
  background: url("../img/show.jpg") no-repeat center left/cover;
  height: 100vh;
  color: #fff;
  position: relative;
}
#header-home .header-content {
  text-align: center;
  padding-top: 20%;
  position: relative;
}
#header-home .header-content h1 {
  font-size: 4.5rem;
  line-height: 1.2;
}
#header-home .header-content p {
  font-size: 25px;
}
#header-home .header-content a {
  font-size: 15px;
  font-weight: bold;
}
#header-home::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
}
#header-home * {
  z-index: 1;
}

#header-inner {
  background: url("../img/show.jpg") no-repeat 20% 30% / cover;
  height: 5.5rem;
  border-bottom: 3px solid #ffbc00;
  position: relative;
}
#header-inner::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
}
#header-inner * {
  z-index: 1;
}

#home-a .specials {
  margin-top: 3rem;
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  text-align: justify;
}
.align {
  text-align: center !important;
}
#home-a .specials .fas {
  color: #ffbc00;
  padding-bottom: 0.4rem;
}

#home-b .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
#home-b .stats li {
  line-height: 2;
}
#home-b .stats li.stats-title {
  font-size: 1.5rem;
}
#home-b .stats li.stats-number {
  font-size: 2rem;
  font-weight: bold;
}
#home-b .stats div {
  padding: 3rem 0;
}
#home-b .stats div:nth-child(odd) {
  background: #f4f4f4;
}
#home-b .stats div:nth-child(even) {
  background: #ccc;
}

#home-c .process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1.5rem;
  text-align: center;
}
#home-c .process-icon {
  border-radius: 50%;
  background: #333;
  color: #fff;
  padding: 2rem;
  width: 70px;
  height: 70px;
  line-height: 70px;
  text-align: center;
  position: relative;
  transition: all 1s;
}
#home-c .process-icon:hover {
  background: #ffbc00;
  width: 90px;
  height: 90px;
  line-height: 90px;
}
#home-c .process-icon:hover .process-step {
  background: #333;
  color: #fff;
}
#home-c .process-step {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 28px;
  background: #ffbc00;
  color: #fff;
  border-radius: 50%;
  height: 15px;
  width: 15px;
  line-height: 15px;
  padding: 1rem;
  transition: all 1s;
}

#about-a .about-info {
  display: grid;
  grid-template-areas:
    "bioimage bio bio"
    "aw1 aw2 aw3";
  grid-gap: 1.2rem;
}

#about-a .bio-image {
  grid-area: bioimage;
  border-radius: 10%;
}

#about-a .bio {
  grid-area: bio;
  border-left: 3px solid #ffbc00;
  padding: 0.8rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}
#about-a .bio h4 {
  border-bottom: dashed 3px black;
  border-top: dashed 3px black;
}
#about-a .bio p {
  font-weight: bold;
}

#about-a .award-1 {
  grid-area: aw1;
}

#about-a .award-2 {
  grid-area: aw2;
}

#about-a .award-3 {
  grid-area: aw3;
}

#about-a .award-1 .fas,
#about-a .award-2 .fas,
#about-a .award-3 .fas {
  color: #ffbc00;
  margin: 1rem;
}

#about-a .line-1z {
  position: relative;
  left: -36px;
  top: 5px;
}

#about-a .line-2z {
  position: relative;
  left: 36px;
}

#about-a .line-3z {
  position: relative;
  left: 36px;
}

#about-a .line-4z {
  position: relative;
  left: -36px;
  top: -5px;
}

#about-a .line-1z,
#about-a .line-2z,
#about-a .line-3z,
#about-a .line-4z {
  width: 3.5rem;
}

#about-a img {
  border: 4px outset #ffbc00;
}

#about-b .progress {
  overflow: hidden;
  height: 20px;
  background: #ccc;
  border-radius: 5px;
  margin-bottom: 0.6rem;
}
#about-b .progress div {
  height: 100%;
  color: #fff;
  text-align: center;
  background: #ffbc00;
}

#about-c .about-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 2rem;
}

#certifications {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

#certifications p {
    font-size: 1.3rem;
    font-weight: bold;
    border-bottom: goldenrod 5px solid
}

#about-c .about-logos img {
  width: 70%;
}

#about-d .testimonials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 0.5rem;
  /*height: 150px;*/
}
#about-d .testimonials {
    dispaly: flex;
    justify-content: space-between;
    align-items: center;
    /*height: 170px;*/
}
#about-d .testimonials ul {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  align-items: center;
}
#about-d .testimonials ul li {
  margin-left: 20px;
}
#about-d .testimonials p {
  border: 1px dashed #ccc;
  border-radius: 5px;
  padding: 0.5rem;
}
#about-d .testimonials img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

#about-d .line-1a {
  position: relative;
  left: -60px;
  top: 5px;
}

#about-d .line-2a {
  position: relative;
  left: 60px;
}

#about-d .line-3a {
  position: relative;
  left: -60px;
}

#about-d .line-4a {
  position: relative;
  left: 60px;
  top: -5px;
}

#about-d .line-1a,
#about-d .line-2a,
#about-d .line-3a,
#about-d .line-4a {
  width: 6.5rem;
}

#work-a .line-1b {
  position: relative;
  left: -60px;
  top: 5px;
}

#work-a .line-2b {
  position: relative;
  left: 60px;
}

#work-a .line-3b {
  position: relative;
  left: -60px;
}

#work-a .line-4b {
  position: relative;
  left: 60px;
  top: -5px;
}

#work-a .line-1b,
#work-a .line-2b,
#work-a .line-3b,
#work-a .line-4b {
  width: 6.8rem;
}

.items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 5px blur 10px 0 rgba(0, 0, 0, 0.3);
}

.item {
  position: relative;
  background: #ffbc00;
  overflow: hidden;
}
.item::after {
  content: "";
  position: absolute;
  display: block;
  background: inherit;
  opacity: 0.9;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(2) translateX(-75%) translateY(-75%) rotate(-28deg);
  transition: transform 3s cubic-bezier(0.2, 1, 0.3, 1);
}
.item:hover:after {
  transform: scale(2) translateX(0) translateY(0) rotate(-28deg);
}
.item:hover .item-img {
  transform: scale(1.2);
}
.item:hover .item-text {
  opacity: 1;
  transform: translateY(0);
}
.item-img {
  height: auto;
  transform: translateZ(0);
  display: block;
  transition: transform 750ms cubic-bezier(0.2, 1, 0.3, 1);
}
.item-img:before {
  content: "";
  display: block;
  padding-top: 75%;
  overflow: hidden;
}
.item-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  line-height: 0;
  border: 3px dashed #ffbc00;
}
.item-text {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  text-align: center;
  z-index: 1;
  color: #333;
  font-weight: 120;
  transform: translateY(-20%);
  transition: opacity 500ms cubic-bezier(0.2, 1, 0.3, 1),
    transform 500ms cubic-bezier(0.2, 1, 0.3, 1);
  transition-delay: 300ms;
}
.item-text-wrap {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}
.item-text-title {
  font-size: 1.5rem;
  padding: 0 1rem;
  margin: 5px 0 0 0;
}
.item-text-category {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  opacity: 0.7;
  margin: 0;
}

#contact-a .text-fields {
  display: grid;
  grid-template-areas:
    "name email"
    "subject phone"
    "message message";
  grid-gap: 1.2rem;
  margin-bottom: 1.2rem;
}
#contact-a .text-fields .name-input {
  grid-area: name;
}
#contact-a .text-fields .subject-input {
  grid-area: subject;
}
#contact-a .text-fields .email-input {
  grid-area: email;
}
#contact-a .text-fields .phone-input {
  grid-area: phone;
}
#contact-a .text-fields .message-input {
  grid-area: message;
  height: 100px;
}
#contact-a .text-fields .text-input {
  padding: 0.5rem 1rem;
}

#contact-a button[type="submit"] {
  width: 40%;
}

#contact-a .line-1c {
  position: relative;
  left: -40px;
  top: 5px;
}

#contact-a .line-2c {
  position: relative;
  left: 40px;
}

#contact-a .line-3c {
  position: relative;
  left: -40px;
}

#contact-a .line-4c {
  position: relative;
  left: 40px;
  top: -5px;
}

#contact-a .line-1c,
#contact-a .line-2c,
#contact-a .line-3c,
#contact-a .line-4c {
  width: 4.2rem;
}

#contact-b .contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

#contact-c h1 {
  text-align: center;
  font-size: 4rem;
}

#main-footer {
  background: #333;
  color: #ccc;
  font-size: 15px;
  padding: 10px;
}
#main-footer .footer-content {
  display: flex;
  justify-content: space-between;
  /*height: 5rem;*/
  align-items: center;
}
#main-footer .footer-content:hover {
  color: #ffbc00;
}

@media (max-width: 800px) {
  #header-home {
    height: 30rem;
  }
  #header-home .header-content {
    padding-top: 5rem;
  }
}

@media (max-width: 500px) {
  #main-nav {
    flex-direction: column;
    align-items: center;
  }
  #main-nav li {
    padding: 0.8rem;
  }
  #header-home {
    height: 10rem;
    border-bottom: 3px solid #ffbc00;
    background-position: 20% 30%;
  }
  #header-home .header-content {
    display: none;
  }
  #header-inner {
    height: 10rem;
  }
  #home-a .specials,
  #home-b .stats,
  #home-c .process,
  #about-d .testimonials,
  #contact-b .contact-info,
  .items {
    grid-template-columns: 1fr;
  }
  #home-a .specials div {
    border-bottom: 1px #f4f4f4 solid;
    padding-bottom: 1rem;
  }
  #home-a .specials div:last-child {
    border: none;
    padding-bottom: 0;
  }
  #home-b .stats div {
    padding: 2rem 0 1rem 0;
  }
  #about-a .about-info {
    grid-template-areas:
      "bioimage"
      "bio"
      "aw1"
      "aw2"
      "aw3";
  }
  #about-c {
    display: none;
  }
  #contact-a .text-fields {
    grid-template-areas:
      "name"
      "subject"
      "email"
      "phone"
      "message";
    margin-right: 5px;
  }
  #contact-b div {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px #555 solid;
  }
  #contact-b div:last-child {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  #contact-c h1 {
    font-size: 2rem;
  }
  #main-footer {
    /*height: 7rem;*/
  }
  #main-footer .footer-content {
    flex-direction: column;
    padding: 1rem;
    /*height: 5rem;*/
  }
}

.switch {
  position: relative;
  display: inline-block;
  width: 100px;
  height: 34px;
  margin-top: 10px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .6s;
  transition: .6s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked+.slider {
  background-color: #2196F3;
}

input:focus+.slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
  -webkit-transform: translateX(65px);
  -ms-transform: translateX(65px);
  transform: translateX(65px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

#dp-img {
  width: 45vw;
}

.knowledge-items {
  width: 49%;
  display: inline-block;
}

.articles {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.card {
  width: 250px;
  background: whitesmoke;
  padding: 10px;
  margin-bottom: 30px;
  text-align: center;
  border-radius: 15% 12%;
  -webkit-box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.75);
}

.card:hover {
  transition: linear 5s;
  -webkit-box-shadow: inset 10px 10px 5px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: inset 10px 10px 5px 0px rgba(0, 0, 0, 0.75);
    box-shadow: inset 10px 10px 5px 0px rgba(0, 0, 0, 0.75);
}

.reverse {
  border-radius: 12% 15%;
}

.card-title {
  font-size: 1.3rem;
  text-decoration: underline;
}

.card-link {
  background: white;
  border: 2px solid goldenrod;
  border-radius: 5px;
  padding: 3px;
}

.card-link:hover {
  background: goldenrod;
  color: white;
}

@media (max-width: 500px) {
  #header-home .header-content {
    padding-top: 3rem;
  }
  
  .item-text-title, .item-text-category {
    font-size: 1.5rem;
  }
}

@media(max-width: 769px) {
  #detailed-projects section div {
    flex-direction: column;
  }

  #dp-img {
    width: 75vw;
  }
  
  .knowledge-items {
    display: block;
    width: 100%;
    margin-top: 15px;
  }
}

@media(max-width: 900px) {
  .articles {
    flex-direction: column;
  }
  
  #about-d .testimonials {
    flex-direction: column;
  }
  
  #certifications {
      flex-direction: column;
      margin-bottom: 15px;
  }
}

@media (max-width: 320px) {
  #header-home .header-content h1 {
    font-size: 2rem;
  }
  .item-text-title, .item-text-category {
    font-size: 1rem;
  }
}
