@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; 
}


header {
    background-color: #f0f0f0;
    width: 100%;
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 200px ;
}

.logo {
    text-decoration: none;
    color: #3a6cf4;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.8em;
}

.navigation a {
    color: #3a6cf4;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    padding-left: 30px;
}

.navigation a:hover {
    color: #601cfc;
}

#userMenuContainer a {
    display: flex;
    align-items: center;
    gap: 10px; /* مسافة بين الصورة والاسم */
    text-decoration: none;
  }
  
  #userMenuContainer img {
    width: 30px !important;    /* حجم الصورة */
    height: 30px !important;
    border-radius: 50%; /* يخلي الصورة دائرية */
    object-fit: cover;
  }
  
  #userMenuContainer span, 
  #userMenuContainer a {
    font-size: 18px;
    color: #4A63F3;
    font-weight: bold;
  }

section {
    padding: 100px 200px;
}

#search-results {
    margin-top: 15px;
    display: none; /* ✅ مخفي بشكل افتراضي */
  }  

.content {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
}

.projects {
    background-color: #000016;
}

.projects h2 {
    color: #fff;
    text-align: center;
    font-size: 70px;
    color: #4e9eff;
    margin-top: 20px;
}

#search-anime {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    padding: 12px;
    border: 2px solid #4e9eff;
    border-radius: 25px;
    font-size: 1em;
    outline: none;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#search-anime:focus {
    border-color: #601cfc;
    box-shadow: 0 0 10px #601cfc, 0 4px 6px rgba(0, 0, 0, 0.2);
}
.projects .content{
    margin-top: 30px;
}

.project-card {
    background-color: #fff;
    border: 1px solid #fff;
    min-height: 14em;
    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;
}

.project-category {
    font-size: 20px;
    color: #000;
}

.project-title {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 10px;
}

.projects .libs {
    font-size: 2em;
}


.more-details {
    background-color: #388E3C;
    padding: 0.4em 0.4em;
    border-radius: 213px;
    font-size: 30px;
    text-decoration: none;
    color: #eee;
}

.more-details:hover {
    background-color: #81C784;
    color: #323232;
}

.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{
    color: #fff;
    font-size: 1.3em;
    padding: 0 12px 0 0;
}

.social-icons a:hover {
    color: #4e9eff;
    font-size: 1.4em;
    transform: scale(1.3);
}

.footer .nam {
    font-size: 60px;
    color: #4e9eff;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: 800;
}

@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;
    }

    a.mohamed {
        font-size: 30px;
    }

    a .mohamed {
        font-size: 20px;
    }

    .contact .info p {
        font-size: 1em;
    }
}

@media (max-width:300px){
    body{
        font-size: 10px;
     
    }

    a .mohamed {
        font-size: 15px;
    }
}
