* {
  margin: 0; padding: 0; box-sizing: border-box;
}
html {font-size: 62.5%; scroll-behavior: smooth;}

body {
  background-image: linear-gradient(rgb(18, 54, 63), rgb(38, 106, 122));
  /* background-image: url(images/house_bg.png); */
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  
}
.header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem;
  border-bottom: solid 1px #777777;
  /* background-color: white; */
}
.header__logo > img {
  max-width: 100%;
  height: auto;
  animation: logo-in 2s 1s backwards;
}

@keyframes logo-in {
  0% {
    opacity: 0;
    transform: translateX(-4rem);
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* NAVIGATION */
.nav__navlist {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  animation: top-nav-in 1s 2s backwards;
}

@keyframes top-nav-in {
  0% {
    opacity: 0;
    transform: translateY(4rem);
  }
  50% { 
    transform: translateY(-1rem);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.nav__list-item {
  margin-right: .2rem;
}
.nav__list-item:last-child  {
  margin-right: 0;
}
.nav__link {
  display: block;
  padding: 1rem;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  font-family: "comfortaareg";
  letter-spacing: .2rem;
  /* background-color: rgba(222, 184, 135, .3); */
}
.nav__link:link, .nav__link:visited {
  color: rgb(255, 251, 0);
  border-bottom: solid 2px transparent;
}
.nav__link:hover {
  color: rgb(0, 238, 255);
  /* background-color: rgb(0, 64, 128); */
  transition: all .7s;
  border-bottom: solid 2px rgb(0, 238, 255);
  border-radius: 2px;
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}
.hero > figure {
  animation: hero-in 2s 3s backwards;
}
.hero-heading {
  animation: hero-heading-in 2s 4s backwards, border-colorise 6s 3s infinite;
}
@keyframes hero-in {
  0% {
    opacity: 0;
    transform: translateX(-100rem);
  }
  50% {
    transform: translateX(1rem);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes hero-heading-in {
  0% {
    opacity: 0;
    transform: translateX(100rem);
  }
  50% {
    transform: translateX(-1rem);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

#bottom-menu {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: rgb(147, 27, 0);
  position: fixed;
  bottom: 0;
  left: 0;
  height: min-content;
  padding: .5rem 0;
  z-index: 500;
  border-top: solid 1px greenyellow;
}
#bottom-menu .nav__link {
  padding: .5rem;
  font-size: 1.3rem;
  /* background-color: rgb(105, 38, 31); */
  color: white;
}
.bottom-menu-hidden {
  visibility: hidden;
  opacity: 0;
  transition: all .8s;
}
.bottom-menu-visible {
  visibility: visible;
  opacity: 1;
}

/* SECTIONS */
.main { padding-bottom: 5rem; }
.main-content, .cards {
  max-width: 180ch;
  margin: auto;
  margin-top: 3rem;
}
.main-content {
  background-color: rgba(0,0,0, .6);
  padding: 3rem;
  border: solid 1px greenyellow;
  position: relative;
  column-count: 2;
}

#intro::before {
  content: "Welcome to Neurabode Smarthomes";
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  padding: 1rem;
  background-color: rgb(26, 26, 26);
  font-size: 2rem;
  border: solid 3px white;
  box-shadow: .3rem .3rem .5rem rgba(0, 0, 0, .6);
}

/* CARDS */

.card__link {
  display: flex;
  justify-content: center;
  text-decoration: none;
  flex-basis: 300px;
  color: black;
  transition: all .5s;
}
.cards {
  max-width: 70vw;
  margin: 8rem auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  background-color: rgba(255, 255, 255, .1);
  border: solid 1px rgba(255, 255, 255, .5);
  padding-top: 2rem;
}
.card {
  flex-basis: 250px;
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  border-top: .4rem solid rgb(138, 218, 255);
  background-color: white;
  color: #494949;
  /* box-shadow: 0 0 .8rem rgb(0, 225, 255), 0 0 .8rem rgb(0, 225, 255); */
  backface-visibility: hidden;
  transition: all .25s;
}
.card__card-header, .card__card-footer {
  padding: 1rem 0;
  background-color: dodgerblue;
  color: white;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
}
.card__card-header {
  margin-bottom: 1rem;
}
.card__card-image {
  max-width: 100%;
  height: auto;
}
.card__card-footer {
  position: relative;
  background-color: forestgreen;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.7rem;
  /* margin-top: 1rem; */
  align-self: auto;
  height: 4rem;
  border-bottom: solid .4rem greenyellow;
}
.card__card-footer::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  height: 100%;
  width: 0;
  background-color: rgb(255, 255, 255);
  transition: all .6s cubic-bezier(0.075, 0.82, 0.165, 1);
  opacity: 1;
}
.card__card-footer:hover::before {
  width: 80%;
  opacity: 0;
}


/* .card__link:hover {
  transform: translateY(.3rem) scale(1.05) rotate(1deg);
  box-shadow: none;
}
.card__link:nth-child(even):hover {
  transform: translateY(.3rem) scale(1.05) rotate(-1deg);
} */




@keyframes rainbow-border {
  0% {
    background-color: rgb(229, 255, 0);
  }
  50% {
    background-color: rgb(255, 51, 0);
  }
  100% {
    background-color: rgb(229, 255, 0);
  }
}
@keyframes rainbow-border-2 {
  0% {
    background-color: rgb(212, 0, 255);
  }
  50% {
    background-color: rgb(0, 255, 0);
  }
  100% {
    background-color: rgb(212, 0, 255);
  }
}
@keyframes pulse {
  0% {
    text-shadow: 0 0 .2rem aquamarine;
  }
  50% {
    text-shadow: 0 0 0 transparent;
  }
  100% {
    text-shadow: 0 0 .2rem rgb(252, 255, 71);
  }
}

.modal {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(15, 15, 15, 0.9);
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  overflow-y: scroll;
  transition: all .6s;
}
.modal--visible {
  visibility: visible;
  opacity: 1;
}
.modal__wrapper {
  max-width: 85rem;
  display: flex;
  flex-direction: column;
  border: solid 1px greenyellow;
  
}
.modal__header {
  color: white;
  /* background-color: rgb(3, 70, 29); */
  background-color: rgba(45, 45, 45, .6);

  padding: 1rem;
  font-size: 1.4rem;
  border-bottom: solid 1px rgb(38, 241, 255);
  z-index: 1010;
  box-shadow: 0 .2rem .3rem rgba(0, 0, 0, .6);
}
.modal__content {
  padding: 1rem;
  background-color: rgb(18, 54, 63);
  color: lightgray;
}
.modal__section {
  display: flex;
  padding-bottom: .5rem;
  margin-bottom: .5rem;
  border-bottom: solid 1px rgb(27, 80, 94);
}
.modal__image {
  max-width: 100px;
  height: auto;
  margin-right: 2rem;
}
.contact-form-wrapper {
  display: flex;
  align-items: flex-start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  font-size: 1.8rem;
}
fieldset {
  padding: 1rem;
  margin: 1rem;
  border-color: darkcyan;
  background-color: rgba(0, 0, 0, .1);
}

input[type=text], input[type=email], textarea{
  border: none;
  outline: none;
  border-top: solid 1px rgb(216, 216, 216);
  border-bottom: solid 3px rgb(216, 216, 216);
  border-radius: .3rem;
  font-size: 1.6;
  margin: .2rem;
  height: 0;
  background-color: transparent;
  opacity: .4s;
  transition: all 1s;
  width: 3rem;
  resize: none;
}
input[type=text]:focus, input[type=email]:focus {
  height: 100%;
  width: 25rem;
  padding: .5rem;
  background-color: rgba(0, 0, 0, .4);
  opacity: 1;
}
textarea:focus {
  width: 25rem;
  height: 20rem;
  padding: .5rem;
  background-color: rgba(0, 0, 0, .4);
  opacity: 1;
}

#contact-form-details {
  margin: 1rem 0;
  max-width: 50rem;
}

/* Sliding FAQs */
.faq-wrapper {
  display: flex;
  flex-direction: column;
}
.faq {
  overflow: hidden;
}
.faq__header {
  position: relative;
  font-size: 2.5rem;
  background-color: rgb(20, 20, 20);
  z-index: 100;
  padding: .5rem;
}
.faq__body {
  position: relative;
  font-size: 1.8rem;
  background-color: rgba(255, 255, 255, .1);
  transform: translateY(-5rem);
  padding: .5rem;
  animation: faq-slider 2s 5s forwards;
}
@keyframes faq-slider {
  100% {
    transform: translateY(0);
  }
}