@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    font-size: 16px;
    padding-top: 80px;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

html {
    scroll-behavior: smooth;
}

/* ===== هدر ===== */
header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: black;
    padding: 15px 65px;
    align-items: baseline;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

section {
    padding: 100px 0;
}

.crimson {
    color: crimson;
}

.logo a {
    color: white;
    font-size: 35px;
    font-weight: 600;
}

.logo span {
    color: crimson;
}

.link ul {
    display: flex;
}

.link ul li {
    margin-left: 25px;
}

.link ul li a {
    font-size: 18px;
    font-weight: 500;
    color: white;
    transition: color 0.2s ease;
}

.link ul li a:hover {
    color: crimson;
}

/* ===== صفحه اصلی (Home) ===== */
.home {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-image: url('../img/me.png');
    background-position: right;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: whitesmoke;
}

.home-container {
    margin-left: 120px;
}

.o-text {
    font-size: 27px;
    color: black;
}

.t-text {
    font-size: 75px;
    font-weight: 600;
    color: black;
}

.th-text {
    font-size: 40px;
    margin: 5px 0;
    margin-bottom: 45px;
    color: black;
}

.btn {
    background: crimson;
    color: white;
    padding: 12px 36px;
    font-size: 25px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn:hover {
    color: crimson;
    background: transparent;
    border: 2px solid crimson;
}

/* ===== درباره من ===== */
.about-title h2 {
    font-size: 40px;
    font-weight: 500;
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 60px;
    position: relative;
}

.about-title h2::before {
    content: '';
    width: 161px;
    height: 3px;
    background-color: black;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

.about-title h2::after {
    content: 'who I am';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    padding: 5px;
    color: crimson;
    background: white;
    white-space: nowrap;
}

.about-img {
    width: 45%;
}

.about-img img {
    height: 400px;
    width: 400px;
    object-fit: cover;
    border-radius: 6px;
}

.about-content {
    display: flex;
    align-items: center;
    padding: 0 70px;
}

.about-content-des {
    width: 55%;
}

.about-content-title {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.about-description {
    width: 80%;
    margin-bottom: 20px;
    line-height: 22px;
    text-align: justify;
}

.about-content .btn {
    padding: 7px 17px;
    font-size: 22px;
}

/* ===== خدمات ===== */
.services {
    background: black;
}

.services-title h2 {
    font-size: 40px;
    font-weight: 500;
    text-align: center;
    position: relative;
    margin-bottom: 60px;
    padding-bottom: 20px;
    color: white;
}

.services-title h2::before {
    content: '';
    width: 180px;
    height: 3px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: white;
}

.services-title h2::after {
    content: 'what I provide';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px;
    font-size: 20px;
    background-color: black;
    color: crimson;
    white-space: nowrap;
}

.services-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 0 80px;
    gap: 30px;
    flex-wrap: wrap;
}

.services-content .card {
    width: calc(50% - 30px);
    background-color: #222;
    text-align: center;
    border-radius: 6px;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.services-content .card:hover {
    transform: translateY(-10px);
    background-color: crimson;
}

.card-box {
    transition: all 0.3s ease;
    color: white;
}

.card:hover .card-box-title {
    color: white;
}

.card:hover .card-box i {
    color: white;
}

.card:hover .card-box {
    transform: scale(1.05);
}

.card-box i {
    font-size: 50px;
    color: crimson;
    transition: color 0.3s ease;
}

.card-box-title {
    font-size: 25px;
    font-weight: 600;
    margin: 15px 0;
    color: crimson;
}

.card p {
    color: white;
    line-height: 1.5;
}

/* ===== مهارت‌ها ===== */
.skills-title {
    position: relative;
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 20px;
}

.skills-title h2 {
    font-size: 40px;
    font-weight: 500;
}

.skills-title h2::before {
    content: '';
    width: 161px;
    height: 3px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
}

.skills-title h2::after {
    content: 'what I know';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    color: crimson;
    background-color: white;
    font-size: 20px;
    padding: 5px;
    white-space: nowrap;
}

.skills-content {
    display: flex;
    justify-content: space-between;
    padding: 0 80px;
    margin: auto;
}

.skills-content-left {
    width: 50%;
}

.skills-content-right {
    width: 45%;
}

.skills-content-title {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.skills-content-description {
    text-align: justify;
    margin-bottom: 30px;
}

.skills-content-left .btn {
    font-size: 16px;
    padding: 8px 16px;
}

.bars {
    margin-bottom: 15px;
}

.info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.top {
    font-size: 18px;
    font-weight: 500;
}

.line {
    background-color: lightgray;
    width: 100%;
    height: 5px;
    position: relative;
}

.line::before {
    content: '';
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: crimson;
}

.line.one::before {
    width: 90%;
}

.line.two::before {
    width: 85%;
}

.line.three::before {
    width: 80%;
}

.line.four::before {
    width: 85%;
}

.line.five::before {
    width: 60%;
}

.line.six::before {
    width: 70%;
}

.line.seven::before {
    width: 80%;
}

/* ===== تیم ===== */
.teams {
    background-color: black;
}

.teams-title h2 {
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
    color: white;
}

.teams-title h2::before {
    content: '';
    width: 161px;
    height: 3px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
}

.teams-title h2::after {
    content: 'who with me';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    padding: 5px;
    background-color: black;
    color: crimson;
    white-space: nowrap;
}

.teams-container {
    width: 70%;
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.teams-container .card {
    width: 400px;
    background-color: #222;
    border-radius: 6px;
    padding: 25px 35px;
    text-align: center;
    margin: 20px;
    transition: all 0.3s ease;
}

.teams-container .card:hover {
    background-color: crimson;
}

.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
}

.card:hover .box {
    transform: scale(1.05);
}

.card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid crimson;
}

.card:hover img {
    border-color: white;
}

.text {
    font-size: 25px;
    font-weight: 500;
    margin: 10px 0 7px 0;
}

/* ===== تماس ===== */
.contact-title h2 {
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
}

.contact-title h2::before {
    content: '';
    width: 161px;
    height: 3px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
}

.contact-title h2::after {
    content: 'get in touch';
    position: absolute;
    left: 50%;
    bottom: -12px;
    padding: 5px;
    font-size: 20px;
    color: crimson;
    background-color: white;
    transform: translateX(-50%);
    white-space: nowrap;
}

.contact-contect {
    display: flex;
    justify-content: space-between;
    padding: 0 80px;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-content-left {
    width: 40%;
}

.contact-left-text p {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.contact-left-des {
    text-align: justify;
}

.icons {
    margin: 10px 0;
}

.icon {
    height: 70px;
    display: flex;
    align-items: center;
}

.icon i {
    font-size: 25px;
    color: crimson;
    width: 40px;
}

.icon .info {
    display: flex;
    gap: 5px;
    margin-left: 0;
}

.info .head {
    font-weight: 500;
}

.contact-content-right {
    width: 50%;
}

.contacr-right-text p {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.fields {
    display: flex;
    gap: 15px;
    width: 100%;
}

.fields .field {
    width: 50%;
    margin-bottom: 15px;
}

.field {
    width: 100%;
    height: 45px;
    margin-bottom: 15px;
}

.fields input {
    width: 100%;
    height: 45px;
    border: 1px solid lightgray;
    border-radius: 6px;
    outline: none;
    padding: 0 15px;
    font-size: 17px;
    transition: border-color 0.3s ease;
}

.fields input:focus {
    border-color: crimson;
}

.textarea textarea {
    width: 100%;
    height: 70px;
    border: 1px solid lightgray;
    border-radius: 6px;
    outline: none;
    padding: 12px 15px;
    font-size: 17px;
    resize: vertical;
    font-family: inherit;
}

.textarea textarea:focus {
    border-color: crimson;
}

.contact-content-right button {
    width: 170px;
    height: 47px;
    background: crimson;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.contact-content-right button:hover {
    background: transparent;
    border: 2px solid crimson;
    color: crimson;
}

/* ===== ریسپانسیو ===== */

/* تبلت */
@media (max-width: 1024px) {
    header {
        padding: 12px 25px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .link ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .link ul li {
        margin-left: 0;
    }

    .link ul li a {
        font-size: 14px;
    }

    .home {
        background-position: bottom center;
        background-size: 50%;
        padding-top: 80px;
        padding-bottom: 280px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .home-container {
        margin: 0;
        padding: 0 20px;
    }

    .t-text p {
        font-size: 40px;
    }

    .th-text {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .o-text {
        font-size: 20px;
    }

    .btn {
        padding: 8px 25px;
        font-size: 16px;
    }

    .about-content {
        flex-direction: column;
        padding: 0 20px;
        text-align: center;
    }

    .about-img {
        width: 100%;
        margin-bottom: 30px;
    }

    .about-img img {
        width: 250px;
        height: 250px;
    }

    .about-content-des {
        width: 100%;
    }

    .about-description {
        width: 100%;
    }

    .services-content {
        padding: 0 20px;
    }

    .services-content .card {
        width: calc(50% - 30px);
    }

    .skills-content {
        flex-direction: column;
        padding: 0 20px;
    }

    .skills-content-left {
        width: 100%;
        margin-bottom: 40px;
    }

    .skills-content-right {
        width: 100%;
    }

    .teams-container {
        width: 90%;
    }

    .teams-container .card {
        width: 100%;
        margin: 10px 0;
    }

    .contact-contect {
        flex-direction: column;
        padding: 0 20px;
    }

    .contact-content-left {
        width: 100%;
    }

    .contact-content-right {
        width: 100%;
    }

    .fields {
        flex-direction: column;
    }

    .fields .field {
        width: 100%;
    }

    .contact-content-right button {
        width: 100%;
    }
}

/* موبایل */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    body {
        padding-top: 110px;
    }

    .home {
        background-size: 65%;
        background-position: bottom 20px center;
        padding-bottom: 250px;
        min-height: 90vh;
    }

    .home-container {
        margin-top: -50px;
    }

    .t-text p {
        font-size: 32px;
    }

    .th-text {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .o-text {
        font-size: 18px;
    }

    .btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    .about-title h2,
    .services-title h2,
    .skills-title h2,
    .teams-title h2,
    .contact-title h2 {
        font-size: 28px;
    }

    .about-title h2::after,
    .services-title h2::after,
    .skills-title h2::after,
    .teams-title h2::after,
    .contact-title h2::after {
        font-size: 11px;
        white-space: nowrap;
    }

    .about-title h2::before,
    .services-title h2::before,
    .skills-title h2::before,
    .teams-title h2::before,
    .contact-title h2::before {
        width: 100px;
    }

    .skills-content-title {
        font-size: 20px;
    }

    .skills-content-description {
        font-size: 14px;
    }

    .card-box-title {
        font-size: 18px;
    }

    .card p {
        font-size: 13px;
    }

    .icon {
        height: 45px;
    }

    .icon i {
        font-size: 18px;
        width: 25px;
    }

    .info .head h4 {
        font-size: 13px;
    }

    .info p {
        font-size: 11px;
    }

    .contact-left-text p,
    .contacr-right-text p {
        font-size: 20px;
    }

    .contact-left-des {
        font-size: 13px;
    }

    .services-content .card {
        width: 100%;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .logo a {
        font-size: 24px;
    }

    .home {
        background-size: 75%;
        background-position: bottom 15px center;
        padding-bottom: 220px;
    }

    .home-container {
        margin-top: -40px;
    }

    .t-text p {
        font-size: 26px;
    }

    .th-text {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .o-text {
        font-size: 15px;
    }

    .btn {
        padding: 6px 18px;
        font-size: 13px;
    }

    .about-img img {
        width: 150px;
        height: 150px;
    }

    .about-content-title {
        font-size: 18px;
    }

    .about-description {
        font-size: 12px;
        line-height: 18px;
    }

    .card-box i {
        font-size: 30px;
    }

    .card-box-title {
        font-size: 16px;
    }

    .top {
        font-size: 12px;
    }

    .teams-container .card {
        padding: 12px 15px;
    }

    .text {
        font-size: 16px;
    }

    .card img {
        width: 80px;
        height: 80px;
    }

    .contact-left-text p,
    .contacr-right-text p {
        font-size: 18px;
    }
}