* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    font-family: texts;
}

:root {
    --heading: #FFFFFF;
    --heading-2: #F3F4F6;
    --pragraph: #B8C0D4;
    --description: #8D97AC;
    --link: #22D3EE;
    --spetial: #D8C7FF;
}

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: texts;
    src: url(./IRANYekanMobileRegular.ttf);
}

.center {
    margin-right: 50%;
    transform: translateX(50%);
    -webkit-transform: translateX(50%);
    -moz-transform: translateX(50%);
    -ms-transform: translateX(50%);
    -o-transform: translateX(50%);
    margin-top: 15px;
}


/* body style */

body {
    background:
        radial-gradient(circle at 10% 10%, rgba(124, 58, 237, .20), transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(31, 95, 88, .12), transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(181, 98, 42, .08), transparent 50%),
        #08090D;
    background-repeat: no-repeat;
    /* height: 100vh; */
    min-height: 100%;
    background-size: cover;
    margin-bottom: 0;
}

/* header style */

#header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 9999;

    backdrop-filter: blur(20px);
    background: rgba(9, 10, 15, 0.75);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

#header nav {
    width: 1200px;
    margin-right: 50%;
    transform: translateX(50%);
    -webkit-transform: translateX(50%);
    -moz-transform: translateX(50%);
    -ms-transform: translateX(50%);
    -o-transform: translateX(50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

hr {
    margin-top: 5px;
    opacity: 30%;
}

#header nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    margin-right: 60px;
}

#icon {
    width: 60px;
    height: 60px;
}

.icon-box {
    display: flex;
    align-items: center;
    color: var(--heading);
}

li a {
    color: var(--heading-2);
    font-size: 13pt;
}

li {
    color: var(--heading-2);
    font-size: 13pt;
}


.spetial {
    color: var(--spetial);
    font-size: 13pt;
}


/* top page */

#main {
    display: flex;
    flex-direction: column;
}

#top-page {
    width: 1200px;
    display: flex;
}

.title {
    color: var(--heading);
    font-size: 26pt;
}


.spetial-large {
    color: var(--spetial);
    font-size: 26pt;
}

.sec-right {
    width: 58%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
}

.sec-left {
    width: 41%;
    display: flex;
    justify-content: center;
    align-items: end;
    flex-direction: column;
    margin-left: 0;
}

.paragraph {
    color: var(--pragraph);
    font-size: 14pt;
    margin-top: 15px;
    text-align: justify;
    line-height: 30px;
}


.img {
    width: 90%;
    margin-top: 30px;
}

img {
    width: 100%;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
}


/* mid page */

#mid-page {
    width: 1200px;
    display: flex;
    margin-top: 40px;
    flex-wrap: wrap;
}

.portfolio {
    width: 100%;
    margin-top: 20px;
}


/* card */

.card {
    margin-top: 30px;
    width: 45%;
    border-radius: 30px;
    border: 1px solid var(--spetial);
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    -ms-border-radius: 30px;
    -o-border-radius: 30px;
    padding: 20px;
    transition: all ease-in-out .3s;
    -webkit-transition: all ease-in-out .3s;
    -moz-transition: all ease-in-out .3s;
    -ms-transition: all ease-in-out .3s;
    -o-transition: all ease-in-out .3s;
}

.card:hover {
    scale: 1.01;
}

.img-card {
    width: 100%;
}

.info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.head-card {
    color: var(--heading-2);
    font-size: 15pt;
}

.btn-buy {
    background-color: #7C3AED;
    border: 1px solid #9D5CF5;
    color: #ffffff;
    width: fit-content;
    padding-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 15px;
    border-radius: 15px;
    font-size: 13pt;
    cursor: pointer;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
    transition: all ease-in-out .3s;
    -webkit-transition: all ease-in-out .3s;
    -moz-transition: all ease-in-out .3s;
    -ms-transition: all ease-in-out .3s;
    -o-transition: all ease-in-out .3s;
    box-shadow: rgba(124, 58, 237, .35);
    margin-top: 30px;
}

.btn-buy a{
    color: var(--heading);
}

.btn-buy:hover {
    background-color: #8B5CF6;
}

.btn {
    background-color: #141823;
    border: 1px solid #2B3242;
    width: 130px;
    height: 40px;
    border-radius: 15px;
    font-size: 13pt;
    cursor: pointer;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
    transition: all ease-in-out .3s;
    -webkit-transition: all ease-in-out .3s;
    -moz-transition: all ease-in-out .3s;
    -ms-transition: all ease-in-out .3s;
    -o-transition: all ease-in-out .3s;
}

.btn a {
    color: #ffffff;

}

.btn:hover {
    background-color: #1B2230;
}

.portfolios {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* hamburger menu (hidden on desktop) */

#menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

#menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--heading-2);
    border-radius: 2px;
    transition: all ease-in-out .3s;
}

#menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

#menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* footer */

#footer {
    width: 100%;
    padding-bottom: 20px;
}

#footer hr {
    margin-top: 30px;
    width: 100%;
}

.footer-inner {
    width: 1200px;
    margin-right: 50%;
    transform: translateX(50%);
    -webkit-transform: translateX(50%);
    -moz-transform: translateX(50%);
    -ms-transform: translateX(50%);
    -o-transform: translateX(50%);
}

.footer-text {
    text-align: center;
    color: var(--description);
    font-size: 11pt;
    margin-top: 15px;
}














/* animations */

[data-animate] {
    opacity: 0;
    will-change: transform, opacity;
}

[data-animate].in-view {
    animation-duration: .8s;
    animation-timing-function: cubic-bezier(.21, .8, .32, 1);
    animation-fill-mode: forwards;
}

[data-animate="fade-up"].in-view {
    animation-name: fadeUp;
}

[data-animate="fade-right"].in-view {
    animation-name: fadeRight;
}

[data-animate="fade-left"].in-view {
    animation-name: fadeLeft;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#header {
    animation: headerDrop .6s cubic-bezier(.21, .8, .32, 1) both;
}

@keyframes headerDrop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    [data-animate],
    #header {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}


/* risponsive */

@media (max-width: 1300px) {

    #header nav,
    #top-page,
    #mid-page {
        width: 92%;
    }
}

@media (max-width: 900px) {
    #top-page {
        flex-direction: column-reverse;
    }

    .sec-right,
    .sec-left {
        width: 100%;
        height: auto;
        align-items: center;
        text-align: center;
    }

    .sec-left .img {
        width: 60%;
        margin-top: 0;
    }

    .card {
        width: 100%;
    }

    .portfolios {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    #header nav {
        padding: 10px 0;
        position: relative;
    }

    #menu-toggle {
        display: flex;
    }

    #header nav ul {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px 20px;
        background: rgba(9, 10, 15, 0.97);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin-right: 0;
        transition: all ease-in-out .3s;
    }

    #header nav ul.open {
        max-height: 400px;
        opacity: 1;
        padding: 15px 20px;
    }

    .title {
        font-size: 20pt;
        text-align: center;
    }

    .spetial-large {
        font-size: 20pt;
    }

    .paragraph {
        font-size: 12pt;
        line-height: 26px;
        text-align: center;
    }

    .sec-left .img {
        width: 80%;
    }

    .card {
        padding: 12px;
    }

    .info {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    #footer .footer-inner {
        width: 92%;
    }
}

@media (max-width: 420px) {
    .title {
        font-size: 17pt;
    }

    .spetial-large {
        font-size: 17pt;
    }

    #icon {
        width: 45px;
        height: 45px;
    }
}