::-webkit-scrollbar,
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-track {
    width: 6px;
    border: none;
    background: transparent;
}

::-webkit-scrollbar-button,
::-webkit-scrollbar-track-piece,
::-webkit-scrollbar-corner,
::-webkit-resizer {
    display: none;
}

::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background-color: #8cbef6;
}

::-webkit-scrollbar-track {
    background-image: url("https://i.imgur.com/GvV1R30.png");
    background-repeat: repeat-y;
    background-size: contain;
}

body {
    margin: 0;
    height: 100vh;
    width: 100vw;
}

main {
    font-family: 'IRANYekanX';
    /*background-color: #b2bdd3;*/
    background-color: #3d638d;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: grid;
    grid-template-columns: repeat(12, [col-start] 1fr);
    grid-template-rows: auto;
    gap: 2px;
    background-color: #ffffff;
    height: 75%;
    width: 80%;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

.container > * {
    /*border: 1px solid green;*/
    border-radius: 10px;
    /*background-color: aliceblue;*/
    padding: 5px;
    grid-column: col-start / span 12;
}

/*////////...........sidebar...........//////////*/

.sidebar {
    background-color: #e9eaed;
    grid-column: col-start 1 / span 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    border-left: 1px dashed #1C6CCD;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.10);
    /*overflow-y: scroll;*/
    overflow-x: hidden;
    padding-bottom: 20px;
    padding-top: 20px;
}

.profile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.profile h1 {
    margin-bottom: 10px;
    margin-top: 0;
}

.profile p {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

.social i {
    font-size: 1.25rem;
    cursor: pointer;
}

.avatar {
    grid-column: col-start / span 12;
    height: 220px;
    width: 220px;
    background-color: slategrey;
    border-radius: 10px;
}

.btn {
    font-family: 'IRANYekanX';
    background-color: #1C6CCD;
    color: white;
    padding: 10px 45px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0d55ac; /* darker on hover */
}

/*////////..........content...........//////////*/

.content {
    grid-column: col-start 4 / span 9;
    grid-row: 1;
    overflow: auto;
}

.main-menu {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-menu button {
    font-family: 'IRANYekanX';
    background-color: rgba(100, 100, 100, 0);
    color: #595959;
    padding: 20px 25px;
    border: none;
    border-bottom: 1px solid #b3b3b3;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.main-menu button:hover {
    background-color: #f0f3fa; /* darker on hover */
}

.main-page-section {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, height 0s ease 0.5s;
}

.main-page-section.show {
    opacity: 1; /* Fade in the content */
    height: auto; /* Automatically adjust the height based on content */
    transition: opacity 0.5s ease, height 0s; /* Fade in smoothly */
}

.main-menu-btn.active {
    color: #1C6CCD;
    border-bottom: 2px solid #1C6CCD;
    font-weight: bold;
}

.main-page-section {
    padding: 0 25px;
}

.main-page-section > div > h2 {
    font-size: 1.2rem;
    color: #1C6CCD;
}

/*
about me
*/

.about-me-tag {
    display: flex;
    justify-content: space-around;
    font-size: 28px;
    padding-top: 1.8rem;
}

.about-me-tag > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-me-tag > div > i {
    font-size: 1.8rem;
    color: #1C6CCD;
}

.about-me-tag > div > p {
    font-size: 1rem;
    color: #4B4B4B;
}

/*
resume
*/

.resume-part {
    display: flex;
    flex-direction: row;
    justify-content: start;
}

.resume-part-info {
    width: 95%;
}

.resume-part-info > div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.resume-part-info > div > p {
    font-size: 1rem;
    font-weight: bold;
}

.resume-part-info > ul > li {
    color: #4B4B4B;
}

.resume-part-bar {
    position: relative;
    width: 4%;
    margin-top: 20px;
}

.resume-part-bar {
    border-right: 2px solid rgba(28, 108, 205, 0.5);
}

.resume-part-bar > i {
    position: absolute;
    left: 27px;
    top: -2px;
    font-size: 1rem;
    color: #1C6CCD;
}

.skills {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.skills > div {
    width: 50%;

}

.skills > div > h2 {
    font-size: 1.2rem;
    color: #1C6CCD;
}

/*
portfolio
*/
.portfolio-menu {
    /*width: 100%;*/
    display: flex;
    align-items: center;
    justify-content: start;
    margin-top: 12px;
}

.portfolio-menu-btn {
    font-family: 'IRANYekanX';
    background-color: rgba(100, 100, 100, 0);
    color: #595959;
    padding: 10px 10px;
    border: none;
    /*border-bottom: 1px solid #b3b3b3;*/
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.portfolio-menu-btn :hover {
    background-color: #f0f3fa; /* darker on hover */
}

.portfolio-section {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, height 0s ease 0.5s;
}


.portfolio-section.show {
    opacity: 1; /* Fade in the content */
    height: auto; /* Automatically adjust the height based on content */
    transition: opacity 0.5s ease, height 0s; /* Fade in smoothly */
    display: grid;
    grid-template-columns: repeat(3, [col-start] 1fr);
    gap: 10px;
    /*height: 100%;*/
    width: 100%;
    margin-top: 10px;
}

.portfolio-menu-btn.active {
    color: #1C6CCD;
    /*border-bottom: 2px solid #1C6CCD;*/
    font-weight: bold;
}

.portfolio-card {
    background-color: #f7f7f7;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: start;
    border: 1px dashed #1C6CCD;
    border-radius: 10px;
    /*box-shadow: -2px 0 15px rgba(0, 0, 0, 0.10);*/
    /*overflow-y: scroll;*/
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

.portfolio-card:hover {
    background-color: #e8e8e8; /* darker on hover */
}

.portfolio-card > img {
    margin: 10px;
    border-radius: 10px;
    width: 100%;
    max-width: 256px;
    height: 100%;
}

.portfolio-card > h3 {
    margin: 10px 0 0;
    color: #1C6CCD;
    font-size: 1.1rem;
    padding: 0 10px 0 0;
}

.portfolio-card > p {
    padding: 0 10px 0 0;
    font-size: 0.8rem;
    color: #4B4B4B;
}

.portfolio-card > h3 > a {
    text-decoration: none;
}

.about-project{
    cursor: pointer;
    font-size: 0.6rem !important;
    color: #0077aa !important;
}


/*............modal........*/
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 10px;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

/* The Close Button */
.close {
    color: #4B4B4B;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 16px;
    background-color: #e0e4ea;
    border-radius: 10px 10px 0 0;
    color: #4B4B4B;
}

.modal-body {padding: 2px 16px;}

.modal-footer {
    padding: 2px 16px;
    background-color: #e0e4ea;
    border-radius: 0 0  10px 10px;
    color: #4B4B4B;
}

@media (max-width: 1024px) {
    .sidebar {
        grid-column: col-start 1 / span 4;
        grid-row: 1;
    }

    .content {
        grid-column: col-start 5 / span 9;
    }

    .avatar {
        height: 164px;
        width: 164px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        grid-column: col-start 1 / span 4;
        grid-row: 1;
    }

    .content {
        grid-column: col-start 5 / span 9;
    }

    .avatar {
        height: 128px;
        width: 128px;
    }

    .sidebar > div > h1 {
        font-size: 1.5rem;
    }

    .sidebar > div > p {
        font-size: 1rem;
    }

}

@media (max-width: 576px) {
    .sidebar {
        grid-column: col-start 1 / span 12;
        grid-row: 1;
    }

    .content {
        grid-column: col-start 1 / span 12;
        grid-row: 2;
    }
}

/*@media (min-width: 768px) {*/
/*    .sidebar {*/
/*        grid-column: col-start 1 / span 3;*/
/*        grid-row: 1;*/
/*    }*/
/*    .content {*/
/*        grid-column: col-start 4 / span 9;*/
/*        grid-row: 1;*/
/*    }*/
/*}*/
