/* ============================================================
   HOMEPAGE STYLES
   دارالترجمه رسمی همتا
   ============================================================ */

/* ===== CSS Variables ===== */
:root {
    --primary: #1a3a5c;
    --primary-dark: #0a1628;
    --primary-light: #2a5a7c;
    --accent: #c9a961;
    --accent-light: #e8d5a8;
    --accent-dark: #a8894a;
    --text-dark: #1a1a2e;
    --text-light: #6b7280;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Scroll Behavior ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
    padding: 0 20px;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-phone {
    display: none;
    color: var(--accent);
    font-size: 20px;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.nav-phone:hover {
    background: rgba(201, 169, 97, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 22px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-family: 'Vazirmatn', sans-serif;
}

.logo-highlight {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    font-family: 'Vazirmatn', sans-serif;
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.btn-nav-primary {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-nav-primary:hover {
    background: var(--primary-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.25);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
    padding: 140px 20px 80px;
    background: linear-gradient(135deg, #f8faff 0%, #eef2f7 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -150px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -50px;
    left: -100px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--primary-light);
    top: 50%;
    right: 40%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 169, 97, 0.12);
    color: var(--accent-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-highlight {
    color: var(--accent);
    position: relative;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(201, 169, 97, 0.2);
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(26, 58, 92, 0.25);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 58, 92, 0.35);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
}

/* Hero Image */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    aspect-ratio: 4/3;
    background: var(--gray-100);
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    color: var(--accent);
    font-size: 18px;
}

.card-1 {
    top: -10px;
    right: -30px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20px;
    right: -40px;
    animation-delay: 1s;
}

.card-3 {
    bottom: -10px;
    left: -30px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== Section Header ===== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header-custom {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    background: rgba(201, 169, 97, 0.12);
    color: var(--accent-dark);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}

.section-header-custom h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-header-custom p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Services Section ===== */
.services {
    padding: 80px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--gray-50);
    padding: 32px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-light);
    box-shadow: var(--shadow-md);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(201, 169, 97, 0.12);
    border-radius: 50%;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--accent-dark);
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Pricing Section ===== */
.pricing-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 4px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 20px;
}

.pricing-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(201, 169, 97, 0.12);
    border-radius: 50%;
    font-size: 20px;
    color: var(--accent-dark);
    margin-bottom: 12px;
}

.pricing-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.pricing-header p {
    font-size: 14px;
    color: var(--text-light);
}

.pricing-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-price {
    margin: 16px 0 20px;
}

.price-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.price-unit {
    font-size: 14px;
    color: var(--text-light);
    display: block;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: right;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-dark);
}

.pricing-features li i {
    color: var(--accent);
}

.pricing-note {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 32px;
    padding: 16px 24px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    font-size: 14px;
    color: var(--text-light);
}

.pricing-note i {
    color: var(--accent);
    font-size: 18px;
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 80px 0;
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    text-align: center;
    padding: 32px 20px;
    position: relative;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-icon {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 12px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Testimonials ===== */
.testimonials {
    padding: 80px 0;
    background: var(--gray-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 12px;
    font-size: 14px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.author-title {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 32px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary-dark);
}

.cta-section .btn-primary:hover {
    background: var(--gray-100);
    box-shadow: 0 8px 24px rgba(255,255,255,0.2);
}

.cta-section .btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.cta-section .btn-whatsapp:hover {
    background: #128C7E;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-about h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-about p {
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.8;
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--white);
}

.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.contact-item i {
    width: 20px;
    color: var(--accent);
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
}

.footer-pro-number {
    color: var(--accent);
}

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    color: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablets */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Navbar */

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        border-bottom: 1px solid var(--gray-200);
        display: none;
        box-shadow: var(--shadow-md);
    }

    .nav-phone {
        display: flex; 
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(201, 169, 97, 0.12);
        border-radius: 50%;
    }
    
    .nav-phone i {
        font-size: 18px;
        color: var(--accent);
    }

    body {
        padding-top: 0 !important;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;  
        align-items: center;     
        gap: 12px;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;            /* عرض کامل */
        max-width: 280px;       /* حداکثر عرض */
        justify-content: center; /* متن وسط */
        text-align: center;
    }
    
    .navbar {
        height: 60px;  /* ارتفاع هدر */
        position: sticky;  /* چسبنده */
        top: 0;
    }
    
    .hero {
        padding-top: 10px;  
        padding-bottom: 40px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    
    .btn-nav-primary {
        text-align: center;
        justify-content: center;
    }
    
    /* Hero */
    .hero {
        padding: 10px 16px 40px;
        min-height: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 30px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .hero-image-wrapper {
        max-width: 100%;
    }
    
    .floating-card {
        display: none;
    }
    
    /* Sections */
    .section-header-custom h2 {
        font-size: 26px;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 26px;
        bottom: 16px;
        right: 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 26px;
    }
    
    .pricing-card {
        padding: 24px 16px;
    }
    
    .price-amount {
        font-size: 26px;
    }
}

/* ============================================================
   FLOATING ACTION BUTTON - نهایی
   ============================================================ */

.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== دکمه اصلی ===== */
.fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(52, 152, 219, 0.5);
}

.fab-container.open .fab-button {
    background: #e74c3c;
    transform: rotate(45deg);
}

/* ===== منو ===== */
.fab-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;  /* فاصله از دکمه اصلی */
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px) scale(0.8);
    transition: all 0.3s ease;
    order: -1;  /* ← منو را بالای دکمه قرار می‌دهد */
}

.fab-container.open .fab-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* ===== دکمه‌های منو ===== */
.fab-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    padding: 0;  
    overflow: hidden;  
}

.fab-container.open .fab-item {
    opacity: 1;
    transform: scale(1);
}

/* تأخیر برای باز شدن از پایین به بالا */
.fab-container.open .fab-item:nth-child(1) {
    transition-delay: 0.15s;
}
.fab-container.open .fab-item:nth-child(2) {
    transition-delay: 0.1s;
}
.fab-container.open .fab-item:nth-child(3) {
    transition-delay: 0.05s;
}

.fab-item:hover {
    transform: scale(1.15);
}

.fab-item:active {
    transform: scale(0.9);
}

.fab-item img {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);  /* ← اینجا برای SVG */
}

/* ===== موبایل ===== */
@media (max-width: 768px) {
    .fab-container {
        bottom: 16px;
        right: 16px;
    }

    .fab-button {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .fab-item {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* ===== انگلیسی ===== */
html[lang="en"] .fab-container {
    right: auto;
    left: 24px;
}

@media (max-width: 768px) {
    html[lang="en"] .fab-container {
        right: auto;
        left: 16px;
    }
}

/* ===== دکمه بله با استفاده از mask ===== */
.fab-item.bale-btn {
    background: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-item.bale-btn .bale-icon {
    width: 28px;
    height: 28px;
    display: block;
    background-color: white;
    mask-image: url('../img/bale.svg');
    -webkit-mask-image: url('../img/bale.svg');
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}