body {
    font-family: 'Vazirmatn', sans-serif;
    background-image: url(img/backgrand/IMG_۲۰۲۵۰۶۱۷_۰۹۴۴۵۶.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    /*background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);*/
    /* Deep gradient background */
    color: #e0e0e0;
    /* Light grey text */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    position: relative;
    overflow: hidden;

}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(97, 218, 251, 0.1), transparent 50%),
        radial-gradient(circle at bottom right, rgba(255, 105, 180, 0.1), transparent 50%);
    animation: backgroundAnimation 15s infinite alternate;
    z-index: -1;
}

@keyframes backgroundAnimation {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.header {
    width: 100%;
    background-color: rgba(183, 138, 40, 0.8);
    /* Semi-transparent dark blue */
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    backdrop-filter: blur(5px);
    /* Frosted glass effect */
    border-bottom: 1px solid rgba(183, 138, 40, 0.3);
}

.header h1 {
    color: #f4f3ed;
    /* Bright accent color */
    margin: 0;
    font-size: 3.2em;
    text-shadow: 0 0 15px rgba(183, 138, 40, 0.6);
    letter-spacing: 2px;
    letter-spacing: 0;
}

.menu-container {
    background-color: rgba(188, 140, 36, 0.9);
    /* Slightly darker semi-transparent */


    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Reduced gap */
    width: 90%;
    max-width: 400px;
    /* Slightly reduced max-width */
    border: 1px solid rgba(183, 138, 40, 0.4);
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-button {
    background: linear-gradient(45deg, #C8A25B, #E1B863, #C8A25B);
    /* Gradient button */
    color: #4A2C2A;
    border: none;
    padding: 12px 25px;
    /* Smaller padding */
    font-size: 1.2em;
    /* Smaller font size */
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;

}

.menu-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    /* Shine effect */
    transform: skewX(-30deg);
    transition: all 0.4s ease;
}

.menu-button:hover::before {
    left: 100%;
}

.menu-button:hover {
    background: linear-gradient(45deg, #D4AF37, #B78828);
    /* Goldenrod to golden brown gradient */
    transform: translateY(-3px) scale(1.01);
    /* Smaller hover effect */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.menu-button:active {
    transform: translateY(-1px) scale(0.995);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .header h1 {
        font-size: 2.5em;
    }

    .menu-container {
        padding: 20px;
        gap: 15px;
    }

    .menu-button {
        font-size: 1.1em;
        padding: 10px 20px;
    }
}

#seting-popover {
    /* موقعیت‌یابی و ابعاد */
    width: 200px;
    background-color: #282c34;
    color: #abb2bf;
    position: fixed;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    /* Reduced gap */
    width: 90%;
    max-width: 400px;
    /* Slightly reduced max-width */
    border: 1px solid rgba(183, 138, 40, 0.4);
    text-align: right;
    z-index: 1;
}


/* استایل برای عناصر داخلی پاپ‌اور (مثلاً عنوان یا دکمه‌ها) */
#seting-popover h2 {
    font-size: 1.5em;
    color: #0056b3;
    margin-bottom: 15px;
    text-align: center;
}

#seting-popover button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 15px;
    width: 100%;
    transition: background-color 0.2s ease;
}

#seting-popover button:hover {
    background-color: #0056b3;
}

.team {
    /* Responsive sizing */
    aspect-ratio: 1 / 1;
    /* Ensures the div remains square */
    flex-grow: 1;
    /* Allows items to grow and fill available space */
    flex-shrink: 1;
    /* Allows items to shrink */
    flex-basis: 120px;
    /* A base size for the items, they will try to be at least this wide */
    max-width: 160px;
    /* Max width to prevent them from becoming too large */

    /* Existing visual styles */
    background-color: #3a3f4b;
    border: 1px solid #61afef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    color: #abb2bf;
    box-sizing: border-box;
    /* Include padding and border in the element's total width and height */

    /* Flexbox for internal content alignment */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.team-wrapper {
    display: flex;
    flex-wrap: wrap;
    /* شکستن خط در صورت نیاز */
    justify-content: center;
    /* تراز آیتم‌ها در مرکز افقی */
    gap: 10px;
    /* فاصله بین آیتم‌های team */
    margin-top: 20px;
}

.team.selected-theme {
    border: 2px solid #4CAF50;
    /* Green border for selected theme */
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);

    /* Green glow */
}

#aboutme2 {

    background-color: #282c34;
    color: #abb2bf;
    position: fixed;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    /* Reduced gap */

    max-width: 400px;
    /* Slightly reduced max-width */
    border: 1px solid rgba(183, 138, 40, 0.4);
    text-align: right;
    z-index: 1;
}

#closeAboutMePopover:hover {
    background-color: #a08040;
    /* رنگ تیره‌تر هنگام هاور */
    transform: translateY(-1px);
    /* کمی حرکت به بالا برای جلوه بصری */
}

#closeAboutMePopover:active {
    background-color: #806030;
    /* رنگ تیره‌تر هنگام کلیک */
    transform: translateY(0);
}

#aboutme2 a {
    color: #C8A25B; /* رنگ لینک‌ها */
    text-decoration: none; /* حذف زیرخط لینک */
}

#aboutme2 a:hover {
    text-decoration: underline; /* اضافه کردن زیرخط هنگام هاور */
}

#closeAboutMePopover {
    /* موقعیت‌دهی: می‌توانید آن را در گوشه پایین سمت راست نگه دارید یا به مرکز پایین منتقل کنید.
       برای این مثال، آن را در مرکز پایین قرار می‌دهیم تا برجسته‌تر باشد. */
    position: absolute;
    bottom: 20px; /* فاصله از پایین پاپ‌اور */
    left: 50%; /* شروع از مرکز افقی */
    transform: translateX(-50%); /* جابجایی به چپ به اندازه نصف عرض خودش برای مرکزیت کامل */

    padding: 12px 30px; /* افزایش فضای داخلی برای بزرگ‌تر شدن دکمه */
    background-color: #C8A25B; /* رنگ پس‌زمینه اصلی */
    color: #f4f3ed; /* رنگ متن روشن */
    border: 2px solid #a08040; /* اضافه کردن حاشیه برای عمق بیشتر */
    border-radius: 25px; /* گرد کردن بیشتر گوشه‌ها برای ظاهری نرم‌تر (pill shape) */
    cursor: pointer;
    font-size: 1.1em; /* افزایش اندازه فونت */
    font-weight: bold;
    letter-spacing: 0.5px; /* کمی فاصله بین حروف برای خوانایی بهتر */
    text-transform: uppercase; /* حروف بزرگ برای تاکید */
    transition: all 0.3s ease; /* انیمیشن نرم‌تر برای همه تغییرات */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* سایه برای برجستگی */
    outline: none; /* حذف outline هنگام فوکوس */
}

#closeAboutMePopover:hover {
    background-color: #a08040; /* رنگ تیره‌تر هنگام هاور */
    border-color: #806030; /* تغییر رنگ حاشیه هنگام هاور */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); /* سایه قوی‌تر هنگام هاور */
    transform: translateX(-50%) translateY(-2px); /* کمی حرکت به بالا و حفظ مرکزیت */
}