* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body, html {
    overflow-x: hidden;
    width: 100%;
    font-family: 'Vazir', sans-serif;
    direction: rtl;
}

/* هدر */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: backdrop-filter 0.3s ease, background-color 0.5s ease;
}

header.transparent {
    backdrop-filter: blur(0px);
    background-color: transparent;
}

header.scrolled {
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 50px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem; /* افزایش اندازه فونت */
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffd700;
}

/* بخش هیرو */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-content .btn {
    padding: 1rem 2rem;
    background-color: #ffd700;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hero-content .btn:hover {
    background-color: #e6b800;
}

/* بخش خدمات */
.services {
    padding: 6rem 1rem 2rem;
    background-color: #f4f4f4;
    text-align: center;
    scroll-margin-top: 100px;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.swiper-container {
    width: 100%;
    height: auto;
    padding: 10px 0;
    position: relative;
}

.swiper-slide {
    position: relative;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 400px;
    transition: transform 0.3s ease;
}

.swiper-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.slide-content {
    padding: 1.5rem;
}

.slide-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.slide-content p {
    font-size: 1rem;
    color: #666;
}

/* دکمه‌های ناوبری */
.swiper-button-next,
.swiper-button-prev {
    color: #ffd700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    transition: opacity 0.3s ease;
}

.swiper-button-next { right: 20px }
.swiper-button-prev { left: 20px }

@media (min-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: block;
    }
}

/* بخش درباره ما */
.about {
    padding: 6rem 2rem;
    background-color: #fff;
    text-align: center;
    scroll-margin-top: 100px;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* استایل‌های فوتر */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 3rem 1rem 1rem;
    font-family: 'Vazir', sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffd700;
}

.footer-section .logo img {
    height: auto;
	width: auto;
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ddd;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* استایل‌های جدید برای صفحه محصولات - اضافه شده */
.products-page {
    padding: 100px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    list-style: none;
    padding: 15px 0;
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-right: 10px;
}

.product-list {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.product-info h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.product-specs {
    list-style: none;
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: 15px;
}

.product-specs li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .product-card {
        grid-template-columns: 1fr;
    }
    
    .product-card img {
        height: 200px;
    }
}

/* دکمه شناور محصولات */
.floating-product-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 215, 0, 0.2);
    color: #666;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(100px);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.floating-product-btn.active {
    opacity: 1;
    transform: translateY(0);
    background: rgba(255, 215, 0, 0.9);
    color: #000;
}

.floating-product-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .floating-product-btn {
        bottom: 20px;
        left: 20px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* استایل‌های بک‌گراند ویدیویی برای صفحه محصولات */
.products-page {
    position: relative;
    padding: 100px 20px 40px;
    width: 100%;
    max-width: none; /* حذف max-width اگر وجود دارد */
    margin: 0 auto;
    z-index: 1;
    overflow: hidden;
}

.products-page .video-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0; /* اضافه کردن این خط */
    width: 100%; /* تغییر از 100vw به 100% */
    height: 100%;
    z-index: -1;
    overflow: hidden;
    margin: 0 auto; /* وسط‌چین */
}
}

.products-page .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7; /* تنظیم شفافیت ویدیو */
}

/* بهبود خوانایی متن روی بک‌گراند */
.products-intro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    direction: rtl; /* اضافه کردن جهت RTL */
}

.products-intro h1,
.product-card h2,
.product-card p,
.product-specs li {
    color: #fff; /* متن سفید برای تضاد بهتر */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* سایه برای متن */
}

/* بهبود کارت‌های محصول */
.product-list {
    display: grid;
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    direction: rtl; /* اضافه کردن جهت RTL */
}

.product-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background: rgba(255, 255, 255, 0.1); /* پس‌زمینه شفاف برای کارت‌ها */
    backdrop-filter: blur(10px); /* افکت بلور */
    border: 1px solid rgba(255, 255, 255, 0.2); /* حاشیه شفاف */
    padding: 20px;
    border-radius: 10px;
    width: 100%; /* عرض کامل */
    margin: 0 auto; /* وسط‌چین */
    direction: rtl; /* اضافه کردن جهت RTL */
}

@media (max-width: 768px) {
    .product-card {
        grid-template-columns: 1fr;
    }
    
    .product-card img {
        height: 200px;
    }
}

/* استایل‌های عمومی */
.articles-intro {
    position: relative;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
	scroll-margin-top: 100px;
}

.articles-intro .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.articles-intro .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.articles-intro .intro-content {
    z-index: 1;
}

.articles-intro h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.articles-intro p {
    font-size: 1.2rem;
}

/* لیست مقالات */
.articles-list {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-10px);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-info {
    padding: 1.5rem;
}

.article-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.article-info p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.article-info .read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #ffd700;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.article-info .read-more:hover {
    background: #e6b800;
}

/* استایل‌های صفحه محتوای مقاله */
.article-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
}

/* استایل‌های بک‌گراند ویدیویی برای صفحه محصولات */
.article-wrapper {
    position: relative;
    padding: 100px 20px 40px;
    width: 100%;
    max-width: none; /* حذف max-width اگر وجود دارد */
    margin: 0 auto;
    z-index: 1;
    overflow: hidden;
}

.article-wrapper .video-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0; /* اضافه کردن این خط */
    width: 100%; /* تغییر از 100vw به 100% */
    height: 100%;
    z-index: -1;
    overflow: hidden;
    margin: 0 auto; /* وسط‌چین */
}
}

.article-wrapper .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7; /* تنظیم شفافیت ویدیو */
}

.article-content {
    max-width: 800px;
    margin: 100px auto 40px;
    padding: 0 20px;
    direction: rtl;
	display: grid;
    gap: 30px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: #fff;
}

.breadcrumb ul li:not(:last-child)::after {
    content: "›";
    margin-right: 10px;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
	transition: 0.5s ease;
}

.breadcrumb a:hover {
    color: #ffd700;
	transition: 0.3s ease;
}

.article-content h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.article-featured-image {
    margin-bottom: 2rem;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.article-body {
    line-height: 1.8;
    color: #fff;
}

.article-body h2 {
    font-size: 1.8rem;
    color: #f3f3f3;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-right: 1.5rem;
}

.article-body ul li,
.article-body ol li {
    margin-bottom: 0.8rem;
}

.publish-date {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 2rem;
}

.article-share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.article-share p {
    font-size: 1rem;
    color: #f3f3f3;
    margin-bottom: 1rem;
}

.article-share ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
}

.article-share ul li a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #f4f4f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.article-share ul li a:hover {
    background: #ffd700;
}

.article-share ul li img {
    width: 30px;
    height: 30px;
}

/* تصاویر ثابت در کناره‌ها */
.fixed-side-images {
    pointer-events: none; /* عدم تداخل با تعاملات کاربر */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
}

.fixed-left,
.fixed-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
	background-blend-mode: color-dodge;
	box-shadow: 0 2px 15px rgba(255,255,255,0.2);
}

.fixed-left {
    left: 20px;
}

.fixed-right {
    right: 20px;
}

@media (min-width: 1200px) {
    .fixed-left { left: 50px }
    .fixed-right { right: 50px }
}

@media (max-width: 1080px) {
    .fixed-side-images { display: none } /* مخفی کردن در موبایل */
}

/* استایل‌های بخش نمونه کارها */
.portfolio {
    padding: 6rem 2rem;
    background-color: #f4f4f4;
    text-align: center;
    scroll-margin-top: 100px;
}

.portfolio h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.portfolio-item p {
    font-size: 1.2rem;
    padding: 1rem;
    color: #2c3e50;
}

/* استایل‌های منوی همبرگری */
.hamburger {
    display: none; /* مخفی کردن در دسکتاپ */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* استایل‌های ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* نمایش در موبایل */
    }

    .nav-links {
        position: fixed;
        top: 80px; /* فاصله از بالای صفحه */
        right: -100%; /* مخفی کردن منو در حالت عادی */
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0; /* نمایش منو هنگام کلیک */
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* انیمیشن منوی همبرگری */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}