@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

a{
    text-decoration: none;
    color: #1f2937;
}

img{
    object-fit: cover;
}

body{
    background: #f3f4f6;
}

.btn{
    border: 2px solid #1f2937;
    background: #1f2937;
    color: #fff;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.5s ease;
}

.btn:hover{
    color: #1f2937;
    background: #fff;
    border-color: #e5e7eb;
}

.btn--secondary{
    color: #1f2937;
    background: #fff;
    border: 2px solid #e5e7eb;
}

.btn--secondary:hover,
.hero__socials a:hover{
    border-color: #1f2937;
    background: #1f2937;
    color: #fff;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px;
    position: fixed; /* جعل النافبار ثابتًا */
    top: 0; /* تثبيته في الجزء العلوي */
    width: 100%; /* جعله يغطي العرض الكامل */
    z-index: 999; /* التأكد من أنه فوق العناصر الأخرى */
    background: #fff; /* إضافة خلفية بيضاء (اختياري) */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* إضافة ظل خفيف (اختياري) */
}

.navbar__logo{
    display: flex;
    align-items: center;
    font-weight: 500;
    gap: 10px;
}

.navbar__logo i{
    font-size: 30px;
}

.navbar__menu,
.footer__links{
    display: flex;
    gap: 20px;
}

.navbar__link,
.footer__links a{
    font-size: 14px;
    font-weight: 500;
    transition: all 0.5s ease;
}

.navbar__link:hover,
.footer__links a:hover{
    color: #000;
}

.navbar__actions{
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar__location h5{
    font-weight: 500;
    color: #6b7280;
    font-size: 12px;
}

.navbar__location p{
    font-size: 11px;
    font-weight: 600;
}

.navbar__actions .btn{
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
}

.hero{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 60px;
    gap: 60px;
    height: calc(100vh - 75px);
}

.hero__content,
.hero__intro{
    width: 50%;
}

.hero__image {
    width: 300px; /* تصغير العرض */
    height: 300px; /* تصغير الارتفاع */
    border-radius: 50%; /* جعل الصورة دائرية */
    object-fit: cover; /* للحفاظ على نسبة العرض إلى الارتفاع */
    transition: transform 0.3s ease; /* إضافة تأثير تكبير عند التحويم */
}

.hero__image:hover {
    transform: scale(1.1); /* تكبير الصورة عند التحويم */
}
.hero__content h2{
    font-size: 48px;
    line-height: 60px;
    font-weight: 400;
    margin-top: 20px;
    width: 85%;
}

.hero__intro{
    padding-right: 40px;
}

.hero__intro h3{
    font-weight: 500;
    font-size: 40px;
    line-height: 50px;
    margin-bottom: 10px;
}

.hero__intro p{
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 30px;
}

.hero__actions,
.skills__actions{
    display: flex;
    gap: 10px;
}

.hero__actions .btn,
.skills__actions .btn{
    padding: 6px 20px;
    font-size: 12px;
    font-weight: 500;
}

.hero__socials{
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 16px;
    right: 30px;
    top: 20%;
}

.hero__socials a{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid #e5e7eb;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.5s ease;
}

.skills{
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.skills__desc,
.skills__stats{
    width: 50%;
}

.skills__desc{
    padding-right: 80px;
}

.skills__desc h3{
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 10px;
}

.skills__desc p{
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 30px;
}

.skills__stats{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.skills__stats i{
    font-size: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.skill__info{
    background: #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.skill__info h5{
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.skill__info p{
    width: 50%;
    text-align: center;
    font-size: 14px;
    color: #7a7a7a;
    font-weight: 500;
}

.showcase{
    padding: 80px 60px 100px;
    background: #e5e7eb;
}

.showcase__header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.showcase__header h3{
    font-size: 28px;
    font-weight: 400;
}

.showcase__header .btn{
    font-size: 13px;
    padding: 5px 16px;
    color: #fff;
    background: #1f2937;
    border-color: #1f2937;
}

.showcase_categories .category:first-child{
    margin-bottom: 100px;
}

.category__header{
    display: flex;
    align-items: center;
}

.category__title,
.category__desc{
    width: 50%;
    display: flex;
    align-items: center;
}

.category__title{
    gap: 12px;
}

.category__title h4{
    font-size: 22px;
    font-weight: 400;
}

.category__title i{
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category__desc{
    gap: 40px;
    justify-content: space-between;
}

.category__desc p{
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.category__desc a{
    font-size: 22px;
}

.category__projects{
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.project-card{
    position: relative;
    width: 25%;
    height: 420px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-card__image{
    width: 100%;
    height: 200px;
    border-radius: 10px;
    object-position: top center;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.project-card__info{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
}

.project-card__info h5{
    font-size: 17px;
    font-weight: 500;
}

.project-card__info p{
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.project-card__desc{
    font-size: 13px;
    color: #7a7a7a;
    margin-bottom: 30px;
}

.project-card .btn{
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 8px 20px;
    border-radius: 16px 0 10px 0;
    border: none;
    color: #fff;
    background: #1f2937;
}

.project-card .btn:hover{
    background: #000;
}

.career{
    padding: 60px 60px 80px;
    display: flex;
    align-items: center;
    gap: 100px;
}

.career__jobs,
.career__awards{
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.career h3{
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 20px;
}

.job,
.award{
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.job i,
.award div i{
    font-size: 20px;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.award{
    justify-content: space-between;
}

.award > div{
    display: flex;
    align-items: center;
    gap: 20px;
}

.job__info h5,
.award__info h5{
    font-size: 15px;
    font-weight: 500;
}

.job__info h5 span,
.award__info h5 span{
    font-weight: 600;
}

.job__info p,
.award__info p{
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.award a i{
    font-size: 24px;
}

.contact{
    text-align: center;
    padding: 60px;
}

.contact h5{
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
}

.contact h2{
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 20px;
}

.contact .btn{
    padding: 6px 20px;
    border: 2px solid #1f2937;
    color: #fff;
    background: #1f2937;
    margin-bottom: 14px;
}

.contact p{
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.contact p span{
    color: #1f2937;
    font-weight: 600;
    font-size: 13px;
}

.footer{
    padding: 20px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__brand{
    display: flex;
    align-items: flex-end;
    gap: 30px;
}

.footer__brand a{
    font-weight: bold;
    font-size: 18px;
}

.footer__brand p{
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

@media screen and (max-width: 1230px) {
    
    .hero__image{
        width: 100%;
    }

    .hero__content h2{
        font-size: 38px;
        text-align: center;
    }

    .hero__intro h3{
        font-size: 30px;
    }

    .hero__intro p{
        font-size: 15px;
    }

    .skills__desc{
        padding-right: 20px;
    }
    
    .skills__desc h3{
        font-size: 26px;
    }

    .skills__stats i{
        font-size: 50px;
    }

    .skill__info h5{
        font-size: 20px;
    }

    .skill__info p{
        font-size: 12px;
        width: 100%;
    }

    .category__title{
        width: 40%;
    }

    .category__desc{
        width: 60%;
    }

    .category__projects{
        flex-wrap: wrap;
    }

    .project-card{
        width: 48%;
    }

}

@media screen and (max-width: 992px) {
    
    .navbar{
        padding: 20px 30px;
    }

    .hero{
        padding: 100px 30px 40px;
    }

    .hero__intro h3{
        font-size: 22px;
        line-height: 34px;
    }

    .hero__intro p{
        font-size: 13px;
    }

    .hero__socials{
        top: 6%;
    }

    .skills{
        flex-direction: column;
        padding: 60px 30px 80px;
    }

    .skills__desc,
    .skills__stats,
    .category__title,
    .category__desc,
    .career__jobs,
    .career__awards{
        width: 100%;
    }

    .skills__desc{
        padding-right: 0;
    }

    .showcase{
        padding: 80px 30px 100px;
    }

    .category__header{
        flex-direction: column;
    }

    .category__title{
        margin-bottom: 20px;
    }

    .career{
        padding: 60px 30px 80px;
        flex-direction: column;
        gap: 60px;
    }

    .footer{
        padding: 20px 30px;
    }

}


@media screen and (max-width: 768px) {
    
    .navbar__actions{
        display: none;
    }

    .hero{
        flex-direction: column;
        height: auto;
        padding: 40px 30px 0px;
        gap: 30px;
    }

    .hero__content,
    .hero__intro{
        width: 100%;
    }

    .hero__content h2{
        width: 100%;
        font-size: 30px;
    }

    .hero__socials{
        position: relative;
        flex-direction: row;
        right: auto;
        margin-top: 10px;
    }

    .showcase__header h3{
        font-size: 24px;
    }

    .category__title h4{
        font-size: 20px;
    }

    .project-card{
        width: 100%;
        height: 500px;
    }

    .project-card__image{
        height: 300px;
    }

    .career h3{
        font-size: 26px;
    }

    .footer{
        flex-direction: column-reverse;
        gap: 16px;
    }

}
.my-websites {
    padding: 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

.my-websites__header h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.my-websites__header p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.my-websites__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.website-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
}

.website-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.website-card__info {
    padding: 1.5rem;
}

.website-card__info h5 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.website-card__info p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

.website-card__info .btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.website-card__info .btn:hover {
    background-color: #0056b3;
}
/* تكبير الأزرار */
.btn {
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
}

/* تكبير البطاقات */
.website-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.website-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* تكبير الصور */
.hero__image {
    transition: transform 0.3s ease;
}

.hero__image:hover {
    transform: scale(1.1);
}

/* تكبير أيقونات المهارات */
.skills__stats i {
    transition: transform 0.3s ease;
}

.skills__stats i:hover {
    transform: scale(1.2);
}

/* تكبير أيقونات التواصل الاجتماعي */
.hero__socials a {
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.hero__socials a:hover {
    transform: scale(1.2);
}
 /* أنميشن مخصص */
 @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideInUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* تطبيق الأنميشنات */
.navbar {
    animation: fadeIn 1s ease-in-out;
}

.hero__content {
    animation: slideInLeft 1s ease-in-out;
}

.hero__intro {
    animation: slideInRight 1s ease-in-out;
}

.skills {
    animation: fadeIn 1.5s ease-in-out;
}

.skills__stats i {
    animation: zoomIn 0.5s ease-in-out;
}

.my-websites__grid {
    animation: fadeIn 2s ease-in-out;
}

.website-card {
    animation: slideInUp 0.5s ease-in-out;
}

.career {
    animation: fadeIn 1.5s ease-in-out;
}

.contact-links__grid {
    animation: fadeIn 2s ease-in-out;
}

.footer {
    animation: fadeIn 1s ease-in-out;
}