* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  /* 6.25% = 1 px  */
  /* 62.5% = 1 rem =  10 px  */
  overflow-x: hidden !important;
  scroll-behavior: smooth;
}

html body {
  overflow-x: hidden !important;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

h1 {
  font-size: 5rem !important;
  font-weight: normal;
  color: black !important;
}

h2 {
  font-size: 5rem !important;
  font-weight: 550;
  color: black !important;
}

h3 {
  font-size: 4rem !important;
  font-weight: normal;
  color: black !important;
}

h4 {
  font-size: 2rem !important;
  font-weight: normal;
  color: black !important;
}

h5 {
  font-size: 1rem !important;
  font-weight: normal;
  color: black !important;
}

h6 {
  font-size: 0.5rem !important;
  font-weight: normal;
  color: black !important;
}

P {
  font-size: 1.5rem !important;
  line-height: 25px;
  color: rgb(0, 0, 0) !important;
}

span {
  color: #006aff !important;
  font-size: 1.5rem !important;
  font-weight: 550 !important;
}

ul {
  color: white !important;
}

li {
  font-size: 1.5rem;
  /* margin: 10px 0px; */
}

.max-width {
  width: 85vw;
  margin: auto;
}

.down-arrow {
  color: white !important;
  position: absolute;
  top: 10px;
  right: 5px;
  transition: all 0.5s ease;
  font-size: 1.5rem !important;
}

/* Payroll Header  */

.portfolio-hero-video {
  display: block;
  width: 100%;
}

.thumbnail-section {
  padding: 50px 0px;
  background-color: black;
}

.thumbnail-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 80px;
  gap: 50px;
}

.thumbnail-row h4 {
  color: white !important;
}

.thumbnail-row img {
  margin-bottom: 20px;
  vertical-align: middle;
  max-width: 100%;
  display: inline-block;
  transition: all 0.3s ease;
}

.portfolio-heading {
  color: white !important;
  font-weight: 500;
  margin: 0 auto 50px auto;
  text-align: center;
}

/* Thumbnail hover effect */

.thumbnail {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  transition: clip-path 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.thumbnail:hover {
  clip-path: polygon(5% 10%, 100% 2%, 100% 98%, 5% 98%);
}

/* Image scaling effect */

.thumbnail-row img:hover {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

/* Case studies quick block and hover */

.case-studies-quick-block {
  z-index: 1;
  border-radius: 100%;
  width: 50px;
  height: 50px;
  position: absolute;
  bottom: 40px;
  right: 20px;
  overflow: hidden;
  transition: bottom 0.3s ease;
}

.case-studies-quick {
  background-color: #006aff;
  border-radius: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.case-studies-single-item:hover .case-studies-quick {
  transform: translateY(-100%);
}

.case-studies-single-item:hover .case-studies-quick-block {
  bottom: 40px;
}

/* Center SVG in block */

.align-center-both {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Background and text color for hover state */

.bg-white {
  background-color: white;
  color: #000;
}

/* contact section  */

.main-contact-section {
  background-color: #f4f4f4;
  padding: 50px 0px;
}

.talk-business-section {
  display: flex;
  justify-content: space-between;
}

.left-column {
  width: 45%;
  padding: 20px 0px;
}

.left-column h3 {
  margin-bottom: 25px;
}

.left-column p {
  line-height: 1.5;
}

.right-column {
  width: 50%;
  padding: 20px 0px;
}

.contact-form {
  flex-direction: column;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.5rem !important;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 0px;
  font-size: 1.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  padding-left: 5px;
  font-family: Verdana, Geneva, Tahoma, sans-serif !important;
}

.form-group textarea {
  resize: none;
  height: 100px;
  overflow: auto;
}

.submit-btn {
  padding: 10px 20px;
  font-size: 1.5rem;
  border: none;
  border-radius: 5px;
  background-color: #006aff;
  color: white;
  cursor: pointer;
  margin-top: 20px;
}

.submit-btn:hover {
  background-color: #0051cc;
}

@media (max-width: 992px) {
  h1 {
    font-size: 4rem !important;
    font-weight: normal;
    color: black !important;
  }

  h2 {
    font-size: 4rem !important;
    font-weight: normal;
    color: black !important;
  }

  h3 {
    font-size: 3.5rem !important;
    font-weight: normal;
    color: black !important;
  }

  h4 {
    font-size: 2rem !important;
    font-weight: normal;
    color: black !important;
  }

  h5 {
    font-size: 1rem !important;
    font-weight: normal;
    color: black !important;
  }

  h6 {
    font-size: 0.5rem !important;
    font-weight: normal;
    color: black !important;
  }

  P {
    font-size: 1.5rem !important;
    color: rgb(0, 0, 0) !important;
  }

  span {
    color: #006aff !important;
    font-size: 1.5rem !important;
    font-weight: 550 !important;
  }
}

@media (max-width: 768px) {
  .thumbnail-row {
    flex-direction: column;
  }

  .thumbnail-row img {
    width: 100%;
  }

  /* Form  */

  .talk-business-section {
    flex-direction: column;
    gap: 20px;
  }

  .right-column,
  .left-column {
    width: 100%;
  }

  .form-group input,
  .form-group textarea {
    width: 90%;
  }
}

@media (max-width: 556px) {
  h1 {
    font-size: 3rem !important;
    font-weight: normal;
    color: black !important;
  }

  h2 {
    font-size: 3rem !important;
    font-weight: normal;
    color: black !important;
  }

  h3 {
    font-size: 2.5rem !important;
    font-weight: normal;
    color: black !important;
    line-height: 35px;
  }

  h4 {
    font-size: 2rem !important;
    font-weight: normal;
    color: black !important;
  }

  h5 {
    font-size: 1rem !important;
    font-weight: normal;
    color: black !important;
  }

  h6 {
    font-size: 0.5rem !important;
    font-weight: normal;
    color: black !important;
  }

  P {
    font-size: 1.5rem !important;
    color: rgb(0, 0, 0) !important;
  }

  span {
    color: #006aff !important;
    font-size: 1.5rem !important;
    font-weight: 550 !important;
  }

  li {
    font-size: 1.5rem !important;
  }
}
