@font-face {
    font-family: iranSans;
    font-style: normal ;
    font-weight: normal;
    src: url("./iransans/IRANSansWeb.eot");
    src: url("./iransans/IRANSansWeb.woff2") format("woff2"), 
    url("./iransans/IRANSansWeb.woff") format("woff"), 
    url("./iransans/IRANSansWeb.ttf") format("truetype"), 
    url("./iransans/IRANSansWeb.svg") format("svg"); 
}

*[lang=fa]{
    font-family:  iranSans;
}
*[lang=en]{
    font-family:  'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #FF6B35; /* نارنجی */
    --secondary-color: #6C757D; /* طوسی */
    --light-color: #F8F9FA; /* سفید روشن */
    --dark-color: #212529; /* مشکی */
}

.hide{
    display: none;
}

.logo{
    width: 50px;
    transform: scale(1.5);
}

.dir-rtl{
    direction: rtl;
}

body {
    
    line-height: 1.8;
    color: var(--dark-color);
}

.btn-system{
    background-color: var(--primary-color);
    color: var(--light-color);
}

.bg-primary-custom {
    background-color: var(--primary-color);
}

.text-primary-custom {
    color: var(--primary-color);
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('./img/header.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 200px 0;
}

.service-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-item {
    margin-bottom: 15px;
    padding-right: 15px;
    border-right: 3px solid var(--primary-color);
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.social-icons a {
    color: white;
    margin-left: 15px;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* استایل بخش پروژه‌ها */
#projects{
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('./img/project.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.divider {
width: 80px;
height: 3px;
background: #FF6B35;
}

.card-icon {
width: 70px;
height: 70px;
margin: -35px auto 20px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 28px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
transition: all 0.3s ease;
}

.hover-effect {
transition: all 0.3s ease;
border-radius: 10px;
padding-top: 35px;
}

.hover-effect:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.hover-effect:hover .card-icon {
transform: scale(1.1);
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.bg-orange {
background-color: #FF6B35;
}

.project-card {
opacity: 0;
transform: translateY(50px);
transition: all 0.6s ease;
}

.project-card.show {
opacity: 1;
transform: translateY(0);
}

/* انیمیشن برای کارت‌ها با تاخیر */
.project-card:nth-child(1) { transition-delay: 0.1s; }
.project-card:nth-child(2) { transition-delay: 0.2s; }
.project-card:nth-child(3) { transition-delay: 0.3s; }
.project-card:nth-child(4) { transition-delay: 0.4s; }
.project-card:nth-child(5) { transition-delay: 0.5s; }
.project-card:nth-child(6) { transition-delay: 0.6s; }

@media (max-width: 768px) {
    .hero-section {
        padding: 150px 0;
    }
    
    .service-card {
        margin-bottom: 30px;
    }
}

.update-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding: 20px;
  }
  
  .update-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.3);
  }
  
  .update-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
  }
  
  .gear {
    position: absolute;
    font-size: 40px;
    color: #FF6B35;
  }
  
  .gear-1 {
    top: 0;
    left: 0;
    animation: spin 4s linear infinite;
  }
  
  .gear-2 {
    bottom: 0;
    right: 0;
    animation: spin-reverse 3s linear infinite;
  }
  
  .gear-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
  }
  
  .update-title {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
  }
  
  .update-text {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
  }
  
  .progress-container {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin-bottom: 25px;
    overflow: hidden;
  }
  
  .progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #FF6B35, #FF8E53);
    border-radius: 3px;
    animation: progress 3s ease-in-out infinite;
  }
  
  .update-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    animation: bounce 1.4s infinite ease-in-out;
  }
  
  .dot-1 {
    animation-delay: 0s;
  }
  
  .dot-2 {
    animation-delay: 0.2s;
  }
  
  .dot-3 {
    animation-delay: 0.4s;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  @keyframes spin-reverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
  }
  
  @keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
  }
  
  @keyframes progress {
    0% { width: 0; }
    50% { width: 80%; }
    100% { width: 100%; }
  }
  
  @keyframes bounce {
    0%, 80%, 100% { 
      transform: translateY(0);
      background: #ddd;
    }
    40% { 
      transform: translateY(-15px);
      background: #FF6B35;
    }
  }

  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: fadeIn 0.5s ease;
}

.popup-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: #ff6b81;
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.service-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.method-item {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-right: 4px solid var(--primary-color);
}

.method-item:hover {
    transform: translateX(-10px);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.benefit-icon {
    color: var(--primary-color);
    font-size: 20px;
    margin-left: 10px;
    margin-top: 3px;
}

.project-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
}

.nav-pills .nav-link {
    color: var(--dark-color);
}

.tab-content {
    padding: 20px;
    background-color: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}