*{
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}
body {
    background-color: black;
    color: #f1f1f1;
}
html {
    scroll-behavior: smooth;
}
.container {
    padding: 10px 10%;
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.logo {
    margin-left: 0;
    width: 140px;
    background-color: transparent;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}
nav ul li a {
    text-decoration: none;
    color: #f1f1f1;
    font-size: 25px;
    position: relative;
}
nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff3366;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

.heder-text {
    margin-top: 20%;
    font-size: 30px;
}

.heder-text h1 {
    font-size: 60px;
    margin-top: 20px;
}

.heder-text h1 span {
    color: #ff3366;
}

/*------------about -----------*/
#about{
    padding: 80px o;
    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: 25px;
}

.about-col-2 {
    flex-basis: 60%;
}

.about-col-2 h1 {
    font-size: 60px;
    font-weight: 600;
    color: #ffffff;
}

.about-col-2 h1 p {
    font-family: 80px;
}

.tab-title {
    display: flex;
    margin: 20px 0 40px;
}

.tab-link {
    margin-right: 50px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.tab-link::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff3366;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-link.active::after {
width: 50%;
}

.tab-contents ul li {
    list-style: none;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 0px;
    margin-right: 0px;
}

.tab-contents ul li span {
    color: #ff6688;
    font-size: 16px;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

/* ---------------------services -----------------*/
#services {
    padding: 30px 0;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.services-list div{
    background: #1e1e1e;
    padding: 40px;
    font-size: 14px;
    font-weight: 300;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.1);
    transition: background 0.5s transform 0.5s;
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 30px;
}

.leetcode {
    margin-top: 20px;
}

.services-list div h2 {
    font-size: 40px;
    margin-bottom: 30px;
    margin-top: 30px;
    color: #ff3366;
    font-weight: 600;
}

.services-list div a{
    text-decoration: none;
    color: #f1f1f1;
    font-size: 15px;
    display: inline-block;
    margin-top: 20px;
}

.services-list div:hover {
    background-color: #73118b;
    transform: translateY(-10px);
    color: #fff;
}

/*--------Portfolia--------*/
#portfolio {
    padding: 50px 0px;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 30px;
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work img {
    width: 100%;
    border-radius: 10px;
    display: block;
    height: 350px;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6), #ff3366);
    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: 500;
    font-size: 24px;
    margin-bottom: 20px;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ff3366;
    padding: 14px 50px;
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    transition: background 0.5s;
}

.btn:hover {
    background-color: #ff3366;
    color: white;
}

.contact-left {
    flex-basis: 35%;    
}

.contact-right {
    flex-basis: 60%;
}

.contact-left p {
    margin-top: 30px;
}

.contact-left p i {
    color: #ff004f;
    margin-right: 15px;
    font-size: 25px;
}

.social-icon i {
    text-decoration: none;
    color: #ababab;
    margin-right: 15px;
    font-size: 35px;
    margin-top: 20px;
    border-radius: 50px;
    display: inline-block;
    transition: transform(0.5s);
}

.social-icon i:hover {
    color: #ff004f;
    transform: translateY(-5px);
}

.btn.btn2 {
    display: inline-block;
    background: #ff3366;
    color: white;
}

.contact-right form{
    width: 100%;
}

.contact-left p i,
.social-icon i:hover {
    color: #ff3366;
}

form input,form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #1e1e1e;
    padding: 15px;
    margin: 15px 0;
    color: #f1f1f1;
    font-size: 18px;
    border-radius: 8px;
}

form .btn2 {
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

.copyright {
    width: 100%;
    text-align: center;
    font-size:25px;
    font-weight: 300;
    padding: 25px 0;
    background: #1e1e1e;
    margin-top: 20px 0px;
    color: #bbbbbb;
}

.copyright p i {
    color: #ff004f;
    
}

/* -------------------CSS for small screen ----------------------*/
nav .fa-solid {
    display: none;
}

@media only screen and (max-width: 600px) {
    .heder-text {
        margin-top: 100%;
        font-size: 26px;
    }
    .heder-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;
        transition: right 0.5s;
        z-index: 2;
        
    }
    nav ul li {
        display: block;
        margin: 30px;
    }
    nav ul .fa-solid {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
        font-size: 30px;
    }
    .subtitle {
        font-size: 40px;
    }
    .about-col-1,.about-col-2 {
        flex-basis: 100%;
    }
    .about-col-1 {
        margin-bottom: 35px;
    }
    .about-col-2{
        font-size: 14px;
    }
    .tab-link {
        font-size: 16px;
        margin-right: 20px;
    }
    .contact-left, .contact-right {
        flex-basis: 100%;
    }
    .copyright {
        font-size: 14px;
    }
}
#msg {
    color: #61b752;
    margin-top: -40px;
    display: block;
}