*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
margin: 0;
font-family: Arial, sans-serif;
background: #1b1b1d;
} 
.chat-button {
position: fixed;
left: 20px;
bottom: 40px;
width: 42px;
height: 42px;
background-color: #18c209;
border-radius: 50%;
color: white;
font-size: 20px;
padding-top: 8px;
text-align: center;
cursor: pointer;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
transition: background-color 0.3s;
z-index: 1000;
}
.chat-button a{
text-decoration: none;
}
.navbar {
position: fixed;
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 4rem; /* تقليل المسافات الجانبية */
max-width: 100%;
box-sizing: border-box; /* يضمن أن الحجم لا يتجاوز 100% */
z-index: 500;
transition: 0.4s;
}

.navbar.sticky{
position: fixed;
top: 0;
width: 100%;
background: rgb(62, 63, 60);
color: #ffffff;
padding: 1.1rem 8rem;
box-shadow: 0px 6px 9px 0px rgb(0 0 0 /6%);
}
.logo a {
color: rgb(137, 139, 240);
text-decoration: none;
font-weight: 600;
font-size: 30px;
font-weight: bold;

}
.navbar.sticky .logo a{
color: #ffffff;
margin-left: 40px;
}

.menu {
list-style: none;
display: flex;
text-align: left;
}
.menu li {
list-style: none;
display: inline-block;
margin-left: 35px;
position: relative;
}
.menu a {
display: block;
text-decoration: none;
font-size: 16px;
font-weight: 600;
color: white;
}
.navbar.sticky .menu li a{
color: #ffffff;
}
.menu-toggle {
display: none;
font-size: 30px;
cursor: pointer;
color: white;
}
.navbar .menu li a::before{
content: "";
position: absolute;
width: 0%;
left: 0;
bottom: -10px;
height: 2px;
background: white;
transition: 0.2s;
}

.navbar.sticky .menu li a::before{
background: #0078ff;
}

.navbar .menu li a:hover:before{
width: 35px;
}

/* home styling */
.home{
position: relative;
left: 0;
top: 0;
height: 100vh;
background: linear-gradient(rgba(0, 0, 0, 0.637),rgba(0, 0, 0, 0.801)), url(images/home.png) center center/cover no-repeat;
background-attachment: fixed;
color: white;
}

.home .home-content{
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.home .home-content h1{
font-size: 4.2rem;
margin-bottom: 1.5rem;
}

.home .home-content span{
font-size: 45px;
}

.bto {
background-color:rgb(137, 139, 240);
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 18px;
margin: 4px 2px;
cursor: pointer;
margin-top: 40px;
width: 250px;
}
.blog{
text-align: left;
}
.social-icons a {
color: #fff;
font-size: 1.7em;
padding-right: 30px;
}
/*جزء التعليم */
.education{
display: inline;
margin: 30px;
align-items: center;
}
.title{
color: white;
width: 100%;
text-align: center;
font-size: 2.5rem;
text-transform: uppercase;
font-weight: 500;
margin-bottom: 0px;
padding-bottom: 0px;
font-weight: bold;
transition: 0.7s ease;
}
.title:hover{
font-size: 3em;
color: rgb(52, 53, 104);
}
.line {
width: 200px;
background: #3842fd;
height: 4px;
margin: 0 auto;
margin-top: 0px;
margin-bottom: 32px;
}
.content{
display: flex;
justify-content: center;
text-transform: uppercase;
text-align: center;
flex-wrap: wrap; /* يمنع خروج البطاقات إذا كانت الشاشة صغيرة */
gap: 20px; /* يضيف مسافة بين البطاقات */
text-align: center;
}
.education-card {
background-color: wheat;
border: 1px solid wheat;
min-height: 14em;
width: 90%;
max-width: 200px;
overflow: hidden;
border-radius: 10px;
margin: 10px;
transition: 0.7s ease;
}
/* تأثير الدخول - البطاقات */
.education-card,
.card {
opacity: 0;
transform: translateY(50px);
transition: opacity 1s ease-out, transform 1s ease-out;
}

/* عند ظهور العنصر يتم تفعيل التأثير */
.education-card.show,
.card.show {
opacity: 1;
transform: translateY(0);
}

.education-card:hover {
transform: scale(1.1);
}
.education-card:hover .education-img {
opacity: 0.9;
}
.education-img img {
width: 100%;
height: 30%;
}
.education-info  .education-title,h5,h6,ul li{
margin: 3px;
padding: 3px;
}
.education-info ul li{
text-align: right;
font-size: 20px;
}
.education-title {
font-size: 20px;
font-weight: bold;
color: black;
}

/*جزء الكورسات*/
.courses,.services{
background-color: #111;
padding: 30px;
}
/* تنسيق الحاوية الرئيسية */
.carousel-container {
position: relative;
width: 90%;
margin: auto;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
/* تنسيق شريط التمرير للبطاقات */
.carousel {
display: flex;
gap: 20px;
scroll-behavior: smooth;
overflow-x: auto;
white-space: nowrap;
scrollbar-width: none; /* إخفاء شريط التمرير في Firefox */
}
.carousel::-webkit-scrollbar {
display: none; /* إخفاء شريط التمرير في Chrome و Safari */
}
/* تنسيق البطاقة */
.card {
min-width: 250px;
max-width: 250px;
background: #f9f9f9;
border-radius: 10px;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
padding: 15px;
text-align: center;
transition: transform 0.3s ease-in-out;
}
.card img {
width: 100%;
height: 150px;
border-radius: 10px;
}
/* تأثير عند تحريك البطاقة */
.card:hover {
transform: scale(1.05);
}
/* أزرار التنقل */
/* .prev-btn, .next-btn {
background-color: rgba(0, 0, 0, 0.6);
color: white;
border: none;
padding: 10px;
cursor: pointer;
font-size: 24px;
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 10;
}
.prev-btn { left: 0; }
.next-btn { right: 0; } */

/* تنسيق قسم المهارات */
.skills-container {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* يعرض الأعمدة بشكل مرن */
gap: 20px;
padding: 30px;
color: white;
align-items: center;
}

.skill-card {
background-color: #2c2c2c;
border-radius: 10px;
padding: 20px;
text-align: center;
transition: transform 0.3s ease, background-color 0.3s ease;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.skill-card:hover {
transform: translateY(-5px); /* تأثير التحريك عند التمرير */
background-color: #3842fd; /* تغيير اللون عند التمرير */
}

.skill-icon {
font-size: 40px;
margin-bottom: 15px;
color: #ffffff;
transition: color 0.3s ease;
}

.skill-card:hover .skill-icon {
color: #fff;
}

.skill-title {
font-size: 18px;
font-weight: 600;
color: #fff;
}


/* تخصيص للموبايل */
@media screen and (max-width: 768px) {
.skills-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* لتوفير مساحة أكبر على الشاشات الصغيرة */
}
}

/*جزء الخدمات*/
.services .services-content {
margin-top: 2rem;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-around;
}
.services .services-content .card {
width: 330px;
text-align: center;
background: #222;
padding: 20px 15px;
margin-bottom: 30px;
border-radius: 10px;
cursor: pointer;
transition: 0.3s;
}
.services .services-content .card .card-content {
transition: 0.3s;
}

.services .services-content .card .card-content .icon {
padding: 5px 0;
color: white;
}
.services .services-content .card .card-content .icon i {
font-size: 4rem;
}
.services .services-content .card .card-content .card-title {
padding: 5px 0;
font-size: 21px;
font-weight: 500;
color: #beb0f0;
}
/*جزء الاعمال*/
.works{
    display: inline;
    margin: 30px;
    align-items: center;
    }
    .title{
    color: white;
    width: 100%;
    text-align: center;
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 0px;
    padding-bottom: 0px;
    font-weight: bold;
    transition: 0.7s ease;
    }
    .title:hover{
    font-size: 3em;
    color: rgb(52, 53, 104);
    }
    .line {
    width: 200px;
    background: #3842fd;
    height: 4px;
    margin: 0 auto;
    margin-top: 0px;
    margin-bottom: 32px;
    }
    .content{
    display: flex;
    justify-content: center;
    text-transform: uppercase;
    text-align: center;
    flex-wrap: wrap; /* يمنع خروج البطاقات إذا كانت الشاشة صغيرة */
    gap: 20px; /* يضيف مسافة بين البطاقات */
    text-align: center;
    }
    .works-card {
    background-color: wheat;
    border: 1px solid wheat;
    text-decoration: none;
    min-height: 14em;
    width: 90%;
    max-width: 200px;
    overflow: hidden;
    border-radius: 10px;
    margin: 10px;
    height: 200px;
    transition: 0.7s ease;
    }
    /* تأثير الدخول - البطاقات */
    .works-card,
    .card {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    }
    
    /* عند ظهور العنصر يتم تفعيل التأثير */
    .works-card.show,
    .card.show {
    opacity: 1;
    transform: translateY(0);
    }
    
    .works-card:hover {
    transform: scale(1.1);
    }
    .works-card:hover .works-img {
    opacity: 0.9;
    }
    .works-img {
    width: 100%;
    height: 70%;
    }
    .works-img img{
        width: 100%;
        height: 100%;
        }
    .works-title {
    font-size: 20px;
    font-weight: bold;
    color: black;
    }
    
/*جزء تواصل معي*/
.contact {
position: relative;
color: white;
width: 100%;
background: url(images/backegraond.png) center center/cover no-repeat;
background-attachment: fixed;
z-index: 0;
padding-bottom: 30px;
padding-top: 30px;
}
.contact .overlay{
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: #000000b2;
opacity: 0.7;
z-index: -1;
pointer-events: none;
}
.contact .contact-content {
background: white;
color: black;
z-index: 100;
width: 80%;
padding: 2.5rem;
display: flex;
justify-content: center;
align-items: center;
margin: 0 auto; /* توسيط العنصر أفقيًا */
text-align: center; /* تأكد من أن النصوص متوسطة */
}

.contact .contact-content .heading{
font-size: 2rem;
font-weight: 500;
text-align: right;
}
.contact .contact-content .line{
margin: 0;
width: 100px;
height: 4px;
margin-top: 5px;
margin-bottom: 25px;
}
.contact .contact-content .message{
width: 50%;
padding: 0 15px;
}
.contact .contact-content .message .social-icons img{
width: 30px;
height: 30px;
margin-top: 20px;
}
.contact .contact-content .gettouch{
width: 50%;
}
.contact .contact-content .gettouch p{
color: rgba(0,0,0,0.6);
font-weight: 300;
margin-bottom: 20px;
font-size: 20px;
line-height: 1.5;
}
.contact .contact-content .line {
margin: 0;
width: 100px;
height: 4px;
margin-top: 2px;
margin-bottom: 25px;
}
.contact .contact-content .gettouch .info {
margin-bottom: 15px;
text-align: right;
}
footer{
width: 100%;
height: 50px;
text-align: center;
display: flex;
justify-content: center;
margin-top: 20px;
color:#aaa;
}
@media screen and (max-width: 768px) {
.menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 40%;
    background-color: #333;
    text-align: center;
    padding: 0;
    border-top-right-radius: 20%;
}
.menu li {
    margin-left: 5px;
    padding: 15px;
    border-bottom: 1px solid white;
}
.menu-toggle {
    display: block;
}
.menu.active {
    display: flex;
}
.home .home-content h1{
    font-size: 50px;
    text-align: center;
}
.works-card {
    height: 250px;
    }
.contact .contact-content {
    display: block;
}
.contact .contact-content .message {
    width: 100%;
    padding: 0;
    margin-bottom: 30px;
}
.contact .contact-content .gettouch {
    width: 100%;
    padding: 0;
}
.courses,.services{
padding: 1px;
}
.card {
padding: 15px;
min-width: 170px;
max-width: 250px;
height: 50%;
}
}