/* استایل‌های عمومی */
body, html {
    font-family: 'Shabnam', sans-serif; /* تغییر فونت به شنبن */
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */
}

.container-fluid {
    height: 100%;
    width: 100%;
    background: #FFF;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */
}

/* انیمیشن پس‌زمینه */
.background {
    background: linear-gradient(132deg, #fce4ec, #f8bbd0, #ffebee, #ffe4e1);
    background-size: 400% 400%;
    animation: Gradient 15s ease infinite;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}
.cube {
    position: absolute;
    width: 10px;
    height: 10px;
    border: solid 1px #dadada;
    transform-origin: top left;
    transform: scale(0) rotate(0deg) translate(-50%, -50%);
    animation: cube 12s ease-in forwards infinite;
}

.cube:nth-child(2n) {
    border-color: #a6224f; /* رنگ برجسته مطابق با لوگو */
}

.cube:nth-child(1) { 
    top: 80vh; 
    left: 45vw;
    border-color: #f0f4e1; /* رنگ روشن هماهنگ با پس‌زمینه */ 
}
.cube:nth-child(2) { 
    top: 40vh; 
    left: 25vw; 
    animation-delay: 2s;
    border-color: #a6224f; /* رنگ لوگو */
}
.cube:nth-child(3) { 
    top: 50vh; 
    left: 75vw; 
    animation-delay: 4s; 
    border-color: #ffe3c5; /* رنگ روشن دیگر از گرادینت */ 
}
.cube:nth-child(4) { 
    top: 10vh; 
    left: 90vw; 
    animation-delay: 6s; 
    border-color: #dadada; /* رنگ خنثی */ 
}
.cube:nth-child(5) { 
    top: 85vh; 
    left: 10vw; 
    animation-delay: 8s; 
    border-color: #2f4f6f; /* رنگ سرد برای تعادل */ 
}
.cube:nth-child(6) { 
    top: 10vh; 
    left: 50vw; 
    animation-delay: 10s;
    border-color: #f9c3b5; /* رنگ هماهنگ با پس‌زمینه */ 
}

/* استایل هدر */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 10px 20px;
    z-index: 2;
    background-color: transparent;
}

.logo {
    width: 140px;
    height: auto;
    margin-left: 40px;
    margin-right: 10px;
    margin-top: 10px;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
}

/* استایل نوار ناوبری */
nav {
    display: flex;
    color: #151515;
    margin-top: 50px;
    background-color: transparent;
    font-size: 16px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
    position: relative;
    transition: color 0.3s, transform 0.3s, background-color 0.3s;
}

nav ul li a {
    text-decoration: none; /* حذف خط زیر لینک‌ها */
    color: #212121; /* تغییر رنگ لینک‌ها */
    font-size: 16px;
    transition: color 0.5s, background-color 0.5s;
    background-color: transparent;
    font-weight: bold;
}

nav ul li::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #151515;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav ul li:hover {
    color: #591BC5;
}

nav ul li:hover::after {
    transform: scaleX(1);
}

/* استایل محتوا (بخش اصلی) */
.header-content {
    text-align: center;
    padding: 50px;
    position: relative;
    z-index: 3;
    color: #212121;
    margin-top: 130px;
}

.header-content h1 {
    color: #212121;
    text-transform: uppercase;
    font-size: 27px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.header-content p {
    color: #212121;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.5;
    margin: 30px auto;
    max-width: 600px;
}

.contact-link {
    text-decoration: none; /* حذف خط زیر لینک‌ها */
    color: #212121; /* رنگ لینک‌ها */
}

.contact-link span {
    color: #212121; /* اطمینان از رنگ‌پذیری اسپن‌ها */
}


/* انیمیشن‌ها */
@keyframes Gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes cube {
    from {
        transform: scale(0) rotate(0deg) translate(-50%, -50%);
        opacity: 1;
    }
    to {
        transform: scale(20) rotate(960deg) translate(-50%, -50%);
        opacity: 0;
    }
}

/* استایل برای دستگاه‌های کوچک */
@media (max-width: 768px) {
    nav {
        display: none; /* مخفی کردن منو در موبایل */
    }

    .mobile-menu-icon {
        display: block; /* نمایش آیکون منو در موبایل */
        font-size: 24px;
        cursor: pointer;
        margin-left: 20px; /* فاصله از سمت راست */
        position: absolute; /* قرارگیری مطمئن در داخل هدر */
        top: 60px; /* فاصله از بالا */
        left: 70px; /* فاصله از سمت راست */
        z-index: 3; /* اطمینان از قرارگیری بالای سایر عناصر */
    }

    .mobile-menu {
        display: none;
        flex-direction: column;
        background-color: #a6224f; /* پس‌زمینه برای منوی موبایل */
        position: absolute;
        top: 50px; /* فاصله از بالا */
        right: 0;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        z-index: 2; /* زیر آیکون منو */
    }

    .mobile-menu.open {
        display: flex; /* نمایش منو در حالت باز */
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu ul li {
        margin: 10px 0;
    }

    .mobile-menu ul li a {
		text-decoration: none;
        color: #FFF;
        font-size: 18px;
    }
}

/* پنهان کردن آیکون منو موبایل و منوی موبایل در دسکتاپ */
@media (min-width: 769px) {
    .mobile-menu-icon {
        display: none; /* مخفی کردن آیکون منو در دسکتاپ */
    }

    .mobile-menu {
        display: none; /* مخفی کردن منوی موبایل در دسکتاپ */
    }
}
