/* ==================== متغیرها (پالت رنگی شیک و مدرن) ==================== */
:root {
    /* رنگ‌های استخراج شده از عکس شما */
    --color-primary: #00A3FF; /* آبی روشن و جذاب دکمه */
    --color-primary-dark: #0081CC;
    --color-secondary: #FF623D; /* نارنجی پیراهن برای دکمه‌های خاص */
    --color-secondary-dark: #E64A26;
    
    /* پس‌زمینه‌ها و متن‌ها (طراحی مینیمال) */
    --color-text-dark: #1E293B; /* سورمه‌ای تیره به جای مشکی مطلق */
    --color-text-light: #64748B;
    --color-bg-light: #FFFFFF;
    --color-bg-offset: #F4F7F6; /* خاکستری بسیار روشن */
    
    /* گرادینت سبز روشن پس زمینه عکس شما */
    --gradient-soft: linear-gradient(135deg, #E6FFD9 0%, #F5FFF0 100%);

    --font-family-base: 'Vazirmatn', sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -3px rgba(0, 163, 255, 0.15);
    --shadow-lg: 0 20px 40px -5px rgba(0, 163, 255, 0.2);
    --transition-smooth: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-family-base); color: var(--color-text-dark); background-color: var(--color-bg-light); line-height: 1.8; }
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
.section-bg { background-color: var(--color-bg-offset); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-subtitle { display: block; color: var(--color-primary); font-weight: 700; font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 10px; }
.section-title { font-size: 2.2rem; font-weight: 800; color: var(--color-text-dark); }

/* دکمه‌ها */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 30px; border-radius: 50px; font-weight: 700; transition: var(--transition-smooth); cursor: pointer; border: none; }
.btn-primary { background-color: var(--color-primary); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background-color: var(--color-primary-dark); transform: translateY(-3px); box-shadow: var(--shadow-lg); color: #fff; }
.btn-secondary { background-color: #fff; color: var(--color-text-dark); border: 1px solid #E2E8F0; }
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-3px); }

/* ==================== هدر و منوی زبان ==================== */
#header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: var(--transition-smooth); background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { font-size: 1.8rem; font-weight: 900; color: var(--color-primary); }

.nav-menu ul { display: flex; align-items: center; }
.nav-link { margin-left: 25px; font-weight: 500; color: var(--color-text-light); font-size: 1rem; }
.nav-link:hover, .nav-link.active { color: var(--color-primary); }

.btn-contact { background: var(--color-secondary); color: #fff !important; padding: 8px 20px; border-radius: 30px; }
.btn-contact:hover { background: var(--color-secondary-dark); transform: translateY(-2px); color: #fff !important;}

.header-actions { display: flex; align-items: center; gap: 15px; }

/* دراپ داون منوی زبان (شیک و مینیمال) */
.lang-switcher { position: relative; }
.lang-btn { background: transparent; border: none; font-family: inherit; font-size: 0.95rem; font-weight: 600; color: var(--color-text-dark); cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 5px 10px; }
.lang-btn:hover { color: var(--color-primary); }
.lang-dropdown { position: absolute; top: 150%; left: 0; background: #fff; min-width: 120px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition-smooth); overflow: hidden; border: 1px solid #f1f1f1; }
.lang-switcher.active .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown a { display: block; padding: 10px 15px; font-size: 0.9rem; color: var(--color-text-light); border-bottom: 1px solid #f9f9f9; }
.lang-dropdown a:last-child { border-bottom: none; }
.lang-dropdown a:hover, .lang-dropdown a.active { background: var(--color-bg-offset); color: var(--color-primary); font-weight: 600; }

.nav-toggle, .nav-close { display: none; font-size: 1.5rem; cursor: pointer; color: var(--color-text-dark); }

/* ==================== Hero ==================== */
.hero { height: 90vh; display: flex; align-items: center; text-align: center; position: relative; background: var(--gradient-soft); /* استفاده از سبز ملایم عکس */ }
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.hero-title { font-size: 3.5rem; font-weight: 900; margin-bottom: 20px; color: var(--color-text-dark); line-height: 1.3; }
.hero-subtitle { font-size: 1.2rem; color: var(--color-text-light); margin-bottom: 40px; }
.hero-btns { display: flex; justify-content: center; gap: 15px; }

/* ==================== درباره ما ==================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { margin-bottom: 20px; color: var(--color-text-light); }
.about-stats { display: flex; gap: 30px; margin-top: 30px; }
.stat-item { display: flex; flex-direction: column; align-items: flex-start; }
.stat-number { font-size: 2rem; color: var(--color-primary); margin-bottom: 5px; }
.stat-label { font-size: 0.9rem; font-weight: 600; }
.about-image img { border-radius: 20px; box-shadow: var(--shadow-lg); }

/* ==================== محصولات (گالری و لایت‌باکس) ==================== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.product-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition-smooth); cursor: pointer; border: 1px solid #f1f1f1; }
.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.product-img-box { position: relative; height: 280px; overflow: hidden; background: #fafafa; }
.product-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img-box img { transform: scale(1.05); }

/* آیکون زوم که موقع هاور روی عکس میاد */
.product-overlay { position: absolute; inset: 0; background: rgba(0, 163, 255, 0.2); display: flex; justify-content: center; align-items: center; opacity: 0; transition: var(--transition-smooth); }
.product-overlay i { color: #fff; font-size: 2rem; background: var(--color-primary); width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; transform: translateY(20px); transition: var(--transition-smooth); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.product-card:hover .product-overlay { opacity: 1; }
.product-card:hover .product-overlay i { transform: translateY(0); }

.product-info { padding: 25px; text-align: center; }
.product-info h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--color-text-dark); }
.product-info p { color: var(--color-text-light); font-size: 0.9rem; }

/* استایل‌های مدال (زوم عکس) */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(15, 23, 42, 0.9); backdrop-filter: blur(5px); justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.modal.show { display: flex; opacity: 1; }
.modal-content { max-width: 90%; max-height: 90vh; border-radius: 15px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform: scale(0.8); transition: transform 0.3s ease; }
.modal.show .modal-content { transform: scale(1); }
.modal-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.modal-close:hover { color: var(--color-secondary); }

/* ==================== ویژگی‌ها ==================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-box { padding: 40px 30px; border-radius: 20px; text-align: center; background: #fff; border: 1px solid #f1f1f1; transition: var(--transition-smooth); }
.feature-box:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.feature-icon { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 20px; }
.feature-box h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-box p { color: var(--color-text-light); font-size: 0.9rem; }

/* ==================== تماس ==================== */
.contact { padding: 80px 0; background: var(--color-primary); color: #fff; text-align: center; border-radius: 30px; width: 95%; margin: 0 auto 50px; }
.contact-content h2 { font-size: 2rem; margin-bottom: 15px; color: #fff; }
.contact-content p { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; }
.contact-phone { font-size: 1.5rem; font-weight: 700; background: #fff; color: var(--color-primary); padding: 15px 40px; border-radius: 50px; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.contact-phone:hover { background: var(--color-secondary); color: #fff; }

/* ==================== فوتر ==================== */
.footer { background: var(--color-text-dark); padding: 30px 0; text-align: center; color: #94A3B8; font-size: 0.9rem; }

/* انیمیشن‌ها */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
.delay-200 { transition-delay: 0.1s; }
.delay-400 { transition-delay: 0.2s; }

/* ریسپانسیو */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
    .nav-toggle, .nav-close { display: block; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: #fff; flex-direction: column; padding: 80px 40px; transition: var(--transition-smooth); z-index: 1001; box-shadow: -5px 0 25px rgba(0,0,0,0.1); }
    .nav-menu.show { right: 0; }
    .nav-menu ul { flex-direction: column; align-items: flex-start; }
    .nav-link { margin: 0 0 20px 0; color: var(--color-text-dark); }
    .nav-close { position: absolute; top: 20px; left: 20px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .contact { width: 100%; border-radius: 0; }
}