/* import fonts */

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

/* all */
*{
  /* margin: 0; */
  padding: 0;
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body{
  /* fill window */
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:space-between;

}

.index{
  background: #7D47B3; /* fallback for old browsers */
  /* background: -webkit-linear-gradient(to bottom, #0072ff, #00c6ff); /* Chrome 10-25, Safari 5.1-6 */
  /* background: linear-gradient(to bottom, #0072ff, #00c6ff); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ */ */
}

main{
  padding: 30px;
}

/* ScrollBar */
/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 10px #256a7f;
  background: rgba(10, 10, 230, 0);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #502E73;
}
/* Navbar ---------------------------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 15px 40px;
  align-items: center;
  color: white;
  background: #502E73;
  /* box-shadow: 20px 10px 40px rgba(0, 0, 0, 0.5); */
  /* border: 2px solid rgba(74, 126, 205, 0.5); */
  /* backdrop-filter: blur(5px); */
  z-index: 15;
  padding: 1rem 0.2rem;
}
.nav-right {
  display: flex;
  align-items: center;
}
.brand-name{
  margin-left: 10px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 25px;
}
ul.main-menu{
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
}
li.nav-item{
  margin: 5px;
  transition: 0.3s ease;
}
.nav-item-link{
  text-decoration: none;
  width: 100%;
  padding: 10px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  color: white;
  border-radius: 40px;
}
.nav-item:hover{
  scale:1.2;
  transition: all 0.2s ease-in;
}
.nav-item-link:hover {
  border-radius: 40px;
  background-color: #502E73;
}
.mobile-nav{
  display: none;
  cursor: pointer;
}
.bar1, .bar2, .bar3 {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: 0.4s;
}
.change .bar1 {
  transform: translate(0, 11px) rotate(-45deg);
}
.change .bar2 {
  opacity: 0;
}
.change .bar3 {
  transform: translate(0, -11px) rotate(45deg);
}

.dark-btn{
  color: white;
  background: #0072ff;
  font-weight: 700;
  padding: 10px;
  margin-right: 10px;
  border: none;
}
.dark-btn:hover{
  border: 1px solid #0067d4;
  border-radius: 40px;
  background-color: #0067d4;
}

/* ============ Hero ============ */

#hero,#features{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: row;
  background-color: white;
  border-radius: 30px;
  margin: 0 30px 20px 30px;
  padding: 10px;
  height: max-content;
}

#about-hero{
  background: none;
}


.left-section,.right-section {
  padding: 5vw;
  width: 35vw;
  margin: auto;
}
.left-section h1{
  font-size: xxx-large;
  font-weight: bolder;
}
.subtitle{
  padding-block: 10px;
  font-weight: 400;
  font-size: large;
}
.right-section img{
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: contain;
}
.heroBtn{
  padding: 10px;
  margin: 20px 0 10px 0;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  transition: background 0.3s ease;
  margin-right: 5px;
}
.test{
  background-color: #f9a826;
}
.practice{
  background-color: #0198e1;
}
.test:hover{
  background-color: #f9a826d5;
}
.practice:hover{
  background-color: #0196e1c7;
}
.about {
  padding: 10%;
  text-align: center;
  max-width: 60vw;
  margin: auto;
}

#features{
  justify-content: space-around;
  text-align: center;
  padding-block: 20px;
}
.feature{
  width: 25vw;
}
.feature img{
  height: 96px;
  width: 96px;
}
.feature p{
  padding: 5px;
}


/* ============ Dark mode button ============ */
.dark-btn{
  color: white;
  background: #502E73;
  font-weight: 700;
  padding: 10px;
  margin-right: 10px;
  border: 1px solid #502E73;
}
.dark-btn:hover{
    border: 1px solid #502E73;
  border-radius: 0;
  background-color: #7D47B3;
}

/* ============ Footer ============ */
footer{
  padding: 20px 0px;
  font-weight: 500;
  bottom: 0;
  width: 100%;
  font-size: 18px;
  color: white;
  display: flex;
  justify-content: center;
  /* background: rgb(2, 0, 36); */
  /* background: linear-gradient(279deg, rgba(2, 0, 36, 1) 0%, rgba(5, 5, 85, 1) 52%, rgba(0, 212, 255, 1) 100%); */
}

/* ============ Media Queries ============ */


@media screen and (max-width: 524px) {
  .navigation{
    display: none;
    position: absolute;
    background-color: #0072ff;
    top: 62px;
    left: 0;
    width: 100%;
  }
  ul.main-menu{
    flex-direction: column;
  }
  .brand{
    flex-grow: 1;
  }
  .mobile-nav{
    display: block;
    font-size: 25px;
  }
}

@media screen and (min-width: 525px) {
  .navigation {
    display: block;
  }
}

@media screen and (max-width: 670px) {
  .nav-item{
    display: inline-flex;
  }
  .navigation{
    margin: auto;
  }
  .brand-name{
    margin-bottom: 10px;
  }
  /* footer{
    font-size: 12px;
  } */
}

@media screen and (max-width: 768px) {
  .left-section,.right-section{
    width: 60vw;
  }
  .feature{
    width: 60vw;
    margin-block-end: 10px;
  }
  .navbar{
    padding: 15px 20px;
  }
  #hero,#features{
    margin: 0 20px 10px 20px;
  }
}
