@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,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bonbon&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    overflow: hidden;
}

main {
    display: flex;
    height: 100%;
    width: 100%;
    font-family: Poppins;
}

aside {
    width: 280px;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-size: 1.1rem;
    background-color: #212529;
    backdrop-filter: blur(20px);
    z-index: 1000;
}

.Links {
    display: flex;
    flex-direction: column;
    margin: auto;
}

aside li {
    list-style-type: none;
    display: flex;
    padding: 20px;
    gap: 10px;
    color: white;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition-duration: 0.2s;
}

aside li:hover {
    color: #80ed99;
}

aside li::after {
    position: absolute;
    width: 100%;
    left: 0px;
    height: 1px;
    background: linear-gradient(to left, transparent, #ffffff24, transparent);
    content: '';
    bottom: 0px;
}

aside li i  {
    font-size: 1.3rem;
}
.activeLink{
    color:#80ed99
}
.mySwiper {
    flex: 1;
    height: 100%;
}

.home-slide {
    color: white;
    display: flex;
    background-color: #343a40;
}

.HomeContent {
    margin: auto 0px;
    flex: 1;
    height: auto;
    
    padding: 100px;
    user-select: none;
}

.SideImg {
    width: 30%;
    margin: auto 10px;
    margin-right: 100px;
    position: relative;
}

.SideImg img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.SideImg .top-right-corner,
.bottom-left-corner {
    position: absolute;
}

.bottom-left-corner {
    left: -50px;
    bottom: -50px;
    rotate: -90deg;
}

.top-right-corner {
    right: -50px;
    top: -50px;
    rotate: 90deg;
}

.hr1 {
    width: 150px;
    height: 10px;
    border: none;
    background: #80ed99;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.hr2 {
    width: 10px;
    height: 120px;
    border-bottom-left-radius: 3px;

    background: #80ed99;
    border: none;
    border-bottom-right-radius: 3px;
}

.HomeContent h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
}

.HomeContent h2 {
    font-size: 2.3em;
    margin-bottom: 10px;
    font-weight: 600;

}

.HomeContent h1 .stylized-name {
    font-weight: 700;
    color: #80ed99;
}

.proffesions {
    color: #85f69f;
}

.HomeContent .heroline {
    font-size: 1.5rem;
    font-weight: 300;
    padding-right:50px;
}
.primary{
    padding: 10px 20px;
    border: none;
    outline: none;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 5px;
    cursor: pointer;
    background-color: #1d8637;
    color: white;
    border-radius: 5px;
}

.slide-help {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-weight: 400;
    z-index: 100;
    left: 0%;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.2rem;
}



.mySwiper {
    width: 80vw;
    height: 100vh;
    overflow: hidden;
    background-color: #343a40;
}

.swiper-slide {
    width: 100%;

    background-color: #343a40;
    height: 100%;
}

.about-us {
    width:100%;
    height:100%;

    padding: 100px;
    color: white;
}

.heading {
    padding: 20px 10px;
    font-size: 2.5rem;
    color: #80ed99;
}

.about-us h3 {
    padding: 10px;

}

.aboutme-deatils {
    padding: 20px;
    font-weight: 300;
}

.about-me-divison {
    display: flex;
}

.about-me-table {
    width: 60%;
    display: grid;
    grid-template-columns: repeat(2, 50%);
}

.about-me-table li {
    padding: 20px;
    position: relative;
}

.about-me-table li::after {
    position: absolute;
    width: 100%;
    left: 0px;
    height: 1px;
    background: linear-gradient(to left, transparent, #ffffff77, transparent);
    content: '';
    bottom: 0px;
}

.about-me-table span {
    color: #80ed99;
    font-weight: bold;
    margin-right: 5px;
}

.about-me-table .buttonGroup {
    grid-column: 1/span 2;
    justify-content: center;
    padding: 50px;
    flex: 1;
}

.skill-bar {
    width: calc(40% - 20px);
}

.skill-bar li {
    width: 100%;
    padding: 10px;
}

.skill-bar p {
    color: #80ed99;
    font-weight: bold;
    margin: 10px;
}

.skill-bar .bar {
    width: 100%;
    height: 15px;
    background-color: #272c30;
    border-radius: 20px;

}

.active-bar {
    background-color: #80ed99;
    height: 100%;
    width: auto;
    border-radius: 20px;
}

.services {
    color: white;
    display: grid;
    grid-template-columns: repeat(3, calc(34% - 10px));
    grid-template-rows: 100px calc(50% - 50px) calc(50% - 50px);
    padding: 100px ;
    box-sizing: border-box;
}

.services .heading {
    grid-column: 1/span 3;
}

.services .service {
    display: flex;
    text-align: center;
    justify-content: center;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.437);
    border-radius: 5px;
    margin: 20px;
    backdrop-filter: blur(10px);
    flex-direction: column;

    transition-duration: 0.25s;
}

.services .service i {
    font-size: 3rem;
    color:#80ed99
}

.services .service .service-icon {
    padding: 0px 50px;
    border-radius: 5px;
    margin: 20px auto;
}
.service h2{
    color:#80ed99
}
.service:hover {
    background-color: #80ed99;
    color: #176d2d
}
.service:hover h2,.service:hover i{
    color: #176d2d
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 33%);
    padding:100px;
    grid-template-rows: 100px calc(50% - 50px) calc(50% - 50px);
}

.gallery h1,
.gallery h2 {
    grid-column: 1/span 3;
}

.gallery h2 {
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
    padding: 20px 10px;
}

.gallery .project {
    margin: 25px 20px;
    margin-top: 0px;
    background: #212529;
    padding: 5px;
    border-radius: 20px;
}
.gallery a{
    text-decoration: none;
}
.gallery .project img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    border:none;
}

.contactMe {
    display: grid;
    grid-template-columns: 20% 80%;
    grid-template-rows: 80px calc(25% - 20px) calc(25% - 20px) calc(25% - 20px) calc(25% - 20px);
    position: relative;
    padding:100px;
}

.contactMe h1 {
    grid-column: 1/span 3;
    font-size:2.5rem;
    padding:30px;
}

.contactMe form {
    grid-area: 2/2/ span 5/span 2;
}

.contactinfo {
    display: flex;
    flex-direction: column;
    padding: 10px;
    color: white;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.contactinfo i {
    padding: 5px;
    font-size: 2.5rem;
    color: #80ed99;
    margin: 20px auto;
}

.contactinfo h3 {
    color: #80ed99;
}

.contactMe form {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    padding: 20px;
    height: fit-content;
    color: white;
}

.contactMe form h2 {
    grid-column: 1/span 2;
    padding: 20px;
    display: flex;
}

.contactMe form input {
    padding: 15px;
    border-radius: 10px;
    margin: 20px;
    font-size: 1.1rem;
    border: none;
    color: white;
    background-color: #212529;

}

.contactMe form input:focus {
    border: 1px solid #85f69f;
    outline: none;

}

.contactMe form textarea {
    width: calc(100% - 40px);

    grid-column: 1/span 2;
    margin: 20px;
    padding: 20px;
    font-size: 1.1rem;
    border-radius: 10px;
    resize: none;
    border:none;
    border: none;
    color:white;
    background-color: #212529;
}

.contactMe form textarea:focus {
    border: 1px solid #85f69f !important;
}
.contactMe button{
    grid-column: 1/span 2;
    margin:20px auto ; 

}
footer{
    position:absolute;
    bottom:0px;
    right:0px;
    text-align: center;
    color:white;
    width:100%;
    font-weight: 200;
    font-size: 0.8rem;
}
footer li{
    padding:1px;
}
form h2 .SocialLinks{
    padding:5px;
    width:fit-content;
    margin-left:auto;
    margin-right:10px;
    background-color: #212529;
    border-radius: 30px;
}
form h2 .SocialLinks a{
    padding:10px;
    color: aliceblue;
    text-decoration: none;
    border-radius: 50%;
    transition-duration: 0.25s;
}
form h2 .SocialLinks a:hover{
    background-color: #176d2d;
}
.about-us{
    overflow: auto;
}
.project-box {
    background: #212529;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
    border: 1px solid #80ed99;
    transition: 0.25s;
    height: 100%
    
}

.project-box:hover {
    background: #80ed99;
    color: #1d3b2a;
    transform: scale(1.05);
}
.primary{
    padding: 9px;
    margin: 20px;
}

/* ===== إصلاحات للشاشات الصغيرة ===== */

/* للأجهزة اللوحية */
@media (max-width: 992px) {
    aside {
        width: 200px;
    }

    .HomeContent {
        padding: 40px;
    }

    .SideImg {
        margin-right: 40px;
    }

    .about-us, .services, .gallery, .contactMe {
        padding: 40px;
    }

    /* تعديلات طفيفة للوضوح */
    .services {
        grid-template-columns: repeat(2, calc(50% - 20px));
        grid-template-rows: auto;
        gap: 20px;
    }
    
    .services .heading {
        grid-column: 1/span 2;
    }
    
    .gallery {
        grid-template-columns: repeat(2, calc(50% - 20px));
        grid-template-rows: auto;
    }
    
    .gallery h1,
    .gallery h2 {
        grid-column: 1/span 2;
    }
}

/* للهواتف */
@media (max-width: 768px) {
    /* إصلاح التخطيط العام */
    main {
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
    }

    /* إصلاح القائمة الجانبية */
    aside {
        width: 100%;
        flex-direction: row;
        height: auto;
        min-height: 60px;
        overflow-x: auto;
        overflow-y: hidden;
        position: relative;
    }

    .Links {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        padding: 0 10px;
        white-space: nowrap;
    }

    aside li {
        padding: 15px;
        flex: 1;
        min-width: fit-content;
        justify-content: center;
    }

    aside li p {
        font-size: 0.9rem;
    }

    aside li i {
        font-size: 1.1rem;
    }

    /* إصلاح Swiper */
    .mySwiper {
        width: 100vw;
        height: calc(100vh - 60px);
        flex: 1;
    }

    /* إصلاح الصفحة الرئيسية - الصورة تظهر بشكل جيد */
    .home-slide {
        flex-direction: column;
        padding: 20px;
        text-align: center;
        height: 100%;
        overflow-y: auto;
        align-items: center;
        justify-content: center;
    }

    .HomeContent {
        padding: 20px;
        text-align: center;
        width: 100%;
        order: 2;
    }

    .HomeContent h1 {
        font-size: 2em;
    }

    .HomeContent h2 {
        font-size: 1.6em;
    }

    .HomeContent .heroline {
        font-size: 1.1rem;
        padding-right: 0;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    /* تعديلات للصورة على الهواتف */
    .SideImg {
        display: block;
        width: 80%;
        max-width: 300px;
        margin: 0 auto 30px;
        order: 1;
    }

    .SideImg img {
        width: 100%;
        height: auto;
        border-radius: 50%;
        border: 3px solid #80ed99;
        box-shadow: 0 0 20px rgba(128, 237, 153, 0.3);
    }

    /* إخفاء الزوايا على الهواتف */
    .top-right-corner,
    .bottom-left-corner {
        display: none;
    }

    .slide-help {
        position: relative;
        bottom: auto;
        margin-top: 20px;
        font-size: 1rem;
        order: 3;
    }

    /* إصلاح صفحة About */
    .about-us {
        padding: 40px 20px;
        height: 100%;
        overflow-y: auto;
    }

    .about-me-divison {
        flex-direction: column;
    }

    .about-me-table {
        width: 100%;
        grid-template-columns: 100%;
    }

    .skill-bar {
        width: 100%;
        margin-top: 30px;
    }

    /* إصلاح صفحة Services */
    .services {
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
        height: 100%;
        overflow-y: auto;
    }

    .services .service {
        margin: 10px 0;
        width: 100%;
    }

    /* إصلاح صفحة Gallery */
    .gallery {
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
        height: 100%;
        overflow-y: auto;
    }

    .gallery .project {
        margin: 10px 0;
        width: 100%;
    }

    /* إصلاح صفحة Contact */
    .contactMe {
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
        height: 100%;
        overflow-y: auto;
        position: relative;
        min-height: calc(100vh - 60px);
    }

    .contactinfo {
        width: 100%;
        margin: 10px 0;
        order: 1;
    }

    .contactMe form {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin-top: 20px;
        order: 2;
    }

    .contactMe form h2 {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }

    form h2 .SocialLinks {
        margin: 20px auto 0;
    }

    .contactMe form input,
    .contactMe form textarea {
        width: 100%;
        margin: 10px 0;
        box-sizing: border-box;
    }

    .contactMe form input {
        margin: 10px 0;
    }

    .contactMe button {
        width: 100%;
        margin: 20px 0;
    }
    footer {
        position: relative;
        margin-top: 40px;
        padding: 15px;
        order: 3;
        bottom: auto;
        right: auto;
    }

    .contactMe h1 {
        order: 0;
        text-align: center;
        padding: 20px;
        margin-bottom: 20px;
    }
}

/* للهواتف الصغيرة جدًا */
@media (max-width: 480px) {
    aside li {
        padding: 12px 8px;
    }

    aside li p {
        font-size: 0.8rem;
    }

    .HomeContent h1 {
        font-size: 1.8em;
    }

    .HomeContent h2 {
        font-size: 1.4em;
    }

    .HomeContent .heroline {
        font-size: 1rem;
    }

    .heading {
        font-size: 1.8rem;
    }

    .primary {
        padding: 8px 16px;
        font-size: 1rem;
    }

    /* تعديلات إضافية للصورة على هواتف صغيرة */
    .SideImg {
        width: 70%;
        max-width: 250px;
    }

    .SideImg img {
        border-width: 2px;
    }
}

/* إضافة تأثيرات إضافية للصورة على الجوال */
@media (max-width: 768px) {
    .SideImg::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: radial-gradient(circle, transparent 50%, rgba(128, 237, 153, 0.1) 100%);
        z-index: 1;
        pointer-events: none;
    }

    .SideImg::after {
        content: '';
        position: absolute;
        width: calc(100% + 10px);
        height: calc(100% + 10px);
        border-radius: 50%;
        border: 2px dashed #80ed99;
        top: -5px;
        left: -5px;
        animation: rotate 20s linear infinite;
        pointer-events: none;
    }

    @keyframes rotate {
        0% {
            transform: rotate(0deg);
        }
        100% {
            transform: rotate(360deg);
        }
    }
}