@font-face {
    font-family: mitra_tire;
    src: url(Far_MitraBd.ttf);
}
.navbar{
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 28px;

    padding: 9px 20px;

    background: rgba(13, 17, 23, 0.85);

    border: 1px solid #30363D;
    border-radius: 12px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    z-index: 1000;

    direction: rtl;

    max-width: 92vw;
}

.navbar a{
    color: #F0F6FC;

    text-decoration: none;

    font-size: 16px;

    white-space: nowrap;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.navbar a:hover{
    color: #58A6FF;
    transform: translateY(-2px);
}

.navbar a.active{
    color: #58A6FF;
    text-shadow: 0 0 8px rgba(88, 166, 255, 0.5);
}
body{
    background-color: #0D1117;
    direction: rtl;
    z-index: 0;
    margin: 0;
    padding: 20px;
    color: #F0F6FC;
    position: relative;
    font-family: mitra_tire;
    overflow-x: hidden;
}

hr{
    border: 2px solid #161B22;
    border-radius: 10px;

}

#neural_bg{
    display: block;
    max-width: 100%;
}

.header_style{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    direction: ltr;

    min-height: 45vh;
    padding-top: 80px;
    text-align: center;
}

.header_style > div{
    direction: rtl;
    text-align: right;
    max-width: 500px;
}
@keyframes fadeSlideUp{
    from{
        opacity: 0;
        transform: translateY(30px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}


.header_style h1{
    color: #F0F6FC;
    text-shadow: 0 0 12px rgba(126, 231, 135, 0.35);
    transform: translateY(-20px);
    font-size: clamp(22px, 4vw, 32px);
}

.header_style h3{
    color: #7EE787;

    text-align: right;
    font-size: clamp(16px, 3vw, 20px);
}
.header_style h1{
    animation: fadeSlideUp 0.8s ease-out;
}

.header_style h3{
    animation: fadeSlideUp 0.8s ease-out 0.3s backwards;
}

.header_style p{
    animation: fadeSlideUp 0.8s ease-out 0.6s backwards;
}

.header_style p{
    color: #F0F6FC;
    text-align: right;
    line-height: 2;
    font-size: clamp(14px, 2.5vw, 16px);
}

.header_style img{
    width: 55%;
    max-width: 450px;
    transition:
        transform 0.5s   ease;
        box-shadow :0.5s ease;
    border-radius: 100px;
    object-fit: cover;
}
.header_style img:hover{
   transform: scale(1.03) rotate(1deg);
   box-shadow: 0 0 20px rgba(88 , 166 , 255 , 0.12);
}



.about_me{
    border: 1px solid #30363D;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 90px;
    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;

    width: 95%;

    max-width: 1800px;

    padding: 15px;

    margin: 0 auto;

    background-color: #161B22;

    color: #F0F6FC;

    border-radius: 15px;

    box-sizing: border-box;
}
.about_me::before{
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 4px;
    height: 100%;

    background: #58A6FF;

    box-shadow:
        0 0 15px rgba(88, 166, 255, 0.7);

    opacity: 0.7;
}
.about_me:hover{
    transform: translateY(-4px);

    border-color: #58A6FF;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.25),
        0 0 20px rgba(88, 166, 255, 0.08);
}




.about_me h2{
    color: #58A6FF;

    text-align: right;
}

.about_content{
    display: flex;

    font-size: 17px;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 30px;
}

.about_content p{
    line-height: 2;

    flex: 1;
    min-width: 260px;
}

.img_he{
    width: 300px;

    max-width: 100%;

    height: 200px;

    border-radius: 10px;

    object-fit: cover;
}



.h2_sty{
    color: #58A6FF;
      position: relative;

    text-shadow:
        0 0 15px rgba(88, 166, 255, 0.2);
    padding: 10px;

    text-align: right;
}
.h2_sty::after{
    content: "";

    display: block;

    width: 70px;
    height: 3px;

    margin-top: 8px;

    background: #58A6FF;

    border-radius: 10px;

    box-shadow:
        0 0 10px rgba(88, 166, 255, 0.5);
}


.skills{
    display: flex;

    align-items: stretch;
    scroll-margin-top: 100px;
    justify-content: center;

    flex-wrap: wrap;

    gap: 25px;

    direction: ltr;
    width: 100%;
    box-sizing: border-box;
}

.border_py{
    border: 2px solid #30363D;

    background-color: #161B22;

    width: 18%;
    min-width: 150px;
    flex: 1 1 150px;
    position: relative;
    min-height: 210px;

    text-align: center;

    border-radius: 10px;

    padding: 10px;

    box-sizing: border-box;

color: #58A6FF;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}
.border_py h3{
    font-family:  'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.border_py:hover{
    transform: translateY(-10px);

    border-color: #58A6FF;

    box-shadow:
        0 0 10px rgba(88, 166, 255, 0.4),
        0 0 30px rgba(88, 166, 255, 0.2);
}

.border_py p{
    color: #7EE787;

    line-height: 1.7;
}

.border_py img{
    border: 2px solid #30363D;

    border-radius: 10px;

    width: 100%;
    transition: transform 0.3s ease;
    max-width: 200px;

    height: 100px;

    object-fit: cover;
}
.border_py:hover img{
    transform: scale(1.08);
}



.skills_myproj{
    display: flex;

    align-items: stretch;
    scroll-margin-top: 90px;
    justify-content: center;

    flex-wrap: wrap;

    gap: 30px;

    direction: ltr;

    width: 100%;
    box-sizing: border-box;
}

.border_proj{
    border: 2px solid #30363D;
    position: relative;
    scroll-margin-top: 90px;
    background-color: #161B22;
    overflow: hidden;
    width: 35%;
    min-width: 260px;
    flex: 1 1 260px;
    max-width: 420px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    min-height: 350px;

    text-align: center;

    border-radius: 10px;

    padding: 15px;

    box-sizing: border-box;

    direction: rtl;

    color: #7EE787;
}
.border_proj h3{
    font-family: Georgia, 'Times New Roman', Times, serif;
}
.border_proj::before{
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 100%;
    height: 2px;

    background: #7EE787;

    box-shadow:
        0 0 15px #7EE787;

    transition: left 0.5s ease;
}
.border_proj:hover{
    transform: translateY(-12px);
    border-color: #7EE787;

    box-shadow:
        0 0 12px rgba(126, 231, 145, 0.4),
        0 0 35px rgba(126, 231, 145, 0.15);
}
.border_proj img{
    width: 250px;

    max-width: 100%;

    height: 200px;

    object-fit: cover;

    margin: 0 auto;

    border-radius: 10px;

    border: 2px solid #58A6FF;
}

.border_proj a{
    font-size: 18px;

    border: 2px solid #30363D;

    background-color: #161B22;

    color: #58A6FF;

    border-radius: 10px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;

    text-align: center;

    display: inline-block;

    padding: 6px 10px;

    text-decoration: none;
}
.border_proj a:hover{
    transform: translateY(-3px);

    box-shadow:
        0 0 15px rgba(88, 166, 255, 0.25);
}

a:hover{
    color: #7EE787;
}

.border_proj p{
    color: #F0F6FC;

    line-height: 1.7;
}
.border_proj:hover::before{
    left: 0;
}

.border_proj h4{
    border: 2px solid #30363D;

    width: 100px;

    text-align: center;

    margin: 8px auto;

    border-radius: 10px;

    color: #58A6FF;
}



.learning_path{
    display: flex;

    align-items: center;
    scroll-margin-top: 90px;
    justify-content: center;

    gap: 20px;

    padding: 50px 20px;

    direction: ltr;

    flex-wrap: wrap;
}



.learning_path > .h2_sty{
    width: 100%;

    text-align: right;

    direction: rtl;

    margin-bottom: 20px;
}



.stop{
    color: #F0F6FC;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    direction: ltr;
}
.stop span{
    color: #7EE787;
}

.stop h3{
    margin: 0;

    text-align: center;
    font-size: 15px;
}



.line{
    width: 70px;

    height: 2px;

    background-color: #58A6FF;
    position: relative;

    box-shadow:
        0 0 8px rgba(88, 166, 255, 0.35);

    animation: lineGlow 2s ease-in-out infinite alternate;
    flex-shrink: 0;
}
@keyframes lineGlow{
    from{
        opacity: 0.5;
    }
    to{
        opacity: 1;
    }
}



.logo_lpath{
    border: 2px solid #F0F6FC;
    transform: scale(1.12);

    border-color: #58A6FF;

    box-shadow:
        0 0 20px rgba(88, 166, 255, 0.4);
    border-radius: 100%;
    width: 100px;

    height: 100px;

    object-fit: cover;
}



.footer{
    direction: rtl;
    text-align: center;
}
.footer h2{
    text-align: center;
    color: #58A6FF;
    font-size: clamp(20px, 4vw, 26px);
}

.footer p{
    color: #F0F6FC;

    line-height: 2;
    font-size: clamp(14px, 2.5vw, 16px);
}

.fotter_border{
    color: #F0F6FC;

    display: flex;

    flex-direction: row;
    align-items: center;

    justify-content: center;

    gap: 30px;

    direction: ltr;
}

.fotter_border img{
    border: 2px solid #30363D;

    border-radius: 10px;

    width: 50px;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    height: 50px;

    object-fit: cover;
}
.fotter_border a:hover img{
    transform:
        translateY(-8px)
        scale(1.08);

    border-color: #58A6FF;

    box-shadow:
        0 0 20px rgba(88, 166, 255, 0.35);
}


@media (max-width: 900px){

    .navbar{
        gap: 16px;
        padding: 8px 14px;
        top: 10px;
    }

    .navbar a{
        font-size: 14px;
    }

    .header_style{
        gap: 30px;
        padding-top: 90px;
    }

    .skills{
        flex-wrap: wrap;
    }

    .border_py{
        width: 28%;
    }

    .skills_myproj{
        flex-wrap: wrap;
    }

    .border_proj{
        width: 40%;
    }

    .about_content{
        gap: 30px;
    }

    .learning_path{
        gap: 14px;
    }

    .line{
        width: 40px;
    }
}


@media (max-width: 600px){

    body{
        padding: 10px;
    }

    .navbar{
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 15px;
        gap: 10px 16px;
    }

    #neural_bg{
        width: 100%;
        height: auto;
    }

    .header_style{
        flex-direction: column-reverse;
        gap: 20px;
        padding-top: 10px;
        text-align: center;
        min-height: auto;
    }

    .header_style > div{
        text-align: center;
        max-width: 100%;
    }

    .header_style h1,
    .header_style h3,
    .header_style p{
        text-align: center;
    }

    .header_style h1{
        transform: none;
    }

    .header_style img{
        width: 65%;
        max-width: 260px;
    }

    .about_content{
        flex-direction: column;
    }

    .about_content p{
        min-width: 0;
        text-align: right;
    }

    .img_he{
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    .skills{
    direction: rtl;
    flex-wrap: nowrap;
    padding-top: 20px;
    padding-bottom: 25px;
    overflow-x: auto;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding-bottom: 10px;
}

.border_py{
    direction: rtl;
    flex: 0 0 auto;
    width: 78%;
    min-width: 0;
    scroll-snap-align: center;
    min-height: auto;
}

.skills_myproj{
    direction: rtl;
    padding-top: 20px;
    padding-bottom: 25px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 10px;
}

.border_proj{
    direction: rtl;
    flex: 0 0 auto;
    width: 85%;
    min-width: 0;
    max-width: 100%;
    scroll-snap-align: center;
    min-height: auto;
}

.skills::-webkit-scrollbar,
.skills_myproj::-webkit-scrollbar{
    display: none;
}
    .learning_path{
        flex-direction: column;
        gap: 10px;
        padding: 30px 10px;
    }

    .line{
        width: 2px;
        height: 30px;
    }

    .learning_path > .h2_sty{
        text-align: center;
    }

    .fotter_border{
        flex-wrap: wrap;
        gap: 18px;
    }
}