@font-face {
  font-family: 'fa1';
  font-weight: 400;
  font-display: swap;
  src: url(../font/p.ttf) format('truetype');
}
@font-face {
  font-family: 'fa2';
  font-weight: 400;
  font-display: swap;
  src: url(../font/h12.ttf) format('truetype');
}
:root {
    --main-color: #514b82;
    --gradient-color-1: #3ac2ff;
    --gradient-color-2: #2f56ff;
    --dark-text-color: #1d2f50;
    --h-text-color: #30313e;
    --light-text-color: #7a7d91;
    --background-light: #f7f8fd;
    --card-background-color: #fff;
    --shadow-base: 0 2px 8px 0 rgba(99,99,99,0.2);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--background-light);
    font-family: 'fa1', sans-serif;
    overflow-x: hidden; 
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style-type: none;
}
#sc {
    position: fixed;
    z-index: 2;
    inset: 0px;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}
/* Header Section */
header {
    max-width: 1300px;
    margin: 0 auto;
}
.nav {
    z-index: 3;
    display: grid;
    grid-template-columns: auto 0.9fr auto; 
    align-items: center;
    width: 100%;
    background-color: var(--card-background-color);
    margin-top: 0.8rem;
    border-radius: 12px;
    box-shadow: var(--shadow-base);
    padding: 0.8rem 2rem;
    position: relative;
}
#close{
  font-size:18px;
}
.left-nav {
    height: 100%;
    
}
.name h3 {
    font-family: 'Syne', sans-serif;
    color: var(--dark-text-color);
    font-size: 1.1rem;
}
.nav-list, .left-nav {
    display: flex;
    align-items: center;
}
.menu ul {
    display: flex;
    justify-content: flex-start;
    height: 100%;
    gap: 5px;
    flex-direction: row-reverse;
}
.menu ul li a {
    color: var(--dark-text-color);
    padding: 10px 15px;
    border-radius: 22px;
    font-weight: normal;
    transition: all 0.2s ease-in-out;
}
.menu ul li a:hover {
    background-image: linear-gradient(71deg ,var(--gradient-color-1) 50%,var(--gradient-color-2));
    color: #fff;
    transform: translateY(-2px); 
}
.right-nav {
    justify-content: flex-end;
    display: flex;
    align-items: center;
}
.user {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.status {
  display:none;
    width: 60px;
    background-color: #edfdfa;
    padding: 0.4rem;
    border-radius: 4px;
    text-align: center;
    color: #1f927f;
    font-size: 0.7rem;   
}
.logo {
    width: 35px;
    height: 35px;
    margin-right:6px;
}
.logo img {
    border-radius: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.menu-mobile {
    display: none;
    cursor: pointer;
    align-self: center;
    justify-self: end;
}
.menu-mobile svg {
    width: 24px;
    height: 24px;
    margin-top:5px;
    margin-left:5px;
    color: var(--dark-text-color);
}

/* Biography Section */
.biography {
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: var(--shadow-base);
    border-radius: 8px;
    
}
.bio-data {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(99, 99, 99, 0.2); 
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: var(--card-background-color);
}

.profile, .bio {
    box-sizing: border-box;
    z-index: 0;
}
.prof {
    background-color: var(--card-background-color);
    border-radius: 8px 8px 0 0;
    height: 100%;
}
.bg-prof {
    width: 100%;
    height: 220px;
    position: relative;
    background: url(../image/1.jpg) no-repeat top center;
    background-size: cover;
    overflow: hidden;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.bg-prof img {
    width: 100%;
    height: 100px;
    display: block;
    position: absolute;
    bottom: -60px;
    right: 0;
    object-fit: cover;
}
.img-prof {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    box-shadow: 0 4px 0 #eeeff3;
    margin: -110px auto 0;
    position: relative;
}
.img-prof img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--card-background-color);
    box-shadow: var(--shadow-base);
}
.content-prof {
    padding: 20px;
    text-align: center;
    width: 100%;
}
.content-prof h1,
.content-prof h2 {
    width: 100%;
    line-height: 1.7;
}
.content-prof h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text-color);
    margin-bottom: 10px;
}
.content-prof h2 {
    font-size: 1.2rem;
    color: var(--light-text-color);
    font-weight: 700;
}
.content-prof h2 a {
    color: var(--main-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}
.content-prof h2 a:hover {
    color: var(--gradient-color-2);
}

.socials {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 15px;
    border-radius: 16px;
    margin-top: 20px; 
    background-color: #f0f2f7;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    width:90%;
}
.socials li {
    margin: 0 12px;
    position: relative;
}
.socials li svg {
    width: 30px; 
    height: 30px;
    color: var(--dark-text-color);
    transition: transform 0.2s ease, color 0.2s ease;
}
.socials li svg:hover {
    transform: scale(1.1);
    color: var(--main-color);
}
.socials li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 25px;
    background-color: #bbb;
}
.socials a {
    text-decoration: none;
    color: var(--dark-text-color);
    padding: 8px;
}
.bio {
    background-color: var(--card-background-color);
    border-radius: 0 0 8px 8px;
    position: relative;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    direction: rtl;
}
.bio h2 {
    text-align: right;
    font-size: 24px;
    color: var(--dark-text-color);
    margin-bottom: 15px;
}
.bio p, .about p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.line {
    background-color: #e0e0e0;
}

/* Common Box-shadow and Activity Styles */
.box-shadow {
    direction: rtl;
    box-shadow: var(--shadow-base);
    border: 1px solid #e0e0e0;
    background-color: var(--card-background-color);
    border-radius: 8px;
    margin: 10px auto 10px auto;
    max-width: 1200px;
    
}
.activity {
    margin: 20px 0 20px;
    position: relative;
    line-height: 25px;
    height: 25px;
    border-right: 4px solid var(--main-color);
}
.activity h2 {
    line-height: 25px;
    font-size: 20px;
    font-weight: 700;
    padding-right: 15px;
    color: var(--dark-text-color);
}
.inner {
    padding: 0 20px 10px;
}

/* Progress Bars (Skills Section) */
.progress {
    width:100%;
    height:15px;
    border-radius: 5px;
    color:#514b82;
    border:1.5px solid;
    position: relative;
    margin:10px 0;
    overflow: hidden;
}
.progress::before {
    content: "";
    position: absolute;
    left: 0;
    height: 80%;
    margin:1px;
    width: 0;
    border-radius: inherit;
    background: currentColor;
    animation: progress 3s both;
    animation: progress-fill 2s forwards ease-out;
}
@keyframes progress-fill {
    from { width: 0; }
    to { width: var(--percent); }
}
.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5px;
    margin-bottom: 5px;
}
.item span {
    font-size: 1.1rem;
    color: var(--main-color);
    font-weight: bold;
}
.item h4 {
    font-size: 1.2rem;
    color: var(--dark-text-color);
}
  .inners {
            padding: 0 20px 10px;
            display: flex;
            flex-wrap: wrap;
        }
        .inner ul {
            display: flex;
            flex-wrap: wrap;
        }
 .inners .con {
            display: flex;
            flex-wrap: wrap;
        }
        .inner ul li {
            width: 25%;
            padding-right: 13px;
            line-height: 25px;
            margin-bottom: 8px;
            font-size: 15px;
            position: relative;
        }
 .inners .con {
            width: 33%;
            padding-right: 13px;
            line-height: 25px;
            margin-bottom: 8px;
            font-size: 15px;
            position: relative;
        }
.inner ul li {
    position: relative;
}

.inner ul li:before {
    width: 4px;
    height: 4px;
    border-radius: 25%;
    background-color: var(--main-color);
    position: absolute;
    right: -2.2px;;
    top: 11.8px;
    content: '';
}

.inner ul li:after {
    width: 6px;
    height: 6px;
    border-radius: 25%;
    border: 1px solid var(--main-color);
    position: absolute;
    right: -4px;
    top: 10px;
    content: '';
}

/* Slider Section */
.slider {
    direction: rtl;
    overflow: hidden;
    width: 95%;
    margin: auto;
    position: relative;
    margin-bottom: 10px;
    
}
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    
}
.slide {
    background-color: var(--card-background-color);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    border-radius: 8px;
    
}
.slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(99,99,99,0.3);
}
.cons {
    border-left: 1.2px solid var(--main-color);
    border-right: 1.2px solid var(--main-color); 
    border-radius: 8px;
    margin:5px;
    text-decoration: none;
    color: inherit; 
}
.button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius:8px;
  border: 1px solid #ccc;
  padding: 10px;
  cursor: pointer;
  top:140px;
  opacity:50%;
  color:#000;
  transition: all 0.2s ease-in-out;
}
.button:hover {
    background-color: var(--main-color);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}
.button.right {
    left: 5px;
}
.button.left {
    right: 5px;
}
.image {
    padding: .8px;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
.title {
    text-align: right;
    margin: 0;
    padding: 5px 10px;
    font-size: 1.3rem;
    color: var(--dark-text-color);
    font-weight: bold;
}
.text {
    text-align: right;
    margin: 0;
    padding: 5px 10px;
    font-size: 1rem;
    color: var(--light-text-color);
    line-height: 1.6;
}
.about{
  padding:15px;
}
.about h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--main-color);
}
/* Responsive*/
@media screen and (max-width: 770px) {
    .name h3 {
        font-size: 1.1rem;
    }
    .menu ul li a {
        font-size: 0.9rem;
    }
    .active {
        padding: 8px;
    }
    .status {
        display:block;
    }
    .logo {
        width: 45px;
        height: 45px;
    }
    .menu-mobile {
        display: block;
    }
    .menu {
        position: fixed;
        right: -100%;
        top: 0;
        background-color: var(--card-background-color);
        box-shadow: 0 8px 16px rgba(99,99,99,0.2);
        width: 55%;
        height: 100%;
        transition: right 0.5s ease-in-out;
        z-index: 100;
        padding-top: 20px;
    }
    .menu ul {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 60px;
        gap: 0;
    }
    .menu ul li {
        width: 100%;
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
    }
    .menu ul li:last-child {
        border-bottom: none;
    }
    .menu ul li a {
        display: block;
        text-align: right;
        padding: 8px 0;
        font-size: 1rem;
    }
    .menu ul span {
        display: block;
        background-color: transparent;
        padding: 10px;
        position: absolute;
        top: 15px;
        left: 20px;
        font-size: 2rem;
        color: var(--dark-text-color);
        cursor: pointer;
    }
    .nav {
        grid-template-columns: auto 1fr auto; 
        padding: 1rem 1.5rem;
    }
    .biography {
        margin: 15px auto;
    }
    .profile {
        border-radius: 8px 8px 0 0;
        padding-bottom: 20px;
    }
    .content-prof h1 {
        font-size: 1.5rem;
    }
    .content-prof h2 {
        font-size: 1.1rem;
    }
    .socials {
        padding: 10px 0;
        margin-top: 15px;
    }
    .socials li {
        margin: 0 8px;
    }
    .socials li svg {
        width: 28px;
        height: 28px;
    }
    .socials li:not(:last-child)::after {
        right: -8px;
        height: 20px;
    }

    .line {
        width: auto;
        height: 1px;
    }
    .bio {
        border-radius: 0 0 8px 8px;
        padding: 15px;
    }
    .bio h2 {
        font-size: 22px;
    }
    .bio p, .about p {
        font-size: 1rem;
        line-height: 1.7;
    }
    .slider {
        padding: 0 5px;
        width: 100%;
        min-height: 320px;
    }
    .slide {
        min-width: 100%;
        margin: 8px;
        padding: 15px;
    }
    .image {
        height: 160px;
    }
    .title {
        font-size: 1.2rem;
    }
    .text {
        font-size: 0.9rem;
    }
    .inners .con {
        width: 50%;
        padding-right: 10px;
    }
    .item span, .item h4 {
        font-size: 1rem;
    }
    .inner ul li {
        width: 50%;
        font-size: 1rem;
        padding-right: 20px;
    }
   
}
@media screen and (max-width: 480px) {
    .nav {
        padding: 0.8rem 1rem;
    }
    .name h3 {
        font-size: 0.9rem;
    }
  
    .logo {
        width: 40px;
        height: 40px;
    }
    .menu {
        width: 75%;
    }
    .menu ul li a {
        font-size: 0.95rem;
    }
    .bio-data {
        border-radius:8px 8px 0 0;
    }
    .profile {
        padding-bottom: 10px;
    }
    .content-prof h1 {
        font-size: 1.3rem;
    }
    .content-prof h2 {
        font-size: 0.95rem;
    }
    .socials {
        padding: 8px 0;
        margin-top: 10px;
    }
    .socials li svg {
        width: 25px;
        height: 25px;
    }
    .socials li:not(:last-child)::after {
        right: -6px;
        height: 18px;
    }
    .bio {
        padding: 10px;
    }
    .bio h2, .activity h2 {
        font-size: 18px;
    }
    .bio p, .about p {
        font-size: 0.93rem;
        line-height: 1.6;
        margin-bottom: 8px;
    }
    .about h3 {
        font-size: 1.4rem;
    }
    .slider {
        padding: 0;
        min-height: 280px;
    }
    .slide {
        margin: 5px;
        padding: 10px;
    }
    .image {
        height: 120px;
    }
    .title {
        font-size: 1.1rem;
    }
    .text {
        font-size: 0.8rem;
    }
    /* Skills Responsive */
    .inners .con {
        width: 100%;
        padding-right: 0;
    }
    .item span, .item h4 {
        font-size: 0.95rem;
    }
    .progress {
        height: 15px;
    }

    /* Activities Responsive */
    .inner ul li {
        width: 50%;
        font-size: 0.9rem;
        padding-right: 15px;
    }
header ,.biography, .box-shadow{
  width:93%;
}
.menu ul {
      margin-top:-40px;
      
    }
}
@media screen and (min-width: 770px) {
    body {
        padding: 0 7%;
    }
    .menu-mobile {
        display: none;
    }
    .menu ul span {
        display: none;
    }
    .socials {
        direction: ltr;
    }
    .bio-data {
        direction: rtl;
        flex-direction: row;
        border-radius: 10px 0 0 4px;
        padding: 0;
    }
    .profile {
        flex: 0 0 40%;
        border-radius: 0 4px 10px 0;
        padding-bottom: 0;
    }
    .line {
        
        width: 1px;
        height: auto;
        
    }
    .bio {
        border-radius: 0 0 10px 4px;
        padding: 20px;
        flex: 1;
    }
    .inners .con {
        width: 33.33%;
    }
    .inner ul li {
        width: 25%;
    }
    .slider .slide {
        min-width: 33.33%;
    }
    .image {
        padding: .8px;
        height: auto;
    }
    .menu ul {
      margin-right:-50px;
      
    }
}

