:root {
    --bg-color: rgba(252, 250, 238, 1);
    --txt-color: rgba(24, 24, 24, 1);
    --accent-color: rgba(242, 100, 48, 1);
    --secondary-color: rgba(247, 175, 143, 1);
}

.dark-mode {
    --bg-color: rgb(21, 22, 23);
    --txt-color: rgba(252, 250, 238, 1);
}

::-webkit-scrollbar {
    background-color: transparent;
    width: 12px;
}

::-webkit-scrollbar-thumb {
    background-color: rgb(198, 183, 167);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(255, 213, 168);
}

.logo-phone {
    display: none;
}

@font-face {
    font-family: 'kobe-regular';
    src: url(assets/fonts/kobe11-regular.ttf);
}

@font-face {
    font-family: 'kobe-black';
    src: url(assets/fonts/kobe11-black.ttf);
}

@font-face {
    font-family: 'kobe-italic';
    src: url(assets/fonts/kobe11-oblique.ttf);
}

@font-face {
    font-family: 'kobe-italic-black';
    src: url(assets/fonts/kobe11-blackoblique.ttf);
}

@font-face {
    font-family: dana;
    src: url(fa/fonts/DanaVF.woff2);
}

body {
    padding: 0;
    margin: 0;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth !important;
}

a {
    text-decoration: none;
    color: var(--txt-color);
}

img {
    display: block;
    max-width: 100%;
}

a:hover {
    color: var(--accent-color);
    transition: 0.1s;
}

p {
    font-family: 'Poppins';
    color: var(--txt-color);
}

nav {
    position: fixed;
    display: flex;
    height: 100dvh;
    width: 118px;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    margin-left: 50px;
    z-index: 200000;
}

ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    row-gap: -5px;
    padding: 0;
}

li {
    font-family: 'Poppins';
    font-size: 16px;
    font-weight: 400;
    color: var(--txt-color);
}

.language-button {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    font-family: dana;
    width: 73.16px;
    font-size: 14px;
    background-color: rgba(255, 180, 83, 0.2);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 5px;
    height: 30px;
    color: var(--txt-color);
    cursor: pointer;
}

.language-button:hover {
    background-color: rgba(255, 145, 0, 0.3);
    transition: 0.2s;
}

.language-button img {
    object-fit: contain;
    max-width: 30px;
    height: auto; /* Maintain aspect ratio */
}

.dark-mode .language-button img {
    filter: invert(1);
}

.dark-mode .language-button:hover {
    background-color: rgba(125, 71, 0, 0.3);
}

.dark-mode .language-button {
    background-color: rgba(91, 67, 47, 0.2);
}

.dark-mode-button {
    font-family: 'Poppins';
    background-color: transparent;
    backdrop-filter: blur(10);
    font-size: 14px;
    font-weight: 400;
    color: var(--txt-color);
    height: 30px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px var(--txt-color) solid;
    padding: auto;
    cursor: pointer;
}

.dark-mode-button:hover {
    background-color: var(--txt-color);
    color: var(--bg-color);
    transition: 0.2s;
}

.dark-mode .dark-mode-button:hover {
    background-color: var(--secondary-color);
    color: var(--bg-color);
    transition: 0.2s;
}

.dark-mode-li{
    padding: 250px 0 28px 0;

}

.dark-mode .dark-mode-button {
    color: var(--secondary-color);
    border: 1px var(--secondary-color) solid;
}

.overview-button {
    font-family: 'Poppins';
    background-color: transparent;
    backdrop-filter: blur(10);
    font-size: 14px;
    font-weight: 400;
    color: var(--txt-color);
    height: 30px;
    width: 100%;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px var(--txt-color) solid;
    padding: auto;
    cursor: pointer;
}

.overview-button:hover {
    background-color: #FECDB9;
    transition: 0.2s;
}

.dark-mode .overview-button:hover {
    background-color: var(--secondary-color);
    color: var(--bg-color);
    transition: 0.2s;
}

.dark-mode .overview-button {
    color: var(--secondary-color);
    border: 1px var(--secondary-color) solid;
}

.logo {
    font-family: 'Poppins';
    font-weight: 500;
    font-size: 24px;
    color: var(--secondary-color);
}

.social-medias-logo {
    display: flex;
    flex-direction: column;
    height: 250px;
    justify-content: end;
    padding-bottom: 55px;
    row-gap: 10px;
}

.linkedin-icon {
    width: 18px;
}

.telegram-icon {
    width: 18px;
}

section {
    max-width: 100%;
    min-height: 720px;
}

.intro-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

h1 {
    font-family: 'kobe-black';
    color: var(--txt-color);
    font-size: 177px;
    letter-spacing: -8px;
    text-align: center;
    margin: 0;
}

.product-designer-header {
    max-width: 726px;
    line-height: 143px;
    margin-bottom: -20px;
}

.intro-description {
    font-family: 'Poppins';
    color: var(--txt-color);
    font-size: 24px;
    font-weight: 500;
    max-width: 807px;
    text-align: center;
    margin-top: 50px;
}

.ali-span {
    font-weight: 700;
    color: var(--accent-color);
}

.reason-header {
    text-align: right;
    color: var(--txt-color);
    font-family: 'kobe-italic';
    font-size: 16px;
    max-width: 100%;
}

.reason-span {
    color: var(--accent-color);
    font-family: 'kobe-italic-black';
}

.wrapper {
    max-width: 100%;
    overflow: hidden;
}

.sliding-header {
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: sliding-header 25s linear infinite;
}

.sliding-header h1 {
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: 1px;
    -webkit-text-stroke-color: var(--secondary-color);
}

@keyframes sliding-header {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-12%, 0, 0);
    }
}

.works-section {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    height: auto;
    row-gap: 70px;
    padding-bottom: 70px;
}

.work-container {
    display: flex;
    width: 807px;
    min-height: 420px;
    column-gap: 70px;
    justify-content: space-between;
    align-items: center;
}

.work-container img {
    max-width: 450px;
    object-fit: contain;
    border-radius: 10px;
    transition: 0.2s;
    border: 1px solid var(--txt-color);
    outline: none;
}

.work-container div {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
    max-width: 100%;
    text-align: justify;
    text-justify: inter-word;

}

.work-container div p {
    line-height: 20px;
    font-size: 16px;
    font-weight: 400;
    color: var(--txt-color);
    margin: 0;
}

.work-container div h3 {
    font-family: 'Poppins';
    font-size: 24px;
    font-weight: 500;
    color: var(--txt-color);
    margin: 0;
}

.work-container div h5 {
    font-family: 'Poppins';
    font-size: 16px;
    font-weight: 400;
    color: var(--secondary-color);
    margin: 0;
}

.work-container-2 {
    display: flex;
    flex-direction: row-reverse;
    width: 807px;
    min-height: 420px;
    column-gap: 70px;
    justify-content: space-between;
    align-items: center;
}

.work-container-2 img {
    max-width: 450px;
    object-fit: contain;
    border-radius: 10px;
    transition: 0.2s;
    border: 1px solid var(--txt-color);
    outline: none;
}

.work-container-2 video {
    max-width: 450px;
    object-fit: contain;
    border-radius: 10px;
    transition: 0.2s;
    border: 1px solid var(--txt-color);
    outline: none;
}

.work-container-2 video:hover {
    max-width: 500px;
    transition: 0.3s;
    box-shadow: 0px 1px 1px rgba(3, 7, 18, 0.01),
    0px 5px 4px rgba(3, 7, 18, 0.03),
    0px 12px 9px rgba(3, 7, 18, 0.04),
    0px 20px 15px rgba(3, 7, 18, 0.06),
    0px 32px 24px rgba(3, 7, 18, 0.07);
}

.dark-mode .work-container-2 video:hover {
    width: 500px;
    transition: 0.3s;
    box-shadow: 0px 1px 1px rgba(255, 255, 255, 0.01),
    0px 5px 4px rgba(255, 255, 255, 0.03),
    0px 12px 9px rgba(255, 255, 255, 0.04),
    0px 20px 15px rgba(255, 255, 255, 0.06),
    0px 32px 24px rgba(37, 28, 28, 0.07);
}

.work-container-2 img:hover {
    max-width: 500px;
    transition: 0.3s;
    box-shadow: 0px 1px 1px rgba(3, 7, 18, 0.01),
    0px 5px 4px rgba(3, 7, 18, 0.03),
    0px 12px 9px rgba(3, 7, 18, 0.04),
    0px 20px 15px rgba(3, 7, 18, 0.06),
    0px 32px 24px rgba(3, 7, 18, 0.07);
}

.dark-mode .work-container-2 img:hover {
    width: 500px;
    transition: 0.3s;
    box-shadow: 0px 1px 1px rgba(255, 255, 255, 0.01),
    0px 5px 4px rgba(255, 255, 255, 0.03),
    0px 12px 9px rgba(255, 255, 255, 0.04),
    0px 20px 15px rgba(255, 255, 255, 0.06),
    0px 32px 24px rgba(37, 28, 28, 0.07);
}

.work-container img:hover {
    max-width: 500px;
    transition: 0.3s;
    box-shadow: 0px 1px 1px rgba(3, 7, 18, 0.01),
    0px 5px 4px rgba(3, 7, 18, 0.03),
    0px 12px 9px rgba(3, 7, 18, 0.04),
    0px 20px 15px rgba(3, 7, 18, 0.06),
    0px 32px 24px rgba(3, 7, 18, 0.07);
}

.dark-mode .work-container img:hover {
    width: 500px;
    transition: 0.3s;
    box-shadow: 0px 1px 1px rgba(255, 255, 255, 0.01),
    0px 5px 4px rgba(255, 255, 255, 0.03),
    0px 12px 9px rgba(255, 255, 255, 0.04),
    0px 20px 15px rgba(255, 255, 255, 0.06),
    0px 32px 24px rgba(37, 28, 28, 0.07);
}

.work-container-2 div {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
    max-width: 100%;
    text-align: justify;
    text-justify: inter-word;
}

.work-container-2 div p {
    line-height: 20px;
    font-size: 16px;
    font-weight: 400;
    color: var(--txt-color);
    margin: 0;
}

.work-container-2 div h3 {
    font-family: 'Poppins';
    font-size: 24px;
    font-weight: 500;
    color: var(--txt-color);
    margin: 0;
}

.work-container-2 div h5 {
    font-family: 'Poppins';
    font-size: 16px;
    font-weight: 400;
    color: var(--secondary-color);
    margin: 0;
}


.process-section {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    height: auto;
    row-gap: 70px;
    padding-bottom: 70px;
}

.skills-section {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    height: auto;
    row-gap: 70px;
    padding-bottom: 70px;
}

.skills-container {
    display: flex;
    flex-direction: row;
    max-width: 807px;
    height: auto;
    flex-wrap: wrap;
    row-gap: 70px;
    justify-content: space-between;
    text-align: justify;
    text-justify: inter-word;
}

.skill {
    display: flex;
    flex-direction: column;
    max-width: 368px;
    min-height: 200px;
    border: red;
}

.skill div {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.skill img {
    max-width: 30px;
}

.dark-mode .skill img {
    filter: invert(1);
}

.skill h3 {
    margin: 0;
    font-family: 'Poppins';
    font-weight: 500;
    font-size: 24px;
    padding: 0;
    color: var(--txt-color);
}

.contact-section {
    height: 1000px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-message {
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-bottom: -100px;
}

.contact-message h2 {
    font-family: 'kobe-black';
    text-align: center;
    font-size: 67.77px;
    max-width: 630px;
    letter-spacing: -3px;
    color: var(--txt-color);
    margin: 0;
    line-height: 10px;
    line-height: 55px;
}

.contact-message h5 {
    font-family: 'Poppins';
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--txt-color);
}

.contact-message p {
    font-weight: 300;
    color: var(--txt-color);
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 40px;
    padding: 0px 20px 0px 20px;
}

.copyright {
    font-size: 9.89px;
    font-weight: 200;
    padding-right: 150px;
}

footer div {
    display: flex;
    flex-direction: row;
    column-gap: 5px;
}

footer div p {
    font-weight: 400;
}

.hi {
    display: block;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 0 40px 200px;
}

.hi p {
    margin-right: -150px;
    font-size: 16px;
    font-weight: 300;
}

.dark-mode .hi img {
    filter: invert(1);
}

.back-to-top p {
    padding: 0;
    font-size: 9.89px;
    font-weight: 400;
}

.dark-mode .back-to-top img {
    filter: invert(1);
}

.process-container {
    max-width: 464px;
    display: flex;
    flex-direction: column;
    row-gap: 75px;
}

.process-img {
    max-width: 941px;
}

.dark-mode .process-img {
    filter: invert(1);
}

.step {
    display: flex;
    flex-direction: column;

}

.step h2 {
    color: var(--txt-color);
    font-family: 'Poppins';
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.step ul {
    list-style: outside;
    margin-left: 17px;
}

.hamburger {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.dark-mode .hamburger {
    filter: invert(1);
}

.SM-Phone {
    display: flex;
        flex-direction: row;
        margin: 30px 0;
        justify-content: center;
        align-items: center;
        column-gap: 15px;
}

/*phone*/
@media only screen and (max-width: 800px) {
    nav ul {
        display: none;
    }

    nav {
        margin-left: 20px;
        padding-top: 20px;
    }

    .social-medias-logo {
        display: none;
    }

    .logo {
        display: none;
    }

    h1 {
        font-size: 100px;
    }

    .product-designer-header {
        line-height: 80px;
        width: 100%;
        font-size: 90px;
        letter-spacing: -6px;
    }

    header {
        width: 350px;
    }

    .intro-description {
        font-size: 18px;
        width: 90%;
    }

    .work-container {
        flex-direction: column;
        width: 100%;
        padding: 0 0px;
    }

    .work-container-2 {
        flex-direction: column;
        width: 100%;
    }

    .work-container img {
        width: 90%;
    }

    .work-container-2 img {
        width: 90%;
    }

    .work-container-2 video {
        width: 90%;
    }
    .work-container-2 video:hover {
        max-width: 450px;
        box-shadow: none;
    }

    .process-img {
        display: none;
    }

    .process-container {
        padding: 0 50px;
    }

    .skills-container {
        padding: 0 50px;
        justify-content: center;
    }

    .contact-section h2 {
        font-size: 60px;
    }

    footer div {
        display: none;
    }

    .hi {
        display: none;
    }

    .work-container div {
        padding: 50px 30px 0px 30px;
    }

    .work-container-2 div {
        padding: 50px 30px 0px 30px;
    }

    footer {
        align-items: center;
        justify-content: center;
    }

    .copyright {
        padding: 0 0;
    }

    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 50px;
        left: 0;
        width: 130%;
        background-color: rgba(255, 223, 182, 0.4);
        backdrop-filter: blur(10px);
        list-style-type: none;
        padding: 0;
        border-radius: 5px;
        transition: 0.2s;
    }

    .dark-mode nav ul {
        background-color: rgba(56, 51, 47, 0.4);
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul.show {
        display: flex;
        transition: 0.2s;
    }

    .logo-phone {
        color: var(--secondary-color);
        display: block;
        position: fixed;
        font-family: 'Poppins';
        font-size: 24px;
        font-weight: 500;
        letter-spacing: -1px;
        text-align: right;
        right: 40px;
        top: 0px;
    }

    .SM-Phone {
        display: flex;
        flex-direction: row;
        margin: 30px 0;
        justify-content: center;
        align-items: center;
        column-gap: 15px;
    }

    .dark-mode-button {
        width: 100px;
        margin-top: 10px;
    }

    .dark-mode-li{
        padding: 0;
    }

    .language-button {
        width: 100px;
        padding: 0 20px;
    }
}

.background-section {
    width: 100%;
    position: absolute;
    z-index: -11;
}

.dark-mode .background-section {
    display: none;
}

.blur {
    position: absolute;
    background-color: rgba(255, 242, 237, 0.4);
    backdrop-filter: blur(50px);
    width: 100%;
    min-height: 300dvh;
}

.noise {
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    background-image: url(assets/svg/noise.svg);
    min-height: 300dvh;
}


.svg1 {
    position: absolute;
    filter: blur(100px);
    z-index: -8;
    right: 60%;
    top: 40%;
    width: 25%;
}

.svg2 {
    filter: blur(100px);
    position: absolute;
    z-index: -8;
    right: 20%;
    top: 10%;
    width: 25%;
}

.svg3 {
    filter: blur(100px);
    position: absolute;
    z-index: -8;
    right: 50%;
    top: 10%;
    width: 25%;
}

/* Common styles for the images */
.svg1,
.svg2,
.svg3 {
    position: absolute;
    /* So they can move freely */
    animation: rotate-circle 6s linear infinite;
    /* Reduced duration for faster movement */
}

/* Each image starts at different points in the circular path */
.svg1 {
    animation-delay: 0s;
    overflow: hidden;
}

.svg2 {
    animation-delay: 2s;
    /* Adjusted to match new duration */
    overflow: hidden;
}

.svg3 {
    animation-delay: 4s;
    /* Adjusted to match new duration */
    overflow: hidden;
}

/* Define the circular motion */
@keyframes rotate-circle {
    0% {
        transform: translate(0, 0) rotate(0deg) translateX(100px) rotate(0deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

@media only screen and (max-width: 800px) {
    .background-section {
        overflow: hidden;
    }
}