:root {
    --navy: #0A1931;
    --green: #00D8A7;
    --gold: #D4AF37;
    --white: #FFFFFF;
    --gray-light: #F5F7FA;
    --gray-medium: #E4E7EB;
    --gray-dark: #64748B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Vazir, 'Inter', sans-serif;
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

body.english {
    direction: ltr;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5 {
    font-family: Sahel, 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
}

body.english h1, body.english h2, body.english h3, body.english h4, body.english h5 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Switcher */
.language-switcher {
    margin-right: 30px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--gray-medium);
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--navy);
}

.lang-btn:hover {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

/* Header & Navigation - FIXED */
header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

body.english header {
    right: auto;
    left: 0;
}

.header-scrolled {
    padding: 5px 0; /* کاهش بیشتر */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0; /* کاهش قابل توجه padding */
    transition: all 0.3s ease;
   height: 70px; /* ارتفاع ثابت برای هدر */
}

body.english .header-container {
    flex-direction: row;
}

.logo {
    font-family: Parastoo, serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--navy);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    line-height: 1; /* حذف line-height اضافی */
}

.logo-img {
    height: 70px; /* ارتفاع مناسب */
    width: auto;
    display: block; /* مهم: حذف فضای زیر تصویر */
    vertical-align: top; /* جلوگیری از alignment پایین */
    margin: 0;
    padding: 0;
}

body.english .logo {
    font-family: 'Playfair Display', serif;
}

.logo span {
    color: var(--green);
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0 auto;
}

nav li {
    margin-right: 15px;
    margin-left: 15px;
}


nav a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--green);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 0;
    background-color: var(--green);
    transition: width 0.3s ease;
}

body.english nav a::after {
    right: auto;
    left: 0;
}

nav a:hover::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, var(--green), #00B894);
    color: white;
    border: none;
    padding: 10px 20px; /* کاهش padding */
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 216, 167, 0.3);
    font-family: Vazir, 'Inter', sans-serif;
    line-height: 1.2; /* کاهش line-height */
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 216, 167, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--navy);
    padding: 4px 8px; /* کاهش padding */
    line-height: 1;
}

/* بقیه استایل‌ها بدون تغییر می‌مانند... */

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 25, 49, 0.9) 0%, rgba(10, 25, 49, 0.7) 100%), 
                url('../images/backhero.avif');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 60px; /* جبران ارتفاع هدر فیکس */
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

body.english .hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

body.english .hero-buttons {
    flex-direction: row;
}

.secondary-button {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Vazir, 'Inter', sans-serif;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.floating-shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

body.english .floating-shapes {
    right: auto;
    left: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), rgba(212, 175, 55, 0.3));
    opacity: 0.1;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
    }
}

/* Sections Common Styles */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: var(--gray-dark);
    max-width: 600px;
    margin: 0 auto;
}

/* Value Propositions */
.value-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    background: white;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--green), var(--gold));
}

body.english .value-card::before {
    right: auto;
    left: 0;
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--green);
    font-size: 28px;
}

.value-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.value-card p {
    flex-grow: 1;
}

/* Assessment Section */
.assessment-section {
    background: var(--gray-light);
    padding: 80px 0;
    border-radius: 20px;
}

.assessment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.assessment-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--navy);
}

/* FIX: Form group labels bilingual content */
.form-group .lang-fa {
    display: block;
}

.form-group .lang-en {
    display: none;
}

body.english .form-group .lang-fa {
    display: none;
}

body.english .form-group .lang-en {
    display: block;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 216, 167, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input {
    margin: 0;
}

.assessment-result {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.result-placeholder {
    text-align: center;
    color: var(--gray-dark);
    padding: 40px 0;
}

.result-content {
    display: none;
}

.recommendation-card {
    background: var(--gray-light);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.recommendation-card h4 {
    margin-bottom: 10px;
    color: var(--navy);
}

.specs-list {
    list-style: none;
    margin: 15px 0;
}

.specs-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-medium);
    display: flex;
    justify-content: space-between;
}

.specs-list li:last-child {
    border-bottom: none;
}

.cost-summary {
    background: linear-gradient(135deg, var(--navy), #152642);
    color: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.cost-amount {
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0;
    color: var(--green);
}

/* CTA Sections */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, #152642 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
    border-radius: 20px;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 216, 167, 0.1) 0%, transparent 70%);
}

body.english .cta-section::before {
    left: auto;
    right: -50%;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-right: auto;
    margin-left: auto;
    opacity: 0.9;
}

.cta-action {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Programs Section */
.programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.program-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.program-header {
    padding: 30px;
    background: var(--navy);
    color: white;
}

.program-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.program-body {
    padding: 30px;
    flex-grow: 1;
}

.program-features {
    list-style: none;
    margin: 20px 0;
}

.program-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.program-features li::before {
    content: '✓';
    color: var(--green);
    font-weight: bold;
    margin-left: 10px;
    margin-right: 0;
}

body.english .program-features li::before {
    margin-left: 0;
    margin-right: 10px;
}

.program-footer {
    padding: 0 30px 30px;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 50px 0;
}

.trust-item {
    text-align: center;
    padding: 20px;
}

.trust-number {
    font-size: 40px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 10px;
    font-family: Parastoo, serif;
}

body.english .trust-number {
    font-family: 'Inter', sans-serif;
}

.trust-label {
    font-size: 16px;
    color: var(--gray-dark);
}

/* Footer */
footer {
    background: var(--navy);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--green);
}

body.english .footer-column h3::after {
    right: auto;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Bilingual Content */
.lang-fa {
    display: block;
}

.lang-en {
    display: none;
}

body.english .lang-fa {
    display: none;
}

body.english .lang-en {
    display: block;
}

/* Fix for checkbox labels */
.checkbox-label .lang-fa {
    display: inline;
}

.checkbox-label .lang-en {
    display: none;
}

body.english .checkbox-label .lang-fa {
    display: none;
}

body.english .checkbox-label .lang-en {
    display: inline;
}

/* Fix for program features */
.program-features .lang-fa {
    display: inline;
}

.program-features .lang-en {
    display: none;
}

body.english .program-features .lang-fa {
    display: none;
}

body.english .program-features .lang-en {
    display: inline;
}

/* Fix for select options */
option.lang-fa {
    display: block;
}

option.lang-en {
    display: none;
}

body.english option.lang-fa {
    display: none;
}

body.english option.lang-en {
    display: block;
}

/* Technical Badge */
.tech-badge {
    display: inline-block;
    background: var(--green);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 5px;
}

/* New Styles for Quantity Input */
.checkbox-with-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.quantity-input.active {
    opacity: 1;
    pointer-events: all;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(0, 216, 167, 0.1);
}

/* Catalog Buttons */
.catalog-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.catalog-btn {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--gray-medium);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.catalog-btn:hover {
    background: var(--gray-light);
    border-color: var(--green);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .value-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .assessment-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 46px;
    }
    
    nav ul, .language-switcher {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    body.english .hero-buttons {
        align-items: flex-start;
    }
    
    .cta-action {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .trust-indicators {
        flex-direction: column;
    }
    
    .value-cards {
        grid-template-columns: 1fr;
    }
    
    .programs {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column h3::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    body.english .footer-column h3::after {
        right: 50%;
        transform: translateX(50%);
        left: auto;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    /* تنظیمات responsive برای هدر */
    .header-container {
        padding: 5px 0; /* کاهش بیشتر در موبایل */
        height: 50px;
    }
    
    .logo-img {
        height: 50px; /* کاهش اندازه لوگو در موبایل */
    }
    
    .hero {
        margin-top: 50px; /* کاهش margin-top در موبایل */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .value-card, .program-card {
        padding: 25px 20px;
    }
    
    .cta-section {
        padding: 50px 20px;
    }
    
    .assessment-form, .assessment-result {
        padding: 25px 20px;
    }
    
    .logo-img {
        height: 32px; /* کاهش بیشتر در صفحات کوچک */
    }
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    flex-direction: column;
    gap: 15px;
}

body.english .mobile-menu {
    right: auto;
    left: 0;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-language-switcher {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}



section {
    padding: 100px 0;
    scroll-margin-top: 80px; /* حاشیه اسکرول برای idها – برابر با هدر + حاشیه */
}

