
/* .......header section........ */

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}

body{
    background: #080808;
    color: #ffffff;
}

#header{
    width: 100%;
    height: 100vh;
    background-image: url(images/bg6.jpg);
    background-size:cover;
    background-position: center;
    
}

.container {
   padding: 10px 10% ;

}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    width: 140px;
   
}

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

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: rgb(255, 0, 79);
    position: absolute;
    left: 0;
    bottom: -6px;
   transition: 0.48s;
}

nav ul li a:hover::after {
    width: 100%;
}

.header-text {
   margin-top: 20%;
   font-size: 30px;
}
.header-text h1 {
    font-size: 50px;
    margin-top: 13px;
}

.header-text h1 span {
    color: rgb(255, 0, 79) ;
}

#element {
    color: white;
  }

/* .........about section......... */

#about {
    padding: 80px 0;
    color: rgb(171, 171, 171);
    
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 16px;
}

.about-col-2 {
    flex-basis: 60%;
}

.sub-title{
    color: white;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 30px;
}
/* .about-col-2 p{
    width: 100%;
} */

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
}

.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight:600 ;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.45s;
}

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

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span {
    color: rgba(255, 0, 81, 0.825) ;
    font-size: 14px;
}

.tab-contents{
    display: none;
}

.tab-contents.tab-skills {
    display: block;
}

/* .............service section........... */

#services {
    padding: 30px 0;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 40px;
    margin-top: 50px;
}
.services-list div {
    background-color: rgb(45, 44, 44);
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 13px;
    transition: background 0.5s, transform 0.5s;
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 30px;
}

.services-list div h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.services-list div a {
    text-decoration: none;
    color: #ffffff;
    font-size: 12px;
    margin-top: 25px;
    display: inline-block;
}

.services-list div:hover {
    background-color:#ff004f ;
   transform: translateY(-10px)
}

/* .............My portfolio........... */

#portfolio{
    padding: 50px 0;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap:40px ;
    margin-top: 50px;
}

.work{
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.work img {
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}
.layer {
    width: 100%;
    height: 0%;
    background: linear-gradient(rgba(0,0,0,0.6), #ff004f);
    border-radius: 10px;
    position: absolute;
    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 h3 {
    font-weight: 600;
    margin-bottom: 20px;
}

.layer a {
    margin-top: 20px;
    color: #ff004f;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

.work:hover img{
    transform: scale(1.3);
}

.work:hover .layer {
    height: 100%;
}

.btn {
    display: block;
    color: #ffffff;
    text-decoration: none;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ff0051ca;
    padding: 14px 50px;
    border-radius: 7px;
    transition:   0.3s;
}


.btn span{
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.btn span::after{
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

.btn:hover span{
    padding-right: 25px;
}

.btn:hover {
    background-color: #ff004f;
}

.btn:hover span:after{
    opacity: 1;
    right: 0;
}

/* ..........contact details.......... */

.contact-left{
    flex-basis: 35%;

}

.contact-left p{
    margin-top: 30px;
}
.contact-left p i{
    color: #ff004f;
    margin-right: 10px;
    font-size: 22px;
}
.social-icons {
    font-size: 30px;
    margin-top: 30px;
}

.social-icons a{
    text-decoration: none;
    display: inline-block;
    margin-right: 17px;
    color: white;
    transition: transform 0.45s;
}
.social-icons a:hover{
    transform: translateY(-6px)
}

.button{
    margin: 40px 0;
    padding: 12px 40px;
    border: 1px solid #ff004f ;
    text-decoration: none;
    width: fit-content;
    display: block;
    color: white;
    background-color: #ff004f;
    border-radius: 7px;
    position: relative;
}

.contact-right{
    flex-basis: 60%;
}

.contact-right form{
    width: 100%;
}

form input, form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin-bottom: 26px ;
    color: white;
    font-size: 18px;
    border-radius: 8px;
}
.btn2{
    margin: 0px auto;
    padding: 12px 40px;
    border: 1px solid #ff004f ;
    text-decoration: none;
    width: fit-content;
    display: block;
    color: white;
    background-color: #ff004f;
    border-radius: 7px;
    position: relative;
    font-size: 15px;
}

/* ..............footer section............ */

.footer{
    padding: 20px 0;
    text-align: center;
    padding-top: 20px;
    width: 100% ;
    margin-top: 5rem;
    background: #191919;
    color: grey;
    font-weight: 300; 
}

/* ................small screens.............. */

nav .fa-solid{
    display: none;
}

@media only screen and (max-width:600px) {
    
    #header{
        background-image: url(images/bg6-phn.jpg);
        /* margin-right: 0px; */
    }
    html,body{
        overflow-x: hidden;
    }
    .container {
        padding: 10px 7.5% ;
     
     }
    .header-text{
        margin-top: 80%;
        font-size: 16px;
    }
    .header-text h1{
        font-size: 30px;
    }
    nav .fa-solid{
        display: block;
        font-size: 25px;
    }
    nav ul{
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;

    }
    nav ul li{
        display: block;
        margin: 25px;
    }
    nav ul .fa-solid{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    /* .sub-title{
        font-size: 40px;
    } */
    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }
    .about-col-2{
        font-size: 14px;
    }
    .about-col-1{
        margin-bottom: 30px;
    }

    #services{
        padding:0px 0;
    }
    .tab-links{
        font-size: 16px;
        margin-right: 100px;
    }
    .about-col-2 p {
        margin-right: 20px;
    }
    .contact-left, .contact-right {
       flex-basis: 100%;
    }
    .btn2 {
        margin: 0 0px;
    }
    .footer{
        font-size: 13px;
    }
    #element {
        color: white;
      }
}
