* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --secondary: #06b6d4;
    --accent: #22c55e;
    --dark: #0f172a;
    --glass: rgba(255, 255, 255, 0.15);
    --border: rgba(255, 255, 255, 0.25);
}

/* ================= BODY ================= */

body {
    font-family: 'Vazirmatn', sans-serif;
    background: radial-gradient(circle at top left, #1e1b4b, #020617);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    padding-top: 2px;
}

body::before {
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary), transparent);
    filter: blur(200px);
    top: -200px;
    right: -200px;
    opacity: .4;
    z-index: -1;
}

/* ================= NAV ================= */

.nav ul {
    display: flex;
    gap: 10px;
    list-style: none;
}

.nav li {
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 14px;
    transition: .3s;
    font-size: 14px;
    position: relative;
}

.nav li::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: .3s;
    z-index: -1;
}

.nav li:hover::after,
.nav li.active::after {
    opacity: 1;
}

/* ================= HERO ================= */

.hero {
    text-align: center;
    padding: 90px 20px;
    max-width: 1200px;
    margin: auto;
}

.hero-title {
    font-size: 38px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    margin-bottom: 25px;
    opacity: .85;
}

/* ================= BADGES ================= */

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin: 5px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
}

/* ================= CTA ================= */

.cta-btn {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 14px 30px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: .3s;
    box-shadow: 0 0 20px rgba(99, 102, 241, .5);
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(6, 182, 212, .7);
}

/* ================= TABS ================= */

.tab-content {
    display: none;
    padding: 50px 20px;
}

.tab-content.active {
    display: block;
}

/* ================= CARDS ================= */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    padding: 18px;
    border-radius: 20px;
    text-align: center;
    transition: .35s;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}



.card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 10px 35px rgba(99, 102, 241, .25);
}

.card img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 10px;
}

/* ================= BLOG ================= */

.blog-item {
    background: var(--glass);
    padding: 20px;
    margin-top: 15px;
    border-radius: 16px;
    transition: .35s;
    border: 1px solid var(--border);
    cursor: pointer;
}

.blog-item h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-item h3::before {
    content: "📘";
}

.blog-item p {
    opacity: .8;
    margin-top: 6px;
}

.blog-item:hover {
    transform: translateY(-5px) scale(1.02);
}

/* ================= CONTACT ================= */

.contact-items div {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--glass);
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: .35s;
    cursor: pointer;
}

.contact-items div:hover {
    background: rgba(255, 255, 255, .25);
    transform: translateY(-4px);
    border-color: var(--secondary);
}

.contact-items i {
    color: var(--secondary);
    font-size: 18px;
}





/* ================= BAHAM SECTION ================= */

.baham-container {
    display: flex;
    align-items: center;
    /* تصویر وسط محتوای متنی */
    justify-content: space-between;
    gap: 60px;
    margin-top: 80px;
}

.baham-steps {
    flex: 1;
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    color: #333;
}

.baham-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.baham-step:last-child {
    margin-bottom: 0;
}

.baham-step-number {
    background: #e83e8c;
    color: #fff;
    width: 55px;
    height: 55px;
    min-width: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    margin-left: 15px;
}

.baham-step-text {
    flex: 1;
}

.baham-step-text h3 {
    margin-bottom: 8px;
    color: #444;
    text-align: right;
}

.baham-step-text p {
    color: #636363;
    font-size: 14px;
    text-align: right;
    line-height: 1.9;
}

.baham-phone-mockup {
    flex: 0 0 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.baham-phone-mockup img {
    width: 100%;
    max-width: 380px;
    height: auto;
    object-fit: contain;
}





.hero-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
    margin-bottom: 40px;
}

.hero-text {
    flex: 4;
    text-align: right;
    direction: rtl;
}

.hero-text p {
    line-height: 2;
    margin: 0;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: left;
    /* عکس سمت چپ */
}

.hero-image img {
    width: 90%;
    height: 90%;
}







.floating-call {
    position: fixed;
    right: 35px;
    bottom: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(45deg, #06b6d4, #6366f1);
    color: white;
    font-size: 26px;
    text-decoration: none;

    box-shadow: 0 0 25px rgba(99, 102, 241, .6);
    z-index: 9999;

    transition: .3s;
}

.floating-call:hover {
    transform: scale(1.1);
}

.floating-call::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, .4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}






.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat {
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    padding: 25px 15px;
    text-align: center;
    transition: .3s;
    font-size: 40px;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat h3 {
    font-size: 30px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.stat span {
    font-size: 14px;
    opacity: .9;
}






.card i {
    font-size: 42px;
    margin-bottom: 15px;
    display: block;
    color: var(--secondary);
    transition: .3s;
}

.card:hover i {
    transform: scale(1.15);
}







.features-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.features-cards .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}



.features-cards .card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.features-cards .card p {
    font-size: 14px;
    line-height: 1.8;
}




.header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 30px 35px;


    transition: all .3s ease;

    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    border-bottom: 1px solid rgba(255, 255, 255, .12);

    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow:
        0 5px 30px rgba(99, 102, 241, .15);
}


.header.scrolled .logo img {
    width: 48px;
    height: 48px;
}

.header.scrolled {
    padding: 10px 35px;
    backdrop-filter: blur(35px);
}

.header.scrolled .logo {
    font-size: 20px;
}

.header.scrolled .nav li {
    padding: 6px 12px;
    font-size: 13px;
}



.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
    color: #fff;
}

.logo span {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.logo img {
    height: 40px;
    width: auto;
    max-width: 240px;
    object-fit: cover;
    display: block;

}




/* ================= FOOTER ================= */

.footer {
    margin-top: 100px;
    padding: 60px 20px 25px;

    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-container {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr;
    gap: 50px;
}

.footer-about h3 {
    margin-bottom: 15px;
    font-size: 24px;

    background: linear-gradient(45deg,
            var(--secondary),
            var(--primary));

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-about p {
    opacity: .8;
    line-height: 2;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #fff;
    opacity: .8;
    transition: .3s;
}

.footer-links a:hover {
    color: var(--secondary);
    opacity: 1;
}

.footer-contact div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    opacity: .85;
}

.footer-contact i {
    color: var(--secondary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;

    margin-top: 40px;
}

.footer-social a {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    text-decoration: none;
    color: #fff;

    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);

    transition: .3s;
}

.footer-social a:hover {
    transform: translateY(-5px);
    background: linear-gradient(45deg,
            var(--primary),
            var(--secondary));
}

.footer-social i {
    font-size: 20px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, .08);

    opacity: .65;
    font-size: 14px;
}








.contact-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    /* وسط‌چین شدن آیکون و متن */
    gap: 15px;

    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px 18px;
}

.contact-item:hover {
    transform: translateY(-3px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, .2);
}

.contact-item i {
    color: var(--secondary);
    font-size: 22px;
    width: 24px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}


.contact-item input,
.contact-item textarea {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    padding: 0;
}

.contact-item textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.9;
}

.contact-item input::placeholder,
.contact-item textarea::placeholder {
    color: rgba(255, 255, 255, .65);
}

.contact-form .cta-btn {
    align-self: flex-start;
    margin-top: 8px;
}


.contact-item {
    align-items: flex-start;
}

.contact-item textarea {
    margin-top: -2px;
    min-height: 120px;
    line-height: 1.9;
}



/* =========================================Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal.active {
    display: flex;
}

.modal-box {
    width: 90%;
    max-width: 700px;
    background: var(--glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    color: #fff;
    position: relative;
    animation: showModal .35s;
}

@keyframes showModal {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: none;
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--secondary);

}

#modalContent {
    margin-top: 20px;
    line-height: 2;
}

#modalContent ul {
    margin: 15px 25px;
}





/* ================= FOOTER MOBILE ================= */

@media (max-width:768px) {

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }

    .footer-contact div {
        justify-content: center;
    }
}

/* ================= MOBILE ================= */

@media(max-width:768px) {

    .header {
        flex-direction: column;
        gap: 10px;
    }

    .nav ul {
        overflow-x: auto;
        width: 100%;
    }

    .hero h1 {
        font-size: 28px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .baham-container {
        flex-direction: column;
        gap: 30px;
    }

    .baham-phone-mockup {
        order: 2;
    }

    .baham-steps {
        order: 1;
        width: 100%;
    }

    .baham-phone-mockup img {
        max-width: 280px;
    }




    .hero-intro {
        flex-direction: column;
        gap: 25px;
    }

    .hero-text {
        order: 1;
        flex: unset;
        width: 100%;
        text-align: right;
    }

    .hero-image {
        order: 2;
        flex: unset;
        width: 100%;
        justify-content: center;
    }

    .hero-image img {
        width: 80%;
        max-width: 320px;
        height: auto;
    }

    .features-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-title {
        font-size: 28px;
    }


}