:root{
    --white:#eee;
    --blue:#264653;
    --orange:#e76f5e;
    --gray:#2a3036;
}

/* Base reset */
/*default font size = 16px,(100% / 16px)*10=62.5%,1rem=10px*/
*{
    box-sizing: border-box;
    margin: 0px;
    padding:0px;
    font-size:62.5%;
}

body {
    font-family: 'Microsoft YaHei', Poppins, sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.4;
    color:white;

}
h1,h2{
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    text-align: center;
}
h1{
    font-size:6rem;
}

ul{
    list-style-type: none;
}
a{
    text-decoration: none;
    color:var(--white);
}
img{
    display:block;
    width:100%;
}
/*header*/
header{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    background-color:var(--orange);
    color:var(--white);
    font-size: 1.5rem;
    box-shadow: 0 2px 0 rgba(0,0,0,0.4);
    z-index:5;
}
#container{
   display: flex;
   justify-content: space-between;
   align-items: center;
   height:100%
}
/*nav*/
.nav-list{
    display: flex;    
    justify-content: space-evenly;
    align-items: center;
    width:300px;
}
.nav-list a{
    display: block;
    font-size:2.2rem;
    padding:2rem;
}
.nav-list a:hover{
    background:var(--blue);
}

/*welcome-section*/
#welcome-section{
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width:100%;
    height: 100vh;
    background: linear-gradient(-10deg, #2d3439 0%, #181719 100%);
    margin-top: 50px;
}

#welcome-section >.photo{
    position: absolute;
    left:50px;
    bottom: 0;    
    width: 350px;
    z-index: 0;
    filter:opacity(90%);  
    ;  
}
#welcome-section img{
    width:100%;
    border-radius: 10px
}
#welcome-section h1{
    backdrop-filter: blur(3px);
    border-radius: 10px;
    padding: 5px;
    z-index: 1;
}

#welcome-section p{
    font-size: 3rem;
    font-weight: 200;
    font-style: italic;
    color: var(--orange);
    z-index: 1;
    backdrop-filter: blur(10px);
}

@media (max-width:960px){
    #welcome-section h1{
       font-size: 4rem;
    } 
    #welcome-section p{
        font-size: 2.5rem;
        
    }
}
@media (max-width:825px){
    #welcome-section{
        align-items: end;
    }
    #welcome-section h1{
       font-size: 4rem;
       padding-right: 10rem;
    } 
    #welcome-section p{
        font-size: 2.5rem;
        padding-right: 10rem;
    }
}


/* Projects section */
#project-section{
    text-align: center;
    padding: 5rem 2rem;
    background-color:var(--blue);
}
.project-section-header{
    max-width: 640px;
    margin: 0 auto 6rem auto;
    border-bottom: 0.2rem solid var(--white);
    font-size: 4rem;
}
/*grid*/
.projects-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 4rem;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    margin-bottom: 6rem;
}
.project{
    background: var(--gray);
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    font-size: 1.6rem;
    
    
  }
  .code{
    color: var(--gray);
  transition: color 0.3s ease-out;
  }
  #project-section:hover .code {
    color: #e9c46a;
  }
  .project-image {
    height: calc(100% - 6.8rem);
    width: 100%;
    object-fit: cover;
  }
  
  .project-title ,.project-title>*{
    font-size: 2rem;
    padding: 2rem 0.5rem;
  }
  /* contact-sectio */
#contact-section{
    background:linear-gradient(90deg,#3a3d40 0%, #181719 100%) ;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width:100%;
    height:80vh;
    padding:0 2rem;
}
#contact-section>h1{
    padding-bottom:1rem;
}
.contact-links{
    display:flex;
    justify-content: space-evenly;
    width: 500px;
    font-size: 3rem;
}
i{
    font-size: 2rem;
    padding-right:0.5rem ;
}
/* footer */
footer{
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color:var(--blue);
    color:var(--white);
}
.dividing-line{
    width:100%;
    height: 0.5rem;
}
.diesign-by{
    background-color: var(--gray);
    width:100%;
    text-align: center;
    font-size: 1.5rem;
}


