.elementor-52 .elementor-element.elementor-element-5e0bc85{--display:flex;}/* Start custom CSS for html, class: .elementor-element-629c6f0 *//* ==========================================================================
   حل مشکل بیرون‌زدگی در موبایل (Anti-Overflow)
   ========================================================================== */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    margin: 0;
    padding: 0;
    background-color: #050505;
    color: #ffffff;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.main-content-wrapper, .elementor-breakout {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
.text-accent { color: #ff2a3f; }

/* ==========================================================================
   دکمه‌ها
   ========================================================================== */
.btn-primary {
    background-color: #ff2a3f;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-flex;
}
.btn-primary:hover { background-color: #d91d2f; }

/* ==========================================================================
   هدر اصلی و دکمه موبایل (Hamburger Base)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 90px;
    z-index: 1000;
    background-color: transparent;
    transition: 0.4s;
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background-color: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo { font-size: 1.8rem; font-weight: 900; }
.nav-menu ul li a { font-size: 0.95rem; opacity: 0.8; padding: 8px 0; }
.nav-menu ul li a:hover, .nav-menu ul li a.active { color: #ff2a3f; opacity: 1; }

/* مخفی کردن همبرگر در دسکتاپ */
.menu-toggle-btn {
    display: none; 
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1005;
    padding: 10px;
}
.menu-toggle-btn span {
    width: 25px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* ==========================================================================
   طراحی منوی سایدبار موبایل
   ========================================================================== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px; /* مخفی خارج از کادر */
    width: 280px;
    height: 100vh;
    background: #121212;
    z-index: 1002;
    padding: 80px 30px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
}

.mobile-sidebar.is-active { right: 0; }
.mobile-sidebar ul { list-style: none; padding: 0; margin: 0; }
.mobile-sidebar ul li a {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #fff;
}
.close-sidebar-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}
.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   بخش هیرو (Hero) و کارت‌ها
   ========================================================================== */
.portfolio-hero { padding: 180px 0 80px; text-align: center; }
.hero-title { font-size: clamp(1.8rem, 6vw, 4.5rem); font-weight: 900; margin-bottom: 25px; }
.hero-desc { color: #aaaaaa; max-width: 700px; margin: 0 auto 50px; line-height: 1.8; }
.portfolio-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.filter-btn { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 10px 24px; border-radius: 30px; cursor: pointer; }
.filter-btn.active { background: #ff2a3f; border-color: #ff2a3f; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding-bottom: 100px;
}
.portfolio-item { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3/4; }
.portfolio-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: 0.6s; }
.portfolio-item:hover .portfolio-img { transform: scale(1.08); }
.portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%); padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; }
.p-category { color: #ff2a3f; font-size: 0.8rem; font-weight: bold; margin-bottom: 10px; }
.p-title { font-size: 1.5rem; font-weight: bold; margin-bottom: 20px; }
.p-footer { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }
.p-link { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ==========================================================================
   اسکرول افقی
   ========================================================================== */
.hz-section { position: relative; overflow: hidden; background: #050505; border-block: 1px solid rgba(255,255,255,0.05); }
.hz-container { display: flex; width: 300vw; height: 100vh; }
.hz-panel { width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; padding: 0 5%; position: relative; }
.hz-bg-text { position: absolute; font-size: clamp(4rem, 12vw, 15rem); font-weight: 900; color: rgba(255,255,255,0.02); z-index: 0; }
.hz-content { display: flex; gap: 60px; z-index: 1; max-width: 1280px; width: 100%; align-items: center; }
.hz-text { flex: 1; }
.hz-text h4 { color: #ff2a3f; }
.hz-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.hz-image { flex: 1.2; border-radius: 24px; overflow: hidden; }
.hz-image img { width: 100%; object-fit: cover; }

/* ==========================================================================
   فوتر
   ========================================================================== */
.cta-section { padding: 120px 20px; text-align: center; }
footer { background: #121212; padding-top: 80px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; padding-bottom: 60px; }
.footer-logo { font-size: 2rem; font-weight: 900; margin-bottom: 20px; display: inline-block; }
.copyright-bar { text-align: center; padding: 25px 0; border-top: 1px solid rgba(255,255,255,0.05); background: #080808; }

/* ==========================================================================
   طراحی اختصاصی برای موبایل و تبلت
   ========================================================================== */
@media (max-width: 992px) {
    /* دکمه همبرگری نمایش داده می‌شود و دکمه دسکتاپ مخفی می‌شود */
    .menu-toggle-btn { display: flex !important; }
    .header-actions .btn-primary { display: none; }
    .nav-menu { display: none !important; }

    /* خنثی کردن اسکرول افقی و عرض‌های اضافی برای موبایل */
    .hz-section { overflow: hidden !important; }
    .hz-container { width: 100vw !important; height: auto; flex-direction: column; display: block; }
    .hz-panel { width: 100vw !important; height: auto; padding: 60px 20px; box-sizing: border-box; overflow: hidden; }
    .hz-content { flex-direction: column; text-align: center; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
    .portfolio-hero { padding: 140px 0 60px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .hz-text h2 { font-size: 1.8rem; }
}/* End custom CSS */