* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
}

.preloader {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 9;
}

.loader {
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;

  /*   background:
linear-gradient(63deg, #999 23%, transparent 23%) 7px 0,
linear-gradient(63deg, transparent 74%, #999 78%),
linear-gradient(63deg, transparent 34%, #999 38%, #999 58%, transparent 62%),
#444;
background-size: 16px 48px; */

  /* display: none;  */ /* change intro logo*/

  animation: intro 3s linear ease-in-out;
}

.loader > img {
  position: absolute;

  transform: scale(2);
  /* 
  animation: intro-img 6s ease-in-out; */
}

.back-to-top {
  position: fixed;
  width: 3em;
  height: 3em;
  bottom: 3em;
  right: 3em;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;

  display: flex;

  align-items: center;
  justify-content: center;
  transform: rotate(90deg);

  border-radius: 0.5em;
  opacity: 0;

  transition: opacity 1s ease-in-out;
  cursor: pointer;
}

.back-to-top:hover {
  background-color: #ebcd1e;
}

.wrapper {
  height: 100vh;
  width: 100%;
  position: relative;
}

/* header section */

header {
  height: 7vh;
  width: 100%;
  padding: 0 2em;

  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  font-family: "Montserrat";
  text-transform: uppercase;

  z-index: 2;
}

#page-header {
  background-color: #fff;
  color: #666;
}

#page-header > svg {
  fill: #666;
}

ul {
  margin: 0;
  list-style: none;
}

.logo {
  transform: scale(0.5);
  transition: opacity 5s ease;
}

.brand-logo{
  margin-left: -3em;
  
}

nav {
  display: none;
}

/* mobile navigation */

.mob-nav {
  width: 60%;
  height: 100vh;
  position: fixed;
  right: 0;
  background-color: #333;
  z-index: 5;
  transform: translateX(100%);
  transition: transform 1s ease-in-out;
}

.mob-head {
  width: 100%;
  height: 10vh;
  padding: 0 1em;
  background-color: #000;
  text-align: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;

  text-transform: uppercase;
}

.mob-head > p {
  font-size: 1em;
}

/* inner mobile menu list */

#inner-mob-list {
  height: 0;
  opacity: 0;
  background-color: #222;
  text-transform: capitalize;
  display: none;
}

#inner-mob-list > li > a {
  padding-left: 1em;
}

.mob-list > li,
#inner-mob-list > li {
  height: 7vh;
  padding: 1em;
  border-bottom: #666 1px solid;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #666;
}

.mob-list > li > a,
#inner-mob-list > li > a {
  width: 100%;
  color: #fff;
  font-weight: 300;
}

.mob-list > li:hover,
#inner-mob-list > li:hover {
  background-color: #ebcd1e;
  color: #333;
}

.mob-list > li:hover > a,
#inner-mob-list > li:hover > a {
  color: #333;
}

.mob-sns {
  height: 10vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  color: #fff;
  border-bottom: #666 1px solid;
}

.mob-sns > li {
  height: 3em;
  width: 3em;
  background-color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.address {
  color: #ccc;
  padding: 1em;
  line-height: 2em;
}

.title {
  width: 100%;
  height: 40vh;
  background-image: url("../assets/Gunjay Villa/Gunjay\ Bungalow.jpg");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-color: rgba(0, 0, 0, 0.8);
  background-blend-mode: darken;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* hero section */

.hero {
  height: 100%;
  width: 100%;

  display: flex;
  align-items: center;

  background-color: rgba(0, 0, 0, 0.7);
}

.hero-content {
  width: 100%;
  height: 50%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;

  padding: 0 1.5em;
}

a {
  text-decoration: none;
}

h1 {
  text-transform: capitalize;
  color: #fff;
  text-align: center;
  font-size: 2rem;
  font-weight: 100;
}

button {
  width: 10em;
  height: 3em;

  background-color: #ebcd1e;
  border: none;
  font-family: "Montserrat";
  text-transform: capitalize;

  transition: background-color 0.5s;
}

button > a {
  color: #000;
  font-family: "Montserrat";
}

.hero-button:hover {
  background-color: #333;
}

.hero-button:hover > a {
  color: #fff;
}

.container {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: -1;
  overflow: hidden;
}

.carousel {
  height: 100%;
  width: 100%;
  position: relative;
}

.slider {
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 1s;
  transition: transform 10s;
  z-index: -1;
  object-fit: cover;

  display: flex;
  justify-content: center;
  align-items: center;
}

.slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide:nth-child(1) {
  opacity: 1;
  z-index: 0;
}

.control {
  width: 100%;
}

.hero-button {
  opacity: 0;
}

.carousel-btn {
  display: block;
  position: absolute;
  font-size: 5em;
  font-weight: 100;
  transform: scale(1, 2);
  color: rgba(255, 255, 255, 0.2);
  margin: 0.5em;

  cursor: pointer;
}

.next {
  position: absolute;
  right: 0;
}

/* footer */

footer {
  height: 35vh;
  width: 100%;
  padding: 0 10%;

  font-family: "Montserrat";

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;

  background-color: #333333;
}

.foot-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
}
.foot-links > li {
  flex: 50%;
  text-align: center;
  text-transform: uppercase;
  color: #aaaaaa;
  margin-bottom: 1rem;
}

.foot-links > li > a {
  text-align: center;
  text-transform: uppercase;
  color: #aaaaaa;
}

.foot-sns {
  width: 100%;
  height: 20%;

  display: flex;
  justify-content: center;
  align-items: center;
}

.foot-sns > li {
  height: 2em;
  width: 2em;
  background-color: #ffffff1a;

  color: white;
  font-weight: bolder;
  font-size: 1.5em;
  margin: 0 0.5em;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.foot-sns > li:hover {
  background-color: #ebcd1e;
  color: #333333;
  transition: all 0.4s ease-in-out;
}

.foot-sns > li:hover > svg {
  fill: #333333;
  transition: all 0.4s ease-in-out;
}

/* key frame animation */

@keyframes intro {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}
/* @keyframes menu {
  from {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  }

  to {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
} */

@keyframes intro-img {
  0% {
    transform: scale(1.5);
  }

  50% {
    transform: scale(2);
    opacity: 1;
  }

  100% {
    position: absolute;
    top: 0;
    left: 0;
    scale: (0.9);
    opacity: 0;
  }
}

/* tablet */

@media only screen and (min-width: 680px) {
  .mob-nav {
    width: 30%;
  }

  footer {
    flex-direction: row;
    justify-content: space-between;

    height: 15vh;
    padding: 0 1%;
  }

  .logo {
    transform: scale(0.7);
  }

  .foot-links > li {
    border-right: #666 solid 1px;
  }

  .foot-links > li:last-child {
    border-right: none;
  }
}

/* desktop */

@media only screen and (min-width: 920px) {
  /* header */

  header {
    background-color: transparent;
    
  }

  .loadbar{
    position: absolute;
    width: 100%;
    height: 1vh;
  }

  .loadbar-in{

    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.2;
  }

  .logo {
    transform: scale(0.9);
  }

  .brand-logo{
    margin-left: 0;
    
  }

  .back-to-top {
    width: 5em;
    height: 5em;
    bottom: 12em;
    right: 5em;
  }

  /* navigation */
  nav {
    display: block;
  }

  nav > ul {
    display: flex;
    height: max-content;
  }

  nav > ul > li {
    color: #cccccc;

    display: flex;
    align-items: center;

    cursor: pointer;
  }

  nav > ul > li > a {
    text-decoration: none;
    padding: 0 1.5rem;

    color: #cccccc;
    border-right: #cccccc 1px solid;

    letter-spacing: 2px;
  }

  nav > ul > li:hover > a {
    color: #fff;
  }

  nav > ul > li:last-child > a {
    border: none;
  }

  #menu {
    display: none;
  }

  .page-nav > li > a {
    color: #555555;
  }

  .page-nav > li:hover > a {
    color: #555555;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-nav > li:hover > a::before {
    content: "";
    position: absolute;
    width: 60%;
    height: 25%;

    z-index: -1;

    color: #333;
    background-color: #ebcd1e;
    animation: filter-motion 0.5s ease-in-out;
  }

  /* hero */

  .hero-content > h1 {
    font-size: 59px;
  }

  /* footer */

  footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    height: 15vh;
    padding: 0 1%;
  }

  .foot-links {
    width: 30%;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .foot-links > li {
    flex: auto;
    text-align: center;
    text-transform: uppercase;
    color: #aaaaaa;

    margin-bottom: 0;

    border-right: #666 solid 1px;
  }

  .foot-links > li:last-child {
    border-right: none;
  }
  .foot-sns {
    width: auto;
    height: 20%;

    display: flex;
    justify-content: center;
    align-items: center;
  }

  .foot-sns > li {
    height: 2em;
    width: 2em;
    background-color: #ffffff1a;

    color: white;
    font-weight: bolder;
    font-size: 1.5em;
    margin: 0 0.5em;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  @keyframes filter-motion {
    from {
      clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    }

    to {
      clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
  }
}
