/* تنظیمات عمومی */
body {
    font-family: 'Tahoma', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #c39bd3
    color: #333;
    direction: rtl;
    font-family: 'Vazir', sans-serif;
}

/* هدر */
.header {
    background-color: #8e44ad;
    color: white;
    padding: 1% 0;
    font-family: 'Vazir', sans-serif;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease; /* تغییر به all برای اعمال روی همه خصوصیات */
}

.header-scrolled {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 90%;
    margin: auto;
    padding: 0 2%;
}
.header .logo {
    height: 10%;
    max-height: 80px;
    padding-top: 0;
    padding: botton 0;
        
}
.header nav {
    flex-grow: 1;
    text-align: right;
    margin-right: 2%;
}
.header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.header nav ul li {
    margin-left: 30px; /* افزایش فاصله بین آیتم‌های منو */
}
.header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em; /* کوچکتر کردن سایز فونت */
    font-weight: bold; /* بولد کردن فونت */
    transition: all 0.3s ease;
}

/* اضافه کردن این استایل‌های جدید */
.header-scrolled nav ul li a {
    color: #4A148C !important; /* استفاده از !important برای اطمینان از اعمال رنگ */
    font-size: 1.1em;
    font-weight: bold;
}

.header-scrolled .logo {
    color: #4A148C !important;
}

/* باکس جستجو */
.search-box {
    position: relative;
    width: 200px;
    margin-left: 2%;
}
.search-box input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    outline: none;
    padding-right: 35px;
    font-family: 'Vazir', sans-serif;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* استایل باکس جستجو در حالت اسکرول */
.header-scrolled .search-box input {
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-box button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0;
}
.search-box button img {
    width: 20px;
    height: 20px;
    padding: 0 0;
}

/* ویدئو */
.video-section {
    text-align: center;
    margin: 0% 0 0 0;
    height: 10%;
    background-color:  #f5eef8 ;
}
.video-section video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* حفظ نسبت تصویر */
    object-fit: contain; /* کل ویدئو نمایش داده شود بدون برش */
    display: block;
    background-color:  #f5eef8 ;
   
}

/* کارت‌های خدمات */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 30px; /* فاصله افقی 20px، فاصله عمودی 40px */
  padding: 20px;
  font-family: 'Vazir', sans-serif;
  background-color: #f5eef8;
  line-height: 1.5;
  
}

/* استایل کارت‌های خدمات */
.service-card {
  background: white;
  padding: 20px;
  margin: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 250px;
  text-align: center;
  font-family: 'Vazir', sans-serif;
  font-size: 14px;
  font-weight: bold;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* زمانی که کارت به دید کاربر می‌آید */
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* تنظیم اندازه تصاویر داخل کارت‌ها */
.service-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.service-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* تعریف انیمیشن */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* کاهش تاخیر کارت‌ها */
.service-card:nth-child(1) { --delay: 0.2s; }
.service-card:nth-child(2) { --delay: 0.4s; }
.service-card:nth-child(3) { --delay: 0.6s; }
.service-card:nth-child(4) { --delay: 0.8s; }
.service-card:nth-child(5) { --delay: 1s; }
.service-card:nth-child(6) { --delay: 1.2s; }
.service-card:nth-child(7) { --delay: 1.4s; }
.service-card:nth-child(8) { --delay: 1.6s; }
.service-card:nth-child(9) { --delay: 1.8s; }

/* بخش آمار */
.statistics-section {
  background: linear-gradient(135deg, #8e44ad, #c39bd3);
  padding: 60px 0;
  margin-top: 40px;
  margin-bottom: 100px; /* اضافه کردن فاصله از پایین */
}

.statistics-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0 20px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  min-width: 280px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 40px;
  color: #8e44ad;
  margin-bottom: 20px;
}

.stat-number {
  font-size: 36px;
  font-weight: bold;
  color: #4A148C;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.stat-unit {
  font-size: 18px;
  color: #666;
}

.stat-title {
  font-size: 16px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

@keyframes countUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.counter {
  animation: countUp 1s ease-out forwards;
}






@import url('https://fonts.googleapis.com/css2?family=Vazir&display=swap');

body {
    margin: 0;
    font-family: 'Vazir', sans-serif;
    background: #f5f5f5;
}

footer {
    position: relative;
    color: white;
    text-align: center;
    overflow: hidden;
    padding: 100px 0 50px;
    bottom: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: auto;
    align-items: center;
    z-index: 10;
    bottom: 0;
    padding:20px 0; /* فاصله از بالا و پایین */
    position: relative;
}

/* موج متحرک */
@import url("https://fonts.googleapis.com/css?family=Lato:400,400i,700");

body {
  font-family: Lato, sans-serif;

}

a {
  color:#fff;
  text-decoration:none;
  
}
footer {
  width:100vw;
  position: relative;
  bottom:0px
  margin:0%
  height: 600px%;
}

.wave-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    bottom: 0;
}



footer div {
  background-color: var(--col-deepblue);
  margin: -5px 0px 0px 0px;
  padding:0px;
  color: #fff;
  text-align:center;
}
svg {
  width:100%;
  overflow:visible;
}

.wave {
  animation: wave 3s linear;
  animation-iteration-count:infinite;
  fill: #8e44ad;
}
.drop {
  fill: #8e44ad;
  xfill: #f732c255;
  animation: drop 3.2s linear infinite normal;
  stroke: var(--col-deepblue);
  stroke-width:0.5;
  transform: translateY(25px) ;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.drop1 {
  
}
.drop2 {
  animation-delay: 3s;
  animation-duration:3s;
}
.drop3 {
  animation-delay: -2s;
  animation-duration:3.4s;
}
.drop4 {
  animation-delay: 1.7s;
}
.drop5 {
  animation-delay: 2.7s;
  animation-duration:3.1s;
}
.drop6 {
  animation-delay: -2.1s;
  animation-duration:3.2s;
}
.gooeff {
    filter: url(#goo);
}
#wave2 {
  animation-duration:5s;
  animation-direction: reverse;
  opacity: .6;
  fill: #8e44ad;
}
#wave3 {
  animation-duration: 7s;
  opacity:.3;
  fill: #8e44ad;
}
@keyframes drop {
  0% {
    transform: translateY(25px); 
  }
  30% {
    transform: translateY(-10px) scale(.1);
  }
  30.001% {
    transform: translateY(25px) scale(1); 
  }
  70% {
    transform: translateY(25px); 
  }
  100% { 
    transform: translateY(-10px) scale(.1);  
  }
}
@keyframes wave {
  to {transform: translateX(-100%);}
}


.contact-info, .message-box {
    width: 45%;
    text-align: right;
    
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    font-size: 20px;
    color: white;
}

.contact-info a {
    color: white;
    text-decoration: none;
}

.message-box form {
    display: flex;
    flex-direction: column;
    font-family: 'Vazir', sans-serif;
    font-size: 0.5rem;
    font-style: bold;
}

.message-box textarea {
    margin: 10px 0;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-family: 'Vazir', sans-serif;
    font-size: 0.3rem;
    font-style: bold;
}

.message-box input, .message-box textarea {
    margin: 10px 0;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-family: 'Vazir', sans-serif;
    font-size: 0.8rem;
    font-style: bold;
}

.message-box button {
    background: #FFD700;
    color: black;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Vazir', sans-serif;
    font-size: 0.8rem;
    font-style: bold;
}

/* منوی کشویی در هدر */
.header nav ul li.dropdown {
    position: relative;
}

.header nav ul li.dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 0.5rem 0;
    z-index: 1000;
    margin-top: 10px;
}

.header nav ul li.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.header nav ul li.dropdown .dropdown-content a {
    color: #333;
    padding: 0.8rem 1.5rem;
    display: block;
    text-align: right;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.header nav ul li.dropdown .dropdown-content a:hover {
    background: #f5eef8;
    color: #8e44ad;
    padding-right: 2rem;
}

/* انیمیشن منوی کشویی */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* فلش برای منوی کشویی */
.header nav ul li.dropdown > a::after {
    content: '▼';
    font-size: 0.8em;
    margin-right: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.header nav ul li.dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* مثلث بالای منوی کشویی */
.header nav ul li.dropdown .dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

/* استایل منوی کشویی - اصلاح شده */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    cursor: pointer;
}

.dropdown-btn::after {
    content: '▼';
    font-size: 0.7em;
    margin-right: 5px;
    display: inline-block;
}

.dropdown-content {
    display: none; /* تغییر از visibility به display */
    position: absolute;
    top: calc(100% - 5px); /* کاهش فاصله از بالا */
    right: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 10px 0;
    z-index: 1000;
}

/* حذف مثلث بالای منو و اضافه کردن یک پد نامرئی */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px; /* افزایش ناحیه hover */
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333 !important;
    padding: 8px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.85em;
    transition: all 0.3s ease;
    text-align: right;
    border-radius: 5px;
    margin: 2px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-content a:hover {
    background-color: #f5eef8;
    color: #8e44ad !important;
    padding-right: 20px;
}

/* اضافه کردن ناحیه پوشش دهنده برای جلوگیری از بسته شدن منو */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

/* متغیرهای CSS */
:root {
    --primary-color: #8e44ad;
    --secondary-color: #9b59b6;
    --text-color: #2c3e50;
    --light-color: #ffffff;
    --dark-color: #2c3e50;
    --transition: all 0.3s ease;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* فونت‌ها */
@font-face {
    font-family: 'IRANYekan';
    src: url('fonts/iranyekan/woff2/iranyekanwebbold.woff2') format('woff2');
    font-weight: bold;
}

@font-face {
    font-family: 'IRANYekan';
    src: url('fonts/iranyekan/woff2/iranyekanwebregular.woff2') format('woff2');
    font-weight: normal;
}

/* بخش ویدئو */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.brand-signature {
    position: absolute;
    left: 40px;
    bottom: 40px;
    z-index: 10;
    text-align: left;
    direction: ltr;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: #ffffff;
    margin: 8px 0 0 0;
    letter-spacing: 3px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* بخش خدمات */
.services-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.service-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* کلاس برای زمانی که کارت در viewport قرار می‌گیرد */
.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* تاخیر برای هر کارت */
.service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card:nth-child(3) {
    transition-delay: 0.4s;
}

.service-card:nth-child(4) {
    transition-delay: 0.6s;
}

.service-image {
    position: relative;
    overflow: hidden;
    padding-top: 60%;
}

.service-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-title {
    font-family: 'IRANYekan', sans-serif;
    font-size: 1.5rem;
    color: var(--dark-color);
    margin: 0 0 15px 0;
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .brand-signature {
        left: 30px;
        bottom: 30px;
    }
    
    .brand-name {
        font-size: 2.5rem;
    }
    
    .brand-tagline {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}
