@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}


body {
    min-height: 100vh;
    background: linear-gradient(90deg, #e2e2e2, #c9d6ff);
    cursor: default;
}

.navbar {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 20px;
}


.navbar-center {
    flex-grow: 1;
    justify-content: center;
}

.navbar-nav .nav-link {
    color: #1866a2;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

/* افکت هاور برای لینک‌های وسط */

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background-color: #54b3d6;
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
}

.navbar-nav .nav-link:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}

/* دکمه ورود/ثبت‌نام */
.btn-login {
    background-color: #0e60dcb6;
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 10px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #0057b3e7;
}


.theme-toggle-btn {
    background-color: transparent;
    backdrop-filter: blur(6px);
    border: 0px solid transparent;
    border-radius: 100%;
    font-size: 16px;
    margin-left: 7px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background-color: transparent;
}

.dark-theme {
    background: linear-gradient(90deg, #1e1e2f, #2c3e50);
    color: #f0f0f0;
}

.dark-theme .navbar {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-theme .theme-toggle-btn {
    color: #fff;
}

.dark-theme .nav-link {
    color: rgb(147, 188, 231);
}

.dark-theme .btn-login {
    background-color: #3399ff;
}

.dark-theme .btn-login:hover {
    background-color: #0057b3e7;
}

.dark-theme .hero-text h1 {
    color: #fff;
}

.dark-theme .hero-text p {
    color: #ffffffde;
}

.dark-theme h1 {
    color: #fff;
}

.dark-theme p {
    color: #eae7e7;
}

.dark-theme .feature-card {
    background-color: rgba(255, 255, 255, 0.101);
    /* نیمه‌شفاف */
    backdrop-filter: blur(12px);
    /* مات شدن پشت کارت */
    border: 0px solid;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/Assets/Shooting\ Stars.svg') right top / cover no-repeat;
    opacity: 0.4;
    z-index: -1;
}

.hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}


.hero-text p {
    font-size: 1.1rem;
    color: #555;
}

/* تصویر سمت چپ */
.hero-image img {
    max-width: 100%;
    display: block;
    border: none;
    /* حذف هر نوع بوردر */
    box-shadow: none;
    /* حذف سایه */
    background: none;
    /* حذف بک‌گراند */
}

.hero-image img {
    transition: transform 0.2s ease-out;
}

.hero-image {
    transition: transform 0.2s ease-out;
}

.hero-image img {
    opacity: 0;
    animation: fadeSlide 1s ease forwards;
    animation-delay: 0.5s;
}


.stat-item:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.stats {
    display: flex;
    justify-content: end;
    gap: 20px;
    align-items: stretch;
    /* همه آیتم‌ها هم‌ارتفاع میشن */
}

.stat-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: default;
    flex: 1;
    /* همه آیتم‌ها عرض و ارتفاع برابر می‌گیرن */
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}


.stat-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 8px;
}


.stat-item i {
    width: 12px;
    height: 12px;
}

.stat-item h6 {
    font-size: 0.9rem;
    margin-top: 8px;
}

.stat-item p {
    font-size: 1.2rem;
    margin: 0;
    color: #777;
}


/* نسخه موبایل */
@media (max-width: 768px) {
    .stats {
        user-select: none;
        /* غیرفعال کردن انتخاب متن */
        -webkit-user-select: none;
        /* برای مرورگرهای WebKit مثل Chrome و Safari */
        -moz-user-select: none;
        /* برای Firefox */
        -ms-user-select: none;
        /* برای مرورگرهای قدیمی‌تر */
        justify-content: center;
        /* وسط‌چین بشه */
        flex-direction: column;
        /* آیتم‌ها زیر هم قرار بگیرن */
        gap: 15px;
    }

    .stat-item {
        width: 100%;
        /* هر آیتم کل عرض رو بگیره */
        max-width: 300px;
        /* محدودیت عرض برای زیبایی */
        margin: 0 auto;
        /* وسط‌چین شدن آیتم‌ها */
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    opacity: 0.0;
    animation: fadeUp 0.8s ease forwards;
}


/* تأخیر برای هر آیتم */
.stat-item:nth-child(1) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.4s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.6s;
}

.stat-item:nth-child(4) {
    animation-delay: 0.8s;
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}





.brand-text {
    color: #0d6dfdce;
    /* رنگ آبی برند */
}

.underline {
    width: 480px;
    height: 3px;
    background-color: #095bd53e;
    border-radius: 2px;
}

.vr {
    border-left: 2px solid #0d6efd;
}


.feature-card {
    background-color: rgba(255, 255, 255, 0.401);
    /* نیمه‌شفاف */
    backdrop-filter: blur(12px);
    /* مات شدن پشت کارت */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* خط لطیف دور کارت */
    transition: all 0.4s ease;
    cursor: default;
}


.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #e1eef9, #ffffff);
}


/* افکت روی خط عمودی */
.feature-card:hover .vr {
    border-left-color: #00bfff;
    transition: border-color 0.3s ease-in-out;
}

/* افکت روی عنوان */
.feature-card:hover h6 {
    color: #5195fb;
}

.feature-card:hover p {
    color: #333;
}

.img-fluid {
    margin: 2px;
    transition: transform 0.5s ease-in-out;

}

.img-fluid:hover {
    transform: scale(1.05) rotate(-2deg);
    /* کمی بزرگ و چرخش */
}


h1 {
    font-size: 2.5rem;
    color: #333;
}

p {
    color: #666;
}


.bg-About {
    position: relative;
    z-index: 1;
    /* متن بالاتر باشه */
}

.bg-About::before {
    content: "";
    position: absolute;
    inset: 0;
    /* کل سکشن رو بپوشونه */
    background: url('/Assets/World Map.svg') right top / cover no-repeat;
    opacity: 0.2;
    z-index: -10;
}

.dark-theme .bg-About::before {
    opacity: .3;
    filter: brightness(1.8) saturate(1.5);
}


.hover-1 {
    background-image: linear-gradient(to right,
            #54b3d6,
            #54b3d6 50%,
            #1866a2 50%);
    background-size: 200% 100%;
    background-position: -100%;
    display: inline-block;
    padding: 5px 0;
    position: relative;
    background-clip: text;
    /* نسخه استاندارد */
    -webkit-background-clip: text;
    /* نسخه برای WebKit */
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease-in-out;
}

.hover-1:before {
    content: '';
    background: #54b3d6;
    display: block;
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    transition: all 0.3s ease-in-out;
}

.hover-1:hover {
    background-position: 0;
}

.hover-1:hover::before {
    width: 100%;
}

.img-icon {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.img-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.2) saturate(1.3);
}


.swiper-pagination {
    position: relative;
    /* دیگه absolute نیست */
    text-align: center;
}




.card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
    background: #f4f5f8;
    border: none;
}


.card:hover {
    background-color: #fff;
    /* تغییر رنگ پس‌زمینه */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.card span {
    background: #fcb04cfe;
}

.dark-theme .card {
    background: linear-gradient(90deg, #1e1e2f, #2c3e50);
    color: #f0f0f0;
}

.dark-theme .card a {
    background: #0057b3e7;
    border: none;
    color: #fff;
}

.dark-theme .card a:hover {
    background: linear-gradient(120deg, #2c3e50, #1e1e2f);
    border: none;
    color: #fff;
}



.promo-card {
    height: 200px;
    background: url('/Assets/Dash\ Wave.svg') center /cover;
    border-radius: 20px;
    border: 0px solid transparent;
    overflow: hidden;
    display: flex;
    align-items: flex-end;

}


.promo-card p {
    color: #333;
    font-size: medium;
}

.glass-content {
    background: rgba(143, 171, 248, 0.458);
    backdrop-filter: blur(15px);
    border-radius: 5px;
    width: 100%;
    height: 100%;
    color: #000;
}

.dark-theme .glass-content p {
    color: #eae8e8;
}

/* CSS */
.button-85 {
  padding: 0.6em 2em;
  border: none;
  outline: none;
  color: #fff;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-85:before {
  content: "";
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing-button-85 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

@keyframes glowing-button-85 {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.button-85:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #54b3d6;
  left: 0;
  top: 0;
  border-radius: 10px;
}

.button-85:hover {
    color: #0f2027;
}

.news-bg {
    background: #e6e5e5;
}
.dark-theme .news-bg {
    background: linear-gradient(90deg, #1e1e2f, #2c3e50);
    color: #e7e7e7;
}
