@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');
body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    background: radial-gradient(ellipse at center, #000000 0%, #000000 100%);
    color: #fff;
    margin: 0;
    padding: 0;
    direction: rtl;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 5vw 0 5vw;
    min-height: 480px;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.body-figure {
    position: relative;
    width: 100%;
    height: 400px;
    margin-right: 40px;
}

.body-img {
    width: 100%;
    height: auto;
    display: block;
}

.body-fat-label,
.lean-mass-label {
    position: absolute;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 12px;
    padding: 8px 18px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 12px #0008;
    text-align: center;
}

.body-fat-label {
    top: 30px;
    right: 15px;
    border: 2px solid #ff4444;
}

.body-fat-label span {
    color: #ff4444;
    font-size: 1.3em;
}

.lean-mass-label {
    bottom: 40px;
    left: 15px;
    border: 2px solid #aaff66;
}

.lean-mass-label span {
    color: #aaff66;
    font-size: 1.3em;
}

.header-right {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 30px;
}

.header-right h1 {
    font-size: 2.2rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.highlight {
    color: #b6ff5c;
}

.header-right p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: #e0e0e0;
}

.header-buttons {
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
}

.btn {
    background: #b6ff5c;
    color: #222;
    border: none;
    border-radius: 8px;
    padding: 10px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

.btn:hover {
    background: #d6ffb6;
}

.body-poses {
    display: flex;
    gap: 18px;
    margin-top: 30px;
}

.body-poses img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

main {
    margin-top: 0;
    padding: 0 5vw;
}

.tutorial-section {
    margin-top: 100px;
    padding: 60px 0 0 0;
    text-align: center;
}


/* Add background image for tutorial-section h2 */

.tutorial-section h2 {
    position: relative;
    background: url('images/body-scanner-title.png') center 0 no-repeat;
    background-size: contain;
    padding-top: 50px;
    padding-bottom: 10px;
    z-index: 1;
}

.tutorial-section h2 span.en-title {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-size: 3rem;
    color: transparent;
    background: linear-gradient(90deg, #b6ff5c 60%, #232d1a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    z-index: 2;
}

.tutorial-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin-top: 30px;
}

.tutorial-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.tutorial-steps li {
    font-size: 1.2rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    color: #e0e0e0;
}

.step-num {
    display: inline-block;
    background: #b6ff5c;
    color: #222;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    font-weight: 700;
    margin-left: 16px;
    font-size: 1.2rem;
}

.tutorial-phone img {
    width: 220px;
    height: 400px;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 4px 32px #b6ff5c44;
    border: 2px solid #b6ff5c;
}

.consult-section {
    margin-top: 80px;
    background: linear-gradient(90deg, #1a1e1a 60%, #232d1a 100%);
    border-radius: 24px;
    padding: 40px 0 40px 0;
    text-align: center;
    box-shadow: 0 2px 24px #0008;
    margin-bottom: 30px;
}

.consult-section h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.consult-section p {
    color: #b6ff5c;
    margin-bottom: 30px;
}

.consult-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.consult-form input {
    width: 260px;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    margin-bottom: 0;
    background: #232d1a;
    color: #fff;
    outline: none;
    box-shadow: 0 1px 6px #0004;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

.consult-form input:focus {
    border: 2px solid #b6ff5c;
}

.consult-form .btn {
    width: 260px;
    margin-top: 8px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 10px;
}

.social-icons img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #232d1a;
    border: 2px solid #b6ff5c;
    padding: 4px;
    transition: background 0.2s;
}

.social-icons img:hover {
    background: #000000;
    border-color: #ffffff00;
}

footer {
    text-align: center;
    color: #b6ff5c;
    font-size: 1rem;
    padding: 3px;
    margin-top: 40px;
    background: #292828;
    border-top: 2px solid #b6ff5c4f;
}

@media (max-width: 1100px) {
    .main-header {
        flex-direction: column;
        align-items: center;
        padding: 30px 2vw 0 2vw;
    }
    .header-right {
        margin-top: 0;
        align-items: center;
        text-align: center;
    }
    .body-figure {
        margin-bottom: 30px;
    }
}

@media (max-width: 800px) {
    .main-header {
        flex-direction: column;
        padding: 20px 1vw 0 1vw;
    }
    .tutorial-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    .tutorial-phone img {
        width: 180px;
        height: 320px;
    }
}

@media (max-width: 600px) {
    .main-header {
        padding: 10px 0 0 0;
    }
    .body-figure {
        width: 180px;
        height: 280px;
    }
    .body-poses img {
        width: 44px;
        height: 80px;
    }
    .tutorial-phone img {
        width: 120px;
        height: 200px;
    }
    .consult-form input,
    .consult-form .btn {
        width: 90vw;
        max-width: 260px;
    }
}


/* Modal Popup Styles */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(0, 0, 0);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #000000;
    color: #77ff00;
    border-radius: 18px;
    box-shadow: 0 0px 24px hsl(87, 49%, 51%);
    padding: 40px 32px 32px 32px;
    min-width: 340px;
    max-width: 90vw;
    position: relative;
    text-align: center;
    animation: modalIn 0.2s;
}

@keyframes modalIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 18px;
    left: 18px;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
}

.close:hover {
    color: #ff4444;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 28px;
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 700;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.modal-form input[type="file"] {
    background: #88bf454f;
    border: 1px solid #88bf45;
    border-radius: 8px;
    padding: 10px;
    width: 220px;
    font-size: 1rem;
    color: #ffffff;
}

.modal-form .btn {
    background: #88bf45;
    color: #000000;
    width: 220px;
    font-size: 1.1rem;
    border-radius: 8px;
    margin-top: 8px;
    font-family: inherit;
}

.modal-form .btn:hover {
    background: #72a543;
}

@media (max-width: 500px) {
    .modal-content {
        min-width: 90vw;
        padding: 24px 6vw 24px 6vw;
    }
    .modal-form input[type="file"],
    .modal-form .btn {
        width: 90vw;
        max-width: 220px;
    }
    ----------------------- @import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');
    body {
        font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
        background: radial-gradient(ellipse at center, #000000 0%, #000000 100%);
        color: #fff;
        margin: 0;
        padding: 0;
        direction: rtl;
    }
    .main-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 40px 5vw 0 5vw;
        min-height: 480px;
    }
    .header-left {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .body-figure {
        position: relative;
        width: 100%;
        height: 400px;
    }
    .body-img {
        width: 100%;
        height: auto;
        display: block;
    }
    .body-fat-label,
    .lean-mass-label {
        position: absolute;
        background: rgba(20, 20, 20, 0.8);
        border-radius: 12px;
        padding: 8px 18px;
        font-size: 1.1rem;
        font-weight: 700;
        color: #fff;
        box-shadow: 0 2px 12px #0008;
        text-align: center;
    }
    .body-fat-label {
        top: 30px;
        right: 15px;
        border: 2px solid #ff4444;
    }
    .body-fat-label span {
        color: #ff4444;
        font-size: 1.3em;
    }
    .lean-mass-label {
        bottom: 40px;
        left: 15px;
        border: 2px solid #aaff66;
    }
    .lean-mass-label span {
        color: #aaff66;
        font-size: 1.3em;
    }
    .header-right {
        flex: 1.2;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 30px;
    }
    .header-right h1 {
        font-size: 2.2rem;
        margin: 0 0 10px 0;
        font-weight: 700;
    }
    .highlight {
        color: #b6ff5c;
    }
    .header-right p {
        font-size: 1.1rem;
        margin-bottom: 24px;
        color: #e0e0e0;
    }
    .header-buttons {
        display: flex;
        gap: 18px;
        margin-bottom: 30px;
    }
    .btn {
        background: #b6ff5c;
        color: #222;
        border: none;
        border-radius: 8px;
        padding: 10px 36px;
        font-size: 1.1rem;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.2s;
        font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    }
    .btn:hover {
        background: #d6ffb6;
    }
    .body-poses {
        display: flex;
        gap: 18px;
        margin-top: 30px;
    }
    .body-poses img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    main {
        margin-top: 0;
        padding: 0 5vw;
    }
    .tutorial-section {
        margin-top: 100px;
        padding: 60px 0 0 0;
        text-align: center;
    }
    /* Add background image for tutorial-section h2 */
    .tutorial-section h2 {
        position: relative;
        background: url('images/body-scanner-title.png') center 0 no-repeat;
        background-size: contain;
        padding-top: 50px;
        padding-bottom: 10px;
        z-index: 1;
    }
    .tutorial-section h2 span.en-title {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        text-align: center;
        font-size: 3rem;
        color: transparent;
        background: linear-gradient(90deg, #b6ff5c 60%, #232d1a 100%);
        -webkit-background-clip: text;
        background-clip: text;
        z-index: 2;
    }
    .tutorial-content {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 80px;
        margin-top: 30px;
    }
    .tutorial-steps {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: right;
    }
    .tutorial-steps li {
        font-size: 1.2rem;
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        color: #e0e0e0;
    }
    .step-num {
        display: inline-block;
        background: #b6ff5c;
        color: #222;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        text-align: center;
        line-height: 32px;
        font-weight: 700;
        margin-left: 16px;
        font-size: 1.2rem;
    }
    .tutorial-phone img {
        width: 220px;
        height: 400px;
        object-fit: contain;
        border-radius: 24px;
        box-shadow: 0 4px 32px #b6ff5c44;
        border: 2px solid #b6ff5c;
    }
    .consult-section {
        margin-top: 80px;
        background: linear-gradient(90deg, #1a1e1a 60%, #232d1a 100%);
        border-radius: 24px;
        padding: 40px 0 40px 0;
        text-align: center;
        box-shadow: 0 2px 24px #0008;
        margin-bottom: 30px;
    }
    .consult-section h2 {
        font-size: 1.7rem;
        font-weight: 700;
        margin-bottom: 10px;
        color: #fff;
    }
    .consult-section p {
        color: #b6ff5c;
        margin-bottom: 30px;
    }
    .consult-form {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-bottom: 24px;
    }
    .consult-form input {
        width: 260px;
        padding: 12px 16px;
        border-radius: 8px;
        border: none;
        font-size: 1rem;
        margin-bottom: 0;
        background: #232d1a;
        color: #fff;
        outline: none;
        box-shadow: 0 1px 6px #0004;
        font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    }
    .consult-form input:focus {
        border: 2px solid #b6ff5c;
    }
    .consult-form .btn {
        width: 260px;
        margin-top: 8px;
    }
    .social-icons {
        display: flex;
        justify-content: center;
        gap: 18px;
        margin-top: 10px;
    }
    .social-icons img {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: #232d1a;
        border: 2px solid #b6ff5c;
        padding: 4px;
        transition: background 0.2s;
    }
    .social-icons img:hover {
        background: #000000;
        border-color: #ffffff00;
    }
    footer {
        text-align: center;
        color: #b6ff5c;
        font-size: 1rem;
        padding: 3px;
        margin-top: 40px;
        background: #292828;
        border-top: 2px solid #b6ff5c4f;
    }
    @media (max-width: 1100px) {
        .main-header {
            flex-direction: column;
            align-items: center;
            padding: 30px 2vw 0 2vw;
        }
        .header-right {
            margin-top: 0;
            align-items: center;
            text-align: center;
        }
        .body-figure {
            margin-bottom: 30px;
        }
    }
    @media (max-width: 800px) {
        .main-header {
            flex-direction: column;
            padding: 20px 1vw 0 1vw;
        }
        .tutorial-content {
            flex-direction: column;
            gap: 30px;
            align-items: center;
        }
        .tutorial-phone img {
            width: 180px;
            height: 320px;
        }
    }
    @media (max-width: 600px) {
        .main-header {
            padding: 10px 0 0 0;
        }
        .body-figure {
            width: 180px;
            height: 280px;
        }
        .body-poses img {
            width: 44px;
            height: 80px;
        }
        .tutorial-phone img {
            width: 120px;
            height: 200px;
        }
        .consult-form input,
        .consult-form .btn {
            width: 90vw;
            max-width: 260px;
        }
    }
    /* Modal Popup Styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.25);
        justify-content: center;
        align-items: center;
    }
    .modal-content {
        background: #000000;
        color: #6ae300;
        border-radius: 18px;
        box-shadow: 0 0px 24px #88bf45;
        padding: 40px 32px 32px 32px;
        min-width: 340px;
        max-width: 90vw;
        position: relative;
        text-align: center;
        animation: modalIn 0.2s;
    }
    @keyframes modalIn {
        from {
            transform: scale(0.95);
            opacity: 0;
        }
        to {
            transform: scale(1);
            opacity: 1;
        }
    }
    .close {
        position: absolute;
        top: 18px;
        left: 18px;
        font-size: 2rem;
        color: #888;
        cursor: pointer;
        transition: color 0.2s;
        z-index: 2;
    }
    .close:hover {
        color: #ff4444;
    }
    .modal-content h3 {
        margin-top: 0;
        margin-bottom: 28px;
        font-size: 1.4rem;
        color: #000000;
        font-weight: 700;
    }
    .modal-form {
        display: flex;
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }
    .modal-form input[type="file"] {
        background: #88bf454f;
        border: 1px solid #88bf45;
        border-radius: 8px;
        padding: 10px;
        width: 220px;
        font-size: 1rem;
        color: #ffffff;
    }
    .modal-form .btn {
        background: #88bf45;
        color: #000000;
        width: 220px;
        font-size: 1.1rem;
        border-radius: 8px;
        margin-top: 8px;
        font-family: inherit;
    }
    .modal-form .btn:hover {
        background: #72a543;
    }
    @media (max-width: 500px) {
        .modal-content {
            min-width: 90vw;
            padding: 24px 6vw 24px 6vw;
        }
        .modal-form input[type="file"],
        .modal-form .btn {
            width: 90vw;
            max-width: 220px;
        }
    }
}