* {
  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 .contact {
    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;
}


.t-p {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}



.t-p p {
    font-family: satoshi;
    font-weight: 400px;
    color: #4A4A4A;
    text-align: center;
    max-width: 500px;
}


.contact-input {
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 38px;
}

.f-l {
    display: flex;
    gap: 16px;
}


.e-f {
    display: flex;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 300px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 14px;
    color: #121212;
    font-family: satoshi;
}

.form-group input {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background-color: #EBEBEB;
    font-size: 14px;
    color: #333;
    border: 1px solid #E4E4E4;
    outline: none;
}

.form-group input::placeholder {
    color: #999;
}


.form-message {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}


.form-message label {
    font-family: satoshi;
    font-size: 14px;
}


.form-message textarea {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background-color: #EBEBEB;
    font-size: 14px;
    color: #333;
    border: 1px solid #E4E4E4;
    outline: none;
    width: 620px;
    height: 200px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    vertical-align: top;
    line-height: 1.5;
    resize: none;
}

.form-message textarea::placeholder {
    font-family: satoshi;
    color: #999;
}


.send-button {
    background-color: black;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-left: 450px;
}

.communication {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 24px;
}

.communication h3 {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(to right, #f00, #3D79F0, #0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.row-up {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    padding-left: 14px;
}


.row-up img {
    width: 24px;
    height: 24px;
}


.row-up .item {
    background-color: #F8F8F8;
    width: 250px;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-family: satoshi;
    display: flex;
    align-items: center;
    gap: 10px;
}

.row-up a {
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    width: 100%;
    align-items: center;
}

.row-up :hover {
    box-shadow: 0 4px 15px rgba(138, 26, 223, 0.03);
    background-color: #fcfcfc;
}


.down-row {
    display: flex;
    gap: 16px;
}


.down-row .item {
    background-color: #F8F8F8;
    width: 250px;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-family: satoshi;
    display: flex;
    align-items: center;
    gap: 10px;
}


.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: 50px;
    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;
}








@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.contact {
        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;
    }


    .form-message textarea {
        width: 100%;
    }

    .contact-input {
        display: block;
    }

    .f-l,
    .e-f,
    .down-row,
    .row-up {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .form-group {
        width: 100%;
        max-width: 100%;
    }

    .send-button {
        margin-left: 0;
        align-self: center;
    }

    .row-up .item,
    .down-row .item {
        width: 90%;
    }

    #follower {
        display: none !important;
    }
}