@font-face {
  font-family: "Alliance No.1";
  src: url("fonts/AllianceNo-1.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  width: 100%;
  font-family: "Alliance No.1", sans-serif;
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: #3d342c;
  position: fixed;
  z-index: 1000;
  width: 100%;
  height: 80px;
}
header img {
  height: 60px;
  width: auto;
  margin: 10px 0px 10px 20px;
}

header ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin-right: 50px;
}
header ul li {
  margin: 0 15px;
  cursor: pointer;
  color: #ffffff;
  font-size: 18px;
}
header ul li a {
  text-decoration: none;
  color: inherit;
  font-weight: 300;
}
header .dropdown {
  display: none;
}

#main {
  width: 100%;
  display: flex;
  flex-direction: column;
}
#Home {
  font-family: inherit;
  padding: 20px;
  margin-top: 80px;
  height: 700px;
  /* Gradient overlay on top of image */
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.5),
      /* Top color with transparency */ rgba(0, 0, 0, 0.5)
        /* Bottom color with transparency */
    ),
    url("img/homepage3.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#Home h1 {
  color: #ffffff;
  font-size: 80px;
  font-weight: 400;
}
#Home p {
  color: #ffffff;
  font-size: 20px;
  font-weight: 400;
}

#About {
  font-family: inherit;
  padding: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 700px;
  background-color: #f7f0e6;
  position: relative;
  overflow: visible;
}

#About::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px; /* adjust for a softer or harder fade */
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(247, 240, 230, 0) 0%,
    /* transparent at the top */ rgba(247, 240, 230, 0.6) 40%,
    #d89d36 100% /* fades smoothly to services color */
  );
  z-index: 1;
}
#About #About-left {
  width: 50%;
  display: flex;
  flex-direction: column;
}
#About #About-left h2 {
  font-size: 35px;
  padding: 20px;
  background-color: #000000;
  color: #ffffff;
  border-radius: 2px;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.5);
}

#About #About-right {
  width: 50%;
  display: flex;
  flex-direction: column;
}
#About #About-right h2 {
  color: #000000;
  text-align: right;
  font-size: 80px;
  text-shadow: 2px 2px 4px #000000;
}
#Services {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 700px;
  position: relative;
  background: #d89d36; /* example service color */
  padding: 0px 20px; /* section height */
  overflow: visible; /* allow pseudo-element to be visible */
}
.section-name-services {
  width: 50%;
  text-align: left;
  font-family: inherit;
}
.section-name-services h2 {
  color: #ffffff;
  font-size: 90px;
  font-weight: 300;
}
#services-card {
  padding: 10px 110px;
  width: 50%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}
#Services #services-card .services-cards {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  font-size: 14px;
  width: 200px;
  height: 300px;
  background: rgba(255, 255, 255, 0.2); /* transparent white overlay */
  backdrop-filter: blur(10px); /* actual blur effect */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  padding: 20px;
  border-radius: 12px;
  color: #ffffff;
  margin: 15px 0px;
}

.Completed-Jobs {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.Completed-Jobs .list .item {
  position: absolute;
  inset: 0 0 0 0;
}
.Completed-Jobs .list .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thumbnail */
.thumbnail {
  position: absolute;
  bottom: 50px;
  left: 50%;
  width: max-content;
  z-index: 100;
  display: flex;
  gap: 20px;
}
.thumbnail .item {
  width: 150px;
  height: 220px;
  flex-shrink: 0;
  position: relative;
}
.thumbnail .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
/* Arrows*/

.arrows {
  position: absolute;
  top: 80%;
  right: 52%;
  width: 300px;
  max-width: 30%;
  display: flex;
  gap: 10px;
  align-items: center;
}
.arrows button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #eee4;
  border: none;
  font-family: monospace;
  color: #ffffff;
  font-weight: bold;
  font-size: large;
  transition: 0.5s;
  z-index: 100;
}
.arrows button:hover {
  background-color: #eee;
  color: #555;
}
.Completed-Jobs .list .item:nth-child(1) {
  z-index: 1;
}
/* effect next click */

.Completed-Jobs.next .list .item:nth-child(1) img {
  width: 150px;
  height: 220px;
  position: absolute;
  left: 50%;
  bottom: 50px;
  border-radius: 20px;
  animation: showImage 0.5s linear 1 forwards;
}
@keyframes showImage {
  to {
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    border-radius: 0;
  }
}
.Completed-Jobs.next .thumbnail .item:nth-last-child(1) {
  width: 0;
  overflow: hidden;
  animation: showThumbnail 0.5s linear 1 forwards;
}
@keyframes showThumbnail {
  to {
    width: 150px;
  }
}
.Completed-Jobs.next .thumbnail {
  transform: translateX(150px);
  animation: transformThumbnail 0.5s linear 1 forwards;
}
@keyframes transformThumbnail {
  to {
    transform: translateX(0);
  }
}

/* effect prev click*/
.Completed-Jobs.prev .list .item:nth-child(2) {
  z-index: 2;
}
.Completed-Jobs.prev .list .item:nth-child(2) img {
  position: absolute;
  bottom: 0;
  left: 0;
  animation: outImg 0.5s linear 1 forwards;
}
@keyframes outImg {
  to {
    width: 150px;
    height: 220px;
    border-radius: 20px;
    left: 50%;
    bottom: 50px;
  }
}
.Completed-Jobs.prev .thumbnail .item:nth-child(1) {
  width: 0;
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail 0.5s linear 1 forwards;
}

.Completed-Jobs.next .arrows button,
.Completed-Jobs.prev .arrows button {
  pointer-events: none;
}
/*Time */
.time {
  width: 0%;
  height: 3px;
  background-color: #f1683a;
  position: absolute;
  z-index: 100;
}
.Completed-Jobs.next .time,
.Completed-Jobs.prev .time {
  width: 100%;
  animation: timeRuning 2s linear 1 forwards;
}
@keyframes timeRuning {
  to {
    width: 0;
  }
}
.Completed-Jobs::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px; /* adjust to make the fade softer or sharper */
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(54, 56, 63, 0) 0%,
    rgba(54, 56, 63, 0.7) 50%,
    #fbfbfb 100%
  );
  z-index: 1;
}

/* Contact Section */
#Contact {
  position: relative;
  height: 100vh;
  width: 100%;
  background-color: #fbfbfb;
  font-family: inherit;
  padding: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
#Contact #right {
  width: 50%;
  margin-top: -315px;
}
#Contact #right h2 {
  display: flex;
  flex-direction: column;
  font-size: 80px;
  color: #0f3d3e;
  text-shadow: 2px 2px 4px #0f3d3e;
}
#Contact #right p {
  font-size: 45px;
  font-weight: bold;
  color: #0f3d3e;
}
#Contact #left {
  width: 50%;
}
#Contact #left ul {
  margin-top: -50px;
  list-style: none;
  background-color: #0f3d3e;
  padding: 20px 20px 20px 40px;
  border-radius: 2px;
  box-shadow: 4px 4px 15px rgba(15, 61, 62, 0.5);
}
#Contact #left ul li {
  font-size: 40px;
  margin-bottom: 20px;
}
#Contact #left ul li a {
  text-decoration: none;
  color: #fbfbfb;
}
#Contact #left ul li a i {
  margin-right: 20px;
}

.footer {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-end;
  background-color: #3d342c;
  height: fit-content;
}
.footer .footer-right {
  width: 35%;
  display: flex;
  flex-direction: row;
  padding: 10px;
}
.footer-right ul {
  list-style: none;
}
.footer-right ul li {
  cursor: pointer;
  color: #ffffff;
  font-size: 18px;
  margin: 10px;
}
.footer-right ul li a {
  text-decoration: none;
  color: inherit;
  font-weight: 300;
}
.footer .footer-left {
  text-align: center;
  width: 65%;
  padding: 10px;
}
.footer-left p {
  align-items: end;
  width: 100%;
  color: #ffffff;
  font-size: 12px;
}
@media screen and (min-width: 1025px) and (max-width: 1297px) {
  #About #About-left h2 {
    font-size: 25px;
  }
  #About #About-right h2 {
    font-size: 63px;
  }
  .section-name-services h2 {
    font-size: 70px;
  }

  #services-card {
    padding: 10px 0px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  #Contact #left ul li {
    font-size: 35px;
  }
}
@media screen and (min-width: 678px) and (max-width: 1024px) {
  #About #About-left h2 {
    font-size: 22px;
    margin-top: 365px;
    margin-right: -150px;
  }
  #About #About-right h2 {
    font-size: 55px;
    padding-bottom: 280px;
    margin-left: -120px;
  }
  .Completed-Jobs {
    height: 90vh;
  }

  .Completed-Jobs .list .item .content {
    padding-right: 0;
  }
  .Completed-Jobs .list .item .content .title {
    font-size: 30px;
  }
  #Services {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }
  .section-name-services {
    margin-top: 40px;
    width: 100%;
    text-align: center;
    font-family: inherit;
  }
  .section-name-services h2 {
    font-size: 60px;
    font-weight: 300;
  }
  #services-card {
    padding: 0px;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
  }
  #Services #services-card .services-cards {
    width: 250px;
    height: 330px;
    margin-right: 20px;
  }

  /* Contact Section */
  #Contact {
    height: 100vh;
  }
  #Contact #right {
    width: 50%;
    margin-top: -65px !important;
  }
  #Contact #right h2 {
    display: flex;
    flex-direction: column;
    font-size: 50px;
    color: #0f3d3e;
    text-shadow: 2px 2px 4px #0f3d3e;
    margin-bottom: 20px;
  }
  #Contact #right p {
    font-size: 45;
    font-weight: bold;
  }
  #Contact #left ul li {
    font-size: 20px;
  }
}
@media screen and (min-width: 431px) and (max-width: 677px) {
  body {
    width: 100%;
  }
  header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #3d342c;
    position: fixed;
    z-index: 1000;
    width: 100%;
    height: 80px;
  }
  header img {
    height: 60px;
    width: auto;
    margin: 10px 0px 10px 20px;
  }

  header ul {
    display: none;
  }

  .dropbtn {
    background-color: transparent;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
  }
  .dropbtn i {
    pointer-events: none;
  }

  .dropdown {
    position: relative;
    display: inline-block !important;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #3d342c;
    min-width: 160px;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    margin-left: -100px;
    margin-top: 15px;
  }

  .dropdown-content a {
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }

  .dropdown a:hover {
    background-color: #ddd;
  }

  .show {
    display: block;
  }
  #main {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  #Home h1 {
    color: #ffffff;
    font-size: 50px;
    font-weight: 400;
  }
  #Home p {
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
  }
  #About {
    padding: 20px 0px;
    height: fit-content;
    display: flex;
    flex-direction: column-reverse;
    height: fit-content;
  }
  #About #About-left {
    width: 100%;
    padding: 10px;
  }
  #About #About-left h2 {
    width: 75%;
    font-size: 25px;
  }

  #About #About-right {
    width: 100%;
    margin-bottom: 20px;
    padding-right: 10px;
  }
  #About #About-right h2 {
    font-size: 40px;
  }
  #Services {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: fit-content;
    position: relative;
    background: #d89d36; /* example service color */
    padding: 0px 20px; /* section height */
    overflow: visible; /* allow pseudo-element to be visible */
  }
  .section-name-services {
    margin-top: 40px;
    width: 100%;
    text-align: center;
    font-family: inherit;
  }
  .section-name-services h2 {
    font-size: 40px;
    font-weight: 300;
  }
  #services-card {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #Services #services-card .services-cards {
    width: 220px;
    height: 320px;
  }
  .thumbnail .item {
    width: 120px;
    height: 180px;
  }

  #Contact {
    position: relative;
    height: fit-content;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #Contact #right {
    width: 100%;
    margin-bottom: 60px;
     margin-top: -1px !important;
  }
  #Contact #right h2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    font-size: 40px;
  }
  #Contact #left {
    width: 100%;
  }
  #Contact #left ul {
    width: 90%;
  }
  #Contact #left ul li {
    font-size: 20px;
    margin-bottom: 20px;
  }

  #Contact #left ul li a i {
    margin-right: 10px;
  }
}
@media (max-width: 431px) {
  body {
    width: 100%;
  }
  header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #3d342c;
    position: fixed;
    z-index: 1000;
    width: 100%;
    height: 80px;
  }
  header img {
    height: 60px;
    width: auto;
    margin: 10px 0px 10px 20px;
  }

  header ul {
    display: none;
  }
  .dropbtn {
    background-color: transparent;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
  }
  .dropbtn i {
    pointer-events: none;
  }

  .dropdown {
    position: relative;
    display: inline-block !important;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #3d342c;
    min-width: 160px;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    margin-left: -100px;
    margin-top: 13px;
  }

  .dropdown-content a {
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }

  .dropdown a:hover {
    background-color: #ddd;
  }

  .show {
    display: block;
  }
  #main {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  #Home h1 {
    color: #ffffff;
    font-size: 40px;
    font-weight: 400;
  }
  #Home p {
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
  }
  #About {
    padding: 20px 0px;
    height: fit-content;
    display: flex;
    flex-direction: column-reverse;
    height: fit-content;
  }
  #About #About-left {
    width: 100%;
    padding: 10px;
  }
  #About #About-left h2 {
    width: 75%;
    font-size: 20px;
  }

  #About #About-right {
    width: 100%;
    margin-bottom: 20px;
    padding-right: 10px;
  }
  #About #About-right h2 {
    font-size: 35px;
  }
  #Services {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: fit-content;
    position: relative;
    background: #d89d36; /* example service color */
    padding: 0px 20px; /* section height */
    overflow: visible; /* allow pseudo-element to be visible */
  }
  .section-name-services {
    margin-top: 40px;
    width: 100%;
    text-align: center;
    font-family: inherit;
  }
  .section-name-services h2 {
    font-size: 28px;
    font-weight: 300;
  }
  #services-card {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #Services #services-card .services-cards {
    width: 222px;
    height: 300px;
  }

  .thumbnail .item {
    width: 100px;
    height: 150px;
    flex-shrink: 0;
    position: relative;
  }
  #Contact {
    position: relative;
    height: fit-content;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #Contact #right {
    width: 100%;
    margin-top: 1px !important;
    margin-bottom: 60px;
  }
  #Contact #right h2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    font-size: 37px;
    margin-bottom: 20px;
  }
  #Contact #left {
    width: 100%;
  }
  #Contact #left ul {
    width: 90%;
  }
  #Contact #left ul li {
    font-size: 18px;
    margin-bottom: 20px;
  }

  #Contact #left ul li a i {
    margin-right: 10px;
  }
  .footer {
    flex-direction: column;
    align-items: normal;
  }
  .footer .footer-right {
    width: 100%;
  }
  .footer-right ul li {
    cursor: pointer;
    color: #ffffff;
    font-size: 18px;
    margin: 10px;
  }
  .footer .footer-left {
    width: 100%;
  }
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #222;
  color: #fff;
  padding: 15px 20px;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  font-size: 14px;
}

.cookie-banner a {
  color: #d89d36;
  text-decoration: underline;
}

.cookie-buttons button {
  margin-left: 10px;
  padding: 8px 14px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

#accept-cookies {
  background: #d89d36;
  color: #000;
}

#reject-cookies {
  background: #555;
  color: #fff;
}
