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

@font-face {
    font-family: 'vazir';
    src: url('../font/Vazir-Medium.ttf');
}
body {
    font-family: 'vazir', sans-serif;
}
body {
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: #ffffff;
    transition: 0.3s;
}

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

body::before {
    content: "";
    position: fixed;
    /* همیشه کل صفحه رو بگیره */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/back.jpg');
    background-color: #222;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Fixed for desktop */
    min-height: 100vh;
    overflow-x: hidden;
    filter: blur(10px);
    /* مقدار بلور */
    z-index: -1;
    /* پشت محتوای اصلی */
}
.navItem:hover {
    transform: translateY(-3px);

}

.navItem {
    transition: .3s;
}


.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
}

.glass-nav {
    margin-top: 20px;
    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: 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 25px;
}

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

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

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

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

.menu-toggle-btn {
    display: none;
    cursor: pointer;
}

.hero-section {
    height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    /* پس‌زمینه از اینجا حذف شد چون به body منتقل شده */
}

.hero-section h1 {
    font-size: 3.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.content-wrapper {
    padding: 40px 25px;
    background: rgba(35, 35, 35, 0.55);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 25px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 40px;
}

.info-paragraph {
    font-size: 1.2rem;
    line-height: 1.9;
    max-width: 900px;
    margin: 0 auto 50px auto;
    text-align: justify;
}

.media-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    align-items: flex-start;
}

.media-block h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 204, 255, 0.856);
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.gallery-grid .gallery-item {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid .gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.856);
}

/* --- استایل‌های نمایشگر تمام صفحه (جدید) --- */
.fullscreen-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-viewer.show {
    opacity: 1;
    visibility: visible;
}

.close-viewer {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    text-shadow: 0 0 10px black;
}

.fullscreen-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    width: 1280px;
    /* Max width for videos */
}

.fullscreen-content img {
    width: 100%;
    height: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.fullscreen-content iframe {
    width: 100%;
    height: 720px;
    /* 1280x720 aspect ratio */
    max-height: 85vh;
    border: none;
}

/* --- منوی موبایل --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu-overlay.show {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 25px;
    left: 35px;
    color: white;
    font-size: 3rem;
    text-decoration: none;
    cursor: pointer;
}

.mobile-main-nav ul {
    list-style: none;
    padding: 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;
}

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

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

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

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

    .media-section {
        grid-template-columns: 1fr;
    }

    .fullscreen-content iframe {
        height: 50vh;
    }
}

@media (max-width: 480px) {
    .media-section {
        grid-template-columns: 1fr;
    }

    .media-block h2 {
        font-size: 1.5rem;
    }

    .info-paragraph {
        font-size: 1.1rem;
    }
}