@import url("./global.css");

.container{
    width: 100%;
    height: 100vh;
    position: relative;
    padding-left: 200px;
}
header{
    width: 100%;
}
.header-wrapper{
    height: 120px;
    padding-top: 25px;
}

.header-wrapper .logo{
    margin-bottom: 30px;
}
.header-wrapper .main-menu{
    margin: 15px 0 0 10px;
}
.main-menu .main-li{
    padding: 5px;
    margin-right: 10px;
    text-transform: capitalize;
    cursor: pointer;
}
.main-menu .main-li:hover{
    color: var(--primary-color);
    border-bottom: 3px var(--primary-color) solid;
}
.main-li.active{
    color: var(--primary-color);
    border-bottom: 3px var(--primary-color) solid;
}
.title{
    font-size: 30px;
    font-weight: 600;
    line-height: 35px;
}

.subtitle{
    font-size: 18px;
    line-height: 25px;
}

/* switch */

.theme-switch{
    position: fixed;
    top: 20px;
    right: 100px;
}
.switch{
    border: none;
    background-color: transparent;
    border-radius: 50%;
    cursor: pointer;
    padding: 5px;
}
.switch span{
    font-size: 14px;
}
.dark-theme .switch i{
    color: var(--light-bg);
}
.main-content{
    padding: 40px 0 0 0;
    display: flex;
    align-items: center;
    position: relative;
}
.text-width{
    width: 40%;
}

/* projects */
#projects{
    position: relative;
}
.project-list{
    list-style: none;
    padding: 10px 0;
    border-bottom: 1px #dbdbdb solid;
    cursor: pointer;
    max-width: 300px;
}
.project-list i{
    margin-right: 10px;
}

.project-details{
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    padding: 50px;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
    flex-direction: column;
    padding-right: 100px;
    top: 0;
    right: 0;
    -webkit-animation: slide-in-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
.dark-theme .project-details{
    background-color: var(--dark-bg);
}
 @-webkit-keyframes slide-in-right {
    0% {
      -webkit-transform: translateX(1000px);
              transform: translateX(1000px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
      opacity: 1;
    }
  }
  @keyframes slide-in-right {
    0% {
      -webkit-transform: translateX(1000px);
              transform: translateX(1000px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
      opacity: 1;
    }
  }
  
.project-details-wrap{
    width: 50%;
}
.close-project-details{
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 18px;
    cursor: pointer;
    
}
/* Contact */
.contact-details{
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.icons{
    margin-right: 10px;
}

/* floating images  */
.floating-img{
    position: fixed;
    opacity: .9;
    -webkit-animation: float 7s linear infinite both;
	animation: float 7s linear infinite both;
    z-index: -1;
    transition: all 2s ;
}
.floating-img img{
    width: 100%;
}
.floating-img:nth-child(2){
    top: 30px;
}

/* footer */
footer{
    position: absolute;
    bottom: 100px;
    left: 0;
}
.footer-wrapper{
    width: 200px;
    height: 200px;
    padding: 20px 0;
    display: flex;
    justify-content: center;
}
.social{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 100px;
    position: relative;
}
.social i{
    font-size: 20px;
}
.social i:hover{
    color: var(--primary-color);
    transform: translateY(-5px);
    transition: all 0.3s linear;
}
.social::after{
    content: "";
    height: 100px;
    width: 2px;
    position: absolute;
    background-color: var(--light-text);
    bottom: -100px;
}
  
@media only screen and (max-width: 820px) {
    .container{
        padding-left: 50px;
    }
    .text-width{
        width: 60%;
    }
    footer{
        border-top: 1px var(--light-text) solid;
        width: 100%;
        position: absolute;
        bottom: 10px;
        left: 0;
    }
    .footer-wrapper{
        width: 200px;
        height: 90px;
        padding: 20px 0;
        display: flex;
        justify-content: center;
        margin: auto;
    }
    .social{
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: 500px;
    }
    .social i{
        font-size: 12px;
    }
    .social::after{
        display: none;
    }
}
@media only screen and (max-width: 600px) {
    body{
        font-size: 12px;
    }
    .container{
        padding-left: 30px;
    }
    .theme-switch{
        right: 30px;
    }
    .text-width{
        width: 85%;
    }
    .title{
        font-size: 30px;
        font-weight: 600;
        line-height: 35px;
    }
    .subtitle{
        font-size: 15px;
        line-height: 20px;
    }
    .footer-wrapper{
        width: 100%;
    }
    .social{
        width: 200px;
    }
    .project-details{
        padding: 20px;
    }
    .project-details-wrap{
        width: 80%;
    }    
}