@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none; border: none;
  text-transform:capitalize;
  transition: all .2s linear;
}
html{
  font-size: 70.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body{
  background:#0E0E0E;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 1.7rem 10%;
    height: 6.5rem;
    background-color:363636;
    box-shadow: 0 2px 4px rgba(146, 161, 176, 0.3);
    }
    
.header{
    background-color:#c2c2c2;
    border-radius: 10px;
    }
    
.logo{
    font-size: 2.5rem;
    color:#050505;
    font-weight: 300;
    cursor: default;
    margin-right: auto;
    
    }

.home {
position: relative;
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
min-height: 100vh;
align-items: center;
}

.home .home-content {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
.home::before {
content: "";
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
.home .content {
flex: 1 1 40rem;
padding-top: 1rem;
z-index: 1;
}
  
.home .content h2 {
font-family:system-ui, -apple-system, 
BlinkMacSystemFont, 'Segoe UI', Roboto, 
Oxygen, Ubuntu, Cantarell, 'Open Sans', 
'Helvetica Neue', sans-serif;
font-size: 9rem;
font-weight: 500;
color:#FFDE59;
}

.home .content h2 span {
font-size: 8rem;
font-weight: 500;
color:#FFFFFF;
}
.home .content p {
    color: rgb(240, 236, 236);
    font-size: 1.8rem;
    margin-top: 1.4rem;
    font-weight: 400;
}

header .nav ul{
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
header .nav li{
  margin-left: 2.5rem;
}
header .nav ul li a{
  font-size: 1.57rem;
  color:#0E0E0E;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04rem;
}

header .nav ul li a:hover{
  color:var(--main-color);
  border-bottom: .2rem solid var(--main-color)
  padding: .5rem 0;
}

.nav_list {
  display: flex;
  align-items: center;
}
.nav_item {
  margin: 0 10px;
}
.nav_link {
  padding: 5px;
  font-size: 1rem;
  border-radius: 5px;
  transition: 0.3s;
}
.nav_link:hover {
  background-color:#fefefe
}
.toggle,
.close {
  display: none;
}

/* -----------------portfolio----------------- */

.portfolio h2{
  font-size: 80px;
  margin-top: 70px;
  color: #ffae00;
  text-align: center;
}
  
  
  .row .image img {
    margin: 1rem;
    margin-bottom: 1rem;
    width: 40rem;
    height: auto; 
    margin-right: 100px;
    margin-right: 30px;
    display:inline-block;
    
    box-shadow: 0 0px 5px rgba(78, 78, 78, 0.6);   
    }
  
    .row .image1 img {
      margin: 1rem;
      margin-bottom: 1rem;
      width: 40rem;
      height: auto; 
      gap: 20px;
      box-shadow: 0 0px 5px rgba(78, 78, 78, 0.6);  
      display:inline-block; 
      }
  
    .portfolio .portfolio-container {
  
      display: flex;
      flex-wrap: wrap; 
      gap: 3.2rem;
      margin-right: 50px;
    }
    
    .portfolio-container .portfolio-box {
      position: relative;
      width: 800px;
      max-width: 600px; 
      border-radius: 30px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); 
      overflow: hidden;
      display: flex;
      transition: all 0.6s ease; 
    }
  
    /* --vid start here */
    .portfolio-box {
      position: relative;
      overflow: hidden;
      border-radius: 8px;
  
    }
    
    .portfolio-box video {
      width: 100%;
      border-radius: 8px;
    }
    
    .portfolio-box:hover .portfolio-layer {
      opacity: 1;
    }
    
    .main-container{
      margin-top: 60px;
      display: grid;
      grid-template-columns: .5fr 2fr;
      gap: 30px;
      margin-right: 120px;
    }
    
  

    .project-description{
      display: grid;
      grid-template-columns: 3fr .5fr ; 
    }
    
    .title{
      color:#ffd000;
      font-size: 50px;
    }
    .description{
      color: white;
      font-size: 20px;
      text-align: justify;
    }
  
  .title1{
    text-align: center;
    color: #ffd000;
    font-size: 80px;
  }

  /* navbar media query*/ 
@media screen and (max-width: 768px) {
  header {
    height: 50px;
    justify-content: space-between;
    padding: 0 30px;
 
  }
  .logo {
    position: absolute;
    width: 150px;
    height: 150px;
    left: 0; 
    margin-left: 40px;
    }
 
  .toggle {
    display: inline;
    font-size: 25px;
    
  }
  .close {
    position: absolute;
    right: 25px;
    display: block;
    font-size: 25px;
    border-radius: 50%;
  }
  .close:hover {
    background-color: #a59a9c;
  }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: #fefefe;
    width: 40%;
    height: 150vh;
    padding: 30px;
    z-index: 100;
    transition: 0.5s;
    border-radius: 0 0 0 0%;
    
  }
  .nav_list {
    display: flex;
    flex-direction: column;
    
  }
  .nav_item {
    margin: 2rem 0;
    text-align: center;
    
  }
  .show {right: 0;
  }
}

   /* mobile phone- iphone se */
   @media screen and (max-width: 375px) {
    *{
      grid-template-columns: repeat(auto-fit, minmax(200px, auto));
    }
  
    .portfolio h2{
      font-size:100px;
      margin-top: 100px;
      margin-left: 30px;
      
      color: #ffae00;
      text-align: center;
    }
      
      
      .row .image img {
        margin: 2rem;
        margin-bottom: 1rem;
        width: 50rem;
        height: auto; 
        margin-left: 110px;
        box-shadow: 0 0px 5px rgba(78, 78, 78, 0.6); 
        display:inline-block;  
        }
      
        .row .image1 img {
          margin: 2rem;
          margin-bottom: 1rem;
          width: 40rem;
          height: auto; 
          gap: 20px;
          margin-left: 165px;
          box-shadow: 0 0px 5px rgba(78, 78, 78, 0.6);   
          display:inline-block;
          }
  
        .portfolio .portfolio-container {
  
          gap: 1rem;
          margin-left: 40px;
        }
        
        .portfolio-container .portfolio-box {
          position: relative;
          width: 800px;
          max-width: 600px; 
          border-radius: 30px;
          box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); 
          overflow: hidden;
          display: flex;
          transition: all 0.6s ease; 
        }
      
  
        .portfolio-box {
          position: relative;
          overflow: hidden;
          border-radius: 8px;
      
        }
        
        .portfolio-box video {
          width: 100%;
          border-radius: 8px;
        }
        
        .portfolio-box:hover .portfolio-layer {
          opacity: 1;
        }
        
        .main-container{
          margin-top: 60px;
          display: grid;
          grid-template-columns: 1fr;
          gap: 30px;
          margin-left: 60px;
        }
        
  
        .project-description{
          display: grid;
          grid-template-columns: 3fr .1fr ; 
  
        }
        
        .title{
          color:#ffd000;
          font-size: 50px;
        }
        .description{
          color: white;
          font-size: 25px;
          display: grid;
          margin-left: 5px;
          margin-top: 10px;
        }
      
      .title1{
        text-align: center;
        color: #ffd000;
        font-size: 60px;
        margin-left: 100px;
        margin-top: 25px;
      }
    
  
  }
 /* tablet- ipad air */
@media screen and (max-width: 820px) {
  *{
    grid-template-columns: repeat(auto-fit, minmax(200px, auto));
  }

  .portfolio h2{
    font-size:75px;
    margin-top: 100px;
    margin-left: 30px;
    color: #ffae00;
    text-align: center;
  }
    
    
    .row .image img {
      margin: 2rem;
      margin-bottom: 1rem;
      width: 50rem;
      height: auto; 
      margin-left: 110px;
      box-shadow: 0 0px 5px rgba(78, 78, 78, 0.6); 
      display:inline-block;  
      }
    
      .row .image1 img {
        margin: 2rem;
        margin-bottom: 1rem;
        width: 40rem;
        height: auto; 
        gap: 20px;
        margin-left: 165px;
        box-shadow: 0 0px 5px rgba(78, 78, 78, 0.6);   
        display:inline-block;
        }

      .portfolio .portfolio-container {

        gap: 1rem;
        margin-left: 40px;
      }
      
      .portfolio-container .portfolio-box {
        position: relative;
        width: 800px;
        max-width: 600px; 
        border-radius: 30px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); 
        overflow: hidden;
        display: flex;
        transition: all 0.6s ease; 
      }
    

      .portfolio-box {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
    
      }
      
      .portfolio-box video {
        width: 100%;
        border-radius: 8px;
      }
      
      .portfolio-box:hover .portfolio-layer {
        opacity: 1;
      }
      
      .main-container{
        margin-top: 60px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
        margin-left: 60px;
      }
      

      .project-description{
        display: grid;
        grid-template-columns: 3fr .1fr ; 

      }
      
      .title{
        color:#ffd000;
        font-size: 50px;
      }
      .description{
        color: white;
        font-size: 25px;
        display: grid;
        margin-left: 5px;
        margin-top: 10px;
      }
    
    .title1{
      text-align: center;
      color: #ffd000;
      font-size: 60px;
      display: grid;
      margin-top: 25px;
    }
  

}