/* Reset و تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100%;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* هدر */
header {
    background: linear-gradient(135deg, #008B8B 0%, #000000 100%);
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;

    color: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* نوار ناوبری */
nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    position: -webkit-sticky; /* برای پشتیبانی از Safari */
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #2c3e50;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    padding: 0;
}

.nav-list li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-list li a:hover {
    background-color: #f0f4f8;
    color: #3498db;
}

/* منوی همبرگری برای موبایل */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* بخش‌های اصلی */
main {
    padding: 40px 0;
    width: 100%;
}

section {
    margin-bottom: 60px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
    font-size: 1.8rem;
    text-align: center;
}

/* استایل بخش محتوا */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
    width: 100%;
}

.image-container {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
}

.info-container {
    flex: 2;
    min-width: 300px;
    max-width: 100%;
}

/* استایل تصویر اصلی */
.main-image {
    height: 300px;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

/* گالری کوچک */
.thumbnail-gallery {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.thumb {
    width: 60px;
    height: 60px;
    background: #e0e6ef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumb:hover {
    background: #3498db;
    color: white;
}

/* استایل اطلاعات */
.info-container h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.info-container ul {
    margin: 15px 0;
    padding-right: 20px;
}

.info-container li {
    margin-bottom: 8px;
    color: #555;
}

/* مکانیزم عملکرد */
.mechanism-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.mechanism-item {
    background: #f8fafd;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.mechanism-item:hover {
    transform: translateY(-5px);
}

.mechanism-item h3 {
    color: #3498db;
    margin-bottom: 15px;
}

.mechanism-item p {
    color: #555;
}

/* نگهدارنده تصویر */
.image-placeholder {
    height: 250px;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 20px 0;
    color: #2c3e50;
    font-weight: 500;
    width: 100%;
}

/* کاربردها */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.application-item {
    background: #f8fafd;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.application-item:hover {
    transform: translateY(-5px);
}

.application-item h3 {
    color: #3498db;
    margin-bottom: 15px;
}

.application-item p {
    color: #555;
}

/* راهنمای انتخاب */
.selection-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.guide-item {
    background: #f8fafd;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.guide-item:hover {
    transform: translateY(-5px);
}

.guide-item h3 {
    color: #3498db;
    margin-bottom: 15px;
}

.guide-item p {
    color: #555;
}

/* گالری تصاویر */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item .image-placeholder {
    height: 200px;
    margin: 0;
}

/* جدول فنی */
.technical-table {
    overflow-x: auto;
    margin-top: 20px;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    max-width: 100%;
}

th, td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

th {
    background-color: #3498db;
    color: white;
    font-weight: 500;
}

tr:nth-child(even) {
    background-color: #f8fafd;
}

tr:hover {
    background-color: #eef5ff;
}

/* فوتر */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    width: 100%;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1002; /* افزایش z-index برای نمایش روی منو */
    }
    
    .nav-list {
        position: fixed;
        top: 0; /* تغییر از 70px به 0 برای چسبیدن به بالا */
        right: -100%;
        width: 70%;
        height: 100vh; /* تغییر به 100vh برای پوشش کامل ارتفاع */
        background: white;
        flex-direction: column;
        padding-top: 70px; /* اضافه کردن padding برای فاصله از بالا */
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1001; /* افزایش z-index برای نمایش روی سایر عناصر */
        margin: 0;
        overflow-y: auto; /* امکان اسکرول اگر محتوا بلندتر باشد */
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list li {
        width: 100%;
        text-align: center;
        margin: 0; /* حذف margin احتمالی */
    }
    
    .nav-list li a {
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
        display: block; /* اطمینان از نمایش صحیح لینک‌ها */
    }

    /* اطمینان از اینکه هدر اصلی زیر منو قرار نگیرد */
    #header {
        z-index: 1000;
    }
}
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .mechanism-content {
        grid-template-columns: 1fr;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .selection-guide {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 20px;
    }

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    th, td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .nav-list {
        width: 80%;
    }
    
    .container {
        padding: 0 10px;
    }
}


.footer {
    background: linear-gradient(135deg, #2c3e50, #1a2530);
    color: #fff;
    padding: 2rem 0 0;
    margin-top: auto;
    direction: rtl;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: #4CAF50;
}

.footer-section p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.phone-number {
    font-weight: bold;
    font-size: 1.1rem;
    color: #4CAF50;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
    margin: 0 8px;
    font-size: 18px;
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    color: #4CAF50;
}

.ig {
  width: 25px;
}

.whatsapp {
  width: 28px ;
}

.tel {
  width: 29px; ;
}


.about-text {
    text-align: justify;
    line-height: 1.8;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

.newsletter-form input {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.newsletter-form input::placeholder {
    color: #ccc;
}

.newsletter-form button {
    padding: 0.8rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #3e8e41;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        min-width: 100%;
    }
}
  

  /* ریسپانسیو */
  @media (max-width: 768px) {
    .footer-container {
      flex-direction: column;
      text-align: center;
    }
  }
  









.image-placeholder {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    border-radius: 12px;
    margin: 25px auto; /* تغییر:居中 کردن با margin auto */
    padding: 15px; /* کاهش padding */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    
    /* ایجاد مربع کوچک‌تر */
    width: 50%; /* کاهش عرض به 50% */
    padding-bottom: 50%; /* کاهش ارتفاع به تناسب عرض */
    height: 0;
}
.image-placeholder span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px; /* کاهش padding داخلی */
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        padding: 20px;
    }
    
    .image-placeholder {
        padding: 10px;
        padding-bottom: 50%; /* حفظ نسبت مربع */
        width: 70%; /* افزایش عرض در موبایل */
    }
    
}

@media (max-width: 480px) {
    .controls {
        flex-direction: column;
        align-items: center;
    }
    .image-placeholder {
        width: 80%; /* عرض بیشتر در دستگاه‌های کوچک */
        padding-bottom: 80%; /* حفظ نسبت مربع */
    }
}


#gallery {
    padding: 50px 20px;
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
}

#gallery h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2.2rem;
    position: relative;
}

#gallery h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #4e89e8;
    margin: 15px auto 0;
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.image-placeholder {
    width: 100%;
    padding-bottom: 75%; /* نسبت ابعاد 4:3 */
    position: relative;
    overflow: hidden;
}

.image-placeholder span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .image-placeholder img {
    transform: scale(1.05);
}

/* رسپانسیو برای تبلت */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    #gallery {
        padding: 30px 15px;
    }
    
    #gallery h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}

/* رسپانسیو برای موبایل */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 350px;
    }
    
    #gallery h2 {
        font-size: 1.6rem;
    }
}




