* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1.8s ease forwards;
}

.slide-up {
  transform: translateY(50px);
  opacity: 0;
  animation: slideUp 1s ease forwards;
}


@keyframes fadeIn {
  to {
    opacity: 1;
  }
}




body {
    font-family: satoshi, sans-serif;
    background-color: #f4f4f4;
    background-image: url('images/noise.png'), url('images/Line.svg');
    background-repeat: repeat, repeat-y;
    background-position: center top, center top;
    background-size: cover, auto;
    color: black;
}


#follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(99, 85, 255, 0.486);
    border: 2px solid rgba(99, 85, 255, 0.703);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: background 0.3s;
    z-index: 9999;

}

/* هدر */
header {
    padding: 16px 28px;
    background-color: #f5f5f5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 95%;
    max-width: 1220px;
    left: 50%;
    transform: translateX(-50%);
    top: 16px;
    z-index: 100;
    border-radius: 20px;
}

/* ناوبری */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.menu {
    list-style: none;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.menu li a {
    color: black;
    text-decoration: none;
    font-weight: 500;
}

.menu .service {
    font-weight: 700;
    color: #3D79F0;
}

.menu li a:hover {
    color: #ff3838;
}


.right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}


.social-media {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-media img {
    width: 24px;
    height: 24px;
}


.actions {
    display: flex;
    gap: 8px;
}

button.Lang,
button.download-cv {
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

button.Lang {
    background: transparent;
    border: 1px solid #BCBCBC;
    color: black;
}

button.download-cv {
    background: transparent;
    border: 1px solid #ff3838;
    color: black;
    height: 100%;
}

button.Lang:hover {
    background-color: rgb(239, 239, 239);
}

button.download-cv:hover {
    background-color: rgb(255, 198, 198);
}

.content {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1220px;
    padding: 80px 20px;
    margin-top: 50px;
    font-family: "Noto Serif", serif;
    font-weight: 400;
}

.title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(#E42424, #3D79F0, #7F178F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 14px;
}

.line {
    width: auto;
    height: 1px;
    background-color: #D7D7D7;
    border-radius: 100%;
    margin-bottom: 50px;
}


.skills {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    font-family: satoshi;
    font-size: 16px;
}

.xd {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    padding: 12px 12px;
    border-radius: 12px;
    background-color: #F1F1F1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    flex-basis: calc(33.33% - 12px);
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.figma {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    padding: 12px 12px;
    border-radius: 12px;
    background-color: #f9e4ff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    flex-basis: calc(33.33% - 12px);
    flex-grow: 1;
}


.Photoshop {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    padding: 12px 12px;
    border-radius: 12px;
    background-color: #F1F1F1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    flex-basis: calc(33.33% - 12px);
    flex-grow: 1;
}


.bg-line {
    display: flex;
    width: 80%;
    height: 8px;
    border-radius: 4px;
    background-color: #e3e3e3;
    flex-wrap: wrap;
}

.figma .bg-line {
    background-color: #d9bdf0;
}

.in-line {
    display: flex;
    border-radius: 4px;
    flex-wrap: wrap;
    margin: 2px;
}

.figma .in-line {
    width: 100%;
    height: auto;
    background-color: #3D79F0;
}

.xd .in-line {
    width: 88%;
    height: auto;
    background-color: #3D79F0;
}

.Photoshop .in-line {
    width: 70%;
    height: auto;
    background-color: #3D79F0;
}


.skill-abiliti {
    width: auto;
    margin-top: 50px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title-line {
    display: flex;
    align-items: center;
}

.title-line h3 {
    font-family: "Noto Serif", serif;
    font-size: 24px;
    font-weight: 500;
}

.line-e {
    width: 100%;
    border: 1px solid #D7D7D7;
    margin-top: 4px;
}

.skill-box {
    width: auto;
    height: auto;
    margin-top: 28px;
}

.up-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}


.skill-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 23.5%;
    height: auto;
    text-align: center;
    background-color: #F7F7F7;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 16px;
}

.skill-1 img {
    width: 80px;
    height: auto;
}

.skill-1 p {
    margin-top: 10px;
    font-size: 14px;
    font-family: satoshi;
}

.down-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.skill-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 23.5%;
    height: auto;
    text-align: center;
    background-color: #F7F7F7;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 16px;
}

.skill-1:hover,
.skill-2:hover {
    transition: ease-in-out all 0.2s;
    box-shadow: 0 14px 15px rgba(0, 0, 0, 0.05);
    transform: scale(1.03);
}

.skill-2 img {
    width: 70px;
    height: 70px;
}

.skill-2 p {
    margin-top: 10px;
    font-size: 14px;
    font-family: satoshi;
    max-width: 300;
    white-space: normal;
}

.lang {
    width: auto;
    margin-top: 50px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title-line {
    display: flex;
    align-items: center;
}

.title-line h3 {
    font-family: "Noto Serif", serif;
    font-size: 24px;
    font-weight: 500;
}

.line-e {
    width: 100%;
    border: 1px solid #D7D7D7;
    margin-top: 4px;
}


.lang-sec {
    display: flex;
    width: auto;
    height: auto;
    margin-top: 28px;
    gap: 16px;
}

.persian {
    display: flex;
    align-items: center;
    width: 100%;
    height: auto;
    background-color: #F7F7F7;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 12px;
    gap: 12px;
    border-radius: 8px;
    font-family: satoshi;
}

.usa {
    display: flex;
    align-items: center;
    width: 100%;
    height: auto;
    background-color: #F7F7F7;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 12px;
    gap: 12px;
    border-radius: 8px;
    font-family: satoshi;
}


.btn-n-p {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.previous-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 45px;
    bottom: 110px;
    font-family: satoshi;
    font-size: 12px;
    background-color: transparent;
    border: 1px solid #8b8b8b;
    color: #121212;
    border-radius: 12px;
    width: 50px;
    height: auto;
    padding: 10px 12px;
    text-align: center;
    cursor: pointer;
    z-index: 999;
}


.previous-page:hover {
    background-color: #e7e7e7;
}

.next-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 45px;
    bottom: 20px;
    font-family: satoshi;
    background-color: #3D79F0;
    color: #f4f4f4;
    border-radius: 12px;
    width: 50px;
    height: auto;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    animation: movedown 2s ease-in-out infinite;
    z-index: 999;
    border: 0;
}

.next-page:hover {
    background-color: #185eea;
    box-shadow: 0 4px 10px rgba(101, 63, 225, 0.05);
}

@keyframes movedown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}




/*-------------Responsive------------*/
@media (max-width: 768px) {

    header {
        justify-content: space-between;
        align-items: center;
        top: 8px;
        padding: 16px 16px;
        flex-wrap: wrap;
    }

    .nav {
        display: flex;
        align-items: center;
    }

    .social-media {
        display: none;
    }

    .menu {
        list-style: none;
        gap: 0;
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
    }

    .menu a {
        display: none;
    }

    .menu a.service {
        display: inline-block;
        margin-right: auto;
    }

    .right {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    button.Lang,
    button.download-cv {
        padding: 6px 10px;
        font-size: 13px;
    }

    .actions {
        gap: 6px;
    }

    .social-media {
        display: none;
    }

    .skills {
        width: 100%;
        flex-direction: column;
        display: flex;
    }

    .skill-1 {
        width: 100%;
    }

    .skill-2 {
        width: 100%;
    }



    #follower {
        display: none !important;
    }
}