*{
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
   
}
html{
    scroll-behavior: smooth;

  }
body{
    background: #080808;
    color: #fff;
}
#header{
    background: #080808;
    position: sticky;
    top: 0;
    z-index: 20; 
    width: 100%;
    /* height: 100vh;
    background-image: url(Images/portfolio-image.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size:cover; */
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-radius: 8px;
}
/* .container
{
    padding: 10px 10%;
} */
.logo{
    width: 100%;
    height: 90px;
}
nav
{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
nav ul{
    list-style-type: none;
    margin-bottom: 0;
}
nav ul li{
    display: inline-block;
    margin: 10px 20px;
}
nav ul li a{
    color: #fff;
    text-decoration: none ;
    font-size: 18px;
    position: relative;
}
nav ul li a:hover {
    color: #fff;
    text-decoration: none;
}
nav ul li a::after{
    content: "";
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    bottom: -6px;
    left: 0;
    transition: 0.5s;
}
nav ul li a:hover::after
{
    width: 100%;
    
}
#about
{
    padding: 80px 0px 0px 0px;
}
.sub-title
{
    font-size: 28px;
}

#about .row
{
    display: flex;
    
}
.about-col-1
{
    flex-basis: 35%;
}
.about-col-1 img
{
    width: 100%;
    border-radius: 15px;
}
.about-col-2
{
    flex-basis: 60%;
}
.tab-titles
{
    display: flex;
    margin: 20px 0 11px;
}
.tab-links
{
    font-size: 18px;
    font-weight: 500;
    margin-right: 50px;
    position: relative;
    cursor: pointer;
}
.tab-links::after
{
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    background-color: #f50c32;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}
.tab-links.active-link::after
{
    width: 100%;
}
.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
}
.tab-contents ul li span
{
    color: #aa5c5c;
    font-size: 14px;
}
.tab-contents
{
    display: none;
}
.tab-contents.active-tab
{
    display: block;
}
/* ---------------carousel----------------------- */

.carousel-inner {
    
    border-radius: 10px;
    
}
.carousel {
    position: relative;
}
.carousel-indicators {
    position: absolute;
    
    left: 0;
    z-index: 15;
    
    padding-left: 0;
    
    text-align: center;
    list-style: none;
}
.carousel-indicators li {
    display: inline-block;
    width: 50px;
    height: 50px;
    text-indent: -999px;
    cursor: pointer;
    
    border-radius: 10px;
    background-color: transparent;
}

.carousel-indicators .active {
    width: 50px;
    height: 50px;
    
    background-color: transparent;
    
}
.carousel-item
{
    height: 500px;
}
.carousel-item img{
    width: 100%;
    height: 100%;
}
.carousel-indicators img
{
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.carousel-indicators img
{
    position: absolute;
    
    left: 0;
    z-index: 15;
    
    padding-left: 0;
    
    text-align: center;
}
.carousel-indicators .active img {
    
    border: 2px solid red;
    
    
}
.material-icons
{position: absolute;
    font-size: 38px;
    color: red;
    right: 0;
    bottom: 0px;
    cursor: pointer;
}

/* -------------services list--------------- */
#services
{
    padding: 80px 0px 0px 0px;
}
.services-list
{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.services-list div h2{
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
}
.services-list div{
    background: #262626;
    padding: 40px;
    font-size: 15px;
    border-radius: 10px;
    font-weight: 300;
    height: fit-content;
    transition: background 0.5s, transform 0.5s;
}
.services-list div i{
    font-size: 50px;
    margin-bottom: 30px;
}
.services-list div a{
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
    cursor: pointer;
}
.services-list div:hover
{
    background-color: red;
    transform: translateY(-10px);
}

/* ---------Portfolio----------- */
#portfolio
{
    padding: 50px 0 0 0;
}
.work-list
{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.work{
border-radius: 10px;
position: relative;
overflow: hidden;

}
.work img{
    width: 100%;
    border-radius: 10px;
    transition:transform 0.5s;
    height: 100%;
}
.layer
{
  width: 100%;
  height: 0%;
  background: linear-gradient(  rgba(0,0,0,0.6), #ff004f);  
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  font-size: 14px;
  transition: height 0.5s;
}
.layer h3{
    font-weight: 500;
    margin-bottom: 20px;

}
.layer a
{
    margin-top: 20px;
    color: #ff004f;
    text-decoration: none;
    font-size: 18px;
    line-height:60px ;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    align-items: center;
   

}
.work:hover img
{
    transform: scale(1.1);
}
.work:hover .layer
{
    height: 100%;
}
.btn
{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ff7021;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.btn:focus {
    outline: none;
    box-shadow: none;
  }
  .btn:hover
  {
    background: #ff7021;
    color: #fff;
  }
  #contact
  {
    padding: 80px 0px 0px 0px ;
  }
  .contact-left
  {
    flex-basis: 35%;
  }
  .contact-right
  {
    flex-basis: 60%;
  }
  .contact-left p i{
    color: #229ED9;
    margin-right: 15px;
    font-size: 25px;
}
  .contact-left p{
    margin-top: 30px;
  }
  .social-icons
  {
    margin-top: 30px;

  }
  .social-icons a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
  }
  .social-icons a .fa-youtube:hover
  {
    color:#FF0000;
  }
  .social-icons a .fa-linkedin:hover
  {
    color: #0A66C2;
  }
  .social-icons a .fa-github:hover
  {
    color: #ffffff;
  }
  .social-icons a .fa-hackerrank:hover
  {
    color: #00FF00;
  }
   .social-icons a:hover
  {
   
    transform: translatey(-5px);
  }
  .dwld-btn,.submit-btn
  {
    display: inline-block;
    background: #ff7021;
    font-weight: bold;
    letter-spacing: 0.5px;
  }
  .contact-right form
  {
    width: 100%;

  }
  form input, form textarea
  {
     width: 100%;
     border: 0;
     outline: none;
     background: #262626;
     padding: 15px;
     margin: 15px 0;
     color: #fff;
     font-size: 18px;
     border-radius: 6px;
  }
  form .submit-btn
  {
    cursor: pointer;
    margin-top: 10px;
    padding: 14px 60px;
    font-size: 18px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.5px;
  }
  #footer
  {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
  }

  #footer i
  {
    color: #ff004f;
  }
  .copyright p{
    margin: 0;
  }
  .modal-content #msg{
    color: #61b752;
    font-size: 25px;
    padding: 30px 0 30px 0;
    font-weight: bold;

  }
  nav .fa-circle-xmark,nav .fa-bars
  {
    display: none;
    cursor: pointer;
  }
  .back-to-top {
    position: fixed;
    display: none;
    background: #ffffff;
    color: #333333;
    width: 44px;
    height: 44px;
    text-align: center;
    line-height: 1;
    font-size: 16px;
    border-radius: 5px;
    border: 2px solid #333333;
    right: 15px;
    bottom: 15px;
    transition: background 0.5s;
    z-index: 11;
}
.back-to-top i {
    padding-top: 12px;
    color: #333333;
}
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    
    
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
  }
  
  /* Modal Content */
  .modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    align-items: center;
    overflow-wrap: anywhere;
  }
  .modal-close-button
  {
    width: 100%;
    
  }
  
  /* The Close Button */
  /* .close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  } */
  
  /* .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
   */

  /* ------------Media query-------------- */
 
  
  /* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    nav ul
    {
    position: fixed;
    right: -200px;
    top: 0;
    padding-top: 50px;
    width: 200px;
    height: 100vh;
    background: #f50c32;
    z-index: 21;
    transition: right 0.5s;
    }
    nav ul li {
        display: block;
        margin: 25px;
        padding-top: 22px;
    }
    .fa-circle-xmark
    {
        position: absolute;
        top: 25px;
        left: 25px;
        font-size: 24px;
    }
    nav .fa-circle-xmark,nav .fa-bars
  {
    display: block;
    font-size: 25px;
  }
  nav ul li a::after {
   
    background: #fff;
   
}
.tab-links {
    font-size: 15px;
    margin-right: auto;
}
#about .row {
    display: block;
    
}
#about .about-col-2
{
    margin-top: 30px;
}
.contact-left, .contact-right {
    flex-basis: revert;
}
.dwld-btn, .submit-btn {
    display: block;
    
}
.carousel-indicators img {
    width: 38px;
    height: 38px;
    
}
.carousel-item
{
    height: 250px;
}
#about {
    padding: 34px 0px 0px 0px;
}
.work {
    height: 250px;
}
.modal-content #msg{
   
    font-size: 15px;
    padding: 20px 0 20px 0;
   

  }
  .modal-content {
   
    width: 68%;
   
}
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    /* nav ul li {
       
        margin: 0px 14px;
    }
    .tab-links {
        font-size: 16px;
        margin-right: 29px;
    }
    .carousel-item {
        height: 300px;
    }
    .contact-right, .contact-left {
        flex-basis: revert;
    } */
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {}


@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  {

    nav ul li {
        
        margin: 10px 14px;
    }
    .contact-right {
        flex-basis: 53%;
    }
    .contact-left {
        flex-basis: 47%;
    }
    .tab-links {
       
        margin-right: auto;
      
    }
    
  }
  /* https://kapeli.com/cheat_sheets/CSS_Device_Media_Queries.docset/Contents/Resources/Documents/index */
  /* @media only screen  
  and (min-device-width: 600px) 
  and (max-device-width: 991px) 
  and (-webkit-min-device-pixel-ratio: 2) 
  and (orientation: portrait)
  {

    
        nav ul li a {
            
            font-size: 12px;
           
        }
        nav ul li {
            display: inline-block;
            margin: 10px 6px;
        }
  }
  @media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 640px) 
  and (-webkit-min-device-pixel-ratio: 2) 
  and (orientation: landscape)
  {
    nav ul li a {
        color: #fff;
        text-decoration: none;
        font-size: 14px;
        position: relative;
    }
    nav ul li {
        display: inline-block;
        margin: 10px 2px;
    }
  } */