/*=== Reset Styles ===*/
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Raleway", sans-serif;
  color: #fff;
  background-color: #000;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1, h2, h3 {
  font-weight: 400;
}

h1 {
  font-size: 3em;
  font-size: clamp(2em, 5vw, 5em);
}

h2 {
  font-size: 2em;
}

p {
  margin-top: 1em;
  color: #8d8d8d;
  line-height: 1.8em;
}

a {
  color: #fff;
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5em;
}

/*=== Hero Section ===*/
.hero {
  background-color: #000;
  height: 100vh;
  min-height: 30em;
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  padding-top: 0;
  z-index: 1;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}

.bg-image {
  background-image: radial-gradient(
    #fff 0%,
    #fff 19%,
    #000 20%,
    #000 100%
  );
  width: 100vh;
  height: 100%;
  perspective: 1000px;
  overflow: hidden;
}

.bg-image, .bg-image img {
  position: absolute;
  z-index: 0;
}

.bg-image, .bg-image .back {
  width: 105%;
  height: 105%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bg-image img {
  object-fit: cover;
}

.front {
  width: 110%;
  height: 110%;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
}

.bg-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background-image: radial-gradient(
    transparent 0%,
    rgba(0, 0, 0, .5) 40%,
    #000 100%
  );
  width: 100%;
  height: 100%;
  z-index: 1;
}

.brand {
  width: 2em;
  position: absolute;
  top: 1.3em;
  left: 50%;
  transform: translateX(-50%);
}

/*=== Navigation ===*/
nav {
  width: 100%;
  max-width: 1100px;
  height: 4em;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  transition: right 400ms cubic-bezier(0.86, 0, 0.07, 1);
}

nav a {
  width: 100%;
  border: 1px rgba(255, 255, 255, .2) solid;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 200ms;
  opacity: 0;
}

nav a:hover {
  background-color: rgba(255, 255, 255, .2);
}

.menu-btn {
  background-color: transparent;
  border: 0;
  position: absolute;
  right: 2.5em;
  top: 1.5em;
  width: 3em;
  height: 2em;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-direction: column;
  cursor: pointer;
  z-index: 3;
}

.menu-btn span {
  background-color: #fff;
  width: 100%;
  height: 3px;
  transition: 200ms;
}

.menu-btn span:nth-child(2) {width: 70%;}
.menu-btn span:nth-child(3) {width: 30%;}

.menu-btn:hover span {
  width: 100%;
}

.hero .menu-open {
  right: 0;
}

/*=== About and Services Section ===*/
.card {
  margin-block: 2em;
  display: flex;
  max-width: 800px;
}

.card img {
  max-width: 250px;
  object-fit: cover;
}

.card-text {
  border: 1px #282828 solid;
  padding: 2.5em;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
}

.card:nth-child(2) {
  float: right;
  margin-bottom: 4em;
}

.card:nth-child(3) {
  clear: right;
}

.service, .service-icon {
  border: 1px #282828 solid;
}

.service {
  padding: 3.5em 2.5em 2.5em 2.5em;
  max-width: 450px;
  position: relative;
  margin: 6em auto;
}

.service-icon {
  background-color: #000;
  position: absolute;
  width: 5em;
  height: 5em;
  top: -2.5em;
  left: 2.5em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-icon img {
  width: 3em;
}

/*=== Preview and CTA Sections ===*/
#preview h1, .cta h1 {
  text-align: center;
  margin-bottom: 1em;
}

#panorama {
  width: 100%;
  height: 600px;
  margin: 0 auto;
}

.cta {
  background-image: url(./img/banner.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  text-align: center;
}

.cta::before {
  content: "";
  background-color: rgba(0, 0, 0, .8);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cta .container {
  position: relative;
}

.btn {
  display: inline-block;
  margin: 2em auto;
  padding: 1em 2.5em;
  border: 3px #fff solid;
  background-color: rgba(255, 255, 255, .2);
  font-size: 1.5em;
  transition: 200ms;
}

.btn:hover {
  background-color: rgba(255, 255, 255, .4);
}

.cta img {
  width: 2em;
  margin-top: 1em;
}

.cta a {
  opacity: 1;
}

.cta nav {
  margin-top: 4em;
}

/*=== Media Queries ===*/
@media screen and (max-width: 1020px) {
  .service {
    max-width: 400px;
  }
}

@media screen and (min-width: 920px) {
  .service {
    margin-inline: 0;
  }
  .service:nth-child(2) {
    float: right;
    margin-bottom: 4em;
    margin-block: -6em;
  }
  .service:nth-child(3) {
    clear: right;
  }
  .service:nth-child(2) .service-icon {
    right: 2.5em;
    left: initial;
  }
}

@media screen and (min-width: 800px) {
  .menu-btn {
    display: none;
  }
}

@media screen and (max-width: 800px) {
  html {
    font-size: 14px;
  }
  .hero .container {
    justify-content: flex-end;
  }
  .hero nav {
    background-color: #000;
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2em;
    z-index: 3;
  }
  nav a {
    width: 90%;
    max-width: 300px;
    padding: 1em 2.5em;
  }
  .cta nav {
    grid-template-columns: 1fr;
    gap: 2em;
  }
  .cta img {
    margin: 0;
  }
}

@media screen and (min-width: 700px) {
  .card:nth-child(2) .card-text {order: 1;}
  .card:nth-child(2) img {order: 2;}
}

@media screen and (max-width: 700px) {
  .card {
    flex-direction: column;
  }
  .card img {
    max-width: 100%;
  }
}



