* {
  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 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    position: relative;

}


.back-btn button {
    margin-bottom: 20px;
    background: #fff;
    border: none;
    padding: 4px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}


.title-back button img {
    width: 32px;
    height: auto;
}


.des-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 48px;
}

.des-btn p {
    font-family: satoshi;
    max-width: 900px;
    color: #292929;
}

.des-btn button {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    height: auto;
    background-color: #f2f2f2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    color: #121212;
    gap: 8px;
    margin-top: 22px;
    padding: 0 0 0 6px;
    border-radius: 50px;
    border: 0;
    font-size: 14px;
}

.des-btn img {
    width: 40px;
    height: 40px;
}

.des-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%;
}





.scrollable {
    width: auto;
    height: 500px;
    overflow: auto;
    border: 1px solid #ccc;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 24px;
    margin-top: 20px;
}

.scrollable img {
    width: 100%;
    height: auto;
}

.landing {
    margin-top: 80px;
}

.landing p {
    font-family: satoshi;
    font-size: 24px;
    color: rgb(150, 195, 15);
    text-align: center;
}


.mobilepic1 {
    margin-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
}

.mobilepic1 p {
    font-family: satoshi;
    font-size: 24px;
    color: rgb(150, 195, 15);
    text-align: center;
}


.mobilepic1 .img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 28px;
    flex-wrap: wrap;
}



.mobilepic1 img {
    width: 200px;
    height: auto;
    border-radius: 20px;

}









/*-------------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;
    }


    .mobilepic1 img {
        width: 50%; /* دو تا کنار هم */
    }

    .up-row,
    .down-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 16px !important;
    }


    #follower {
        display: none !important;
    }
}
