@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #8e44ad;
    --secondary-color: #9b59b6;
    --text-color: #333;
    --bg-light: #f9f9f9;
}
.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;
}




body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* بخش داستان ما */
.our-story {
    padding: 5rem 0;
    background-color: #f5eef8;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text {
    text-align: justify;
}

.story-text h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.story-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.story-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.story-image img:hover {
    transform: scale(1.02);
}

/* بخش آمار و دستاوردها */
.achievements {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
}

.achievements .section-title {
    color: white;
}

.achievements .section-title:after {
    background: rgba(255, 255, 255, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* بخش خدمات */
.services {
    padding: 5rem 0;
    background: var(--bg-light);
}

.services-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 300px;
    transition: transform 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #666;
    font-size: 0.9rem;
}

/* بخش ارزش‌های ما */
.our-values {
    padding: 5rem 0;
      background-color: #f5eef8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* بخش تیم ما */
.our-team {
    padding: 5rem 0;
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-member {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.team-member h3 {
    color: var(--primary-color);
    margin: 1rem 0 0.5rem;
    padding: 0 1rem;
}

.team-member .position {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.team-member p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

/* بخش مشتریان */
.our-clients {
    padding: 5rem 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: center;
}

.client-logo {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-logo:hover {
    transform: translateY(-5px);
}

.client-logo img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .team-grid,
    .values-grid,
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .story-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .team-grid,
    .values-grid,
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .story-text h1 {
        font-size: 2rem;
    }
}

@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;
}