* {
  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;
  overflow-x: hidden;
}


#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;
}

my-header {
  display: block;
  width: 100%;
}


/* هدر */
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 .Portfolio {
  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: 120px;
}


.post1 {
    background-image: url('images/p-post.svg');
    background-position: center top, center top;
    background-size: cover, auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    flex-direction: row;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 100px;
    margin-top: -50px;
}


.p-pic {
    position: relative;
    width: 400px;
    height: 400px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    display: flex;
}

.pic1 {
    position: absolute;
    width: 100%;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.p-pic img {
  transition: transform 0.6s ease; /* برای انیمیشن نرم */
}

.p-pic img:hover {
  transform: translateY(-10px); /* حرکت به سمت بالا */
}


.txt-btn {
    margin-left: 28px;
}

.txt-btn a {
    display: flex;
    width: fit-content;
    height: fit-content;
}

.txt-btn h3 {
    font-family: 'Noto Serif';
    font-weight: 500;
    font-size: 20px;
    margin-top: 12px;
}

.txt-btn p {
    white-space: wrap;
    max-width: 450px;
    font-family: satoshi;
    font-size: 16px;
    margin-top: 12px;
    color: #292929;
}

.txt-btn button {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 135px;
    height: auto;
    background-color: #F3F3F3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: #121212;
    gap: 8px;
    margin-top: 14px;
    padding: 6px;
    border-radius: 50px;
    border: 0;
    font-size: 14px;
}

.txt-btn img {
    width: 40px;
    height: 40px;
}

.txt-btn .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-image: linear-gradient(to right, #E42424, #3D79F0, #7F178F);
    border-radius: 50%;
}





.post2 {
    background-image: url('images/p-post.svg');
    background-position: center top, center top;
    background-size: cover, auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    flex-direction: row;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 100px;
    margin-top: 30px;

}


.post3 {
    background-image: url('images/p-post.svg');
    background-position: center top, center top;
    background-size: cover, auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    flex-direction: row;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 100px;
    margin-top: 30px;
}


.post4 {
    background-image: url('images/p-post.svg');
    background-position: center top, center top;
    background-size: cover, auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    flex-direction: row;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 100px;
    margin-top: 30px;
}


.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.Portfolio {
        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;
    }


    .post1 {
        flex-direction: column;
        gap: 0;
        padding: 20px;
        margin-top: -50px;
        align-items: center;
        justify-content: center;
    }

    .post2 {
        flex-direction: column;
        gap: 0;
        padding: 20px;
        margin-top: -50px;
        align-items: center;
        justify-content: center;
        margin-top: 30px;
    }

    .post3 {
        flex-direction: column;
        gap: 0;
        padding: 20px;
        margin-top: -50px;
        align-items: center;
        justify-content: center;
        margin-top: 30px;
    }

    .post4 {
        flex-direction: column;
        gap: 0;
        padding: 20px;
        margin-top: -50px;
        align-items: center;
        justify-content: center;
        margin-top: 30px;
    }

    .p-pic {
        order: -1;
        width: 300px;
        height: 300px;
        margin: 0 auto;
        flex-direction: column;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pic1 {
        width: 120%;
        height: 100%;
    }

    .txt-btn {
        margin-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .txt-btn h3 {
        font-size: 18px;
        text-align: center;
    }

    .txt-btn p {
        font-size: 14px;
        text-align: center;
    }

    .txt-btn button {
        justify-content: center;
    }

    #follower {
        display: none !important;
    }
}





@media (max-width: 480px) {
    .p-pic {
        width: 200px;
        height: 200px;
    }

    .txt-btn p {
        font-size: 13px;
    }

    .txt-btn h3 {
        font-size: 16px;
    }

    #follower {
        display: none !important;
    }
}