/* 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: 94%; 
    margin-top: 30px;
    margin-left: 3%;
    margin-right: 3%;
    margin-bottom: 0;
}

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;
}

/* نگهدارنده تصویر */
.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%;
}

/* استایل بخش محتوا */
.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);
    padding-top: 20px;
    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%;
}

.main-image img {
width: 300px;

    background-image: url('image.jpg');
    background-size: cover;
    border-radius: 15px;
  
}

/* گالری کوچک */
.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;
}

.specs {
    background: #f8fafd;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    width: 100%;
}

.specs h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.specs p {
    margin-bottom: 5px;
    color: #555;
}

/* گالری تصاویر */
.full-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
    width: 100%;
}

.gallery-item {
    background: #f8fafd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    height: 180px;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.gallery-item p {
    padding: 15px;
    text-align: center;
    color: #2c3e50;
    font-weight: 500;
}

/* جدول مقایسه */
.comparison-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;
}

/* راهنمای انتخاب */
.selection-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.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;
}

/* ماشین حساب */
.calculator {
    background: #f0f7ff;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.calc-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

.calculator button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    grid-column: 1 / -1;
    justify-self: start;
}

.calculator button:hover {
    background: #2980b9;
}

.calc-result {
    grid-column: 1 / -1;
    margin-top: 20px;
    padding: 15px;
    background: #e8f4ff;
    border-radius: 5px;
    border-left: 4px solid #3498db;
    font-weight: 500;
}

/* فوتر */
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: #2c3e50;
    color: white;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
}

/* رسپانسیو */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .full-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .selection-guide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 20px;
    }
    
    .main-image {
        height: 250px;
    }
    
    .full-gallery {
        grid-template-columns: 1fr;
    }
    
    th, td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .calc-form {
        grid-template-columns: 1fr;
    }
}


.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;
    }
  }
  
  

  .consult-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #e91e63;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: bottom 0.3s ease;
  }



  .container {
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(246, 74, 74, 0.08);
    margin-bottom: 30px;
}

/* نگهدارنده تصویر - نسخه بهبود یافته */
.image-placeholder {
    background: linear-gradient(135deg, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 20px 0;
    color: #2c3e50;
    font-weight: 500;
    overflow: hidden;
    position: relative;
}

.image-placeholder img {
    width: 100%;
    height: auto; /* تغییر کلیدی: از auto به جای 100% */
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

@media (min-width: 1025px) {
    .image-placeholder {
      width: 600px;
      height: 400px;
      display: flex;
      align-items: center;
      margin: 0 auto; 
    }
  }
  