*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    overscroll-behavior: none;
}
body{
    background: #080808;
    color: #fff;
    overflow-x: hidden;
}
#header{
    width: 100%;
    height: 100vh;
    background-image: url(images/portfolio/desk.jpg);
    background-size: cover;
    background-position: center;
}
.container{
    padding: 10px 10%;
}

html{
    scroll-behavior: smooth;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    float: right;
    padding-top: 20px;
    padding-right: 15px;
}

nav ul{
    list-style: none;
    overflow: hidden;
    transition: 1s;
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 15px 13px;
}

nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}
nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #fff;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.3s;
}
nav ul li a:hover::after{
    width: 100%;
}

.social-icons{
    margin-top: 5px;
    margin-left: 25px;
    float: right;
}
.social-icons a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 30px;
    color: #f1f1f1;
    display: inline-block;
    transition: transform 0.5s;
}
.social-icons a:hover{
    color: #fff;
    transform: translateY(-2px);
}

.header-text{
    margin-top: 18%;
    font-size: 30px;
}
.header-text h1{
    font-size: 60px;
    margin-top: 20px;
}
.header-text h1 span{
    color: #0088ff;
    background: linear-gradient(90deg, #0088ff, #7700ff);
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}
.header-text h2{
    font-size: 36px;
    margin-top: 10px;
}
.header-text h2 span{
    color: #7700ff;
    background: linear-gradient(90deg, #0088ff, #7700ff);
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}


/* ----------about----------- */
#about{
    padding: 60px 0;
    color: #ababab;
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;
}
.about-col-1 img{
    width: 100%;
    border-radius: 15px;
}
.about-col-2{
    flex-basis: 60%;
}

.sub-title{
    font-size: 45px;
    font-weight: 600;
    color: #fff;
}

.tab-titles{
    display: flex;
    margin: 20px 0 40px;
}
.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}
.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: #0088ff;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.1s;
}

.tab-links.active-link::after{
    width: 100%;
}

.no-underline {
    text-decoration: none;
}
.no-underline:hover {
    text-decoration: underline;
}

.tab-contents h3 a{
    color: #e0e0e0;
    font-size: 18px;
    font-weight: 550;
}
.tab-contents ul h3{
    color: #e0e0e0;
    font-size: 18px;
    font-weight: 550;
}
.tab-contents ul li{
    list-style: circle;
    margin: 10px 0;
}
.tab-contents ul li a{
    list-style: circle;
    margin: 10px 0;
    color: #0088ff
}
.tab-contents ul li span{
    color: #0088ff;
    font-size: 16px;
}
.tab-contents ul li h2{
    color: #0088ff;
    font-size: 16px;
    font-weight: 400;
}
.tab-contents{
    display: none;
}
.tab-contents.active-tab{
    display: block;
}

/* ----------timeline----------- */
.timeline{
    position: relative;
    max-width: 1200px;
    margin: 100px auto;
}
.timeline h1{
    text-align: center;
}
.timeline-container{
    padding: 10px 50px;
    position: relative;
    width: 50%;
    animation: movedown 1s linear forwards;
    opacity: 0;
}
@keyframes movedown{
    0%{
        opacity: 1;
        transform: translateY(-30px);
    }
    100%{
        opacity: 1;
        transform: translateY(0px);
    }
}

.timeline-container:nth-child(1){
    animation-delay: 0s;
}
.timeline-container:nth-child(2){
    animation-delay: 0.5s;
}
.timeline-container:nth-child(3){
    animation-delay: 1.2s;
}
.timeline-container:nth-child(4){
    animation-delay: 1.6s;
}
.timeline-container:nth-child(5){
    animation-delay: 2.4s;
}
.timeline-container:nth-child(6){
    animation-delay: 3.0s;
}
.timeline-container:nth-child(7){
    animation-delay: 3.5s;
}
.timeline-container:nth-child(8){
    animation-delay: 4.0s;
}
.timeline-container:nth-child(9){
    animation-delay: 4.6s;
}

.text-box{
    padding: 20px 30px;
    background: #141414;
    position: relative;
    border-radius: 6px;
    font-size: 15px;
}
.text-box small{
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
}
.text-box h2{
    font-weight: 600;
}
.left-timeline-container{
    left: 0;
}
.right-timeline-container{
    left: 50%;
}
.timeline-container img{
    position: absolute;
    width: 50px;
    border-radius: 50%;
    right: -25px;
    top: 32px;
    z-index: 10;
}
.right-timeline-container img{
    left: -25px;
}
.timeline::after{
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background: #fff;
    top: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -1;
    animation: moveline 5s linear forwards;
}
@keyframes moveline{
    0%{
        height: 0;
    }
    100%{
        height: 100%;
    }
}

.left-timeline-container-arrow{
    height: 0;
    width: 0;
    position: absolute;
    top: 30px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #141414;
    right: -14.5px;
}
.right-timeline-container-arrow{
    height: 0;
    width: 0;
    position: absolute;
    top: 30px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid #141414;
    left: -14.5px;
}


/* ----------portfolio----------- */
#portfolio{
    padding-top: 60px;
}

.container-projects{
    padding: 10px 10%;
    display: flex;
    justify-content: center;
    margin-left: 40px;
}

.filter-titles{
    display: flex;
    margin: 20px 50px;
}
.filter-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}
.filter-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: #0088ff;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.1s;
}

.filter-links.active::after{
    width: 100%;
}
.filter-contents h2{
    color: #0088ff;
    font-size: 18px;
    margin: 10px 0;
}
.filter-contents{
    display: none;
}
.filter-contents.active-filter{
    display: block;
}

.flex-container{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
.flex-box{
    width: 300px;
    height: 300px;
    background-color: #141414;
    border-radius: 20px;
    margin: 50px;
    box-shadow: 0px 4px 8px #2400ff;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.flex-box img{
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.flex-box:hover{
    transform: translateY(-10px);
}

.flex-content{
    padding: 20px;
}
.flex-content h2{
    font-size: 18px;
    margin-top: -5px;
    margin-bottom: 5px;
    color: #0088ff;
    text-decoration: none;
}
.flex-content p{
    font-size: 15px;
    margin-bottom: 35px;
    color: #fff;
    text-decoration: none;
}
.flex-content h3{
    font-size: 12px;
    font-weight: 300;
    margin-top: -15px;
    color: #fff;
}
.fa-up-right-from-square{
    color: white;
    font-size: 20px;
    float: right;
}

#lightbox {
    display: none;
}
.lightbox {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
}
.lightbox-img {
    max-width: 70vw;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}
.thumbnail {
    cursor: pointer;
}
.close-lightbox {
    position: absolute;
    top: 0.5rem;
    right: 2rem;
    font-size: 3rem;
    font-weight: 250;
    background: none;
    border: none;
    color: #ababab;
    cursor: pointer;
    z-index: 100;
    transition: color 0.1s;
}
.close-lightbox:hover {
    color: #5b5b5b;
}


/* ----------contact----------- */
#contact{
    padding-top: 55px;
}

.center-subtitle{
    font-size: 45px;
    font-weight: 600;
    color: #fff;
    text-align: center;
}
.container form{
    width: 60%;
    margin: auto;
}
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;
}
textarea{
    resize: none;
}

.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #0088ff;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}
.btn:hover{
    background: #0088ff;
}
.btn.btn2{
    display: flex;
    justify-content: center;
    background: #002aff;
    border: 0;
}
.btn.btn2:hover{
    background: #2400ff;
}
form .btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

#message{
    color: #0088ff;
    margin-top: -30px;
    display: block;
    text-align: center;
    padding-bottom: 50px;
}

.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background-color: #141414;
    font-weight: 300;
    margin-top: 20px;
}
.copyright i{
    color: #0088ff;
}

.jump-to-top{
    position: relative;
    bottom: 1px;
    right: -100%;
    height: 65px;
    width: 65px;
    background-color: #f1f1f1;
    border-radius: 100%;
    border-style: solid;
    border-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.5s;
}
.fa-chevron-up{
    color: #080808;
    font-size: 35px;
    margin-bottom: -5px;
    pointer-events: none;
}
.jump-to-top:hover{
    transform: translateY(-3px);
}


/* ----------mobile view----------- */
@media (max-width: 1450px) {
    .header-text h1{
        margin-top: 250px;
    }
}

@media (max-width: 650px) {
    #header{
        background-image: url(images/mobile.jpg);
    }
    .header-text{
        margin-top: 100px;
        font-size: 16px
    }
    .header-text h1{
        font-size: 45px;
        margin-top: 300px;
    }
    .header-text h2{
        font-size: 32px;
    }
    .sub-title{
        font-size: 35px;
    }
    nav {
        padding-right: 0%;
    }
    nav ul{
        text-align: center;
    }
    nav ul li{
        margin: 20px 12px;
        font-weight: 500;
    }
    nav ul li a {
        font-size: 16px;
    }
    .social-icons{
        margin-top: 150px;
        margin-bottom: 12px;
        margin-left: 60px;
        float: left;
    }
    .social-icons a{
        font-size: 48px;
    }
    .header-text h1{
        margin-top: 100px;
    }

    .center-subtitle{
        font-size: 35px;
    }
    .about-col-1{
        flex-basis: 100%;
        margin-bottom: 25px;
    }
    .about-col-2{
        flex-basis: 100%;
        font-size: 16px;
    }
    .tab-links{
        font-size: 16px;
        margin-right: 20px;
    }

    .timeline-container{
        padding: 15px 20px;
        position: relative;
        width: 50%;
        animation: movedown 1s linear forwards;
        opacity: 0;
    }
    .text-box{
        padding: 15px 15px;
        font-size: 12px;
    }
    .text-box small{
        font-size: 10px;
        margin-bottom: 12px;
    }
    .text-box h2{
        font-size: 15px;
    }
    .left-timeline-container-arrow, .right-timeline-container-arrow{
        display: none;
    }

    .filter-links{
        margin-right: 35px;
    }

    .container form{
        width: 95%;
        margin: auto;
    }
    
    .jump-to-top{
        right: -85%;
        height: 60px;
        width: 60px;
    }
    .fa-chevron-up{
        margin-bottom: -6px;
    }
}

@media (max-width: 500px) {
    nav {
        padding-right: 0%;
    }
    nav ul {
        text-align: center;
    }
    nav ul li a {
        font-size: 14px;
    }
    .social-icons {
        margin-top: 150px;
        margin-left: 50px;
    }
    .header-text h1{
        margin-top: 100px;
    }
    .header-text h2 {
        font-size: 25px;
        margin-top: 10px;
    }
    .container-projects {
        padding-right: 50px;
        text-align: center;
    }
    .filter-links{
        margin-right: 30px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        position: relative;
    }
}

@media (max-width: 450px) {
    nav {
        padding-right: 0%;
    }
    nav ul {
        text-align: center;
    }
    nav ul li a {
        font-size: 12px;
    }
    .social-icons {
        margin-top: 150px;
        margin-left: 40px;
    }
    .header-text h1{
        margin-top: 100px;
    }
    .header-text h2 {
        font-size: 25px;
        margin-top: 10px;
    }
    .container-projects {
        padding-right: 50px;
        text-align: center;
    }
    .filter-links{
        margin-right: 30px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        position: relative;
    }
}
