*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    text-decoration: none;
}
.container{
    height: 100vh;
    width: 100%;
    position: relative;
    background: url(background.png);
    display: flex;
    justify-content: center;
    align-items: center;
}
.container .box{
    height: 86vh;
    width: 75%;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
    display: flex;
    position: relative;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    box-shadow: -15px 17px 17px rgba(10, 10, 10, 0.15);
}
.container::after{
    content: '';
    position: absolute;
    height: 300px;
    width: 300px;
    border-radius: 50%;
    background: linear-gradient( #c1d9fb,#cbd1f8);
    transform: translate(490px,150px);
}
.container .box nav{
    height: 7%;
    width: 95%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px auto;
    padding: 20px;
}
.container .box nav ul li{
    display: inline-block;
    padding: 0 20px;
    list-style: none;
}
.container .box nav ul li a{
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    color: #242329;
    transition: 0.3s
}
.container .box nav ul li a:hover{
    color: #7c8bd1;
}
.container .box nav .logo{
    font-size: 35px;
    color: #242329;
    font-weight: bold;
    margin-top: 5px;
    margin-left: 30px;
}
.container .box .contains{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 8%;
    padding-left: 80px;
}
.contains .section-1{
    position: relative;
    width: 40%;
}
.contains .section-1 h1{
    margin-bottom: 20px;
    font-size: 50px;
    font-weight: bold;
    color: #242329;
}
.contains .section-1 h3{
    color: #6f34fe;
    margin-bottom: 10px;
    font-size: 24px;
}
.contains .section-1 p{
    font-size: 18px;
    color: #505052;
    margin-bottom: 50px;
}
.contains .section-1 .btn{
    padding: 15px 20px;
    background-color: #6f34fe;
    border: 1px solid #6f34fe;
    color: #fff;
    border-radius: 5px;
    font-weight: 500;
}
.contains .section-1 .btn:hover{
    color: #6f34fe;
    transition: 0.3s;
    background-color: #cdddf3;
    border: 1px solid ;
}
.contains .section-2{
    width: 40%;
    margin-right: 50px;
}
.contains .section-2 img{
    width: 100%;
}
.contains .section-3{
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: absolute;
    left: 10px;
    top: 30%;
}
.contains .section-3 a i{
    font-size: 25px;
    cursor: pointer;
    color: #7c8bd1;
    transition: 0.3s;
}
.contains .section-3 i:hover{
    color: #6f34fe;
}

/* الأجهزة التي يقل عرض شاشتها عن 768 بكسل (الهواتف والأجهزة اللوحية) */
@media (max-width: 768px) {
    .container .box {
        width: 95%; /* توسيع الصندوق ليشغل معظم الشاشة */
        height: auto; /* السماح للصندوق بالتمدد حسب المحتوى */
        min-height: 90vh;
        flex-direction: column; /* ترتيب العناصر عمودياً */
        padding: 40px 20px;
        margin: 20px 0;
    }

    .container .box nav {
        position: relative; /* إلغاء التموضع المطلق */
        width: 100%;
        flex-direction: column; /* الشعار فوق القائمة */
        height: auto;
        margin-bottom: 30px;
    }

    .container .box nav .logo {
        margin-left: 0;
        margin-bottom: 15px;
        font-size: 28px;
    }

    .container .box nav ul li {
        padding: 0 10px; /* تقليل المسافات بين روابط القائمة */
    }

    .container .box .contains {
        flex-direction: column; /* وضع النص فوق الصورة */
        padding-left: 0;
        margin-top: 20px;
        text-align: center; /* توسيط النصوص */
    }

    .contains .section-1, 
    .contains .section-2 {
        width: 100%; /* جعل الأقسام تأخذ العرض الكامل */
        margin-right: 0;
    }

    .contains .section-1 h1 {
        font-size: 35px; /* تصغير الخط ليناسب الشاشة */
    }

    .contains .section-1 p {
        margin-bottom: 30px;
    }

    .contains .section-2 {
        order: -1; /* وضع الصورة فوق النص في الموبايل (اختياري) */
        margin-bottom: 20px;
    }

    .contains .section-2 img {
        width: 70%; /* تصغير حجم الصورة قليلاً */
        margin: 0 auto;
    }

    .contains .section-3 {
        position: relative; /* تغيير مكان الأيقونات الاجتماعية */
        flex-direction: row; /* جعلها أفقية بدلاً من عمودية */
        justify-content: center;
        top: 0;
        left: 0;
        margin-top: 30px;
        gap: 20px;
    }
    
    /* إخفاء الدائرة الديكورية في الموبايل لتقليل التشتت */
    .container::after {
        display: none;
    }
}