/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #080a0a;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode',
        'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    overflow-x: hidden;
}


/* =========================================
   TOP MENU
========================================= */

.container {
    width: 100%;
    min-height: 80px;

    padding: 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #3b5265;
}

.menu-bar {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 7px 15px;

    background: rgba(255, 255, 255, 0.65);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 100px;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.menu-bar span {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    border-radius: 100px;

    transition: all 0.25s ease;
}

.menu-bar img {
    width: 35px;
    height: 35px;

    cursor: pointer;
}

.menu-bar span:hover {
    transform: translateY(-3px);
}


/* =========================================
   HERO SECTION
========================================= */

.box-bottom {
    width: 100%;
    min-height: 500px;

    display: grid;

    /*
       ستون اول = متن
       ستون دوم = عکس
    */
    grid-template-columns: 1fr 1fr;

    gap: 30px;

    align-items: center;

    padding: 60px 7%;

    background-color: #162936;

    color: white;
}


/* =========================================
   HERO IMAGE
========================================= */

.box-bottom > img {
    grid-column: 2;
    grid-row: 1;

    width: min(350px, 80%);

    height: auto;

    justify-self: center;

    border-radius: 50%;

    margin: 0;

    position: static;

    object-fit: cover;
}


/* =========================================
   HERO TEXT
========================================= */

.texts {
    width: 100%;

    grid-column: 1;
    grid-row: 1;

    padding: 20px;
}

.texts h1 {
    font-size: clamp(38px, 5vw, 60px);

    line-height: 1.15;

    margin: 0 0 30px;
}

.texts h3 {
    font-weight: 700;

    line-height: 1.8;

    margin: 0;

    overflow-wrap: anywhere;
}

.work {
    border-bottom: 2px solid greenyellow;
}


/* =========================================
   SOCIAL MEDIA
========================================= */

.social-media {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 30px;

    margin-top: 20px;
}

.social-media span {
    cursor: pointer;

    transition: 0.5s;
}

.social-media span:hover {
    transform: translateY(-3px);
}


/* =========================================
   MAIN BUTTONS
========================================= */

.buttons {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 30px;

    margin-top: 70px;

    font-family: 'Trebuchet MS',
        'Lucida Sans Unicode',
        'Lucida Grande',
        'Lucida Sans',
        Arial,
        sans-serif;
}

.buttons a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 190px;

    padding: 15px 30px;

    border-radius: 15px;

    color: white;

    font-size: large;
    font-weight: 700;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    transition: all 0.3s ease;

    cursor: pointer;
}

.buttons a:hover {
    background-color: #2d5672;

    transform: translateY(-3px);
}

.contact-me img,
.my-project img {
    margin-right: 10px;
}

.contact-me span,
.my-project span {
    padding: 4px;
}


/* =========================================
   ARROW
========================================= */

.arrow {
    width: max-content;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 70px auto 0;
}

.arrow img {
    width: 40px;

    cursor: pointer;

    transition: 0.3s;
}

.arrow img:hover {
    transform: translateY(3px);
}


/* =========================================
   SPACE
========================================= */

.profile-me-color {
    width: 100%;
    height: 100px;

    margin-top: 50px;
}


/* =========================================
   3 ITEM GRID
========================================= */

.grid-3item {
    width: 100%;

    min-height: 250px;

    display: grid;

    /*
       عکس | متن | فاصله | فاصله | دکمه | دکمه | فاصله
    */
    grid-template-columns:
        1.2fr
        4fr
        0.3fr
        0.3fr
        1.2fr
        1.2fr
        0.3fr;

    gap: 15px;

    align-items: center;

    padding: 5px 8%;
}

.grid-3item span {
    border-radius: 20px;

    color: white;

    font-size: 20px;

    padding: 10px;
}


/* =========================================
   PROFILE IMAGE
========================================= */

.img-grid-3item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-grid-3item img {
    width: min(200px, 100%);

    border-radius: 20px;

    margin: 0;

    display: block;
}


/* =========================================
   GRID TEXT
========================================= */

.text1 {
    line-height: 1.8;

    overflow-wrap: anywhere;
}


/* =========================================
   GRID BUTTONS
========================================= */

.button1,
.button2 {
    text-align: center;
}

.button1 a,
.button2 a {
    display: inline-block;

    background-color: rgba(51, 14, 100, 0.74);

    color: white;

    font-weight: 800;

    padding: 12px 30px;

    border-radius: 50px;

    white-space: nowrap;

    transition: 0.3s;
}

.button1 a:hover,
.button2 a:hover {
    background-color: #162936;

    transform: translateY(-3px);
}


/* =========================================
   LINE
========================================= */

.line-after {
    width: 70%;

    margin: 100px auto 0;

    border: 0;

    border-top: 1px solid rgba(255, 255, 255, 0.2);
}


/* =========================================
   ABOUT ME GRID
========================================= */

.grid-about-me {
    width: 100%;

    min-height: 400px;

    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    gap: 40px;

    align-items: start;

    padding: 0 5%;

    margin-top: 100px;

    text-align: center;
}

.grid-about-me > span {
    padding: 15px;

    font-style: oblique;

    min-width: 0;
}

.grid-about-me h1 {
    color: rgb(101, 110, 187);

    margin-top: 0;
}

.grid-about-me h4 {
    color: white;

    line-height: 1.9;

    overflow-wrap: anywhere;
}


/* =========================================
   CONTACT INFORMATION
========================================= */

.mail-etc {
    width: 100%;

    max-width: 350px;

    gap: 18px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    margin: 0 auto;
}

.input-box {
    display: flex;

    flex-direction: column;

    gap: 7px;

    width: 100%;
}

.input-box label {
    display: flex;

    color: aliceblue;

    font-size: 20px;
}

.mail-etc input {
    width: 100%;

    height: 45px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    background-color: rgb(42, 131, 123);

    color: white;

    padding: 10px 14px;

    border-radius: 10px;

    text-align: left;

    cursor: pointer;

    font-weight: 700;

    font-family: 'Segoe UI',
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;

    outline: none;
}


/* =========================================
   LARGE TABLETS / SMALL LAPTOPS
========================================= */

@media (max-width: 1100px) {

    .box-bottom {
        padding: 50px 5%;
    }

    .texts h1 {
        font-size: 48px;
    }

    .texts h3 {
        font-size: 16px;
    }

    .grid-3item {
        grid-template-columns:
            1fr
            3fr
            0.2fr
            0.2fr
            1fr
            1fr
            0.2fr;
    }

    .button1 a,
    .button2 a {
        padding: 10px 20px;
    }
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 800px) {

    /* HERO */

    .box-bottom {
        grid-template-columns: 1fr;

        min-height: auto;

        text-align: center;

        padding: 50px 7%;
    }

    .box-bottom > img {
        grid-column: 1;
        grid-row: 1;

        width: min(300px, 70vw);
    }

    .texts {
        grid-column: 1;
        grid-row: 2;

        padding: 10px 0;
    }

    .texts h1 {
        font-size: clamp(36px, 8vw, 50px);

        margin: 20px 0;
    }

    .texts h3 {
        margin: 0;

        font-size: 15px;

        line-height: 1.8;
    }


    /* SOCIAL */

    .social-media {
        gap: 20px;
    }


    /* BUTTONS */

    .buttons {
        margin-top: 50px;

        gap: 15px;
    }

    .buttons a {
        min-width: 170px;
    }


    /* 3 ITEM */

    .grid-3item {
        grid-template-columns: 1fr 1fr;

        gap: 25px;

        padding: 40px 7%;

        text-align: center;
    }

    .img-grid-3item {
        grid-column: 1 / 3;
    }

    .text1 {
        grid-column: 1 / 3;
    }

    .button1 {
        grid-column: 1;
    }

    .button2 {
        grid-column: 2;
    }


    /* ABOUT */

    .grid-about-me {
        grid-template-columns: 1fr;

        gap: 50px;

        padding: 0 7%;

        margin-top: 70px;
    }

    .grid-about-me > span {
        width: 100%;
    }

    .mail-etc {
        max-width: 500px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    /* TOP MENU */

    .container {
        min-height: 70px;

        position: fixed;
        bottom: 0;
        z-index: 1000;
        padding: 15px 10px;
    }

    .menu-bar {
        gap: 5px;

        padding: 6px 9px;
    }

    .menu-bar span {
        width: 38px;
        height: 38px;
    }

    .menu-bar img {
        width: 30px;
        height: 30px;
    }


    /* HERO */

    .box-bottom {
        padding: 40px 20px;
    }

    .box-bottom > img {
        width: min(260px, 75vw);
    }

    .texts h1 {
        font-size: 34px;

        line-height: 1.3;
    }

    .texts h3 {
        font-size: 14px;

        line-height: 2;
    }


    /* SOCIAL */

    .social-media {
        gap: 15px;

        padding: 0 15px;
    }

    .social-media img {
        width: 30px;
    }


    /* BUTTONS */

    .buttons {
        flex-direction: column;

        gap: 15px;

        margin-top: 40px;

        padding: 0 25px;
    }

    .buttons a {
        width: 100%;

        min-width: 0;
    }


    /* ARROW */

    .arrow {
        margin-top: 50px;
    }

    .arrow img {
        width: 35px;
    }


    /* SPACE */

    .profile-me-color {
        height: 60px;

        margin-top: 60px;
    }


    /* 3 ITEM */

    .grid-3item {
        grid-template-columns: 1fr;

        gap: 25px;

        padding: 30px 20px;
    }

    .img-grid-3item {
        grid-column: 1;
    }

    .text1 {
        grid-column: 1;

        font-size: 16px;

        line-height: 1.9;
    }

    .button1,
    .button2 {
        grid-column: 1;

        width: 100%;
    }

    .button1 a,
    .button2 a {
        width: 100%;

        max-width: 250px;
    }


    /* LINE */

    .line-after {
        width: 80%;

        margin-top: 60px;
    }


    /* ABOUT */

    .grid-about-me {
        grid-template-columns: 1fr;

        gap: 40px;

        padding: 0 20px;

        margin-top: 60px;
    }

    .grid-about-me h1 {
        font-size: 28px;
    }

    .grid-about-me h4 {
        font-size: 14px;

        line-height: 2;
    }


    /* INPUTS */

    .mail-etc {
        width: 100%;

        max-width: 100%;

        gap: 15px;
    }

    .input-box label {
        font-size: 16px;
    }

    .mail-etc input {
        width: 100%;

        height: 45px;

        font-size: 13px;
    }
}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 380px) {

    .menu-bar {
        gap: 2px;

        padding: 5px 7px;
    }

    .menu-bar span {
        width: 34px;
        height: 34px;
    }

    .menu-bar img {
        width: 27px;
        height: 27px;
    }

    .box-bottom {
        padding: 30px 15px;
    }

    .box-bottom > img {
        width: 220px;
    }

    .texts h1 {
        font-size: 29px;
    }

    .social-media {
        gap: 12px;
    }

    .social-media img {
        width: 27px;
    }

    .grid-about-me {
        padding: 0 15px;
    }
}