
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Cairo',sans-serif;
}

body{
    background:#111;
    color:#fff;
}


/* ===== HEADER ===== */
header{
    background:rgba(0,0,0,0.7);
    border-bottom:1px solid #ffcc00;
    padding:15px 40px;
    font-size:20px;
    font-weight:bold;
    color:#ffcc00;
}

/* ===== SECTION STYLE ===== */
.section{
    max-width:1100px;
    margin:40px auto;
    padding:40px;
    background:rgba(0,0,0,0.6);
    border-radius:15px;
    box-shadow:0 15px 40px rgba(0,0,0,.6);
}

/* ===== FLEX ===== */
.flex{
    display:flex;
    gap:30px;
    align-items:center;
    flex-wrap:wrap;
}

.profile-img{
    width:180px;
    height:180px;
    border-radius:50%;
    border:3px solid #ffcc00;
    object-fit:cover;
}

h3{
    color:#ffcc00;
    margin-bottom:10px;
}

p{
    line-height:1.7;
    color:#ccc;
}

/* ===== SOCIAL ===== */
.social a{
    display:inline-block;
    margin:10px 10px 0 0;
    color:#fff;
    font-size:20px;
    transition:.3s;
}

.social a:hover{
    color:#ffcc00;
}

/* ===== SKILLS ===== */
.skill{
    margin-bottom:20px;
}

.skill-name{
    margin-bottom:5px;
}

.progress{
    width:100%;
    height:10px;
    background:#333;
    border-radius:20px;
    overflow:hidden;
}

.progress-bar{
    height:100%;
    background:#ffcc00;
}

/* ===== PROJECTS ===== */
.projects{
    display:flex;
    justify-content: center;align-items: center;
    gap:20px;
    flex-wrap:wrap;
}

.project-card{
    flex:1 1 300px;
    background:rgba(10,10,10,0.6);
    padding:20px;
    border-radius:10px;
    border:1px solid rgba(255,204,0,.3);
    transition:.3s;
}
.project-card img
{
    margin-top: 20px;
    width: 100%;
    height: 130px;
}
.project-card:hover{
    transform:translateY(-5px);
    border-color:#ffcc00;
}

/* ===== FOOTER ===== */
footer{
    text-align:center;
    padding:20px;
    border-top:1px solid rgba(255,204,0,.3);
    margin-top:40px;
}

@media(max-width:768px){
    .flex{
        flex-direction:column;
        text-align:center;
    }
}

/* Header */
.main-header {
    direction: ltr; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 50px;
    border-radius: 0px 0px 10px 10px;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(255,204,0,0.6);
}

.logo {
    display: flex;
    align-items: left;
    font-size: 16px;
    padding: 10px 1px;
    font-weight: bold;
    color: rgba(255,241,0,1);
}

.logo img 
{
    width: 65px;
    height: 65px;
    padding: 2px;
    background: #fff;
    border:1px solid rgba(255,255,255,0.9);
    border-radius: 50%;
    opacity: 1;
}
.logo span
{
   margin:5px;
   color: rgba(255,204,0,1); 
}
nav
{
    direction: rtl;
    float: right;
    padding: 10px;
}
nav a {
    margin-left: 1px;
    margin-left:  10px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    transition: 0.3s;
    color: #fff;
}
nav .active
{
   
    padding:10px 10px 10px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    border-radius: 3px;
    border:1px solid rgba(255,241,0,0.20);
    background: rgba(255,241,0,0.9);
       color:#000;
}
nav a i {
    margin-left: 3px;
     color: rgba(255,241,0,1);    
}
nav .active i {
    margin-left: 3px;
     color: #000;    
}

nav a:hover {
    color: #000;
   background: rgba(255,241,0,1); 
}


