/* Diw ~ May 2025
 * This stylesheet defines the visual styling for the main page.
 * Created by Raven Studio for (Rosetta Menu).
 * Love and Peace From Free Iran
 * Z.Z.A - W.L.F*/
@font-face {
    font-family: 'RVN';
    src: url('fonts/rvn.woff2') format('woff2'),
         url('fonts/rvn.woff') format('woff');
    font-weight: normal;
}

@font-face {
    font-family: 'RVN';
    src: url('fonts/rvn_bold.woff2') format('woff2'),
         url('fonts/rvn_bold.woff') format('woff');
    font-weight: bold;
}

body {
    margin: 0;
    font-family: 'RVN', sans-serif;
    direction: rtl;
    text-align: center;
    position: relative;
}

.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-image {
    width: 120px;
    height: 120px;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.content {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.logo,
.welcome-banner,
.menu-item img {
    width: 100%;
    max-width: 90%;
    margin: 10px 0;
}

.welcome-banner,
.menu-item img {
    box-shadow: 0 4px 8px rgba(218, 218, 218, 0.1);
    border-radius: 10px;
}

h1{
    font-family: 'RVN', sans-serif;
    font-weight: normal;
    font-size: 125%;
    margin: 10px 0;
}
h2 {
    font-family: 'RVN', sans-serif;
    font-weight: normal;
    font-size: 140%;
    margin: 20px 0;
}
h3 {
    font-family: 'RVN', sans-serif;
    font-weight: bold;
    font-size: 100%;
    margin: 10px 0;
}
p,
a {
    font-family: 'RVN', sans-serif;
    font-weight: normal;
}

.menu-item {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item .persian {
    flex: 1;
    text-align: right;
    direction: rtl;
    padding-right: 10px;
}

.menu-item .image {
    flex: 1;
    text-align: center;
}

.menu-item .image img {
    max-width: 100px;
    cursor: pointer;
    border: none;
    box-shadow: none;
}

.menu-item .english {
    flex: 1;
    text-align: left;
    direction: ltr;
    padding-left: 10px;
}

.menu-item .description {
    width: 100%;
    text-align: center;
    padding: 5px 10px;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.address {
    margin: 20px 0;
    margin-top: 50px;
    font-size: 16px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 60px 0;
}

.social-links img {
    width: 40px;
    height: 40px;
}

.custom-section {
    display: block;
    margin: 10px 0;
    width: 100%;
}

.custom-section img {
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.accordion-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.accordion-header {
    padding: 10px;
    background-color: #f9f9f9;
    cursor: pointer;
}

.accordion-content {
    padding: 10px;
    display: none;
}

.accordion-content.active {
    display: block;
}

.intro-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10000;
    display: none;
    background: #ffffff00;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.logo, .welcome-banner, .custom-section, .section-container, .address, .social-links a {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.content.active .logo {
    animation: fadeInUp 0.5s ease-out forwards 0.2s;
}

.content.active .welcome-banner {
    animation: fadeInUp 0.5s ease-out forwards 0.4s;
}

.content.active .custom-section {
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: calc(0.6s + 0.1s * var(--order));
}

.content.active .section-container {
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: calc(0.6s + 0.1s * var(--order));
}

.content.active .address {
    animation: fadeInUp 0.5s ease-out forwards 1.2s;
}

.content.active .social-links a {
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: calc(1.4s + 0.1s * var(--order));
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-container {
    margin: -40px 0;
    padding: 15px;
    border-radius: 5px;
}

.menu-container {
    margin: 40px 0;
    padding: 20px;
    border-radius: 10px;
}

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10003;
    justify-content: center;
    align-items: center;
}

.gallery-modal  img {
    max-width: 90%;
    max-height: 90%;
}

.gallery-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 10002;
    display: none;
}

.navigation-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

.nav-item img {
    width: 25px;
    height: 25px;
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .content {
        max-width: 100%;
        padding: 10px;
    }

    .logo,
    .welcome-banner,
    .menu-item img,
    .custom-section img {
        max-width: 400px;
    }

    .social-links img {
        width: 30px;
        height: 30px;
        margin: 20px 0;
    }
}