/* تنظیمات پایه */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
body {
  color: #222;
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}
h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
  position: relative;
}
h2 span {
  display: inline-block;
  width: 40px;
  height: 3px;
  background: #c00;
  margin-right: 10px;
  vertical-align: middle;
}
.subtitle {
  color: #666;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ====== Hero ====== */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

/* نوار بالای هدر */
.hero-header {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center; /* لوگو وسط */
  align-items: center;
}

/* لوگو وسط */
.logo img {
  max-width: 180px;
}

.menu-logo img {
    cursor: pointer;
}

/* منو سمت راست */
.menu-icon {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-icon span {
  display: block;
  width: 30px;
  height: 3px;
  background: #00eeff;
  border-radius: 2px;
}
.menu-icon.sticky {
  position: fixed;  /* فیکس میشه بالای صفحه */
  top: 20px;
  right: 20px;
  /* box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); */
}
.menu-icon.sticky span {
  background: #000000; /* رنگ قرمز یا هرچی بخوای */
}
/* منوی کناری */
.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 350px;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px); /* شیشه‌ای */
  box-shadow: -2px 0 15px rgba(0,0,0,0.3);
  padding: 40px 30px;
  transition: right 0.4s ease;
  z-index: 1000;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.side-menu.active {
  right: 0;
}

.side-menu .close-btn {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
}

/* لوگو بالای منو */
.menu-logo {
  text-align: center;
}

.menu-logo img {
  max-width: 140px;
}

/* لینک‌های منو */
.menu-links {
    display: flex;
    list-style: none;
    padding: 0;
    flex-direction: column-reverse;
    align-items: flex-end;

}
.menu-links li {
  margin: 20px 0;
}
.menu-links li a {
  text-decoration: none;
  font-size: 20px;
  color: #000;
  transition: color 0.3s;
}
.menu-links li a:hover {
  color:#00eeff;
}

/* زبان‌ها پایین منو */
.languages {
  border-top: 1px solid rgba(0,0,0,0.2);
  padding-top: 20px;
  text-align: center;
}

.languages a {
  margin: 0 15px;
  font-size: 18px;
  color: #000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px; /* فاصله بین پرچم و متن */
}

.languages a:hover {
  color: #00eeff;
}

.flag {
  width: 22px;
  height: auto;
  border-radius: 2px;
}
/* ====== About ========= */

.about {
  padding: 100px 40px;
  background: url(/image/about-us.webp);
}


.about .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

/* سمت چپ */
.about-text {
  flex: 1 1 50%;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
      text-align: center;
}

.about-text .subtitle {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

.about-text p {
  margin-bottom: 20px;
}

.buttons {
  display: flex;
  justify-content: center; /* دکمه رو وسط میاره */
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn.red {
  background: #00eeff;
  color: #fff;
}

.btn.red:hover {
  background: #00eeff;
}

.btn.outline {
  border: 2px solid #00eeff;
  color: #00eeff;
}

.btn.outline:hover {
  background: #00eeff;
  color: #fff;
}

.stats {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.stat-box {
  flex: 1;
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.stat-box h3 {
  font-size: 28px;
  color: #00eeff;
  margin-bottom: 5px;
}

/* سمت راست */
.about-slider {
  flex: 1 1 50%;
  position: relative;
  max-width: 500px;
  height: 600px;
  overflow: hidden;
border-radius: 15px;
}

.slides {
             position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            border-radius: 15px;
  /* animation: slide 16s infinite; */
}

.slides img {
 border-radius: 15px; /* گوشه‌ها کاملاً تیز بشن */
}
/* انیمیشن برای اسلاید */
@keyframes slide {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(0); }

  25%  { transform: translateX(-100%); }
  45%  { transform: translateX(-100%); }

  50%  { transform: translateX(-200%); }
  70%  { transform: translateX(-200%); }

  75%  { transform: translateX(-300%); }
  95%  { transform: translateX(-300%); }

  100% { transform: translateX(0); }
}

/* ====== Scroll to Top Button ====== */
.scroll-top {
  position: fixed;
  bottom: 20px;   /* کمی بالاتر بیاد تا منو پایین جا شه */
  right: 20px;
  background: #00eeff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 22px;
  cursor: pointer;
  display: none; /* اول مخفی */
  z-index: 1200;
  display: flex;
    justify-content: center;
    align-items: center;
}
.scroll-top:hover {
  background: #00eeff;
}

/* ====== Products ====== */
       /* استایل بخش محصولات */
       
        .products {
            padding: 80px 0;
            text-align: center;
        }
        
        .products h2 {
            font-size: 2.2rem;
            margin-bottom: 20px;
            position: relative;
            display: inline-block;
            color: #2c3e50;
        }
        
        .products h2 span {
            content: "";
            display: block;
            width: 60px;
            height: 4px;
            background: #3498db;
            margin: 10px auto;
        }
        
        .products .subtitle {
            font-size: 1rem;
            max-width: 700px;
            margin: 0 auto 60px;
            color: #666;
            line-height: 1.8;
        }
        
        .product-grid {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 30px;
        }
        
        .product-card {
            width: 508px;
            height: 267px;
            border-radius: 0px 0px 0px 64px;
            position: relative;
            display: flex;
            flex-direction: column;
            
            justify-content: center;
            box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.25);
            transition: 0.3s ease;
            padding: 30px;
            text-align: right;
            overflow: hidden;
        }
        
        .product-card h1 {
            font-size: 24px;
            margin-bottom: 10px;
            color: white;
            z-index: 2;
                text-align: left;
        }
        
        .product-card p {
            font-size: 16px;
            color: white;
            margin-bottom: 15px;
            z-index: 2;
            max-width: 60%;
                text-align: left;
        }
        
        .product-card .arrow {
            position: absolute;
            bottom: 20px;
            left: 20px;
            font-size: 24px;
            color: white;
            z-index: 2;
            cursor: pointer;
        }
        .product-card:hover .arrow {
  animation: pulseArrow 0.6s infinite alternate;
}

@keyframes pulseArrow {
  from { transform: translateX(0); opacity: 0.7; }
  to   { transform: translateX(10px); opacity: 1; }
}

        .product-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        }
        
        /* استایل‌های خاص برای هر محصول */
        .progressive { 
            background: linear-gradient(135deg, #3caee7 0%, #3caee7 100%);
        }
        
        .professional { 
            background: linear-gradient(135deg, #bb7acb 0%, #bb7acb 100%);
        }
        
           .bifocal { 
            background: linear-gradient(135deg, #b5dde2 0%, #8ad2e7 100%);
        }
        
               
           .singleVision { 
            background: linear-gradient(135deg, #ddaac0 0%, #f189bd 100%);
        }
        
        .lifeStyle{
                      background: linear-gradient(135deg, #c8ebba 0%, #bde6a2 100%);
        }

        
        /* استایل برای لوگوها و تصاویر */
        .logo-container {
            position: absolute;
            top: 30px;
            left: 30px;
            z-index: 2;
        }
        
        .logo-container img {
            height: 40px;
        }
        
        .product-card img:not(.logo-container img) {
            position: absolute;
            /* bottom: 0;
            left: 0;
            height: 80%; */
            z-index: 1;
            border-radius: 0 0 0 64px;
            object-fit: cover;
            filter: grayscale(100%) brightness(40%) contrast(120%);
            mix-blend-mode: overlay;
            opacity: 0.8;
        }
        
        /* دکوریشن‌های پس‌زمینه */
        .product-card::after {
            content: "";
            position: absolute;
            width: 200px;
            height: 200px;
          /* background: rgba(255, 255, 255, 0.1); */
            border-radius: 50%;
            bottom: -100px;
            left: -100px;
        }

/* ====== Services ====== */
    /* استایل کاروسل */
        .carousel {
            position: relative;
            width: 100%;
            max-width: 1000px;
            margin: 40px auto;
            border-radius: 14px;
            box-shadow: 0 15px 35px rgba(0,0,0,.2);
            overflow: hidden;
            background: #2c3e50;
            
        }
        
        .carousel::before {
            content: "";
            display: block;
            padding-top: 56.25%; /* نسبت 16:9 */
        }
        
        .slides-carousel {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            transition: transform 0.2s ease-in-out;
        }
        
        .slide {
            min-width: 100%;
            height: 100%;
            background-size: cover;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 30px;
            position: relative;
        }
        
        .slide::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
            z-index: 1;
        }
        
        /* تصاویر پس‌زمینه برای اسلایدها */
        .slide:nth-child(1) {
            background-image: url('/image/photo1.jpg');
        }
        
        .slide:nth-child(2) {
            background-image: url('/image/photo2.jpg');
        }
        
        .slide:nth-child(3) {
            background-image: url('/image/photo3.jpg');
        }
        
        /* .slide:nth-child(4) {
            background-image: url('/image/photo4.png');
        } */
        
        /* متن روی تصاویر */
        .slide .caption {
            position: relative;
            color: #fff;
            padding: 20px;
            border-radius: 10px;
            font-size: 22px;
            max-width: 80%;
            z-index: 2;
            text-align: right;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(5px);
            border-right: 4px solid #3498db;
        }
        
        /* دکمه‌های ناوبری */
        .nav {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            transform: translateY(-50%);
            padding: 0 20px;
            pointer-events: none;
            z-index: 10;
        }
        
        .nav button {
            pointer-events: all;
            background: rgba(255, 255, 255, 0.8);
            color: #2c3e50;
            border: 0;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 20px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }
        
        .nav button:hover {
            background: #fff;
            transform: scale(1.1);
        }
        
        /* نشانگر اسلایدها */
        .indicators {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 12px;
            z-index: 10;
        }
        
        .indicators span {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            display: inline-block;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .indicators .active {
            background: #fff;
            transform: scale(1.2);
        }
        
        /* ریسپانسیو */
        @media (max-width: 860px) {
            .carousel {
                height: 420px;
            }
            
            .logo {
                font-size: 2.8rem;
            }
            
            .tagline {
                font-size: 1.3rem;
            }
            
            .slide .caption {
                font-size: 18px;
            }
        }
        
        @media (max-width: 520px) {
            .carousel {
                height: 320px;
            }
            
            .logo {
                font-size: 2.2rem;
            }
            
            .tagline {
                font-size: 1.1rem;
            }
            
            .slide .caption {
                font-size: 16px;
                max-width: 90%;
            }
            
            .nav button {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }
        }


 /* استایل فوتر */
    footer {
      background-color: #222;
      color: #fff;
      padding: 60px 0 30px;
    }

    .footer-content {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 40px;
      margin-bottom: 40px;
    }

    .footer-column {
      flex: 1;
      min-width: 200px;
    }

    .footer-column h1 {
      font-size: 18px;
      margin-bottom: 20px;
      color: #00eeff;
      position: relative;
      padding-bottom: 10px;
    }

    .footer-column h1::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 40px;
      height: 2px;
      background: #00eeff;
    }

    .footer-column ul {
      list-style: none;
    }

    .footer-column ul li {
      margin-bottom: 12px;
    }

    .footer-column ul li a {
      color: #ccc;
      text-decoration: none;
      transition: color 0.3s;
    }

    .footer-column ul li a:hover {
      color: #00eeff;
    }

    .footer-bottom {
      border-top: 1px solid #444;
      padding-top: 20px;
      text-align: center;
      font-size: 14px;
      color: #999;
    }

    .footer-bottom p {
      margin-bottom: 10px;
    }

    .footer-bottom a {
      color: #ccc;
      text-decoration: none;
      margin: 0 10px;
    }

    .footer-bottom a:hover {
      color: #00eeff;
    }

    /* ریسپانسیو */
    @media (max-width: 768px) {
      .footer-content {
        flex-direction: column;
        gap: 30px;
      }
      
      .footer-column {
        min-width: 100%;
      }
    }




/* ================== ریسپانسیو ================== */

/* لپ‌تاپ کوچک (تا 1200px) */
@media (max-width: 1200px) {
  .container {
    padding: 0 15px;
  }

  .about .container {
    flex-direction: column;
    text-align: center;
  }

  .about-slider {
    max-width: 100%;
    height: 400px;
  }

  .product-grid {
    gap: 20px;
  }
}




/* تبلت (تا 992px) */
@media (max-width: 992px) {
  .hero-header {
    justify-content: space-between;
    padding: 0 20px;
  }

  .logo img {
    max-width: 140px;
  }

  .menu-icon {
    right: 20px;
  }

  .about-text {
    flex: 1 1 100%;
  }

  .stats {
    flex-direction: column;
  }

  .product-card {
    width: 100%;
    height: auto;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
  }

  .product-card p {
    max-width: 100%;
    text-align: center;
  }

  .logo-container {
    top: 15px;
    left: 15px;
  }

  .carousel {
    margin: 0px;
  }
}

/* موبایل (تا 600px) */
@media (max-width: 600px) {
  h2 {
    font-size: 24px;
  }

  .subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .about {
    padding: 60px 20px;
  }

  .about-text h2 {
    font-size: 26px;
  }

  .about-slider {
    height: 280px;
  }

  .stats {
    gap: 15px;
  }

  .stat-box h3 {
    font-size: 20px;
  }

  .product-card {
    padding: 15px;
  }

  .product-card h3 {
    font-size: 18px;
  }

  .product-card p {
    font-size: 14px;
  }

  .scroll-top {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .side-menu {
    width: 80%;
    padding: 20px;
  }

  .side-menu .close-btn {
    font-size: 24px;
    top: 10px;
    right: 10px;
  }

  .languages a {
    font-size: 14px;
  }

  footer {
    padding: 40px 20px;
  }

  .footer-content {
    gap: 20px;
  }

  .footer-column h1 {
    font-size: 16px;
  }


  /* ویدیو */
  .hero {
    height: 60vh;
  }
  .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* اسلاید */
  .slide {
    background-size: cover;
    background-position: center;
    height: 250px;
  }

}









































.side-menu .menu-links {
  overflow: visible !important;
}

.side-menu .has-submenu {
  position: relative;
  display: block;
  width: 100%;
}

.side-menu .submenu-toggle {
    background: none;
    border: none;
    color: #000000;
    font-size: 20px;
    width: 100%;
    text-align: right;
    cursor: pointer;
    display: flex;
    padding: 12px 0;
    transition: color 0.3s;
    flex-direction: row-reverse;
}

.side-menu .submenu-toggle:hover {
  color: #00eeff;
}

.side-menu .submenu {
  list-style: none;
  display: none;
  flex-direction: column;
  padding-right: 15px;
  margin-top: 5px;
  border-radius: 10px;
  animation: fadeIn 0.3s ease-in-out;
}


.side-menu .submenu.open {
     display: flex;
    align-items: flex-end;
}

.side-menu .submenu li {
  margin: 6px 0;
}

.side-menu .submenu a {
  color: #000000;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s;
}

.side-menu .submenu a:hover {
  color: #00eeff;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-5px);}
  to {opacity: 1; transform: translateY(0);}
}