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, #80BF92, #3F8566, #1A473A);
    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 #D7D4E4;
    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: #FFF;
}

.cube:nth-child(1) { top: 80vh; left: 45vw; }
.cube:nth-child(2) { top: 40vh; left: 25vw; animation-delay: 2s; }
.cube:nth-child(3) { top: 50vh; left: 75vw; animation-delay: 4s; }
.cube:nth-child(4) { top: 10vh; left: 90vw; animation-delay: 6s; }
.cube:nth-child(5) { top: 85vh; left: 10vw; animation-delay: 8s; }
.cube:nth-child(6) { top: 10vh; left: 50vw; animation-delay: 10s; }

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: #ffffff;
    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: #ffffff; /* تغییر رنگ لینک‌ها */
    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: #ffffff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav ul li:hover {
    color: #ffffff;
}

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

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

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

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

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

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

@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; /* مخفی کردن منوی دسکتاپ در موبایل */
    }

    #checkbox {
        display: none; /* مخفی کردن چک‌باکس اما همچنان فعال */
    }

    .toggle {
        position: relative;
        width: 40px;
        height: 40px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transition-duration: .3s;
        margin-left: 65px;
        margin-top: 10px;
        z-index: 10; /* آیکون همبرگر بالاتر از منو قرار می‌گیرد */
    }

    .bars {
        width: 100%;
        height: 4px;
        background-color: #FFF;
        border-radius: 5px;
        transition-duration: .3s;
    }

    #checkbox:checked + .toggle #bar1 {
        transform: rotate(45deg);
        transition-duration: .3s;
        transform-origin: left center;
    }

    #checkbox:checked + .toggle #bar2 {
        transform: rotate(135deg);
        margin-left: 0;
        transform-origin: center;
        transition-duration: .3s;
    }

    #checkbox:checked + .toggle #bar3 {
        transform: rotate(-45deg);
        transition-duration: .3s;
        transform-origin: left center;
    }

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

    #checkbox:checked ~ .mobile-menu {
        display: flex; /* نمایش منو وقتی چک‌باکس فعال است */
    }

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

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

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

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

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


