*{
    margin: 0;
    padding: 0;
    font-family: 'Times New Roman', Times, serif;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    background: #080808;
    color: #fff;
}
#header{
    width: 100%;
    height: 82vh;
    background-image: url(../images/background.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: 450px;
    height: auto;
}
nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}
nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    position: relative;
}
nav ul li a::after{
    content:'';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;

}
nav ul li a:hover::after{
    width: 100%;
}
.header-text{
    margin-top: 15%;
    font-size: 30px;
}
.header-text h1{
    font-size: 60px;
    margin-top: 20px;
}
.header-text h1 span{
    color: #ff004f;
}
/*-------------about---------------  */
#about{
    color: #ababab;
    background: linear-gradient(180deg, #252426 0%, #1d1c1e 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-left: 50px;
    margin-right: 50px;
    border-radius: 16px;
    padding: 60px 0;
}
.about-col-1 img{
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}
.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%;
}
#abt-me-p{
    background-color: rgba(0, 0, 0, 0.35);
    border-left: 3px solid #ff004f;
    border-radius: 0 12px 12px 0;
    padding: 26px 30px;
    width: 100%;
    font-size: 18px;
    line-height: 1.75;
    color: #c9c9c9;
}
.sub-title.abt{
    margin-bottom: 15px;

}
.sub-title{
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}
.tab-titles{
    display: flex;
    margin: 35px 0 40px;
}
.tab-links{
    margin-right: 50px;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}
.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}
.tab-links.active-link::after{
    width: 50%;
}
.tab-contents ul li{
    list-style: none;
    margin: 25px 0;
    font-size: 20px;
}
.tab-contents ul li span{
    color:#b54769;
    font-size: 24px;
}
.tab-contents{
    display: none;
}
.tab-contents.active-tab{
    display: block;
}

/*---------Portfolio------------*/
#portfolio{
    padding: 50px 0;
}
.work-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 400px));
    grid-gap: 40px;
    margin-top: 50px;
}
.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.work img{
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.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: 16px;
    transition: height 0.5s;
}
.layer h3{
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 22px;
}
.layer a{
    margin-top: 20px;
    color: #ff004f;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

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

.btn{
    display: block;
    margin: 50px auto;
    width: 250px ;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: 0.5s;
}
.btn:hover{
    background: #ff004f;
}

/* -----------Contact----------- */
.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-icons{
    margin-top: 30px;

}
.social-icons a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}
.social-icons a:hover{
    color: #ff004f;
    transform: translateY(-5px);
}
.btn.btn2{
    display: inline-block;
    background:#ff004f;
}
.contact-right form{
    width: 100%;
}
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;
}
form .btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 10px;
    cursor: pointer;
}
.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262526;
    font-weight: 300;
    margin-top: 20px;
}
/*----------css for small screen--------------*/
nav .fas{
    display: none;
}

@media only screen and (max-width: 600px) {
    #header{
        background-image: url(../images/phone-background.png);
    }
    .logo{
        width: 200px;
        height: auto;
    }
    .header-text{
        margin-top: 100%;
        font-size: 26px;
    }
    .header-text h1{
        font-size: 30px;
    }
    nav .fas{
        display: block;
        font-size: 20px;
    }
    nav ul{
        background: #ff004f;
        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: 25px;
    }
    nav ul .fas{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    .sub-title{
        font-size: 40px;
    }
    #about{
        margin-left: 15px;
        margin-right: 15px;
        padding: 40px 0;
    }
    #abt-me-p{
        font-size: 16px;
        padding: 18px 20px;
    }
    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }
    .about-col-1{
        margin-bottom: 30px;
    }
    .about-col-1{
        font-size: 14px;
    }
    .tab-links{
        font-size: 16px;
        margin-right: 20px;
    }
    .contact-left, .contact-right{
        flex-basis: 100%;
    }
    .copyright{
        font-size: 14px;
    }
    
}
#msg{
    color: #61b725;
    margin-top: -40px;
    display: block;
}
/*----------css for cpu.html--------------*/
#header_cpu{
    width: 100%;
    background: #080808;
    padding-bottom: 70px;
}
.header-text-cpu{
    margin-top: 15%;
    font-size: 30px;
}

.header-text-cpu p{
    margin-top: 20px;
    margin-bottom: 65px;
}
#about_cpu, #about_blackhawk{
    color: #d4d4d4;
    background-color: #262526;
    margin-left: 50px;
    margin-right: 50px;
    border-radius: 12px;
    padding: 40px 0;
}
.container_cpu{
    padding: 5px 5%;
}
#about_cpu h2, #about_blackhawk h2{
    margin-top: 20px;
    margin-bottom: 10px;
}
#about_cpu ul, #about_blackhawk ul{
    margin-top: 20px;
    margin-bottom: 10px;
    padding-left: 40px;
}
#about_cpu ul li, #about_blackhawk ul li{
    margin: 10px 0;
}

.diagram img{
    width: 100%;
    height: auto;
    margin-top: 20px;
}

/*----------css for blackhawk.html--------------*/
#header_blackhawk{
    width: 100%;
    background: #080808;
    padding-bottom: 70px;
}
.project-hero-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 60px;
}
#about_cpu, #about_blackhawk{
    margin-bottom: 50px;
}
#about_cpu h2, #about_blackhawk h2{
    color: #fff;
    font-size: 28px;
    margin-top: 35px;
}
#about_cpu .project-details h2:first-child,
#about_blackhawk .project-details h2:first-child{
    margin-top: 0;
}
#about_cpu p, #about_blackhawk p{
    font-size: 17px;
    line-height: 1.7;
    max-width: 900px;
    margin: 10px 0;
}
#about_cpu ul li, #about_blackhawk ul li{
    font-size: 17px;
    line-height: 1.6;
    margin: 14px 0;
    max-width: 900px;
}
.project-hero-row .header-text-cpu{
    margin-top: 0;
    flex: 1 1 55%;
    min-width: 300px;
}
.project-preview{
    flex: 0 1 420px;
    height: 360px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
#header_blackhawk .project-preview{
    background: #fff url(../images/blackhawkbackground.png) no-repeat;
    background-size: 260% auto;
    background-position: 83% 0%;
}
#header_cpu .project-preview{
    background: #000 url(../images/cpu-preview.jpg) no-repeat center / contain;
}
.tech-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0 40px;
}
.tech-tags span{
    font-size: 18px;
    color: #fff;
    border-radius: 20px;
    padding: 6px 18px;
    font-weight: bold;
}
.stat-row{
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}
.stat{
    display: flex;
    flex-direction: column;
}
.stat-value{
    font-size: 42px;
    font-weight: 700;
    color: #ff004f;
    line-height: 1.2;
}
.stat-label{
    font-size: 18px;
    color: #d4d4d4;
}
@media only screen and (max-width: 600px) {
    .stat-row{
        gap: 25px;
    }
    .stat-value{
        font-size: 30px;
    }
    .tech-tags span{
        font-size: 14px;
        padding: 4px 12px;
    }
    .project-hero-row{
        margin-top: 30px;
        gap: 30px;
    }
    .project-preview{
        flex: 1 1 100%;
        height: 180px;
    }
    #header_blackhawk .project-preview{
        background-size: 230% auto;
    }
}