* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-image: url('../images/back.jpg');
    /* A placeholder for your background */
    background-color: #333;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Vazirmatn', sans-serif;
    color: white;
    overflow-x: hidden;
    /* جلوگیری از اسکرول افقی */
}

a {
    text-decoration: none;
    color: #ffffff;
    transition: 0.3s;
}

a:hover {
    transition: 0.3s;
    text-decoration: none;
    color: #c4c4c4;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- نوار ناوبری شیشه‌ای --- */
.glass-nav {
    width: 95%;
    /* max-width: 1400px; */
    margin: 20px 0px;
    /* padding: 15px 30px; */
    /* display: flex; */
    /* justify-content: space-between; */
    /* align-items: center; */

    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
}

.logo-container span {
    font-size: 1.2rem;
    font-weight: 700;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: #ccc;
}

.icons-nav a {
    color: white;
    font-size: 1.4rem;
    transition: color 0.3s, transform 0.3s;
}

.icons-nav a:hover {
    color: #ddd;
    transform: scale(1.1);
}

.menu-toggle-btn {
    display: none;
    /* در حالت دسکتاپ مخفی است */
    cursor: pointer;
}

/* --- محتوای اصلی مرکزی --- */
.hero-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.6rem;
    font-weight: 400;
    color: #ffbb00;
    margin-bottom: 40px;
    /* افزایش سایه برای خوانایی بیشتر */
    text-shadow: 0 2px 13px rgb(0, 0, 0);

}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.top-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.navItem:hover {
    transform: translateY(-3px);

}

.navItem {
    transition: .3s;
}

.glass-btn {
    padding: 12px 35px;
    font-size: 1.2rem;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    color: white;
    text-decoration: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 35px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.glass-btn.primary {
    background: rgba(255, 255, 255, 0.2);
    border-width: 2px;
}

/* --- انیمیشن نبض زدن (Pulsating Animation) --- */
/* تغییرات: استفاده از transform: scale برای بزرگ و کوچک شدن خود دکمه */
@keyframes pulse-animation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 187, 0, 0.7);
        /* حفظ افکت درخشش ملایم */
    }

    50% {
        transform: scale(1.05);
        /* کمی بزرگ‌تر می‌شود */
        box-shadow: 0 0 10px rgba(255, 187, 0, 1);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 187, 0, 0);
    }
}

/* --- New Search Button Styles (پروژه های شهری) --- */
.search-btn {
    background: #ffbb00;
    border-color: #ffbb00;
    color: black;
    display: flex;
    align-items: center;
    box-shadow: 0 0 10px rgba(255, 187, 0, 1);
    gap: 10px;
    padding: 12px 30px;
    /* اعمال انیمیشن نبض زدن جدید */
    animation: pulse-animation 1.5s infinite ease-in-out;
    /* سرعت به 1.5 ثانیه و از نوع ease-in-out برای حرکت نرم */
}

.search-btn:hover {
    background: #ffbb00;
    transform: scale(1.05) translateY(-3px) !important;
    animation: none;
}

.search-btn i {
    font-size: 1.1rem;
}


/* --- منوی موبایل شیشه‌ای مدرن --- */
.mobile-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-container.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-window {
    position: relative;
    width: 90%;
    max-width: 400px;
    padding: 60px 30px 40px;
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-menu-container.show .mobile-menu-window {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    color: white;
    font-size: 2.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.mobile-main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-main-nav ul li {
    margin: 25px 0;
}

.mobile-main-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    transition: color 0.3s;
}

.mobile-main-nav ul li a:hover {
    color: #ffbb00;
}


/* --- طراحی واکنش‌گرا --- */
@media (max-width: 992px) {
    .main-nav {
        /* display: none; */
    }

    .menu-toggle-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    .top-buttons {
        flex-direction: row;
        gap: 15px;
    }

    .glass-btn {
        padding: 12px 28px;
        font-size: 1.1rem;
    }

    .logo-container span {
        font-size: 1rem;
    }

    .glass-nav {
        padding: 15px 20px;
    }
}