*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body{
    font-family: "Poppins", sans-serif;
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
}


header { 
    width: 100%;
    background-color: #f0f0f0;
    position: fixed;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 180px;
}

.navbar-brand{
    font-size: 1.6rem;
    font-weight: bold;
    color: #3a6cf4;
}
nav{
    display: flex;
    justify-content: space-between;
}
nav li{display: inline-block;}
nav a{
    padding-left: 30px;
    font-size: 1.3;
    font-weight: 600;
    color: #3a6cf4;
}
nav a:hover{color: #601cfc;}

section {
    padding: 100px 180px;
    
}
.main{
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url(./imgs/back\ ground.png) no-repeat;
    background-size: cover;
    background-position:center ;
    background-attachment: fixed;
    background-color: #030416;
}

.main h2{
    color: #fff;
    font-size: 1.4rem;
    font-weight: 500;
}
.main h2 span {
    display: inline-block;
    margin-top: 10px;
    color: #4e9eff;
    font-size: 3em;
    font-weight: 600;
}

.main h3 {
    color: #fff;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 30px;
}
.main .min-btn {
    color: #fff;
    background-color: #3a6cf4;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    display: inline-block;
    padding: 0.9375em 2.1875em;
    letter-spacing: 1px;
    border-radius: 15px;
    margin-bottom: 40px;
    transition: 0.7s ease;
}

.min-btn:hover {
    background-color: #0a49f6;
    transform: scale(1.1);
}

.icons a{
    color: #fff;
    font-size: 1.8em;
    margin-right: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;       
    border: none;            
    transition: 0.3s ease;   
}

.icons a:hover{
    color: #3a6cf4;
    transform: translateY(-5px) scale(1.1);
}

.about{
    background-color: #060b25;  /* أفتح سنة من الهيرو */
    color: #fff;
    height:70vh ;
}

.about-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.about-text{
    flex: 1;
}

.about-text h2{
    font-size: 2.5rem;
    color: #4e9eff;
    margin-bottom: 20px;
}

.about-text p{
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #dcdcdc;
}

.about-image{
    flex: 1;
    text-align: center;
}

.about-image img{
    width: 350px;
    border-radius: 20px;
}

.title {
    display: flex;
    justify-content: center;
    color: #3a6cf4;
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 30px;
}

.content {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
}

.card {
    background-color: #fff;
    width: 21.25em;
    box-shadow: 0 5px 25px rgba(1 1 1 / 15%);
    border-radius: 10px;
    padding: 25px;
    margin: 15px;
    transition: 0.7s ease;
}

.card:hover {
    transform: scale(1.1);
}

.card .icon {
    color: #3a6cf4;
    font-size: 8em;
    text-align: center;
}

.info {
    text-align: center;
}

.info h3{
    color: #3a6cf4;
    font-size: 1.2em;
    font-weight: 700;
    margin: 10px;
}
.skills{
    background-color: #060b25;
    color: white;
}

.skills-container{
    max-width: 800px;
    margin: auto;
}

.skill-box{
    margin-bottom: 25px;
}

.skill-title{
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.skill-bar{
    width: 100%;
    height: 10px;
    background-color: #1a1f40;
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress{
    height: 100%;
    background-color: #3a6cf4;
    border-radius: 10px;
}

/* Skill percentages */

.skill-progress.html{
    width: 90%;
}

.skill-progress.css{
    width: 70%;
}

.skill-progress.js{
    width: 70%;
}

.skill-progress.csharp{
    width: 80%;
}

.skill-progress.cpp{
    width: 80%;
}

.skill-progress.bootstrap{
    width: 80%;
}

.projects {
    background-color: #000016;
}

.projects .content{
    margin-top: 30px;
}

.project-card {
    background-color: #fff;
    border: 1px solid #fff;
    display: flex;
    flex-direction: column;
    width: 23em;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px;
    transition: 0.7s ease;
}

.project-card:hover {
    transform: scale(1.1);
}

.project-card:hover .project-image {
    opacity: 0.9;
}

.project-image img{
    width: 100%
}

.project-info {
    padding: 1em;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-category {
    font-size: 0.8em;
    color: #000;
}

.project-title {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 10px;
}

.more-details {
    text-decoration: none;
    color: #3a6cf4;
}

.more-details:hover {
    color: #601cfc;
}

.contact .icon{
    font-size: 4.5em;
}

.contact .info h3 {
    color: #000;
}

.contact .info p {
    font-size: 1rem;
}

.footer {
    background-color: #000016;
    color: #fff;
    padding: 2em;
    display: flex;
    justify-content: space-between;
}

.footer-title {
    font-size: 1.3em;
    font-weight: 600;
}

.footer-title span {
    color: #3a6cf4;
}

.footer .social-icons a{
    font-size: 1.3em;
    padding: 0 12px 0 0;
}

@media (max-width:1023px){
    header{
        padding: 12px 20px;
    }

    .navigation a{
        padding-left: 10px;
    }

    .title{
        font-size: 1.8em;
    }

    section{
        padding: 80px 20px;
    }

    .main-content h2{
        font-size: 1em;
    }

    .main-content h3{
        font-size: 1.6em;
    }

    .content{
        flex-direction: column;
        align-items: center;
    }

}

@media (max-width:641px){
    body{
        font-size: 12px;
    }

    .main-content h2{
        font-size: 0.8em;
    }

    .main-content h3{
        font-size: 1.4em;
    }
}

@media (max-width:300px){
    body{
        font-size: 10px;
    }
}



