/* Important stuff here! Look at the bottom!!! (Line 133 to 136) */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Homemade+Apple&display=swap');

/* Important stuff here! Look at the bottom!!! (Line 133 to 136) */

  body {
    width: 100%;
    margin: 0;
    background-color: #03000e;
  
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Archivo", sans-serif;
}

:root {
  --nav-bg: #03000e;
  
  --nav-shadow: 0px 3px var(--main-clr);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  position:sticky
  width: 100%;
  background: transparent;
  box-shadow: var(--nav-shadow);
  
}


nav .logo {
  color: #fff;
  text-decoration-color: var(--main-clr);
  font-size: 29px;
  font-family: "Archivo", serif;
  
}

nav ul {
  --padding: 20px;
  --font-size: 17px;

  list-style: none;
  display: flex;
  align-items: center;
  font-size: var(--font-size);
  overflow-y: hidden;
  transition: 1s cubic-bezier(.68,-0.55,.27,10.55);
  box-shadow: var(--nav-shadow);
}

nav ul li {
  padding: var(--padding);
}

nav ul li:hover{
    font-weight: bolder;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  position: relative;
}

nav ul li a::after {
  content: "";
  width: 0%;
  height: 1.7px;
  border-radius: 99px;
  background: var(--main-clr);
  position: fixed;
  bottom: 0;
  left: 0;
  transition: 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
  
}

nav .menu {
  width: 22px;
  height: 16px;
  cursor: pointer;
  display: none;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  margin: 20px;
}

nav .menu span {
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: #fff;
  transition: 0.3s ease;
  transform-origin: left;
}

nav .menu.active span {
  background: white;
}

nav .menu.active span:nth-child(1) {
  transform: rotate(40deg);
}

nav .menu span:nth-child(3) {
  transform-origin: left;
}

nav .menu.active span:nth-child(3) {
  transform: rotate(-40deg);
}

nav .menu.active span:nth-child(2) {
  transform: scale(0);
}

@media (max-width: 768px) {
  nav .menu {
    display: flex;
  }

  nav ul {
    --height: 0px;

    flex-direction: column;
    background: var(--nav-bg);
    position: absolute;
    width: 100%;
    left: 0;
    top: 56px;
    height: var(--height);
    transition: 1s cubic-bezier(.68,-0.55,.27,1.55);
  }
  nav ul.active {
    --height: calc(
      (((var(--padding) * 2) + (var(--font-size) * 1.5))) * var(--childenNumber)
    );
    /*   (Block Level Padding + The Font Size) * The Number of Children   */
    
    
    transition: 1s ease;
  }

  nav ul li {
    width: 100%;
    text-align: center;
  }
  nav ul li a {
    width: 100%;
    text-transform: capitalize;
  }
}
.comp{
    margin-top: 60px;
    
}
.grid-container {
    display: grid;
    height: 600px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Each row takes up an equal fraction of available space */
    grid-gap: 10px;
    width: 80%;
    margin: 0 auto;
    
}


  .grid-item {
    background-color: #f1f1f1;
    padding: 90px;
    text-align: center;
    font-size: xx-large;
    cursor: pointer;
  }

  /*button id design*/

  #btn:hover{
    
    background:url(button.png);
    background-position: center;
    background-size: cover;

    
  }

 
  #btn:hover h3{
    visibility: hidden;
  }

  /*hover id design*/

  #hover:hover{
    
    background:url(hover.gif);
    background-position: center;
    background-size: cover;

    
  }
 
  #hover:hover h3{
    visibility: hidden;
  }

  /*slider id design*/

  #sliders:hover{
    
    background:url(slider.gif);
    background-position: center;
    background-size: cover;

    
  }
 
  #sliders:hover h3{
    visibility: hidden;
  }

  /*footer id design*/
 
  #footers:hover{
    
    background:url(fading\ footer.PNG);
    background-position: center;
    background-size: cover;

    
  }
 
  #footers:hover h3{
    visibility: hidden;
  }


  .grid-item:hover {
    background-color: #e0e0e0;
  }


@media (max-width: 768px){

    .grid-container {
        display: grid;
        height: 600px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Each row takes up an equal fraction of available space */
        grid-gap: 10px;
        width: 80%;
        margin: 0 auto;
        
    }
    .grid-item {
        background-color: #f1f1f1;
        padding: 90px;
        text-align: center;
        font-size: xx-large;
        cursor: pointer;
      }
    
    
      
    
      .grid-item:hover {
        background-color: #e0e0e0;
      }
    

    
}