/*
=============== 
Fonts
===============
*/
@import url("https://fonts.googleapis.com/css?family=Open+Sans|Roboto:400,700&display=swap");

/*
=============== 
Variables
===============
*/

:root {
  /* dark shades of primary color*/
  --clr-primary-1: hsl(43, 86%, 17%);
  --clr-primary-2: hsl(43, 77%, 27%);
  --clr-primary-3: hsl(43, 72%, 37%);
  --clr-primary-4: hsl(42, 63%, 48%);
  /* primary/main color */
  --clr-primary-5: hsl(42, 78%, 60%);
  /* lighter shades of primary color */
  --clr-primary-6: hsl(43, 89%, 70%);
  --clr-primary-7: hsl(43, 90%, 76%);
  --clr-primary-8: hsl(45, 86%, 81%);
  --clr-primary-9: hsl(45, 90%, 88%);
  --clr-primary-10: hsl(45, 100%, 96%);
  /* darkest grey - used for headings */
  --clr-grey-1: hsl(209, 61%, 16%);
  --clr-grey-2: hsl(211, 39%, 23%);
  --clr-grey-3: hsl(209, 34%, 30%);
  --clr-grey-4: hsl(209, 28%, 39%);
  /* grey used for paragraphs */
  --clr-grey-5: hsl(210, 22%, 49%);
  --clr-grey-6: hsl(209, 23%, 60%);
  --clr-grey-7: hsl(211, 27%, 70%);
  --clr-grey-8: hsl(210, 31%, 80%);
  --clr-grey-9: hsl(212, 33%, 89%);
  --clr-grey-10: hsl(210, 36%, 96%);
  --clr-white: #fff;
  --ff-primary: "Roboto", sans-serif;
  --ff-secondary: "Open Sans", sans-serif;
  --transition: all 0.3s linear;
  --spacing: 0.25rem;
  --radius: 0.5rem;
  --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  --max-width: 1170px;
}
/*
=============== 
Global Styles
===============
*/

*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', sans-serif;
  background: #fff;
  color: hsl(209, 61%, 16%);
  line-height: 1.5;
  font-size: 0.875rem;
}
ul {
  list-style-type: none;
}
a {
  text-decoration: none;
}
img:not(.nav-logo) {
  width: 100%;
  display: block;
}

/* LOGO */
.outer {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid red; 
  display: flex;
  align-items: center;
  justify-content: center;
}
.inner {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid blue; 
  display: flex;
  align-items: center;
  justify-content: center;
}
.inner a {
  font-size: 20px;
  color: #e71a1a;
  font-weight: 700;
}



h1,
h2,
h3,
h4 {
  letter-spacing: 0.25rem;
  text-transform: capitalize;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  font-family: 'Roboto', sans-serif;
}
h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 0.875rem;
}
p {
  margin-bottom: 1.25rem;
  color: hsl(210, 22%, 49%);
}
@media screen and (min-width: 800px) {
  h1 {
    font-size: 4rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 1.75rem;
  }
  h4 {
    font-size: 1rem;
  }
  body {
    font-size: 1rem;
  }
  h1,
  h2,
  h3,
  h4 {
    line-height: 1;
  }
}
/*  global classes */

.btn {
  text-transform: uppercase;
  background: hsl(42, 78%, 60%);
  color: hsl(43, 86%, 17%);
  padding: 0.375rem 0.75rem;
  letter-spacing: 0.25rem;
  display: inline-block;
  font-weight: 700;
  transition: all 0.3s linear;
  font-size: 0.875rem;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
}
.btn:hover {
  color: hsl(43, 86%, 17%);
  background: hsl(43, 90%, 76%);
}
/* section */
.section {
  padding: 5rem 0;
}

.section-center {
  width: 85vw;
  margin: 0 auto;
  max-width: 1170px;
}
@media screen and (min-width: 992px) {
  .section-center {
    width: 85vw;
  }
}
/* added during recording */
.underline {
  width: 5rem;
  height: 0.25rem;
  margin-bottom: 1.25rem;
  background: rgb(59, 59, 243);
  margin-left: auto;
  margin-right: auto;
}
.section-title {
  margin-bottom: 3rem;
  text-align: center;
}
.bg-grey {
  background: hsl(210, 36%, 96%);
}
/*
=============== 
Navbar
===============
*/
.nav-links {
  display: none;
}
.nav {
  height: 5rem;
  padding: 1rem;
  display: grid;
  align-items: center;
  transition: all 0.3s linear;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 2;

}
.nav-center {
  width: 80%;
  max-width: 1170px;
  margin: 0 auto;
}
.nav-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
}
.nav-btn {
  background: transparent;
  border-color: transparent;
  color: blue;
  font-size: 2rem;
  cursor: pointer;
  justify-self: end;
}
@media screen and (min-width: 768px) {
  .nav {
    background: hsl(45, 100%, 96%);
  }
  .nav-btn {
    display: none;
  }
  .nav-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    column-gap: 2rem;
    justify-self: end;
  }
  .nav-links a {
    text-transform: capitalize;
    color: hsl(209, 61%, 16%);
    font-weight: bold;
    letter-spacing: 0.25rem;
    transition: all 0.3s linear;
  }
  .nav-links a:hover {
    color: hsl(42, 78%, 60%);
  }
  .nav-center {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}

/*
=============== 
Sidebar
===============
*/
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: hsl(210, 36%, 96%);
  z-index: 4;
  display: grid;
  place-items: center;
  transition: all 0.3s linear;
  /* add later */
  transform: translateX(-100%);
}
/* toggle sidebar */
.show-sidebar {
  transform: translateX(0);
}
.sidebar-links {
  text-align: center;
}
.sidebar-links a {
  font-size: 2rem;
  text-transform: capitalize;
  transition: all 0.3s linear;
  color: hsl(210, 22%, 49%);
  letter-spacing: 0.25rem;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.sidebar-links a:hover {
  color: hsl(42, 78%, 60%);
}
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 3rem;
  background: transparent;
  border: transparent;
  transition: all 0.3s linear;
  color: #bb2525;
  cursor: pointer;
}
.close-btn:hover {
  color: #e66b6b;
}
/*
=============== 
Hero
===============
*/
/* underline added to globals */

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* animation */
  overflow-x: hidden;;
}
.hero-center {
  min-height: calc(100vh - 5rem);
  display: grid;
  place-items: center;
  text-align: center;
}
.hero-info h1 {
  color: #fff;
  font-size: 2rem;
  max-width: 700px;
  animation: slideFromBottom 5s ease-in-out 1;
}
.hero-info h2 {
  color: rgb(12, 192, 12);
  font-size: 1.5rem;
  animation: slideFromTop 5s ease-in-out 1;
}

.hero-btn {
  display: inline-block;
  margin-top: 2rem;
  font-size: 1.2rem;
  padding: 0.5rem;
  color: #fff;
  background-color: rgb(12, 192, 12);
  border-radius: 5px;
  outline: 0.125rem solid rgb(176, 236, 176);
  outline-offset: 0.25rem;
  animation: jump 5s linear 1;
}

/* ANIMATION */

@keyframes slideFromBottom {
  0% {
      transform: translateY(1000px);
      opacity: 0;
  }
  50% {
      transform: translateY(-200px);
      opacity: 0.5;
  }
  75% {
      transform: translateY(50px);
      opacity: 0.75;
  }
  100% {
      transform: translateY(0px);
      opacity: 1;
  }
}

@keyframes slideFromTop {
  0% {
      transform: translateY(-1000px);
      opacity: 0;
  }
  50% {
      transform: translateY(200px);
      opacity: 0.5;
  }
  75% {
      transform: translateY(-50px);
      opacity: 0.75;
  }
  100% {
      transform: translateY(0px);
      opacity: 1;
  }
}
@keyframes jump {
  0% {
      transform: scale(1.5);
      opacity: 0;
  }
  50% {
      transform: scale(2);
      opacity: 0.5;
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}

/* INTRO SECTION */
.intro {
  background-color: #fff;
  overflow-x: hidden;
}
.intro h2 {
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px #fff;
  background: url('../images/bluesky.png');
  background-clip: text;
  background-position: 0 0;
  animation: back 20s linear infinite;
}
@keyframes back {
  100% {
      background-position: 2000px 0;   
      }
}
.intro-info a {
  display: inline-block;
  font-size: 1.2rem;
  margin: 1.2rem 0;
  background-color: rgb(59, 59, 243);
  padding: 0.5rem;
  border-radius: 5px;
  color: #fff;
  transition: all 0.3s ease-in-out;
  outline: 0.125rem solid rgb(104, 104, 245);
  outline-offset: 0.25rem;
}
.intro-info a:hover {
  transform: scale(1.2);
}
@media screen and (min-width: 700px) {
  .intro-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .intro-img, .intro-info {
    flex: 0 0 calc(50% - 2rem);
    margin-bottom: 2rem;
    align-self: center;
}
}
@media screen and (min-width: 768px) {
  .intro-img::before {
      content: "";
      position: absolute;
      border: 0.5rem solid rgb(112, 195, 231);
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      top: -1rem;
      left: 1rem;
      /* z-index: -1; */
  }
  .intro-img {
      position: relative;
  }
  .intro-photo {
      position: relative;
  }
}

/* SERVICES SECTION */
.services {
  background-color: rgb(59, 59, 243);
}
.services h2 {
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px #fff;
  background: url('../images/bluesky.png');
  background-clip: text;
  background-position: 0 0;
  animation: back 20s linear infinite;
}
@keyframes back {
  100% {
      background-position: 2000px 0;   
      }
}
.service {
  background-color: #fff;
  padding: 3rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: .5rem;
  text-align: center;
}
.services-underline {
  width: 5rem;
  height: 0.25rem;
  margin-bottom: 1.25rem;
  background-color: #fff;
  margin-left: auto;
  margin-right: auto;
}
.service p {
  margin-bottom: 1rem;
}
.service-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.service .underline {
  width: 3rem;
  height: 0.12rem;
  margin-bottom: .5rem;
}
.service:hover {
  background-color: rgb(255, 190, 9);
}
.service a {
  font-size: 1rem;
  padding: 0.5rem;
  color: #fff;
  background-color: rgb(12, 192, 12);
  border-radius: 5px;
  outline: 0.125rem solid rgb(176, 236, 176);
  outline-offset: 0.25rem;
  margin-bottom: auto;
}
.service a:hover {
  background-color: rgb(59, 59, 243);
}
@media screen and (min-width: 700px) {
  .services-center {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
  }
}
@media screen and (min-width: 992px) {
  .services-center {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
  }
}

/* INDUSTRIES SECTION */
.industries h2 {
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px #fff;
  background: url('../images/bluesky.png');
  background-clip: text;
  background-position: 0 0;
  animation: back 20s linear infinite;
}
@keyframes back {
  100% {
      background-position: 2000px 0;   
      }
}
.industries-underline {
  width: 5rem;
  height: 0.25rem;
  margin-bottom: 1.25rem;
  background: rgb(59, 59, 243);
  margin-left: auto;
  margin-right: auto;
}
.industries-grid {
  display: grid;
  place-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}
.industries-grid i {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

@media screen and (min-width: 576px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width: 768px) {
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (min-width: 992px) {
  .industries-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}




/* ABOUT SECTION */
.about {
  margin: 0 auto;
  background-color: rgb(59, 59, 243);
  overflow-x: hidden;
}
.about h2 {
  text-transform: uppercase;
  font-size: 3rem;
  color: transparent;
  -webkit-text-stroke: 1px #fff;
  background: url('../images/bluesky.png');
  background-clip: text;
  background-position: 0 0;
  animation: back 20s linear infinite;
}
@keyframes back {
  100% {
      background-position: 2000px 0;   
      }
}
.about-underline {
  width: 5rem;
  height: 0.25rem;
  margin-bottom: 1.25rem;
  background: #fff;
  margin-left: auto;
  margin-right: auto;
}
.about-info a {
  display: inline-block;
  font-size: 1rem;
  padding: 0.5rem;
  color: #fff;
  background-color: rgb(12, 192, 12);
  border-radius: 5px;
  outline: 0.125rem solid rgb(176, 236, 176);
  outline-offset: 0.25rem;
}
.about-info a:hover {
  transform: scale(1.2);
}
@media screen and (min-width: 700px) {
  .about-center {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .about-img, .about-info {
    flex: 0 0 calc(50% - 2rem);
    margin-bottom: 2rem;
    align-self: center;
}
.about-img::before {
  content: "";
  position: absolute;
  border: 0.5rem solid rgb(112, 195, 231);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  top: -1rem;
  left: -1rem;
  /* z-index: -1; */
}
.about-img {
  position: relative;
}
.about-photo {
  position: relative;
}
}
.about-info h3 {
  color: #000;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}
.about-info p {
  color: #fff;
}



/* SCROLL ANIMATION */

.from-right {
  transform: translateX(-100%);
  opacity: 0;
  transition: all 1s linear;
}
.from-left {
  transform: translateX(100%);
  opacity: 0;
  transition: all 1s linear;
}
.from-left.appear,
.from-right.appear {
  transform: translateX(0);
  opacity: 1;
}






/* SLIDER SECTION */
.slider h2 {
  text-transform: uppercase;
  font-size: 2rem;
  color: transparent;
  -webkit-text-stroke: 1px #fff;
  background: url('../images/bluesky.png');
  background-clip: text;
  background-position: 0 0;
  animation: back 20s linear infinite;
}
.slider {
  position: relative;
}
.slide-container {
  width: 85vw;
  max-width: 620px;
  text-align: center;
  /* set relative for buttons */
  display: flex;
  position: relative;
  height: 450px;
  overflow: hidden;
}
@keyframes back {
  100% {
      background-position: 2000px 0;   
      }
}
.slider-title {
  margin-bottom: 0.5rem;
}

.slide .img {
  width: 275px;
  height: 275px;
  object-fit: cover;
  border: 1px solid hsl(211, 27%, 70%);
  background: #fff;
  padding: 0.25rem;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
}
.slider .btn {
  position: absolute;
  top: 250px;
  background: hsl(210, 22%, 49%);
  color: #fff;
  padding: 0.25rem 0.35rem;
  border-radius: 0.25rem;
  border: transparent;
  cursor: pointer;
}
.next-btn {
  right: 20%;
}
.prev-btn {
  left: 20%;
}
@media screen and (max-width: 500px) {
  .next-btn {
    right: 1rem;
  }
  .prev-btn {
    left: 1rem;
  }
}
@media screen and (max-width: 350px) {
  .slide .img {
      width: 150px;
      height: 150px;
      object-fit: cover;
      border: 1px solid hsl(211, 27%, 70%);
      background: #fff;
      padding: 0.25rem;
      border-radius: 50%;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      margin: 0 auto;
  }
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* transition: all 0.3s ease-in-out; */
  opacity: 0;
}
.slide.active {
  opacity: 1;
  transform: translateX(0);
}
.slide.next {
  transform: translateX(100%);
}
.slide.last {
  transform: translateX(-100%);
}


/* FOOTER SECTION */
.footer {
  background-color: rgb(59, 59, 243);
  color: #fff;
  text-align: center;
  font-size: 1.5rem;
  padding: 25px 25px;
}
.footer span {
  color: red;
}
.footer p {
  font-size: 1rem;
}
.footer p span {
  color: #fff;
}