/* Reset & base settings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Vazirmatn", sans-serif;
  line-height: 1.8;
  background-color: #f0f4f8;
  direction: rtl;
  color: #222;
  scroll-behavior: smooth;
}

/* Container */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Header */
.header {
  background: linear-gradient(to left, #0067a5, #00a693);
  color: white;
  padding: 1.5rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.header-container {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 80px;
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 166, 147, 0.4));
  border-radius: 12px;
}

.logo img:hover {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 4px 12px rgba(0, 166, 147, 0.6));
}

/* Navigation */
.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  transition: all 0.3s ease;
}

.nav-list li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding-bottom: 5px;
}

.nav-list li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  right: 0;
  bottom: 0;
  background-color: #fff;
  transition: width 0.3s ease;
}

.nav-list li a:hover::after {
  width: 100%;
}

/* Main Content */
.main-content {
  padding: 4rem 0;
}

.intro {
  text-align: center;
  margin-bottom: 4rem;
}

.intro h1 {
  font-size: 3.5rem;
  color: #0067a5;
  margin-bottom: 1rem;
}

.intro h2 {
  font-size: 2rem;
  color: #00a693;
  margin-top: 2rem;
}

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  font-size: 20px;
}

.app-card {
  background-color: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  background-size: contain;
  background-repeat: no-repeat;
}

.icon-webapp {
  background-image: url("./icon/globe2.svg");
}

.icon-android {
  background-image: url("./image/android-logo-Pre.png");
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.8rem;
  background-color: #00a693;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #008d7b;
}

/* Footer */
.footer {
  background: linear-gradient(90deg, #0067a5, #00a693);
  color: white;
  padding: 30px 20px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.enamad {
  flex: 2 1 400px;
  background: rgba(255 255 255 / 0.15);
  border-radius: 20px;
  padding: 20px;
  box-shadow: inset 0 0 15px rgba(255 255 255 / 0.3);
  text-align: right;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.enamad h3 {
  padding-right: 5%;
  color: #ffffff;
  font-size: xx-large;
}

.enamad p {
  color: #000000;
  line-height: 1.5;
  margin-bottom: 15px;
}

.e_text {
  width: 70%;
}
.e_text ul {
  direction: rtl;
  list-style: inherit;
  list-style-type: square;
  list-style-position: inside;
  color: #000000;
  width: 97%;
}
.e_logo {
  aspect-ratio: 1/1;
  width: 25%;
}

/* اطلاعات تماس */
.contact-info {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ccfffb;
  background: rgba(0, 166, 147, 0.15);
  border-radius: 12px;
  padding: 10px 15px;
  box-shadow: inset 0 0 10px rgba(0, 166, 147, 0.3);
  transition: background 0.3s ease;
}
.contact-item a {
  text-decoration: none;
  text-align: left;
}
.contact-item p {
  width: 85%;
  text-align: left;
}
.contact-a {
  text-decoration: none;
}

.contact-item:hover {
  background: rgba(0, 166, 147, 0.35);
}

.contact-item img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

/* ریسپانسیو بهتر در گوشی */
@media (max-width: 600px) {
  .footer-logo h2 {
    font-size: 1.2rem;
  }

  .footer-section h3 {
    font-size: 1rem;
  }
}

/* Responsive */
@media (max-width: 880px) {
  .nav-list {
    display: none;
    flex-direction: column;
    background: linear-gradient(to left, #0067a5, #00a693);
    position: absolute;
    top: 100%;
    right: 0;
    width: 40%;
    padding: 1rem;
    border-radius: 12px;
  }

  .nav-list.active {
    display: flex;
  }

  .enamad {
    flex-direction: column;
    align-items: center;
  }
  .e_text {
    width: 90%;
    height: auto;
  }
  .e_logo {
    aspect-ratio: 1/1;
    width: auto;
    margin-top: 3%;
    margin-bottom: 3%;
  }

  .e_text ul {
    direction: rtl;
    list-style: inherit;
    list-style-type: square;
    list-style-position: inside;
    color: #000000;
  }

  .main_text ul > li {
    font-size: 7vw;
    padding-left: 2%;
    color: darkred;
  }
  .main_text ul > p {
    padding-left: 2%;
    font-size: 6.5vw;
    color: #000000;
  }
}

.product-section {
  display: flex;
  justify-content: center;
  padding: 1rem 1rem;
}
.product-list {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
}

.product-card {
  width: 100%;
  max-width: 600px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
  text-align: center;
}

.product-card:hover {
  transform: scale(1.02);
}

.product-card img {
  width: 100%;
  border-radius: 1rem;
}
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-box {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1rem;
  max-width: 700px;
  width: 95%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.close-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 2rem;
  cursor: pointer;
}

.popup-gallery {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  max-width: 100%;
  margin-bottom: 1rem;
}

.popup-gallery img {
  height: 80px;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.popup-gallery img:hover {
  transform: scale(1.1);
}

.popup-description {
  max-height: 250px;
  overflow-y: auto;
  padding: 1rem;
  border-top: 1px solid #ccc;
  direction: rtl;
  text-align: justify;
  line-height: 1.8;
}

/* پاپ‌آپ تصویر بزرگ */
.img-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.img-popup img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 1rem;
}

.img-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}
.nav-btn {
  background: none;
  border: none;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  user-select: none;
}

.prev-btn {
  left: -50px;
}

.next-btn {
  right: -50px;
}

.main_text {
  height: auto;
  width: 85%;
  background: linear-gradient(120deg, #0792e9, #0be6cc);
  color: white;
  padding: 2% 5% 5% 2%;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.main_text ul {
  direction: rtl;
  list-style: inherit;
  list-style-type: square;
  list-style-position: inside;
}
.main_text ul > li {
  font-size: 2vw;
  padding-left: 2%;
  color: darkred;
}
.main_text ul > p {
  padding-left: 2%;
  font-size: 1.5vw;
  color: #000000;
}

.csstask {
  width: 100%;
  float: right;
  padding: 4px 0;
  background: linear-gradient(to left, #5ebffc, #6afae9);
  border-radius: 10px;
  margin-top: 5px;
}
.cssline1 {
  height: 2px;
  width: 100%;
  --c: no-repeat linear-gradient(#0463c2 0 0);
  background: var(--c), var(--c), #f1eef5;
  background-size: 60% 100%;
  animation: l16 3s infinite;
}
@keyframes l16 {
  0% {
    background-position: -150% 0, -150% 0;
  }
  0.01% {
    background-position: 250% 0, 250% 0;
  }
  66% {
    background-position: 250% 0, -150% 0;
  }
  66.01% {
    background-position: -150% 0, 250% 0;
  }
  99.99% {
    background-position: 250% 0, 250% 0;
  }
  100% {
    background-position: -150% 0, -150% 0;
  }
}

.main_menu_mobile {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}
.main_menu_icon {
  aspect-ratio: 1/1;
  height: calc(100% - 5px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 2px outset transparent;
  cursor: pointer;
  transition: all 0.5s;
}
.main_menu_icon:hover {
  border-radius: 25%;
}
.main_menu_icon svg {
  height: 80%;
}

.main_menu_mobile_items {
  background-color: rgba(11, 25, 44, 0.7);
  backdrop-filter: blur(5px);
  box-sizing: border-box;
  height: calc(100vh - 55px);
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  width: 0;
  border-radius: 12px;
  transform-origin: left;
  transition: all 1s;
  overflow: hidden;
}

#menu_mobile_check:checked ~ .main_menu_mobile_items {
  width: 70%;
}

#menu_mobile_check:checked + label {
  border-radius: 25%;
}

#menu_mobile_check:checked + label > .menu_svg {
  display: none;
}

#menu_mobile_check:not(:checked) + label > .menu_close {
  display: none;
}

.mobile_menu_list {
  list-style: none;
  padding: 0 5px;
}
.mobile_menu_item {
  text-align: right;
  padding: 10px 10px;
  box-sizing: border-box;
  width: 100%;
  border-radius: 12px;
  transition: all 0.3s;
  cursor: pointer;
}
.mobile_menu_item a {
  color: whitesmoke;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 3.5vw;
  text-wrap: nowrap;
}
.mobile_menu_item:hover {
  background-color: #003366;
}

.mobile_menu_item:hover a {
  color: white;
}

@media only screen and (max-width: 860px) {
  .main_menu_mobile {
    display: block;
  }
  .menu_close {
    height: auto;
    flex-direction: column;
    justify-content: space-between;
    color: #000000;
  }
  .menu_svg {
    height: auto;
    flex-direction: column;
    justify-content: space-between;
    color: #000000;
  }

  .main_text ul > li {
    font-size: 4vw;
  }
  .main_text ul > p {
    font-size: 3.5vw;
  }
}
