@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  font-family: "Poppins", sans-serif;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

#intro-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  display: none; /* Prevents rendering entirely if hidden */
}

.intro-content {
  text-align: center;
  user-select: none;
  transition: ease 0.5s;
}

.intro-logo {
  max-width: 200px;
  margin-bottom: 20px;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  box-shadow: 5px 10px #888888;
}

.hidden {
  display: none !important;
  transition: ease 0.5s;
}

.proceed-button {
  padding: 10px;

  background-color: #007bff;

  color: white;

  border: none;

  border-radius: 5px;

  margin-top: 10px;

  cursor: pointer;

  transition: ease 0.3s;
}

.proceed-button:hover {
  transform: scale(1.2);

  transition: ease 0.2s;

  background-color: royalblue;
}

.start-button:hover {
  cursor: pointer;
}

#orientation-lock {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  color: black;
  font-size: 2em;
  text-align: center;
  z-index: 1000;
  display: none;
}

@media screen and (orientation: portrait) {
  body {
    background-color: #f0f0f0;
  }
}

nav .logo {
  border-radius: 5px;
  width: auto;
  height: 60px;
  margin-left: 10px;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background: rgba(30, 30, 30, 0.8);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  user-select: none;
}

.links-container {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 1.5em;
}

.account-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 2.5em;
}

.account-links .prof {
  padding: 0px 20px;
  width: fit-content;
  font-size: 1.5em;
  border-radius: 10px;
}

.account-links .prof .proff {
  padding: 5px 30px;
  border: none;
  margin-right: 15px;
  border-radius: 10px;
  background-color: #6ea4f5;
  cursor: pointer;
  font-size: large;
}

.account-links .prof .proff:hover {
  background-color: royalblue;
}

.survey {
  font-size: 20px;
}

.survey-link {
  text-decoration: none;
  font-size: 20px;
}

.links-container a {
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

.account-links a {
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

.links-container a:hover {
  color: royalblue;
}

.account-links a:hover {
  color: royalblue;
}

nav .home-link {
  margin-right: auto;
}

nav svg {
  fill: white;
}

#sidebar-active {
  display: none;
}

.open-sidebar-button,
.close-sidebar-button {
  padding: 0 20px;
  display: none;
}

@media (max-width: 768px) {
  .links-container {
    position: fixed;
    width: 250px;
    background-color: #1e1e1e;
    top: 0;
    right: -100%;
    z-index: 10;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    border-radius: 20px;
    transition: 0.75s ease-out;
  }

  .account-links .prof .proff {
    padding: 20px 15px;
  }

  .account-links .proff {
    position: fixed;
    z-index: 11;
    box-sizing: border-box;
    height: auto;
    top: 60%;
    right: -100%;
    transition: 0.75s ease-out;
  }

  .links-container a {
    box-sizing: border-box;
    height: auto;
    width: 100%;
    padding: 20px 30px;
    justify-content: flex-start;
  }

  .open-sidebar-button,
  .close-sidebar-button {
    padding: 20px;
    display: block;
  }

  #sidebar-active:checked ~ #overlay {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;
  }

  #sidebar-active:checked ~ .links-container {
    right: 0;
  }

  #sidebar-active:checked ~ .account-links .proff {
    right: 0.1%;
  }

  nav .logo {
    padding-right: 135px;
    width: auto;
    height: 60px;
  }

  nav {
    user-select: none;
  }

  .content .search .service-input::placeholder {
    color: #fff;
    font-size: 0.6em;
  }

  .content .search .postcode-input::placeholder {
    color: #fff;
    font-size: 0.6em;
  }

  .content .one-text {
    user-select: none;
    color: #fff;
  }

  .content .one-sub {
    user-select: none;
  }

  .content p {
    user-select: none;
  }

  #orientation-lock {
    user-select: none;
  }
}

.container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
  -webkit-overflow-scrolling: touch;
}

.container::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
}

.one {
  background: #1e1e1e;
}

.two {
  background: #1e1e1e;
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.row {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.col {
  font-size: 2.75em;
  margin-bottom: 42px;
}

.discover-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 35px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  cursor: pointer;
}

.card img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.card p {
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
}

.card a {
  text-decoration: none;
}

.card p:hover {
  text-decoration: underline;
}

.slider {
  width: 100%;
  margin-top: 80px;
  height: var(--height);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
}

.slider .list {
  display: flex;
  width: 100%;
  min-width: calc(var(--width) * var(--quantity));
  position: relative;
}

.slider .list .item {
  width: var(--width);
  height: var(--height);
  position: absolute;
  left: 100%;
  animation: autoRun 30s linear infinite;
  transition: filter 0.5s;
  animation-delay: calc(
    (30s / var(--quantity)) * (var(--position) - 1) - 30s
  ) !important;
}

.slider .list .item img {
  width: 100%;
}

@keyframes autoRun {
  from {
    left: 100%;
  }
  to {
    left: calc(var(--width) * -1);
  }
}

.slider:hover .item {
  animation-play-state: paused !important;
  filter: grayscale(1);
}

.slider .item:hover {
  filter: grayscale(0);
  cursor: pointer;
}

.slider[reverse="true"] .item {
  animation: reversePlay 30s linear infinite;
}
@keyframes reversePlay {
  from {
    left: calc(var(--width) * -1);
  }
  to {
    left: 100%;
  }
}

.three {
  background: #1e1e1e;
  text-align: center;
  padding: 60px 20px;
}

.content-three {
  max-width: 100%;
  max-height: 100%;
  padding-top: 200px;
  padding-right: 300px;
  padding-bottom: 200px;
  color: #fff;
  overflow: hidden;
  border-right-width: 160px;
  border-left-width: 160px;
  border-bottom-width: 0px;
  border-top-width: 190px;
}

.three h1 {
  font-size: 24px;
  text-transform: uppercase;
  display: inline-block;
  border-bottom: 4px solid;
  padding-bottom: 15px;
}

.pe {
  float: left;
  width: calc(100% / 3 - 20px);
  overflow: hidden;
  padding: 50px 10px;
  transition: 0.4s;
  margin: 10px;
}

.pe:hover {
  background: #ddd;
}

.pe img {
  width: 150px;
  height: 150px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.p-name {
  margin: 20px 0;
  text-transform: uppercase;
  font-size: 1.2em;
}

.p-dev {
  font-style: italic;
  color: #3498db;
  font-size: 1.1em;
}

.p-sm {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
}

.p-sm a {
  margin: 0 6px;
  display: inline-block;
  width: 35px;
  height: 35px;
  transition: 0.4s;
}

.p-sm a:hover {
  transform: scale(1.3);
}

.p-sm a i {
  color: #333;
  line-height: 35px;
}

@media screen and (max-width: 600px) {
  .pe {
    width: 100%;
  }
}

.content {
  margin: 0 auto;
  max-width: 620px;
  padding: 20px;
  width: 90%;
}

.content .one-text {
  user-select: none;
  color: #fff;
}

.content .one-sub {
  user-select: none;
}

.content p {
  user-select: none;
}

.content .search {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 20px;
}

.content .search ::placeholder {
  color: #fff;
}

.content h1 {
  font-size: 2.75em;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.25px;
}

.content p.one-sub {
  color: #9da0b6;
  margin-bottom: 1.5em;
  font-size: 1.5em;
}

.content .service-input,
.content .postcode-input {
  flex: 1;
  min-width: 150px;
  margin-right: 5px;
  padding: 12px 10px;
  border-radius: 5px;
  border: none;
  background-color: #6c6c6c;
  color: #fff;
}

.content .service-input:last-child {
  margin-right: 0;
}

.content .search-button {
  padding: 12px 20px;
  background-color: #6ea4f5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  flex: 0 0 auto;
}

.content .search-button:hover {
  background-color: #6ea4f5b4;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.popular-services {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #6c6c6c;
}

.another-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-us {
  margin-top: 50px;

  padding: 20px;

  border-radius: 10px;
}

.contact-us h1 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 20px;
}

.contact-us p {
  margin: 5px 0;
  color: #fff;
}

.contact-us form {
  display: flex;

  flex-direction: column;
}

.contact-us form input,
.contact-us form textarea {
  margin-bottom: 10px;

  padding: 10px;

  border: 1px solid #ccc;

  border-radius: 5px;
}

.contact-us form button {
  padding: 10px;

  background-color: #007bff;

  color: white;

  border: none;

  border-radius: 5px;

  cursor: pointer;
}

.contact-us form button:hover {
  background-color: #0056b3;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background-color: #333;
  color: #fff;
  position: fixed;
  bottom: 0;
  width: 100%;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (width: 1220px) {
  .two {
    padding: 40px 10px;
  }

  .discover-grid {
    gap: 20px;
  }

  .card img {
    width: 60px;
    height: 60px;
  }

  .three h1 {
    font-size: 28px;
  }

  .content-three {
    padding: 100px 150px;
    border-right-width: 80px;
    border-left-width: 80px;
  }

  .pe {
    width: calc(100% / 3 - 15px);
    padding: 40px 5px;
  }
}

.pop-up-survey {
  padding: 20px;
  width: 170px;
  height: 100px;
  background-color: #6ea4f5;
  opacity: 0;
  position: relative;
  left: 105px;
  border-radius: 5px;
  transition: ease 0.5s;
}

.pop-up-survey a {
  color: #000;
  text-decoration: none;
}

.pop-up-survey a:hover {
  color: #fff;
  transition: ease 0.3s;
  transform: scale(1.4);
}
