:root {
    --def: #ff004f;
    --col1 : #4070f4;
    /* --fail : #FA113D */
  }
  
* {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'sans-serif';
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}


body {
    background: #080808;
    color: #fff;
}

#header {
    margin-top: 20px;
    width: 100%;
    height: 100vh;
    background-image: url(images/background.jpg);
    background-size: cover;
    background-position: center;
}

.container {
    padding: 5px 5%;
}

.logo {
    width: 150px;
    border: 2px solid white;

}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-right: 40%;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a , nav li div span{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

#span-theme{
    color: var(--def);
}

.theme{
    cursor: pointer;
    margin-left: 7px;
    border-radius: 20px;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.inner-color{
    position: absolute;
    margin-top: 2px;
    margin-left: 5px;
    display: inline-block;
}

.def{
    background-color: #ee6bba;
}

.col1{
    background-color: #ff004f;
}

.col2{
    background-color: #40d3f7;
}

.col3{
    background-color: #a939e6;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background-color: var(--def);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

.header-text {
    margin-top: 10%;
    font-size: 30px;
}


.header-text h1 {
    margin-top: 20px;
    font-size: 60px;
}

.header-text h1 span {
    color: var(--def);
}

/* About section*/

#about {
    padding: 80px 0 50px 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%;
}

.about-col-2 p {
    font-size: 18px;
}

.sub-title {
    font-weight: 600;
    font-size: 60px;
    color: #fff;
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 50px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background-color: var(--def);
    position: absolute;
    left: 0;
    bottom: -10px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 100%;
}

.tab-contents ul li {
    /* border : 2px solid white; */
    position: relative;
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li p{
    position: absolute;
    top: 4px;
    right: 50px;
    font-size: 16px;
    display: inline-block;
}


.tab-contents ul li span {
    color: var(--def);
    font-size: 20px;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

/* Services*/


.spec-list {
    margin-top: 40px;
    position: relative;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.spec {
    padding: 10px 0;
    border-radius: 15px;
    box-shadow: 0 0 15px 5px var(--def);
    height: 600px;
    width: 350px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

.spec h2{
    position: relative;
    top : 0px;
    text-align: center;
}

.spec img {
    top : 10px;
    position: relative;
}

.spec p {
    top: 5px;
    text-align: left;
    padding: 10px 20px;
}


.spec a {
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    bottom: 0px;
    text-decoration: none;
    background: linear-gradient(to right, #CCC 50%, #FF5858 50%, var(--def));
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: 0.5s ease-out;
}

.spec a:hover {
    background-position: -100%;
}

/*Contact*/

#contact {
    margin-top: 60px;
    margin-bottom: 40px;
}

.contact-left {
    flex-basis: 35%;
    position: relative;
}

.contact-right {
    flex-basis: 65%;
}

.contact-left p {
    cursor: pointer;
    margin-top: 30px;
}

.contact-left p i {
    color: var(--def);
    font-size: 20px;
}

.contact-left p span {
    font-size: 20px;
}

.social-icons {
    margin-top: 25px;
    position: relative;
}

.social-icons a {
    text-decoration: none;
    font-size: 25px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}

.copy-icon{
    position: absolute;
    margin-top: 4px;
    margin-left: 10px;
}

.resume {
    position: absolute;
    margin-top: 20px;
    border: 2px solid var(--def);
    border-radius: 8px;
    padding: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #CCC;
    background: linear-gradient(to right, #CCC 50%, #FF5858 50%, var(--def));
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: 0.5s ease-out;
}

.resume:hover {
    background-position: -100%;
}

.social-icons a:hover {
    color: var(--def);
    transform: translateY(-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;
    border-radius: 6px;
    font-weight: 400;
}


#msg {
    margin-top: 10px;
    display: block;
}

#submitBtn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border : 1px solid var(--def);
    padding: 10px 40px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    background-color: #080808;
    font-weight: 500;
    font-size: 16px;
    background: linear-gradient(to right, #CCC 50%, #FF5858 50%, var(--def));
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: 0.5s ease-out;
}

#submitBtn:hover{
    background-position: -100%;
}

/* Portfolio*/

#portfolio {
    padding: 50px 0;
}

.work-list{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

.work {
    margin: 30px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}


.work-list .work img {
    width: 350px;
    height: 350px;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    position: absolute;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), var(--def));
    border-radius: 10px;
    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 p{
    position: relative;
    top: 15px;
    bottom : 130px;
}

.layer h3{
    font-weight: 500;
}

.layer a{
    position: relative;
    top: 30px;
    color: var(--def);
    text-decoration: none;
    font-size: 20px;
    line-height: 60px;
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.work:hover img{
    transform: scale(1.1);
}

.work:hover .layer{
    height: 100%;
}

.toast{
    position: fixed;
    top: 25px;
    right: 35px;
    border-radius: 12px;
    background: #fff;
    padding: 20px 35px 20px 25px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    color: black;
    border-left: 6px solid var(--col1);
    overflow: hidden;
    transform: translateX(calc(100% + 35px));
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.35);
}

.toast.active{
    transform: translateX(0%);
}

.toast-content{
    display: flex;
    align-items: center;
}

.toast-content .check{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--col1);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 35px;
    font-size: 20px;
}

.message{
    display: flex;
    flex-direction: column;
    margin: 0 20px;
}

.message .text{
    font-size: 20px;
    font-weight: 400;
    color: #666666;
}

.message .text.text-1{
    font-weight: 600;
    color: #333;
}

.toast .close{
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
    opacity: 0.5;
}

.toast .close:hover{
    opacity: 1;
}

.toast .progress{
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3.5px;
    width: 100%;
    background: #ddd;
}

.toast .progress::before{
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    border: none;
    background-color: var(--col1);
}

.progress.active::before{
    animation: progress 5s linear forwards;
}

@keyframes progress {
    100%{
        right: 100%;
    }
}


/*Copyright*/

#copyright {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background-color: #262626;
    margin: 20px 0;
}

nav .fas{
    display: none;
}

/* ------- css media queries --------------*/

@media only screen and (max-width: 430px) {

    #header {
        margin-top: 20px;
        width: 100%;
        height: 100vh;
        background-image: none;
        background-size: cover;
        background-position: center;
    }

    #span-theme{
        position: absolute;
        top : 15px;
        left : 150px;
        margin-left: -15px;
        display: inline-block;
    }

    .theme{
        margin-left: 4px;
    }

    .inner-color{
        display: inline-block;
        position: absolute;
        top : 15px;
        left : 180px;

    }

    #header {
        margin-top: 10px;   
        height: 80vh;
        background-image: none;
    }

    .container {
        padding: 5px 4%;
    }

    .logo {
        width: 100px;
    }

    nav {
        top : 50px;
        margin-right: 20%;
    }

    nav ul li {
        margin: 10px 10px;
    }

    .header-text {
        margin-top: 100px;
        font-size: 20px;
    }

    .header-text h1 {
        font-size: 40px;
    }

    .sub-title {
        font-size: 40px;
    }

    .tab-titles {
        margin: 20px 0 20px;
    }

    .tab-links {
        font-size: 16px;
    }

    .tab-contents ul li p {
        right: 20px;
        font-size: 16px;
        margin-top: 18px;
    }

    .tab-contents ul li span {
        font-size: 16px;
    }

    .about-col-1 , .about-col-2{
       padding: 20px;
       flex-basis: 100%;
    }

    .about-col-1{
        text-align: center;
        
    }

    #speciality{
        margin-top: -40px;
    }

    .spec-list{
        flex-direction: column;
    }

    .spec {
        margin-bottom: 100px;
        height: auto;
        width: 300px;
        background-color: black;
    }

    .spec h2 {
        font-size: 18px;
    }

    .spec p {
        font-size: 14px;
    }

    #contact {
        margin-top: 0px;
        margin-bottom: 20px;
    }

    #contact .container .row {
        flex-direction: column;
    }

    .contact-right{
        position: relative;
        top: 70px;
    }

    .contact-left, .contact-right{
        flex-basis: 100%;
    }

    .contact-left p {
        margin-top: 20px;
        font-size: 16px;
    }

    .contact-left p i{
        font-size: 18px;
    }

    .social-icons a {
        font-size: 20px;
    }

    #cptext1, #cptext2{
        font-size: 18px;
    }

    .resume {
        margin-top: 10px;
        padding: 8px;
        font-size: 12px;
    }

    #submitBtn {
        margin: 30px auto;
        padding: 8px 20px;
        font-size: 14px;
    }

    .work-list .work img {
        width: 300px;
        height: 300px;
    }

    .layer p {
        bottom: 100px;
    }

    .layer h3 {
        font-size: 13px;
    }

    .layer a {
        font-size: 16px;
        line-height: 40px;
        width: 40px;
        height: 40px;
    }

    #contact {
        margin-bottom: 30px;
    }

    .message .text {
        font-size: 16px;
    }

    #portfolio {
        margin-top: -60px;
        padding: 0px ;
    }

    .toast {
        position: fixed;
        top: 65px;
        right: 15px;
        padding: 15px 25px;
    }

    nav .fas{
        display: block;
    }

    nav ul {
        background : var(--def);
        position: fixed;
        top: 0;
        right: -150px;
        width: 150px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul li{
        display: block;
        margin: 10px;
        padding-bottom: 10px;
    }

    nav ul .fas{
        position : absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .fa-bars{
        position: absolute;
        right: 20px;
    }

}
