
@import url('https://fonts.googleapis.com/css2?family=Prata&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;


}

html{
    font-family: 'Prata', sans-serif;
    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-padding, 90px);
    overflow-x: hidden;
    padding: 0;
    width: 100vw;
}

body{
    color: #fff;
    font-size: 30px;
}


/*Navbar*/
.nav{
    width: 100vw;
    overflow-x: hidden;
    height: 65px;
    position: fixed;
    line-height: 65px;
    text-align: center;
    background: rgba(19, 19, 19, 0.8);
    z-index: 10;
}
.nav .burger{
    cursor: pointer;
}

.nav .logo{
    float: left;
    width: auto;
    height: auto;
    
}

.nav .logo a {
    text-decoration: none;
    color: #fff;
    font-size: 35px;
    padding-left: 40px;
    
}

.nav .main_list {
   height: 65px;
   float: right;
   z-index: 1;
}

.nav .main_list ul{
    display: flex;
    width: 100%;
    color: #fff;
    list-style: none;
    text-decoration: none;
    cursor: pointer;
    
}

.nav .main_list ul li{
    
    color: #fff; 
    padding-right: 100px;
    font-size: 25px;
    cursor: pointer;
    
}

.nav .main_list ul li a{
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

/*Hero*/
.hero {
    z-index: -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    background-image: url(images/javier-miranda-nUsBA0isRyY-unsplash.jpg); 
    /*Photo by <a href="https://unsplash.com/ja/@nuvaproductions?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Javier Miranda</a> on <a href="https://unsplash.com/s/photos/space-planets?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
  */

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*Particles background*/
#particles-js{
    position:absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    overflow: hidden;
}


.floating-head{
    width: 350px;
    height: 350x;
    animation: float 4s ease-in-out infinite;
    margin-left: -200px;
    
    
}

.hero .floating-head img{
    width: 100%;
    height: 100%;
    margin-bottom: 100px;
    
}

.hero h1{
    font-size: 80px;
    margin-top: -30px;
    color: #fff;
    
}



.hero .hero-content{
    animation: float2 4s ease-in-out infinite;
    pointer-events: all;
    
}

.hero .hero-content h1{
    text-shadow: 0px 20px 40px black; 
}


.hero .hero-content .text{
    position: relative;
    color: #fff;
}

 /*Glitch animation for Hero text*/
.hero .hero-content .text::before, .hero .hero-content .text::after{
    position: absolute;
    color: white;
    content: attr(data-text);
    width: 100%;
    height: 100%;
    background-color: transparent;
    overflow: hidden;
    top: 0;

}

.hero .hero-content .text:before{
    left: 3px;
    text-shadow: -2px ;
    animation: glitch-1 8s infinite reverse;
}

.hero-content .text:after{
    left: -3px;
    text-shadow: -2px 0 purple; 
    animation: glitch-1 12s infinite ;
}


 
@keyframes glitch-1 {
    0% {
        clip: rect(68px, 9999px, 124px, 0); }
      5% {
        clip: rect(11px, 9999px, 133px, 0); }
      10% {
        clip: rect(94px, 9999px, 128px, 0); }
      15% {
        clip: rect(80px, 9999px, 124px, 0); }
      20% {
        clip: rect(19px, 9999px, 115px, 0); }
      25% {
        clip: rect(23px, 9999px, 112px, 0); }
      30% {
        clip: rect(52px, 9999px, 133px, 0); }
      35% {
        clip: rect(43px, 9999px, 151px, 0); }
      40% {
        clip: rect(83px, 9999px, 11px, 0); }
      45% {
        clip: rect(92px, 9999px, 119px, 0); }
      50% {
        clip: rect(4px, 9999px, 196px, 0); }
      55% {
        clip: rect(78px, 9999px, 141px, 0); }
      60% {
        clip: rect(32px, 9999px, 133px, 0); }
      65% {
        clip: rect(8px, 9999px, 186px, 0); }
      70% {
        clip: rect(24px, 9999px, 123px, 0); }
      75% {
        clip: rect(98px, 9999px, 153px, 0); }
      80% {
        clip: rect(80px, 9999px, 118px, 0); }
      85% {
        clip: rect(5px, 9999px, 133px, 0); }
      90% {
        clip: rect(60px, 9999px, 127px, 0); }
      95% {
        clip: rect(89px, 9999px, 24px, 0); }
      100% {
        clip: rect(89px, 9999px, 144px, 0); }
}
/*Float animations for hero*/
@keyframes float {
    0% {
		
		transform: translatey(0px) ;
        
	}
	50% {
		
		transform: translatey(-40px) ;
       
	}
	100% {
		
		transform: translatey(0px) ;
        
    }
}


@keyframes float2 {
    0% {
		
		transform: translatey(0px) ;
        
	}
	50% {
		
		transform: translatey(-10px) ;
       
	}
	100% {
		
		transform: translatey(0px) ;
        
    }
}






/*Burger Icon Animation*/

.toggle #line1{
    -webkit-transform: translateY(10px) rotate(45deg);
    -ms-transform: translateY(10px) rotate(45deg);
    -o-transform: translateY(10px) rotate(45deg);
    transform: translateY(10px) rotate(45deg);
    -webkit-transition: .3s ease-in-out;
    -moz-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
    transition-delay: 0.1s;
}

.toggle #line2{
    opacity: 0;
    -webkit-transition: .3s ease-in-out;
    -moz-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}

.toggle #line3{
    -webkit-transform: translateY(-11px) rotate(-45deg);
    -ms-transform: translateY(-11px) rotate(-45deg);
    -o-transform: translateY(-11px) rotate(-45deg);
    transform: translateY(-11px) rotate(-45deg);
    -webkit-transition: .3s ease-in-out;
    -moz-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
    transition-delay: 0.1s;
}









/*About Section*/

.about{
    width: 100%;
    height: auto;
    background: rgba(17,17,17);
    
    padding: 40px;
    text-align: center;
    
}




.about .about-content h1{
    color: #fff;
    border-image-width: 0%;
    border-radius: 10px;
    box-shadow: #fff;
    background-size: 10px;
    animation-delay: 3.3s;
    animation-name: fadeIn;
}

.small-underline {
    width: 500px;
    height: 1px;
    margin: 0 auto 1rem auto;
    background-color: #CAC9C7;
}

.about .about-content{
    height: auto;
    color: #fff;

}



/*Download CV Button*/
.about .about-content  #CV-button {
    margin-top: 20px;
    width: 170px;
    height: 60px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    border: 2px solid #461111; 

  
    background-color: transparent;
    font-size: 16px;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    margin-left: 40%;
    margin-right: 40%;
    pointer-events: all;
   
    transition: 0.5s;
    
}

.about .about-content  #CV-button:hover{
    background-color: #461111;
    
}




.about .bug-container{
    position: relative;
    width: 250px;
    height: 150px;
    padding-top: 150px;
    top: 50%;
    left: 50%;
    margin-top: 40px;
    margin-bottom: -120px;
    transform: translate(-50%, -50%);
}

/*Space bug*/
.about .bug{
    position: absolute;
    top: 40%;
    left: 50%;
    background: transparent url(space-bug.png) 0 0 no-repeat;
    width: 255px;
    height: 209px;
    transform: translate(-50%, -50%);
    animation: fly 0.8s steps(15) infinite;
    z-index: -1;
    zoom:60%;
}

/*Space bug animation*/
@keyframes fly { 
    100%{
        background-position: -3825px, 0;
        
    }
}

/*Portfolio*/
.projects{
    text-align: center;
    height: auto;

    background-attachment: fixed;
    background-image: url('images/zoltan-tasi-dOlBjtJfFkk-unsplash.jpg'); /* Artist is Zoltan Tasi and available online at https://unsplash.com/@zoltantasi */
    background-size: cover;
    background-position: center;
    

}
.projects .projects-header{

    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding: 50px;

   
}
.projects .cards{
  
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 50px;
  margin-top: -30px;

}

.projects .cards .card{
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 30px;

}

.cards .card-text{
    text-align: center;
    width: 400px;
    height: auto;
    position: absolute;
    margin-left: 50%;
    margin-right: 50%;
    top: 65%;
    transform: translate(-50%,-50%);
    padding-top: 30px;
}
/*Card 1*/
.projects .cards .card1{

    border-radius: 20px;
    height: 400px;
    width: 450px;    
    margin: 50px;
    
   
}



/*Card 2*/
.projects  .card2{
    
    border-radius: 20px;
    margin: 50px;
    height: 400px;
    width: 450px;

    
}

.projects .cards .card1 .card-image1 {
   margin-left: -25px;
   margin-top: -110px;


}

.projects .cards .card2 .card-image2 {
    margin-left: -95px;
    margin-top: -110px;
 
 }


.cards .card-text  a #card-btn{
      padding: 20px;
      border-radius: 10px;
      width: 300px;
      margin-top: 20px;
      cursor: pointer;
      border: none;
      background-color: #fff;
      text-transform: uppercase;
      font-weight: 900;
}

.cards .card-text  a #card-btn:hover{
    scale: 1.1;
    transition: 0.3s;
    background-color: #E76C33;
    color: #fff;
}
/*Contact Me*/
.contact{
    justify-content: center;
    text-align: center;
    background-image: url(images/nasa-jlV2k_Fx0fc-unsplash.jpg);/*Photo by <a href="https://unsplash.com/@nasa?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">NASA</a> on <a href="https://unsplash.com/photos/jlV2k_Fx0fc?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
    */
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    /*background-color:  rgba(17,17,17);*/
    height: auto;
    width: 100vw;
    padding-top: 20px;
    color: #fff;
}
.contact .contact-container .contact-div a button{
    text-decoration:none;
    color: #fff;
    padding: 10px;
    width: 80%;
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid #D8D9DA;
    margin-top: 20px;
    background-color: transparent;
}

.contact .contact-container .contact-div{
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;

    backdrop-filter: blur(2px);
}

.contact .contact-container .contact-div a button:hover{
    scale: 1.2;
    transition: 0.3s;
    background-color:#fff;
    color: #111;
}

.contact .contact-container{
    margin-top: 40px;
    display: flex;
    padding-left: 20px;
    padding-right: 20px;
    justify-content: space-evenly;
    
    
}

.contact-container .email{
    font-size: 30px;

}

.fade-in{
  opacity: 0;
  
}

.fade-in.inView{
    opacity: 1;
    transition: 1s;
}



/* Footer*/

.footer{
    width: 100vw;
    height: 50px;
    background-color: #111;
    text-align: center;
    font-size: 14px;
    color: #fff;
}

.footer p{
    padding-top: 10px;
}
/*Laptop/tablet view*/
@media screen and (max-width:1600px) {
     /*Navbar*/
    .nav div.logo {
        margin-left: 0px;
    }
    .nav .logo a {
        text-decoration: none;
        color: #fff;
        font-size: 25px;
        padding-left: 20px;
        
    }
    .nav div.main_list {
        position: fixed;
        height: 80vh;
        flex-direction: column;
        pointer-events: none;
        width: 100%;
        transform: translateY(-100%);
        pointer-events: all;
        margin-left: 10%;   
    }

    .nav .main_list.open{
        display: flex;
        transition-delay: .6s;
        transform: translateY(60px);
        transition-timing-function: ease-in-out;
        transition: opacity 1.2s, transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
    }

    .nav div.main_list ul {
        line-height: 150px;
        flex-direction: column;
        width: 90%;
        height: 80vh;
        left: 0;
        bottom: 0;
        background-color: #111;
        background-position: center top;
        border-radius: 10px;
    }

    .nav div.main_list ul li {
        width: 100%;
    }
    .nav div.main_list ul li a {
        text-align: center;
        width: 100%;
        font-size: 28px;
        margin-left: 50%;
        transform: translate(-50%, -50%);
    }
    
        /*Nav Burger*/
    .burger{ 
        width: 100%;
        align-items: center;
        justify-content: center;
        margin-left: 85%;
        margin-top: 20px;
        
        
    }
    .burger .line{
        width: 40px;
        height: 2px;
        background-color: #fff;
        border-radius: 50%;
        margin-top: 8px;
        cursor: pointer;
    }

    /*Hero*/
    .hero{
        display: grid;
        justify-content: center;
        height: 100vh;
        padding: 20px;
        align-items: center;
    }
   
    .hero .hero-content{
        display: flex;
        grid-template-columns: 1fr 1fr;
        zoom: 80%;
    }

    .hero h1{
        text-align: center;
        width: 100%;
        font-weight: 700;
        text-shadow: #fff;
        margin-top: -10px;
        color: white;
        padding: 0;
        
        margin-top: 100px;
    }

    .floating-head{
        width: 200px;
        animation: float2 4s ease-in-out infinite;
        margin: auto;
    }
    
    .hero .floating-head img{
        width: 100%;
        height: 100%;
        margin-bottom:0;
    }



    .hero .hero-content{
        margin-top: -250px;
        width: 100%;
    }

  /*About Section*/
    .about, .projects .projects-header{
        zoom: 80%;
        height: auto;
    }

    

    
}


/*Mobile view*/
@media screen and (max-width:1000px){
    html, body{

        overflow-x: hidden;
        margin: 0;
        padding: 0;
        
    }
    .projects .cards{
        zoom: 70%;
        display: flex;
        flex-direction: column;
      
      
      }



      .about .about-content #CV-button{
        margin-top: 10%;
        margin-left: 50%;
        margin-right: 50%;
        transform: translate(-50%, -50%);
      }

      .hero .hero-content{
        margin-top: -350px;
        display: flex;
        grid-template-columns: 1fr 1fr;
        zoom: 50%;
        
    }

 


    .small-underline{
        width: 300px;
    }

    .contact .icons{
        display:inline-block;
        font-size: 15px;
        width: 100%;
        margin-top: -40px;
        text-align: left;
    }
    .contact .icons a{
        padding: 20px;
    }

    .contact-container{
        display: flex;
        flex-direction: column;
    }

    .contact-container .contact-div{
        margin-top: 20px;
        font-size: 15px;
    }


    
}


