@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&family=Turret+Road:wght@200;300;400;500;600;700;800&display=swap');

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    list-style-type: none;
    text-decoration: none;
    outline: none;
    padding: 0px;
    margin: 0px;
}

:root {
    --hue-color: 242;
    --skin-color: hsl(342, 92%, 46%);
    --mirage-color: hsl(210, 10%, 23%);
    --title-color: hsl(var(--hue-color), 8%, 95%);
    --text-color: hsl(var(--hue-color), 8%, 85%);
    --body-color: hsl(var(--hue-color), 19%, 5%);
    --box-color: hsl(var(--hue-color), 14%, 10%);
    --scroll-box-color: hsl(var(--hue-color), 12%, 38%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 26%);
    --body-font: 'Poppins', sans-serif;
    --signature-font: 'Turret Road', sans-serif;
}

/* classes for js  */
.on {
    color: var(--skin-color);
}

body.no-scroll {
    overflow: hidden;
}

.section-hidden {
    opacity: 0;
    transform: translateY(8rem);
    transition: all 0.8s ease-out;
}

.from-bottom {
    transform: translateY(80px);
}

.from-center {
    transform: scale(0.6);
}

.section-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* end classes for js */
/* main syles */
button {
    display: inline-flex;
    align-items: center;
    border: none;
    column-gap: .5rem;
    background-color: var(--skin-color);
    color: var(--title-color);
    padding: 0.75rem 1.4rem;
    border-radius: .3rem;
    font-weight: var(--font-medium);
    position: relative;
    z-index: 1;
    transition: .4s;
}

button::after {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--mirage-color);
    z-index: -1;
    transform-origin: center;
    transform: scale(0);
    border-radius: .25rem;
    transition: .3s;
}

button:hover::after {
    transform: scale(1);
}

/* end main  */
html {
    scroll-behavior: smooth;
}

body,
button,
input {
    font-family: var(--body-font);
    font-size: 1rem;
}

body {
    background-color: var(--body-color);
    color: var(--text-color);
}

/* Start header */
.header {
    height: 70px;
    background-color: var(--body-color);
    border-bottom: 1px solid var(--box-color);
    z-index: 1000;
}

.header .logo {
    padding: 20px;
    color: var(--skin-color);
    font-size: 2rem;
    font-weight: bold;
}

.header .nav ul li a {
    color: var(--title-color);
    font-weight: 500;
    text-decoration: none;
    transition: .4s;
}

.header .nav ul li a:hover {
    color: var(--skin-color);
}

.nav-toggle {
    color: var(--title-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding-right: 20px;
}

.nav-toggle i {
    transition: 0.3s;
}

.nav-toggle .fa-xmark {
    font-size: 1.6rem;
}

.header .nav ul.show-menu {
    right: 0;
}

@media (max-width: 1200px) {
    .header .container {
        max-width: 1140px;
    }

    .header .nav ul li a {

        font-size: 0.9rem;
    }

}

@media(max-width: 992px) {
    .header .nav .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--body-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        gap: 2.5rem;
        transition: right 0.4s;
        overflow-y: auto;
        justify-content: flex-start;
    }
}

@media(min-width: 993px) {
    .header .nav .nav-toggle {
        display: none;
    }
}

.nav-linkk {
    padding-bottom: 5px;
}

.nav-linkk.active {
    color: var(--skin-color) !important;
    font-weight: bold;
    border-bottom: 2px solid var(--skin-color);

}

/* End header T */
/* Start home  */
.home {
    background-color: #1b1c22;
    position: relative;
    min-height: 100vh;
}

.home .container .home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 5rem;
    padding-top: calc(70px + 4rem);
}

.home .container .home-content .text {
    justify-self: start;
    text-align: left;
    max-width: 550px;
}

.profile {
    position: relative;
    text-align: center;
}

.profile img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 4px solid var(--skin-color);
    box-shadow: 0 0 20px 4px var(--skin-color);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: 65%;
    transform: translateX(-50%);
    background-color: var(--skin-color);
    color: #fff;
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 14px;
    /* box-shadow: 0 4px 15px var(--skin-color); */
    animation: moveUpDown 2s ease-in-out infinite;
}

@keyframes moveUpDown {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -10px);
    }
}

.home .container .home-content .text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--skin-color);
    margin-bottom: 1.5rem;
}

.home .container .home-content .text h3 {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--title-color);
    margin-bottom: 1.5rem;
}

.home .container .home-content .text p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* Social Icons */
.icons {
    position: absolute;
    bottom: 5rem;
    right: 3rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.icons a {
    color: var(--skin-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.icons a:hover {
    color: var(--title-color);
    transform: scale(1.3);
}

/* end Social Icons */
@media(max-width: 767px) {
    .home .container .home-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding-top: calc(70px + 3rem);
    }

    .home .container .home-content .text {
        justify-self: center;
        text-align: center;
        max-width: 100%;
    }

    .home .container .home-content .text h1 {
        font-size: 3rem;
    }

    .profile img {
        width: 220px;
        height: 220px;
    }

    .experience-badge {
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        padding: 10px 15px;
        font-size: 13px;
    }

    .icons {
        position: relative;
        bottom: auto;
        right: auto;
        flex-direction: row;
        justify-content: center;
        margin-top: 2rem;
        margin-bottom: 1rem;
        gap: 2rem;
    }
}

/* End home  */

/* Start about  */
.about {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 3rem;
}

.section-title::before {
    content: attr(data-heading);
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--skin-color);
}

.about .container {
    padding: 0 1rem
}

.info {
    background-color: #1b1c22;
    color: var(--text-color);
    padding: 2.5rem;
    border-radius: 10px;
    max-width: 700px;
}

.info h2 {
    color: var(--skin-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.info p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.info p:last-child {
    margin-bottom: 0;
}

.about .about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: flex-start;
    max-width: 100%;
}

.about .boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.about .box {
    background-color: var(--box-color);
    padding: 1.5rem;
    border-radius: .75rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about .box:hover {
    transform: translateY(-5px);
}

.about .box i {
    font-size: 1.75rem;
    color: var(--skin-color);
    margin-bottom: 1rem;
    display: block;
}

.about .box h3 {
    font-size: 1.25rem;
    color: var(--title-color);
    margin-bottom: .5rem;
    display: flex;
    justify-content: center;
    align-self: center;
}

.about .box span {
    color: var(--text-color);
    font-size: .9rem;
}

.about-button {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 1.5rem;

}

@media (max-width: 992px) {
    .about .about-content {
        display: block;
    }

    .info {
        width: 100%;
        margin-bottom: 3rem;
        padding: 2rem 1rem;
    }

    .about .boxes {
        justify-self: center;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        width: 100%;
    }
}

/* End about  */
/* Start education  */
.education {
    padding-bottom: 5rem;
}

.education .education-content {
    position: relative;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.education .education-content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: var(--skin-color);
    transform: translateX(-50%);
}

.education .timeline-item {
    position: relative;
    width: 100%;
    padding: 1rem 2.5rem;
    margin-bottom: 2rem;
    background-color: var(--box-color);
    border-radius: .5rem;
}

.education .timeline-item:nth-child(odd) {
    left: 15px;
    padding-right: 4rem;
    text-align: right;
}

.education .timeline-item:nth-child(even) {
    right: 15px;
    margin-top: 19rem;
    padding-left: 4rem;
}

.education .timeline-item:last-child {
    margin-bottom: 0;
}

.education .timeline-icon {
    position: absolute;
    top: 1.2rem;
    width: 40px;
    height: 40px;
    background-color: var(--skin-color);
    border: 3px solid var(--body-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--title-color);
    z-index: 1;
}

.education .timeline-item:nth-child(odd) .timeline-icon {
    right: -20px;
}

.education .timeline-item:nth-child(even) .timeline-icon {
    left: -20px;
}

.education .timeline-item h3 {
    font-size: 1.25rem;
    color: var(--title-color);
    margin-bottom: .5rem;
}

.education .timeline-item span {
    font-size: .9rem;
    color: var(--skin-color);
    display: block;
    margin-bottom: 1rem;
}

.education .timeline-item p {
    color: var(--text-color);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .education .education-content {
        padding-right: 0;
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .education .education-content::before {
        left: 10px;
    }

    .education .timeline-item {
        margin-top: 2rem;
        padding: 1.5rem 1rem 1.5rem 3rem;
        text-align: left;
    }

    .education .timeline-item:nth-child(odd) {
        left: -15px;
        text-align: left;
        padding-right: 0.6rem;
        padding-left: 2rem;
    }

    .education .timeline-item:nth-child(even) {
        margin-top: 0rem;
        padding-right: 0.6rem;
        padding-left: 2rem;
    }

    .education .timeline-item:nth-child(odd) .timeline-icon {
        left: -20px;
    }

    .education .timeline-item .timeline-icon {
        left: -5px;
        right: auto;
    }

    .education .education-content::before {
        width: 2px;
        left: 15px;
    }
}

@media (max-width: 767px) {

    .education .timeline-item {
        padding: 1rem 1rem 1rem 2.5rem;
    }

    .education .timeline-item h3 {
        font-size: 1.1rem;
    }

    .education .timeline-item p {
        font-size: .9rem;
    }

    .education .timeline-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* End education  */
/* Start Skills  */
.skills {
    padding-bottom: 5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    justify-items: center;
    padding: 0;
    flex: 1;
}

.hex {
    position: relative;
    width: 150px;
    height: 170px;
    padding: 1rem;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
    background: var(--box-color);
    color: var(--title-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    border-left: 0.5rem solid var(--skin-color);
    border-right: 0.5rem solid var(--skin-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
    clip-path: polygon(50% 3%, 97% 26%, 97% 74%, 50% 97%, 3% 74%, 3% 26%);
    line-height: 1.2;
    font-size: 0.9rem;
    z-index: 1;
}

.hex:hover {
    transform: translateY(-10px);
    border-color: #fff;
    cursor: pointer;
}

@media (max-width: 767px) {
    .skills-grid {
        gap: 1rem;
    }

    .hex {
        width: 120px;
        height: 140px;
        font-size: 0.8rem;
    }
}

@media (max-width: 430px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }

    .hex {
        width: 110px;
        height: 130px;
        font-size: 0.7rem;
        border-left-width: 0.4rem;
        border-right-width: 0.4rem
    }
}

@media (max-width: 360px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 0.5rem;
    }

    .hex {
        width: 100px;
        height: 120px;
        font-size: 0.75rem;
        border-left-width: 0.35rem;
        border-right-width: 0.35rem
    }
}

/* End Skills  */
/* Start projects */
.projects {
    padding-bottom: 5rem;
}

.projects .container .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.projects .container .projects-grid .project-card {
    background-color: var(--box-color);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.projects .container .projects-grid .project-card:hover {
    transform: translateY(-10px);
}

.projects .container .projects-grid .project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.projects .container .projects-grid .project-info {
    padding: 20px;
}

.projects .container .projects-grid .project-info h3 {
    margin: 0;
    font-size: 20px;
    color: var(--title-color);
}

.projects .container .projects-grid .demo-btn {
    display: inline-block;
    margin-top: 10px;
    color: var(--skin-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.projects .container .projects-grid .demo-btn:hover {
    color: white;
}

/* ====== Modal ====== */
.modal {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    transform: scale(0);
    z-index: 1000;
}

.modal.active {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--box-color);
    border-radius: 20px;
    padding: 30px;
    width: 65%;
    padding: 50px 20px;
    height: auto;
    display: flex;
    flex-direction: row;
    gap: 30px;
    position: relative;
}


.modal-content img {
    width: 45%;
    height: auto;
    border-radius: 12px;
}

.modal-details h2 {
    margin: 0 0 10px;
    font-size: 24px;
    color: var(--title-color);
}

.modal-details p {
    color: var(--text-color);
    line-height: 1.6;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--skin-color);
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    color: #ff3380;
}

@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        width: 90%;
        height: auto;
    }

    .modal-content img {
        margin-top: 1rem;
        width: 100%;
    }
}

/* End projects */
/* Start Language */
.language {
    padding-bottom: 5rem;
}

.language-content {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.language-item {
    background-color: var(--box-color);
    padding: 2rem;
    border-radius: .75rem;
    text-align: center;
    flex-basis: 280px;
    transition: transform 0.3s ease;
}

.language-item:hover {
    transform: translateY(-5px);
}

.language-item h3 {
    font-size: 1.5rem;
    color: var(--skin-color);
    margin-bottom: .75rem;
}

.language-item p {
    color: var(--text-color);
}

/* End Language */
/* Start Contact */
.contact .contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.contact .information {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact .info-card {
    background-color: var(--box-color);
    padding: 2rem;
    border-radius: .75rem;
    /* text-align: center; */
}

.contact .info-card h3,
.contact .info-card h4 {
    color: var(--skin-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact .info-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.contact .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.contact .inf {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact .inf i {
    font-size: 2rem;
    color: var(--skin-color);
}

.contact .inf h4 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--title-color);
}

.contact .inf a,
.contact .inf span {
    text-decoration: none;
    color: var(--text-color);
    font-size: .9rem;
}

.contact .info-card .iconss {
    text-decoration: none;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.form {
    background-color: var(--box-color);
    padding: 2rem;
    border-radius: .75rem;
}

.form h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--skin-color);
}

.form .ro {
    margin-bottom: 2rem;
}

.form .in {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form label {
    margin-bottom: .5rem;
    color: var(--title-color);
}

.form input,
.form textarea {
    width: 100%;
    padding: .75rem;
    border-radius: .5rem;
    border: 1px solid var(--scroll-box-color);
    background-color: var(--body-color);
    color: var(--text-color);
}

.end-contact {
    text-align: center;
    /* margin-bottom: 3rem; */
    margin-top: 3rem;
    background-color: var(--box-color);
    padding: 2rem;
    border-radius: .75rem;

}

.end-contact h4 {
    color: var(--skin-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.end-contact p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .contact .contact-content {
        grid-template-columns: 1fr;
    }
}

/* End Contact */
/* Start Footer */
footer {
    position: relative;
    background-color: var(--box-color);
    padding-top: 3rem;
    margin-top: 5rem;
    border-top: 1px solid var(--scroll-box-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    font-size: 1.5rem;
    color: var(--skin-color);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a,
.footer-section li {
    color: var(--text-color);
    font-size: 1rem;
}

.footer-links ul {
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: .75rem;
}

.footer-links a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--skin-color);
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-social a {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s, transform 0.3s;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-social a:hover {
    color: var(--skin-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--scroll-box-color);
    padding: 1.5rem 0;
    text-align: center;
}

.copyright {
    color: var(--text-color);
    margin: 0;
}

@media (min-width: 768px) {
    .footer-social {
        flex-direction: row;
        gap: 1.5rem;
    }
}

.scroll-up {
    position: fixed;
    right: 2rem;
    bottom: -20%;
    background-color: var(--skin-color);
    padding: .5rem .8rem;
    border-radius: .4rem;
    font-size: 1.2rem;
    color: var(--title-color);
    transition: .4s;
    z-index: 100;
}

.scroll-up.show-scroll {
    bottom: 3rem;
}

/* End Footer */