/* 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 {
    padding-bottom: 25px;
    width: 100%;
    max-width: 60%;
}
.welcome-banner {
    width: 100%;
    max-width: 90%;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(19, 19, 19, 0.1);
    border-radius: 25px;
}
.menu-item img {
    width: 100%;
    max-width: 90%;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(19, 19, 19, 0.1);
    border-radius: 25px;
}



h1{
    font-family: 'RVN', sans-serif;
    font-weight: normal;
    font-size: 100%;
    margin: -10px 0;
}
h2 {
    font-family: 'RVN', sans-serif;
    font-weight: bold;
    font-size: 100%;
    margin: 20px 0;
    opacity: 0.6;
}
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;
    font-size: 95%;
}

.menu-item {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: .5px dashed;
    border-bottom: opacity 0.2;
}

.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;
}

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

.address {
    margin: 20px 0;
    margin-top: 70px;
    padding-top: 20px;
    font-size: 14px;
}

.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: 25px;
}

.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: 25px;
}

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

.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: 4%;
    left: 4%;
    right: 4%;
    border-radius: 25px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 18px 16px;
    gap: 24px;
    border: 1px solid rgba(3, 56, 65, 0.294) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    z-index: 1000;
    transition: all 0.3s ease !important;
}

.navigation-bar:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 9px;
    text-align: center;
    cursor: pointer;
    margin: 0 4px;
   
    transition: all 0.2s ease;
}

.nav-item:hover {
    transform: translateY(-1px);
}
.nav-item {
    transition: all 0.3s ease;
    position: relative;
}

.nav-item.active-nav {
    transform: scale(1.1);
}

.nav-item.active-nav::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    animation: slideIn 0.3s ease;
}

.nav-item.active-nav img {
    filter: brightness(1.2) ;
}

.nav-item.active-nav span {
    font-weight: bold;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 30px;
        opacity: 1;
    }
}

.navigation-bar {
    scroll-behavior: smooth;
}

.nav-item:hover {
    transform: translateY(-2px);
}

.nav-item:active {
    transform: translateY(0);
}
.navigation-bar {
    position: fixed;
    bottom: 4%;
    left: 4%;
    right: 4%;
    border-radius: 25px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 12px 24px;
    border: 1px solid rgba(212, 212, 212, 0.294) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    z-index: 1000;
    transition: all 0.3s ease !important;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    gap: 20px;
}

.navigation-bar:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.navigation-bar::-webkit-scrollbar {
    height: 4px;
}

.navigation-bar::-webkit-scrollbar-track {
    background: transparent;
}

.navigation-bar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.navigation-bar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 9px;
    text-align: center;
    cursor: pointer;
    margin: 0 4px;
    flex-shrink: 0;
    min-width: 60px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 2px;
    border-radius: 12px;
}

.nav-item:hover {
    transform: translateY(-2px);
}

.nav-item:active {
    transform: translateY(0);
}

.nav-item img {
    width: 25px;
    height: 25px;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.nav-item.active-nav {
    transform: scale(1.15) translateY(-2px);
}

.nav-item.active-nav::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    animation: slideInBar 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active-nav::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 12px;
    z-index: -1;
    animation: fadeInBg 0.3s ease;
}

.nav-item.active-nav img {
    animation: pulseIcon 2s ease-in-out infinite;
}

.nav-item.active-nav span {
    font-weight: bold;
}

@keyframes slideInBar {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 35px;
        opacity: 1;
    }
}

@keyframes fadeInBg {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .navigation-bar {
        padding: 16px 12px;
        justify-content: flex-start;
    }
    
    .nav-item {
        min-width: 45px;
        font-size: 9px;
    }
    
    .nav-item img {
        width: 22px;
        height: 22px;
    }
    
    .nav-item.active-nav::before {
        width: 30px;
    }
}

.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;
    }
}
.copyright-footer {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 2.5% 20px;
    z-index: 998;
    font-size: 10px;
}

.copyright-footer a {
    color: #222222a1;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.3s ease;
}

.copyright-footer a:hover {
    
}