* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================================
   AMOLED GRADIENT BANDING FIX
   فیکس مشکل تیکه تیکه شدن گرادیانت‌ها در صفحات AMOLED
   =================================== */

/* تعریف SVG filter برای dithering/noise - حل مشکل banding */
.gradient-fix-filter {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* اضافه کردن noise texture به body برای Anti-Banding */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    /* مخفی در دسکتاپ */
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* فعال کردن noise فقط در موبایل برای حل مشکل AMOLED banding */
@media (max-width: 768px) {
    body::before {
        opacity: 0.012;
        /* مقدار خیلی کم برای اینکه قابل دیدن نباشه ولی banding رو بشکونه */
    }

    /* فیکس گرادیانت‌های Hero Section */
    .fade-gradient,
    .radial-gradient,
    .top-radial-gradient {
        /* اضافه کردن یک لایه noise بسیار ریز به گرادیانت‌ها */
        filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3CfeBlend in='SourceGraphic' mode='soft-light'/%3E%3C/filter%3E%3C/svg%3E#n");
        /* Fallback برای مرورگرهایی که filter پیچیده رو پشتیبانی نمیکنن */
        -webkit-filter: contrast(1.01) brightness(1.005);
    }

    /* بهبود کیفیت رندر گرادیانت‌ها در موبایل */
    .fade-gradient svg,
    .radial-gradient svg,
    .top-radial-gradient svg,
    .center-shape svg {
        shape-rendering: geometricPrecision;
        image-rendering: auto;
    }

    /* Initial Loading gradient fix */
    .initial-loading {
        /* اضافه کردن micro-noise برای شکستن banding */
        background: radial-gradient(ellipse at center, #1a1a1a 0%, #000000 70%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    }
}

@media (max-width: 480px) {
    body::before {
        opacity: 0.015;
        /* کمی بیشتر در موبایل‌های کوچکتر */
    }

    /* گرادیانت‌های SVG با تنظیمات بهتر برای AMOLED */
    .fade-gradient,
    .radial-gradient,
    .top-radial-gradient {
        /* افزایش کنتراست جزئی برای بهبود کیفیت */
        -webkit-filter: contrast(1.02) brightness(1.008);
        filter: contrast(1.02) brightness(1.008);
    }

    /* Hero section background gradient fix */
    .hero-section {
        /* اضافه کردن یک لایه noise خیلی ریز به پس‌زمینه */
        background: #000000 url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.015'/%3E%3C/svg%3E");
    }

    /* Pattern layer smoothing */
    .pattern-layer {
        /* بهبود رندر پترن */
        image-rendering: auto;
    }
}

/* فیکس مخصوص صفحات OLED/AMOLED با تشخیص عمق رنگ */
@media (color-gamut: p3), (color-gamut: rec2020) {
    /* این دستگاه‌ها معمولا OLED/AMOLED هستن */
    body::before {
        opacity: 0.01;
    }
}

/* فیکس برای دستگاه‌های با High DPI و AMOLED */
@media (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px),
(min-resolution: 192dpi) and (max-width: 768px) {
    body::before {
        opacity: 0.012;
        background-size: 150px 150px;
        /* سایز کوچکتر برای صفحات با DPI بالا */
    }

    /* تنظیمات دقیق‌تر برای گرادیانت‌ها */
    .fade-gradient,
    .radial-gradient,
    .top-radial-gradient {
        will-change: transform;
        /* GPU acceleration */
        transform: translateZ(0);
        /* Force hardware acceleration */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* ===================================
   END AMOLED GRADIENT BANDING FIX
   =================================== */

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Simplify hover effects on mobile */
    #helpSection .heading-mask_el__masking {
        transition: clip-path 0.3s ease;
    }

    /* Improve touch interaction */
    #helpSection .heading-mask {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    }
}

/* ===================================
   Help Section Mobile Responsive
   =================================== */

/* Tablet and Mobile (768px and below) */
@media (max-width: 768px) {
    /* Help section adjustments */
    .help-section {
        padding: 60px 15px;
    }

    .help-headline {
        padding-top: 20px;
    }

    /* Section2 in Help - allow text wrapping */
    .help-section .section2-container .none-break {
        white-space: normal;
        word-break: keep-all;
    }

    /* Reduce font sizes for mobile */
    .help-section .section2-container .h1,
    .help-section .section2-container h1 {
        font-size: 2.8rem;
    }

    .help-section .section2-container .desc {
        font-size: 0.9rem;
        max-width: 85%;
    }

    /* ===== TEXT ALIGNMENT FOR MOBILE - DESKTOP APPROACH ===== */
    /* English (EN) - Left aligned with left offset (like desktop) */
    .help-section #sectionTwo .col-lg-10,
    .help-section #sectionTwo .col-sm-11,
    .help-section #sectionTwo .col-12 {
        margin-left: 5% !important;
        margin-right: auto !important;
        width: 95% !important;
    }

    .help-section #sectionTwo .container_content {
        padding-left: 2rem !important;
        padding-right: 0 !important;
        text-align: left !important;
        direction: ltr !important;
    }

    .help-section #sectionTwo .simple-masking,
    .help-section #sectionTwo .heading-mask_el {
        text-align: left !important;
        direction: ltr !important;
    }

    .help-section #sectionTwo .simple-masking_el {
        display: inline-block !important;
        text-align: left !important;
        float: left !important;
    }

    .help-section #sectionTwo .heading-mask_el__deep h1,
    .help-section #sectionTwo .heading-mask_el__deep h2,
    .help-section #sectionTwo .heading-mask_el__masking h1,
    .help-section #sectionTwo .heading-mask_el__masking h2 {
        text-align: left !important;
        direction: ltr !important;
    }

    .help-section #sectionTwo .heading-mask_el__masking .desc {
        text-align: left !important;
        left: 0 !important;
        right: auto !important;
    }

    /* Persian (FA) - Right aligned with right offset (like desktop) */
    .help-section #sectionTwoFa .col-lg-10,
    .help-section #sectionTwoFa .col-sm-11,
    .help-section #sectionTwoFa .col-12 {
        margin-right: 5% !important;
        margin-left: auto !important;
        width: 95% !important;
    }

    .help-section #sectionTwoFa .container_content {
        padding-right: 2rem !important;
        padding-left: 0 !important;
        text-align: right !important;
        direction: rtl !important;
    }

    .help-section #sectionTwoFa .simple-masking,
    .help-section #sectionTwoFa .heading-mask_el {
        text-align: right !important;
        direction: rtl !important;
    }

    .help-section #sectionTwoFa .simple-masking_el {
        display: inline-block !important;
        text-align: right !important;
        float: right !important;
    }

    .help-section #sectionTwoFa .heading-mask_el__deep h1,
    .help-section #sectionTwoFa .heading-mask_el__deep h2,
    .help-section #sectionTwoFa .heading-mask_el__masking h1,
    .help-section #sectionTwoFa .heading-mask_el__masking h2 {
        text-align: right !important;
        direction: rtl !important;
    }

    .help-section #sectionTwoFa .heading-mask_el__masking .desc {
        text-align: right !important;
        left: auto !important;
        right: 0 !important;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .help-section {
        padding: 40px 12px;
    }

    .help-headline {
        padding-top: 15px;
    }

    /* Smaller fonts for small mobile */
    .help-section .section2-container .h1,
    .help-section .section2-container h1 {
        font-size: 2.2rem;
        line-height: 100%;
    }

    .help-section .section2-container .desc {
        font-size: 0.82rem;
        line-height: 165%;
        max-width: 90%;
    }

    /* Adjust spacing */
    .help-section .section2-container .client_list {
        margin-bottom: 6rem;
    }

    /* English - closer to left edge */
    .help-section #sectionTwo .col-lg-10,
    .help-section #sectionTwo .col-sm-11,
    .help-section #sectionTwo .col-12 {
        margin-left: 3% !important;
        margin-right: auto !important;
        width: 97% !important;
    }

    .help-section #sectionTwo .container_content {
        padding-left: 1.5rem !important;
        padding-right: 0 !important;
        text-align: left !important;
        direction: ltr !important;
    }

    /* Persian - closer to right edge */
    .help-section #sectionTwoFa .col-lg-10,
    .help-section #sectionTwoFa .col-sm-11,
    .help-section #sectionTwoFa .col-12 {
        margin-right: 3% !important;
        margin-left: auto !important;
        width: 97% !important;
    }

    .help-section #sectionTwoFa .container_content {
        padding-right: 1.5rem !important;
        padding-left: 0 !important;
        text-align: right !important;
        direction: rtl !important;
    }
}

html {
    overflow-x: hidden;
    width: 100%;
    background-color: #000000;
    /* Ensure page background is black to avoid white gaps */
}

body {
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: auto;
    cursor: none;
    background-color: #000000;
    /* Prevent white strips between pinned sections */
}

/* Ensure cursor is hidden everywhere */
html,
html *,
body,
body * {
    cursor: none !important;
}

/* Hide main page scrollbar (keep scrolling functional) */
html,
body {
    -ms-overflow-style: none;
    /* IE and old Edge */
    scrollbar-width: none;
    /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Initial Loading Screen Styles */
.initial-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #000000 70%);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.8s ease-out;
    overflow: hidden;
}

.initial-loading.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.initial-loading-content {
    text-align: center;
    color: #ffffff;
    font-family: 'Asiatech', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    position: relative;
    z-index: 2;
    animation: content-fade-in 1s ease-out;
}

.loading-logo {
    margin-bottom: 40px;
}

.logo-loading {
    height: 160px;
    width: auto;
    opacity: 0.95;
    animation: logo-float 3s ease-in-out infinite;
}

.loading-animation {
    margin-bottom: 30px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.loading-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    animation: dot-bounce 1.4s ease-in-out infinite both;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0s;
}

.loading-welcome {
    margin-bottom: 35px;
}

.welcome-text {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    animation: welcome-pulse 2s ease-in-out infinite alternate;
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.welcome-text[data-lang="fa"] {
    direction: rtl;
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.welcome-text[data-lang="en"] {
    direction: ltr;
}

.loading-progress {
    width: 280px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 50%, #ffffff 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
    animation: progress-shine 2s ease-in-out infinite;
}

.loading-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particle-float 8s linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: -2s;
    animation-duration: 10s;
}

.particle:nth-child(3) {
    left: 35%;
    animation-delay: -4s;
    animation-duration: 12s;
}

.particle:nth-child(4) {
    left: 65%;
    animation-delay: -1s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    left: 80%;
    animation-delay: -3s;
    animation-duration: 11s;
}

.particle:nth-child(6) {
    left: 90%;
    animation-delay: -5s;
    animation-duration: 7s;
}

/* Animations */
@keyframes content-fade-in {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logo-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.1));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.2));
    }
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes dot-bounce {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes welcome-pulse {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Mobile responsive adjustments for initial loading */
@media (max-width: 768px) {
    .initial-loading {
        background: radial-gradient(ellipse at center, #1a1a1a 0%, #141414 70%);
    }

    .logo-loading {
        height: 120px;
    }

    .welcome-text {
        font-size: 18px;
    }

    .loading-progress {
        width: 240px;
    }
}

@media (max-width: 480px) {
    .initial-loading {
        background: radial-gradient(ellipse at center, #1a1a1a 0%, #141414 70%);
    }

    .logo-loading {
        height: 100px;
    }

    .welcome-text {
        font-size: 16px;
    }

    .loading-progress {
        width: 200px;
    }

    .loading-dots {
        gap: 8px;
    }

    .loading-dot {
        width: 10px;
        height: 10px;
    }
}

.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    overflow: visible;
}

/* Mobile responsive hero section height adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 90vh;
        /* کاهش ارتفاع در تبلت */
        overflow: visible;
    }

    /* غیرفعال کردن انیمیشن pulse و افکت glow روی center-shape در تبلت */
    .center-shape {
        animation: none !important;
        -webkit-filter: none !important;
        filter: none !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 85vh;
        /* کاهش ارتفاع در موبایل */
        overflow: visible;
    }

    /* غیرفعال کردن انیمیشن pulse و افکت glow روی center-shape در موبایل */
    .center-shape {
        animation: none !important;
        -webkit-filter: none !important;
        filter: none !important;
    }
}

.hero-content-container {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Base container size - 16:9 aspect ratio */
    width: 1920px;
    height: 1080px;
    transform: translate(-50%, -50%) scale(0.8);
    transform-origin: center center;
    overflow: visible;
}

/* Responsive scaling for different screen sizes */
@media (min-width: 1920px) and (min-height: 1080px) {
    .hero-content-container {
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (max-width: 1600px) {
    .hero-content-container {
        transform: translate(-50%, -50%) scale(0.7);
    }
}

@media (max-width: 1200px) {
    .hero-content-container {
        transform: translate(-50%, -50%) scale(0.6);
    }
}

@media (max-width: 900px) {
    .hero-content-container {
        transform: translate(-50%, -50%) scale(0.45);
    }
}

@media (max-width: 600px) {
    .hero-content-container {
        transform: translate(-50%, -50%) scale(0.35);
    }
}

@media (max-width: 480px) {
    .hero-content-container {
        transform: translate(-50%, -50%) scale(0.4);
    }
}

.fade-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 1920px;
    height: auto;
    z-index: 2;
}

#three-canvas {
    position: absolute;
    top: 540px;
    left: 960px;
    transform: translate(-50%, -50%);
    z-index: 4;
    pointer-events: auto;
    -moz-user-select: none;
}

.top-radial-gradient {
    position: absolute;
    top: 464px;
    left: 980px;
    transform: translate(-50%, -50%);
    width: 1152px;
    height: auto;
    z-index: 1.5;
}

.pattern-layer {
    position: absolute;
    top: 464px;
    left: 980px;
    transform: translate(-50%, -50%);
    width: 1344px;
    height: 756px;
    background-image: url('pattern.png');
    background-repeat: repeat;
    background-size: 66px 66px;
    opacity: 0.10;
    /* بهبود Mask برای فید شدن دور پترن - گرادیانت از مرکز به بیرون */
    mask: radial-gradient(ellipse at center, black 0%, black 30%, transparent 70%);
    z-index: 1;
}

.radial-gradient {
    position: absolute;
    top: 464px;
    left: 980px;
    transform: translate(-50%, -50%);
    width: 1152px;
    height: auto;
    z-index: 2;
}

.center-shape {
    position: absolute;
    top: 475px;
    left: 950px;
    transform: translate(-50%, -50%);
    width: 700px;
    height: auto;
    z-index: 5;
    opacity: 0.8;
    -webkit-filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.3)) drop-shadow(0 0 80px rgba(255, 255, 255, 0.1));
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.3)) drop-shadow(0 0 80px rgba(255, 255, 255, 0.1));
    animation: glow 3s ease-in-out infinite alternate;
    transition: transform 0.5s ease;
}

/* English Layout - Flip center shape horizontally and move to right */
.hero-section.english-layout .center-shape {
    left: 988px;
    transform: translate(-50%, -50%) scaleX(-1);
}

.siri-orb-container {
    position: absolute;
    display: inline-block;
    width: 84px;
    height: 84px;
    cursor: pointer;
    transition: all 0.5s ease;
    z-index: 6;
    background: transparent;
}

.siri-orb-container::after {
    content: "";
    position: absolute;
    top: -6px;
    left: -6px;
    width: 90px;
    height: 90px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 10;
    /* below .siribtn (z-index:40) but above background */
    transition: all 0.3s ease;
}

/* Enhanced glow when tooltip is showing */
.siri-orb-container:hover::after,
.siri-orb-container.orb-preview-active::after {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4),
        0 0 40px rgba(255, 255, 255, 0.2);
}

.sirigif {
    height: 75px;
    width: 75px;
    position: relative;
    mix-blend-mode: screen;
    background: transparent;
}

.siribtn {
    border-radius: 50%;
    width: 85px;
    background: transparent;
    background-position: center;
    height: 85px;
    z-index: 40;
    outline: none;
    transition: opacity 0.6s;
    cursor: pointer;
    filter: grayscale(100%);
}

.siribtn:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.siri-orb-1 {
    top: 616px;
    left: 576px;
    transform: translate(0%, -50%) scale(0.8);
    opacity: 0.9;
}

.siri-orb-1:hover {
    opacity: 1;
    transform: translate(0%, -50%) scale(1.1);
}

.siri-orb-2 {
    top: 810px;
    left: 1286px;
    transform: translate(-100%, -50%) scale(0.8) rotate(40deg);
    opacity: 0.9;
}

.siri-orb-2:hover {
    opacity: 1;
    transform: translate(-100%, -50%) scale(1.1) rotate(40deg);
}

.siri-orb-3 {
    top: 173px;
    left: 1190px;
    transform: translate(-50%, -50%) scale(0.8) rotate(-20deg);
    opacity: 0.9;
}

.siri-orb-3:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1) rotate(-20deg);
}

/* English Layout - Mirror Siri orb positions and shift right */
.hero-section.english-layout .siri-orb-1 {
    left: 1363px;
    transform: translate(-100%, -50%) scale(0.8);
}

.hero-section.english-layout .siri-orb-1:hover {
    transform: translate(-100%, -50%) scale(1.1);
}

.hero-section.english-layout .siri-orb-2 {
    left: 672px;
    transform: translate(0%, -50%) scale(0.8) rotate(-40deg);
}

.hero-section.english-layout .siri-orb-2:hover {
    transform: translate(0%, -50%) scale(1.1) rotate(-40deg);
}

.hero-section.english-layout .siri-orb-3 {
    left: 749px;
    transform: translate(-50%, -50%) scale(0.8) rotate(20deg);
}

.hero-section.english-layout .siri-orb-3:hover {
    transform: translate(-50%, -50%) scale(1.1) rotate(20deg);
}

/* Orb Preview Tooltip Styles */
.orb-preview-tooltip {
    position: absolute;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.99), rgba(28, 28, 28, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    min-width: 200px;
    max-width: 320px;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.orb-preview-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    animation: tooltip-pulse 2s ease-in-out infinite;
}

@keyframes tooltip-pulse {

    0%,
    100% {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5),
            0 0 40px rgba(255, 255, 255, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55),
            0 0 50px rgba(255, 255, 255, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

.orb-preview-tooltip.hiding {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    transition: all 0.3s ease-out;
}

.orb-preview-tooltip-title {
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    line-height: 1.4;
    text-align: center;
    margin: 0;
    overflow: visible;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.orb-preview-tooltip-title[data-lang="en"] {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    direction: ltr;
    word-spacing: normal;
    letter-spacing: normal;
}

.orb-preview-tooltip-title[data-lang="fa"] {
    direction: rtl;
    word-spacing: normal;
    letter-spacing: normal;
}

/* Typing animation for tooltip text */
.orb-preview-tooltip-title .char {
    display: inline;
    opacity: 0;
    transform: translateY(5px);
    animation: char-appear 0.15s ease-out forwards;
    word-spacing: normal;
    letter-spacing: normal;
    vertical-align: baseline;
}

@keyframes char-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive tooltip positioning for different orbs */
.orb-preview-tooltip.orb-1-tooltip {
    top: 50%;
    left: calc(100% + 20px);
    transform: translateY(-50%) scale(0.9);
    transform-origin: left center;
}

.orb-preview-tooltip.orb-1-tooltip.show {
    transform: translateY(-50%) scale(1);
}

.orb-preview-tooltip.orb-1-tooltip.hiding {
    transform: translateY(-50%) scale(0.9);
}

.orb-preview-tooltip.orb-2-tooltip,
.orb-preview-tooltip.orb-3-tooltip {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.99), rgba(28, 28, 28, 0.99));
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.orb-preview-tooltip.orb-2-tooltip {
    top: calc(50% + 40px);
    right: calc(100% + 20px);
    margin-left: 0;
    transform: translateY(-50%) rotate(-40deg) scale(0.9) translateZ(0);
    transform-origin: right center;
}

.orb-preview-tooltip.orb-2-tooltip.show {
    transform: translateY(-50%) rotate(-40deg) scale(1) translateZ(0);
}

.orb-preview-tooltip.orb-2-tooltip.hiding {
    transform: translateY(-50%) rotate(-40deg) scale(0.9) translateZ(0);
}

.orb-preview-tooltip.orb-3-tooltip {
    top: calc(50% + 15px);
    left: calc(100% + 20px);
    margin-left: 0;
    transform: translateY(-50%) rotate(20deg) scale(0.9) translateZ(0);
    transform-origin: left center;
}

.orb-preview-tooltip.orb-3-tooltip.show {
    transform: translateY(-50%) rotate(20deg) scale(1) translateZ(0);
}

.orb-preview-tooltip.orb-3-tooltip.hiding {
    transform: translateY(-50%) rotate(20deg) scale(0.9) translateZ(0);
}

/* Arrow indicator for tooltips */
.orb-preview-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.orb-preview-tooltip.orb-1-tooltip::before {
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 8px 8px 0;
    border-color: transparent rgba(42, 42, 42, 0.98) transparent transparent;
}

.orb-preview-tooltip.orb-2-tooltip::before {
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent rgba(42, 42, 42, 0.98);
}

.orb-preview-tooltip.orb-3-tooltip::before {
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 8px 8px 0;
    border-color: transparent rgba(42, 42, 42, 0.98) transparent transparent;
}

/* English layout adjustments */
.hero-section.english-layout .orb-preview-tooltip.orb-1-tooltip {
    left: auto;
    right: calc(100% + 20px);
    transform: translateY(-50%) scale(0.9);
    transform-origin: right center;
}

.hero-section.english-layout .orb-preview-tooltip.orb-1-tooltip.show {
    transform: translateY(-50%) scale(1);
}

.hero-section.english-layout .orb-preview-tooltip.orb-1-tooltip.hiding {
    transform: translateY(-50%) scale(0.9);
}

.hero-section.english-layout .orb-preview-tooltip.orb-1-tooltip::before {
    left: auto;
    right: -8px;
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent rgba(42, 42, 42, 0.98);
}

.hero-section.english-layout .orb-preview-tooltip.orb-2-tooltip {
    right: auto;
    left: calc(100% + 20px);
    top: calc(50% + 40px);
    transform: translateY(-50%) rotate(40deg) scale(0.9) translateZ(0);
    transform-origin: left center;
}

.hero-section.english-layout .orb-preview-tooltip.orb-2-tooltip.show {
    transform: translateY(-50%) rotate(40deg) scale(1) translateZ(0);
}

.hero-section.english-layout .orb-preview-tooltip.orb-2-tooltip.hiding {
    transform: translateY(-50%) rotate(40deg) scale(0.9) translateZ(0);
}

.hero-section.english-layout .orb-preview-tooltip.orb-2-tooltip::before {
    right: auto;
    left: -8px;
    border-width: 8px 8px 8px 0;
    border-color: transparent rgba(42, 42, 42, 0.98) transparent transparent;
}

.hero-section.english-layout .orb-preview-tooltip.orb-3-tooltip {
    top: calc(50% + 15px);
    transform: translateY(-50%) rotate(-20deg) scale(0.9) translateZ(0);
    transform-origin: left center;
}

.hero-section.english-layout .orb-preview-tooltip.orb-3-tooltip.show {
    transform: translateY(-50%) rotate(-20deg) scale(1) translateZ(0);
}

.hero-section.english-layout .orb-preview-tooltip.orb-3-tooltip.hiding {
    transform: translateY(-50%) rotate(-20deg) scale(0.9) translateZ(0);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .orb-preview-tooltip {
        padding: 14px 20px;
        min-width: 180px;
        max-width: 280px;
    }

    .orb-preview-tooltip-title {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .orb-preview-tooltip {
        padding: 12px 18px;
        min-width: 160px;
        max-width: 240px;
    }

    .orb-preview-tooltip-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .orb-preview-tooltip {
        padding: 20px 28px;
        min-width: 240px;
        max-width: 320px;
        border-radius: 18px;
        /* Remove display:none to show on mobile */
        display: block !important;
        /* Simpler styling for mobile performance */
        background: rgba(35, 35, 35, 0.98) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
    }

    .orb-preview-tooltip-title {
        font-size: 20px !important;
        font-weight: 700 !important;
        line-height: 1.5 !important;
    }

    /* Orb 1 - No rotation needed, just position to the right */
    .orb-preview-tooltip.orb-1-tooltip {
        top: 50% !important;
        bottom: auto !important;
        left: calc(100% + 15px) !important;
        right: auto !important;
        transform: translateY(-50%) scale(0.9) !important;
        transform-origin: left center !important;
    }

    .orb-preview-tooltip.orb-1-tooltip.show {
        transform: translateY(-50%) scale(1) !important;
    }

    .orb-preview-tooltip.orb-1-tooltip.hiding {
        transform: translateY(-50%) scale(0.9) !important;
    }

    /* Arrow pointing LEFT for orb 1 */
    .orb-preview-tooltip.orb-1-tooltip::before {
        left: -8px !important;
        right: auto !important;
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        border-width: 8px 8px 8px 0 !important;
        border-color: transparent rgba(35, 35, 35, 0.98) transparent transparent !important;
    }

    /* Orb 2 - Parent has rotate(40deg), so counter-rotate with rotate(-40deg) */
    /* Added top offset for vertical center alignment */
    .orb-preview-tooltip.orb-2-tooltip {
        top: calc(50% + 40px) !important;
        bottom: auto !important;
        left: auto !important;
        right: calc(100% + 15px) !important;
        transform: translateY(-50%) rotate(-40deg) scale(0.9) !important;
        transform-origin: right center !important;
    }

    .orb-preview-tooltip.orb-2-tooltip.show {
        transform: translateY(-50%) rotate(-40deg) scale(1) !important;
    }

    .orb-preview-tooltip.orb-2-tooltip.hiding {
        transform: translateY(-50%) rotate(-40deg) scale(0.9) !important;
    }

    /* Arrow pointing RIGHT for orb 2 */
    .orb-preview-tooltip.orb-2-tooltip::before {
        left: auto !important;
        right: -8px !important;
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        border-width: 8px 0 8px 8px !important;
        border-color: transparent transparent transparent rgba(35, 35, 35, 0.98) !important;
    }

    /* Orb 3 - Parent has rotate(-20deg), so counter-rotate with rotate(20deg) */
    /* Added top offset for vertical center alignment */
    .orb-preview-tooltip.orb-3-tooltip {
        top: calc(50% + 15px) !important;
        bottom: auto !important;
        left: calc(100% + 15px) !important;
        right: auto !important;
        transform: translateY(-50%) rotate(20deg) scale(0.9) !important;
        transform-origin: left center !important;
    }

    .orb-preview-tooltip.orb-3-tooltip.show {
        transform: translateY(-50%) rotate(20deg) scale(1) !important;
    }

    .orb-preview-tooltip.orb-3-tooltip.hiding {
        transform: translateY(-50%) rotate(20deg) scale(0.9) !important;
    }

    /* Arrow pointing LEFT for orb 3 */
    .orb-preview-tooltip.orb-3-tooltip::before {
        left: -8px !important;
        right: auto !important;
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        border-width: 8px 8px 8px 0 !important;
        border-color: transparent rgba(35, 35, 35, 0.98) transparent transparent !important;
    }

    /* English layout - mirror positions with counter-rotations */
    .hero-section.english-layout .orb-preview-tooltip.orb-1-tooltip {
        left: auto !important;
        right: calc(100% + 15px) !important;
        transform: translateY(-50%) scale(0.9) !important;
        transform-origin: right center !important;
    }

    .hero-section.english-layout .orb-preview-tooltip.orb-1-tooltip.show {
        transform: translateY(-50%) scale(1) !important;
    }

    .hero-section.english-layout .orb-preview-tooltip.orb-1-tooltip::before {
        left: auto !important;
        right: -8px !important;
        border-width: 8px 0 8px 8px !important;
        border-color: transparent transparent transparent rgba(35, 35, 35, 0.98) !important;
    }

    /* English orb 2 - Parent has rotate(-40deg), counter with rotate(40deg) */
    .hero-section.english-layout .orb-preview-tooltip.orb-2-tooltip {
        left: calc(100% + 15px) !important;
        right: auto !important;
        top: calc(50% + 40px) !important;
        transform: translateY(-50%) rotate(40deg) scale(0.9) !important;
        transform-origin: left center !important;
    }

    .hero-section.english-layout .orb-preview-tooltip.orb-2-tooltip.show {
        transform: translateY(-50%) rotate(40deg) scale(1) !important;
    }

    .hero-section.english-layout .orb-preview-tooltip.orb-2-tooltip::before {
        left: -8px !important;
        right: auto !important;
        border-width: 8px 8px 8px 0 !important;
        border-color: transparent rgba(35, 35, 35, 0.98) transparent transparent !important;
    }

    /* English orb 3 - Parent has rotate(20deg), counter with rotate(-20deg) */
    .hero-section.english-layout .orb-preview-tooltip.orb-3-tooltip {
        left: calc(100% + 15px) !important;
        right: auto !important;
        top: calc(50% + 15px) !important;
        transform: translateY(-50%) rotate(-20deg) scale(0.9) !important;
        transform-origin: left center !important;
    }

    .hero-section.english-layout .orb-preview-tooltip.orb-3-tooltip.show {
        transform: translateY(-50%) rotate(-20deg) scale(1) !important;
    }

    .hero-section.english-layout .orb-preview-tooltip.orb-3-tooltip::before {
        left: -8px !important;
        right: auto !important;
        border-width: 8px 8px 8px 0 !important;
        border-color: transparent rgba(35, 35, 35, 0.98) transparent transparent !important;
    }
}

.siri-orb-container.small .siribtn {
    width: 50px;
    height: 50px;
}

.siri-orb-container.large .siribtn {
    width: 120px;
    height: 120px;
}

.siribtn.colorful {
    filter: none;
}

.siribtn.blue {
    filter: grayscale(100%) sepia(100%) hue-rotate(200deg) saturate(200%);
}

.siri-orb-container:hover .siribtn {
    animation: siri-pulse 2s ease-in-out infinite;
}

@keyframes siri-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.02);
        opacity: 1;
    }
}

@keyframes float-slow {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(1px, -1px) rotate(0.5deg);
    }

    50% {
        transform: translate(-1px, 1px) rotate(0deg);
    }

    75% {
        transform: translate(1px, 1px) rotate(-0.5deg);
    }
}

@keyframes float-medium {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-1px, -1px) rotate(0.3deg);
    }

    66% {
        transform: translate(1px, -1px) rotate(-0.3deg);
    }
}

@keyframes float-fast {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-0.5px, 0.5px) rotate(0.2deg);
    }
}

@keyframes drift-left {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-0.8px, 0.5px);
    }

    50% {
        transform: translate(-0.3px, -0.8px);
    }

    75% {
        transform: translate(0.5px, -0.3px);
    }
}

@keyframes drift-right {

    0%,
    100% {
        transform: translate(0, 0);
    }

    30% {
        transform: translate(0.8px, -0.5px);
    }

    60% {
        transform: translate(0.3px, 0.8px);
    }
}

@keyframes drift-up {

    0%,
    100% {
        transform: translate(0, 0);
    }

    40% {
        transform: translate(-0.5px, -0.8px);
    }

    80% {
        transform: translate(0.5px, -0.3px);
    }
}

@keyframes drift-down {

    0%,
    100% {
        transform: translate(0, 0);
    }

    35% {
        transform: translate(0.3px, 0.8px);
    }

    70% {
        transform: translate(-0.3px, 0.5px);
    }
}

@keyframes pulse-gentle {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.002);
        opacity: 0.98;
    }
}

@keyframes glow {

    0%,
    100% {
        -webkit-filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.3)) drop-shadow(0 0 80px rgba(255, 255, 255, 0.1));
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.3)) drop-shadow(0 0 80px rgba(255, 255, 255, 0.1));
    }

    50% {
        -webkit-filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 100px rgba(255, 255, 255, 0.2));
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 100px rgba(255, 255, 255, 0.2));
    }
}

/* Minimal Navigation Bar Styles */
.minimal-nav {
    position: fixed;
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 1;
    transition: all 0.3s ease;
}

.minimal-nav:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.12);
}

.minimal-nav svg {
    width: 355px;
    height: 110px;
    -webkit-filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.1));
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.1));
}

/* Hover highlight behind each nav icon */
.nav-hit {
    fill: #ffffff;
    fill-opacity: 0;
    transition: fill-opacity 0.2s ease;
}

.nav-item:hover .nav-hit {
    fill-opacity: 0.12;
}

.nav-item {
    cursor: pointer;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-item:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 3px 8px rgba(255, 255, 255, 0.2));
}

.nav-item path {
    transition: all 0.3s ease;
}

.nav-item:hover path {
    fill: #ffffff;
    -webkit-filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.nav-item:active {
    transform: translateY(-2px);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .minimal-nav {
        bottom: max(20px, env(safe-area-inset-bottom, 20px));
    }

    .minimal-nav svg {
        width: 350px;
        height: 85px;
        /* حذف افکت نوری در تبلت */
        -webkit-filter: none !important;
        filter: none !important;
    }

    /* حذف افکت hover در تبلت */
    .minimal-nav:hover svg {
        -webkit-filter: none !important;
        filter: none !important;
    }

    .nav-item:hover {
        filter: none !important;
    }

    .nav-item:hover path {
        -webkit-filter: none !important;
        filter: none !important;
    }
}

@media (max-width: 480px) {
    .minimal-nav {
        bottom: max(20px, env(safe-area-inset-bottom, 20px));
    }

    .minimal-nav svg {
        width: 280px;
        height: 70px;
        /* حذف کامل افکت نوری در موبایل */
        -webkit-filter: none !important;
        filter: none !important;
    }

    /* حذف تمام افکت‌های hover در موبایل */
    .minimal-nav:hover {
        opacity: 1;
        transform: translateX(-50%) scale(1) !important;
    }

    .minimal-nav:hover svg {
        -webkit-filter: none !important;
        filter: none !important;
    }

    .nav-item {
        filter: none !important;
    }

    .nav-item:hover {
        transform: translateY(0) !important;
        filter: none !important;
    }

    .nav-item:hover path {
        -webkit-filter: none !important;
        filter: none !important;
    }

    .nav-item path {
        filter: none !important;
    }
}

@font-face {
    font-family: 'Asiatech';
    src: url('font/Asiatech.otf') format('opentype'),
        url('font/Asiatech.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dana';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/dana-font@v2.0.4/fonts/woff2/Dana-Regular.woff2') format('woff2'),
        url('https://cdn.jsdelivr.net/gh/rastikerdar/dana-font@v2.0.4/fonts/woff/Dana-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dana';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/dana-font@v2.0.4/fonts/woff2/Dana-Medium.woff2') format('woff2'),
        url('https://cdn.jsdelivr.net/gh/rastikerdar/dana-font@v2.0.4/fonts/woff/Dana-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dana';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/dana-font@v2.0.4/fonts/woff2/Dana-Bold.woff2') format('woff2'),
        url('https://cdn.jsdelivr.net/gh/rastikerdar/dana-font@v2.0.4/fonts/woff/Dana-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* RTL glowing headline (right side) */
.rtl-hero-text {
    position: absolute;
    top: 486px;
    right: 192px;
    transform: translateY(-50%);
    text-align: right;
    direction: rtl;
    z-index: 8;
    /* above center-shape and Siri orbs, below nav */
    pointer-events: none;
    font-family: 'Asiatech', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    transition: all 0.3s ease;
}

.lang-content {
    transition: opacity 0.3s ease;
}

/* English text positioning */
.rtl-hero-text[style*="direction: ltr"] {
    left: 192px;
    right: auto;
    text-align: left;
    direction: ltr;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (max-width: 480px) {

    /* English text positioning in mobile */
    .rtl-hero-text[style*="direction: ltr"] {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(-580%) !important;
        text-align: center !important;
        direction: ltr !important;
        z-index: 102 !important;
        width: 100% !important;
    }
}

.rtl-title {
    color: #ffffff;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0;
    font-size: clamp(30px, 4vw, 80px);
    text-shadow: 0 0 7px rgba(255, 255, 255, 0.4),
        0 0 8px rgba(255, 255, 255, 0.2),
        0 0 16px rgba(255, 255, 255, 0.15),
        0 0 32px rgba(255, 255, 255, 0.08);
}

.rtl-subtitle {
    color: #ffffff;
    opacity: 1;
    font-weight: 700;
    margin-bottom: 0.6rem;
    font-size: clamp(16px, 2.2vw, 36px);
    text-shadow: 0 0 7px rgba(255, 255, 255, 0.4),
        0 0 8px rgba(255, 255, 255, 0.2),
        0 0 16px rgba(255, 255, 255, 0.15),
        0 0 32px rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .rtl-hero-text {
        top: 40%;
        right: 5%;
    }

    /* English layout responsive adjustments */
    .hero-section.english-layout .rtl-hero-text {
        left: 5%;
        right: auto;
    }
}

@media (max-width: 480px) {
    .rtl-hero-text {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(-580%) !important;
        text-align: center !important;
        z-index: 102 !important;
        width: 100% !important;
    }

    /* English layout responsive adjustments */
    .hero-section.english-layout .rtl-hero-text {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(-580%) !important;
        text-align: center !important;
        z-index: 102 !important;
        width: 100% !important;
    }

    .rtl-title {
        font-size: 75px;
        line-height: 1.1;
    }

    .rtl-subtitle {
        font-size: 38px;
        margin-bottom: 0.4rem;
    }
}

/* Logo Styles */
.logo-container {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 100;
    transition: all 0.3s ease;
}

/* English Layout - Move logo to right */
.hero-section.english-layout .logo-container {
    left: auto;
    right: 30px;
}

.logo {
    height: 140px;
    width: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
    -webkit-filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.2));
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.2));
}

.logo:hover {
    opacity: 1;
    transform: scale(1.05);
    -webkit-filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
}

@media (max-width: 768px) {
    .minimal-nav {
        bottom: 5%;
    }

    .minimal-nav svg {
        width: 350px;
        height: 85px;
    }

    .logo-container {
        top: 20px;
        left: 20px;
    }

    /* English layout responsive adjustments */
    .hero-section.english-layout .logo-container {
        left: auto;
        right: 20px;
    }

    .logo {
        height: 70px;
    }

    /* مخفی کردن افکت دود (fluid canvas) در تبلت */
    #fluid {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .minimal-nav {
        bottom: 3%;
    }

    .minimal-nav svg {
        width: 280px;
        height: 70px;
    }

    .logo-container {
        top: 15px;
        left: 15px;
    }

    /* English layout responsive adjustments */
    .hero-section.english-layout .logo-container {
        left: auto;
        right: 15px;
    }

    .logo {
        height: 100px;
    }
}

/* Language Toggle Button Styles */
.lang-toggle {
    position: absolute;
    top: 66px;
    left: 200px;
    z-index: 100;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.95), rgba(28, 28, 28, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Asiatech', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    opacity: 0.9;
    pointer-events: auto;
}

/* English Layout - Move language toggle to right */
.hero-section.english-layout .lang-toggle {
    left: auto;
    right: 200px;
}

.lang-toggle:hover {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.lang-option {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: inherit;
    position: relative;
}

.lang-option.active {
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 100%);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    color: #1a1a1a;
}

.lang-option:not(.active):hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.lang-separator {
    width: 1px;
    height: 16px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 0 4px;
}

/* Responsive adjustments for language toggle */
@media (max-width: 768px) {
    .lang-toggle {
        position: absolute !important;
        /* تغییر از fixed به absolute */
        top: 66px !important;
        /* موقعیت نسبت به hero-section */
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        padding: 6px 12px;
        z-index: 100 !important;
        /* تغییر از 9999 به 100 */
        /* حذف افکت‌های نوری در تبلت */
        background: rgba(42, 42, 42, 0.95) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    /* English layout responsive adjustments */
    .hero-section.english-layout .lang-toggle {
        position: absolute !important;
        /* تغییر از fixed به absolute */
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    .lang-option {
        font-size: 13px;
        padding: 4px 8px;
    }

    .lang-option.active {
        background: rgba(255, 255, 255, 0.9) !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Keep centered even when hover applies on mobile browsers */
    .lang-toggle:hover {
        transform: translateX(-50%) scale(1.05) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
}

@media (max-width: 480px) {
    .lang-toggle {
        position: absolute !important;
        /* تغییر از fixed به absolute */
        top: 40px !important;
        /* کاهش از 66px به 50px برای هم‌تراز شدن با لوگو */
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        padding: 5px 10px;
        z-index: 100 !important;
        /* تغییر از 9999 به 100 */
        /* حذف کامل افکت‌های نوری در موبایل */
        background: rgba(42, 42, 42, 0.98) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    /* English layout responsive adjustments */
    .hero-section.english-layout .lang-toggle {
        position: absolute !important;
        /* تغییر از fixed به absolute */
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    .lang-option {
        font-size: 12px;
        padding: 3px 6px;
    }

    .lang-option.active {
        background: rgba(255, 255, 255, 0.95) !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .lang-option:not(.active):hover {
        background: rgba(255, 255, 255, 0.1) !important;
        box-shadow: none !important;
    }

    /* Keep centered on hover in small screens */
    .lang-toggle:hover {
        transform: translateX(-50%) scale(1.05) !important;
        box-shadow: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        background: rgba(42, 42, 42, 0.98) !important;
    }
}

/* Modern Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.popup-container {
    position: absolute;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.95), rgba(28, 28, 28, 0.98));
    border-radius: 24px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(255, 255, 255, 0.1);
    padding: 32px;
    min-width: 320px;
    max-width: 420px;
    transform: scale(0.8) translateY(-20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    /* Initial blur effect */
    filter: blur(10px);
}

.popup-overlay.show .popup-container {
    transform: scale(1) translateY(0);
    opacity: 1;
    /* Clear blur on show */
    filter: blur(0px);
    /* Add glow effect */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(255, 255, 255, 0.15),
    0 0 120px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: popup-glow-pulse 2s ease-in-out infinite;
}

/* Popup glow pulse animation */
@keyframes popup-glow-pulse {
    0%, 100% {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(255, 255, 255, 0.15),
        0 0 120px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(255, 255, 255, 0.22),
        0 0 150px rgba(255, 255, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

/* Popup content fade-in animation */
.popup-overlay.show .popup-content {
    animation: popup-content-fade 0.5s ease-out 0.15s both;
}

@keyframes popup-content-fade {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Popup buttons slide-in animation */
.popup-overlay.show .popup-buttons {
    animation: popup-buttons-slide 0.4s ease-out 0.3s both;
}

@keyframes popup-buttons-slide {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-content {
    text-align: center;
    color: #ffffff;
    font-family: 'Asiatech', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
}

.popup-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.popup-content p {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    direction: rtl;
    text-align: right;
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.popup-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.popup-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-family: inherit;
}

.popup-btn.primary {
    background: linear-gradient(135deg, #4A9EFF 0%, #0066CC 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(74, 158, 255, 0.3);
}

.popup-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.4);
}

.popup-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.popup-arrow {
    display: none;
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.1);
}

/* Responsive popup styles */
@media (max-width: 768px) {
    .popup-container {
        min-width: 280px;
        max-width: 350px;
        padding: 24px;
        margin: 0 20px;
        /* Disable backdrop-filter for mobile performance */
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        background: rgba(30, 30, 30, 0.98) !important;
        /* Simpler shadow for mobile */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
        /* Faster transition for mobile */
        transition: all 0.2s ease !important;
    }

    .popup-overlay {
        /* Disable backdrop-filter for mobile performance */
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        background: rgba(0, 0, 0, 0.7) !important;
        /* Faster transition for mobile */
        transition: opacity 0.15s ease !important;
    }

    .popup-content h3 {
        font-size: 20px;
    }

    .popup-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .popup-container {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        min-width: 260px;
        max-width: 300px;
        padding: 20px;
        border-radius: 20px;
        margin: 0;
        /* Disable backdrop-filter for mobile performance */
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        background: rgba(30, 30, 30, 0.98) !important;
        /* Simpler shadow for mobile */
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
        /* Faster transition for mobile */
        transition: all 0.15s ease !important;
    }

    .popup-overlay {
        /* Disable backdrop-filter for mobile performance */
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        background: rgba(0, 0, 0, 0.75) !important;
        /* Faster transition for mobile */
        transition: opacity 0.1s ease !important;
    }

    .popup-overlay.show .popup-container {
        transform: translate(-50%, -50%) !important;
        opacity: 1;
        /* Faster animation for mobile */
        transition: all 0.15s ease !important;
    }

    .popup-content h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .popup-content p {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .popup-buttons {
        margin-top: 20px;
    }

    .popup-btn {
        padding: 10px 20px;
        font-size: 13px;
        /* Disable backdrop-filter for mobile performance */
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
}

/* Backdrop-filter fallback for browsers without support (e.g., Firefox without flag) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .popup-overlay {
        background: rgba(0, 0, 0, 0.6);
    }

    .popup-container,
    .lang-toggle,
    .popup-btn {
        background: rgba(42, 42, 42, 0.96);
    }
}

/* Custom Rotating Cursor Styles */
body * {
    cursor: none !important;
}

/* Language Loading Screen */
.language-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.language-loading.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.loading-content {
    text-align: center;
    color: #ffffff;
    font-family: 'Asiatech', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    --color: hsl(0, 0%, 87%);
    --animation: 2s ease-in-out infinite;
    margin-bottom: 20px;
}

.loader .circle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 20px;
    height: 20px;
    border: solid 2px var(--color);
    border-radius: 50%;
    margin: 0 10px;
    background-color: transparent;
    animation: circle-keys var(--animation);
}

.loader .circle .dot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color);
    animation: dot-keys var(--animation);
}

.loader .circle .outline {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: outline-keys var(--animation);
}

.circle:nth-child(2) {
    animation-delay: 0.3s;
}

.circle:nth-child(3) {
    animation-delay: 0.6s;
}

.circle:nth-child(4) {
    animation-delay: 0.9s;
}

.circle:nth-child(5) {
    animation-delay: 1.2s;
}

.circle:nth-child(2) .dot {
    animation-delay: 0.3s;
}

.circle:nth-child(3) .dot {
    animation-delay: 0.6s;
}

.circle:nth-child(4) .dot {
    animation-delay: 0.9s;
}

.circle:nth-child(5) .dot {
    animation-delay: 1.2s;
}

.circle:nth-child(1) .outline {
    animation-delay: 0.9s;
}

.circle:nth-child(2) .outline {
    animation-delay: 1.2s;
}

.circle:nth-child(3) .outline {
    animation-delay: 1.5s;
}

.circle:nth-child(4) .outline {
    animation-delay: 1.8s;
}

.circle:nth-child(5) .outline {
    animation-delay: 2.1s;
}

@keyframes circle-keys {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes dot-keys {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes outline-keys {
    0% {
        transform: scale(0);
        outline: solid 20px var(--color);
        outline-offset: 0;
        opacity: 1;
    }

    100% {
        transform: scale(1);
        outline: solid 0 transparent;
        outline-offset: 20px;
        opacity: 0;
    }
}

.loading-text {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

#cursor {
    position: fixed;
    left: -28px;
    top: -34px;
    will-change: transform;
    transform: translate(-999px, -999px);
    pointer-events: none;
    z-index: 9999;
}

#cursor img {
    will-change: transform;
    transition: transform .1s linear;
    width: 48px;
    height: 48px;
}

/* Force-hide system cursor on interactive elements to avoid duplicate cursor on hover */
.siri-orb-container,
.siribtn,
.nav-item,
.popup-btn,
.popup-close,
.lang-toggle,
.lang-option,
.glowing-card,
a,
button,
[role="button"],
.nav-hit,
.minimal-nav *,
svg,
svg *,
canvas,
video {
    cursor: none !important;
}

/* Ensure Section 2 (Help/Services) never shows the native pointer */
.js-heading-mask,
.js-cursor-extend,
.js-cursor-contract,
#helpSection,
#helpSection * {
    cursor: none !important;
}

/* Hide native cursor over gallery images (middle/left/right) */
.gallery-section .section .left,
.gallery-section .section .middle,
.gallery-section .section .right,
.gallery-section .section .left img,
.gallery-section .section .middle img,
.gallery-section .section .right img {
    cursor: none !important;
}

/* Ensure About section never shows the native pointer */
#aboutSection,
#aboutSection * {
    cursor: none !important;
}

/* Ensure Hero section never shows the native pointer (including corners and edges) */
.hero-section,
.hero-section *,
#heroSection,
#heroSection *,
.hero-content-container,
.hero-content-container *,
.fade-gradient,
.top-radial-gradient,
.pattern-layer,
.radial-gradient,
.center-shape {
    cursor: none !important;
}

/* Ensure Video section never shows the native pointer */
.video-section,
.video-section *,
#videoSection,
#videoSection * {
    cursor: none !important;
}

/* Ensure Articles section never shows the native pointer */
.articles-section,
.articles-section *,
#articlesSection,
#articlesSection * {
    cursor: none !important;
}

/* Ensure Contact section never shows the native pointer */
.contact-section,
.contact-section *,
#contactSection,
#contactSection *,
.glowing-card,
.glowing-card *,
.contact-methods,
.contact-methods *,
.contact-item,
.contact-item * {
    cursor: none !important;
}

/* Ensure Footer section never shows the native pointer */
.footer-section,
.footer-section *,
footer,
footer *,
.footer-content,
.footer-content *,
.footer-nav,
.footer-nav *,
.footer-nav-link,
.footer-designer,
.footer-designer * {
    cursor: none !important;
}

/* Disable custom cursor on mobile devices */
@media (hover: none) and (pointer: coarse) {
    #cursor {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }

    * {
        cursor: auto !important;
    }

    /* Touch-friendly interactions */
    .siri-orb-container:hover {
        transform: none;
    }

    .siri-orb-container:active {
        transform: none;
    }

    .siri-orb-1:hover,
    .siri-orb-1:active {
        opacity: 0.9;
        transform: translate(0%, -50%) scale(0.8);
    }

    .siri-orb-2:hover,
    .siri-orb-2:active {
        opacity: 0.9;
        transform: translate(-100%, -50%) scale(0.8) rotate(40deg);
    }

    .siri-orb-3:hover,
    .siri-orb-3:active {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.8) rotate(-20deg);
    }

    /* English layout Siri orbs - no movement on mobile */
    .hero-section.english-layout .siri-orb-1:hover,
    .hero-section.english-layout .siri-orb-1:active {
        opacity: 0.9;
        transform: translate(-100%, -50%) scale(0.8);
    }

    .hero-section.english-layout .siri-orb-2:hover,
    .hero-section.english-layout .siri-orb-2:active {
        opacity: 0.9;
        transform: translate(0%, -50%) scale(0.8) rotate(-40deg);
    }

    .hero-section.english-layout .siri-orb-3:hover,
    .hero-section.english-layout .siri-orb-3:active {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.8) rotate(20deg);
    }

    .siribtn:hover,
    .siribtn:active {
        transform: none;
    }

    .nav-item:hover {
        transform: none;
    }

    .nav-item:active {
        transform: scale(0.95);
    }

    .minimal-nav:hover {
        transform: translateX(-50%);
    }

    .logo:hover {
        transform: none;
    }

    .lang-option:not(.active):hover {
        transform: none;
        background: transparent;
    }

    .lang-option:active {
        transform: scale(0.95);
    }

    .popup-btn:hover {
        transform: none;
    }

    .popup-btn:active {
        transform: scale(0.95);
    }
}

/* Responsive navigation */
@media (max-width: 768px) {
    .minimal-nav {
        bottom: 5%;
    }

    .minimal-nav svg {
        width: 350px;
        height: 85px;
    }
}

/* Mobile background rotation */
@media (max-width: 480px) {

    /* Prevent double-tap zoom on mobile */
    body {
        touch-action: manipulation;
    }

    .top-radial-gradient {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .pattern-layer {
        transform: translate(-50%, -50%) rotate(90deg);
        /* فیکس mask برای موبایل - استفاده از گرادیانت بزرگتر برای پوشش کامل */
        mask: radial-gradient(ellipse at center, black 0%, black 25%, transparent 65%);
    }

    .radial-gradient {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    /* Enable 3D model touch interaction on mobile */
    #three-canvas {
        pointer-events: auto;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }

    .minimal-nav {
        bottom: 3%;
    }

    .minimal-nav svg {
        width: 280px;
        height: 70px;
    }

    /* مخفی کردن افکت دود (fluid canvas) در موبایل */
    #fluid {
        display: none !important;
    }
}

/* 3D Fallback: hide canvas when 3D is unavailable */
.hero-section.no-3d #three-canvas {
    display: none !important;
}

/* Mobile Desktop Recommendation Notification */
.mobile-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px) scale(0.8);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    display: none;
    /* Hidden on desktop by default */
}

.mobile-notification.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0) scale(1);
}

.notification-container {
    position: relative;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.95), rgba(28, 28, 28, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    max-width: 340px;
    min-width: 280px;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.mobile-notification.show .notification-container {
    transform: translateY(0);
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-family: inherit;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.1);
}

.notification-content {
    padding-right: 30px;
    color: #ffffff;
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

.notification-text[data-lang="fa"] {
    direction: rtl;
    text-align: right;
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.notification-text[data-lang="en"] {
    direction: ltr;
    text-align: left;
}

.notification-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 0 0 16px 16px;
    width: 100%;
    transition: width 5s linear;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Show notification only on mobile devices */
@media (max-width: 768px) {
    .mobile-notification {
        display: block;
    }

    /* حذف افکت glow از notification در موبایل */
    .mobile-notification .notification-container {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 480px) {
    .mobile-notification {
        top: 15px;
        left: 15px;
        right: 15px;
        transform: translateY(-100px) scale(0.8);
    }

    .mobile-notification.show {
        transform: translateY(0) scale(1);
    }

    /* حذف افکت glow در موبایل کوچک */
    .notification-container {
        max-width: none;
        width: 100%;
        padding: 14px 18px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35) !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .notification-content {
        font-size: 13px;
        padding-right: 25px;
    }

    .notification-close {
        width: 20px;
        height: 20px;
        font-size: 12px;
        top: 6px;
        right: 6px;
    }
}

/* Desktop Fullscreen Recommendation Notification */
.desktop-notification {
    position: fixed;
    top: 32px;
    right: 32px;
    transform: translateY(-100px) scale(0.8);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    display: block;
    /* Show on desktop */
}

.desktop-notification.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

/* Hide desktop notification on mobile/tablet */
@media (max-width: 768px) {
    .desktop-notification {
        display: none !important;
    }
}

/* About Me Section Styles */
.about-section {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    overflow: visible;
    z-index: 1;
}

.about-headline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    transform: none;
    padding-top: 35px;
    padding-bottom: 0px;
    text-align: center;
    z-index: 30;
    font-family: 'Asiatech', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
}

.headline-text {
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 80%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.25), 0 0 18px rgba(74, 158, 255, 0.13);
    line-height: 1.15;
    letter-spacing: 0.03em;
    transition: opacity 0.3s;
    text-align: center;
    width: 100%;
}

.headline-text[data-lang="fa"] {
    direction: rtl;
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    text-align: center;
}

.headline-text[data-lang="en"] {
    direction: ltr;
    font-family: 'Asiatech', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    text-align: center;
}

@media (max-width: 1024px) {
    .about-headline {
        padding-top: 24px;
        min-width: 180px;
    }

    .headline-text {
        font-size: clamp(16px, 3vw, 22px);
    }
}

@media (max-width: 768px) {
    .about-headline {
        padding-top: 18px;
        margin-bottom: 10px;
    }

    .headline-text {
        font-size: clamp(14px, 3.5vw, 18px);
    }
}

@media (max-width: 480px) {
    .about-headline {
        padding-top: 13px;
    }

    .headline-text {
        font-size: 12px;
    }
}

/* about-container removed */

/* about-bg-gradient removed */

/* about-pattern-layer removed */

/* about-content removed */

/* Main content paragraph styles */
.about-content {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    text-align: center;
    z-index: 20;
}

.about-paragraph {
    opacity: 0;
    animation: fadeInContent 1s ease-out 0.5s forwards;
}

.about-paragraph p {
    font-size: clamp(20px, 3vw, 40px);
    line-height: 1.4;
    color: #ffffff;
    font-weight: 400;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1);
    margin: 0;
    word-spacing: normal;
    letter-spacing: 0.02em;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
}

.about-paragraph[data-lang="fa"] p {
    direction: rtl;
    text-align: justify;
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    word-spacing: 0.1em;
    text-justify: inter-word;
}

.about-paragraph[data-lang="en"] p {
    direction: ltr;
    /* Justified English paragraph for Section 2 */
    text-align: justify;
    text-align-last: left;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: clamp(18px, 2.4vw, 32px);
    line-height: 1.45;
    word-spacing: 0.02em;
    text-justify: inter-word;
    /* Enable hyphenation to reduce large spacing when justified */
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    text-wrap: pretty;
    overflow-wrap: anywhere;
    word-break: normal;
    font-kerning: normal;
    text-rendering: optimizeLegibility;
}

@keyframes fadeInContent {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* For correct headline RTL/LTR in section */
.about-headline .headline-text[data-lang="fa"] {
    direction: rtl;
    text-align: center;
}

.about-headline .headline-text[data-lang="en"] {
    direction: ltr;
    text-align: center;
}

/* content-fade-in keyframes removed */

/* about-profile removed */

/* profile image removed */

/* profile image styles removed */

/* about-text removed */

/* about-title removed */

/* about-description removed */

/* about-skills removed */

/* skill items removed */

/* floating elements removed */

/* Responsive Design */
/* responsive rules for removed elements at 1024px deleted */

@media (max-width: 768px) {
    .about-section {
        padding: 60px 15px;
        min-height: 85vh;
    }

    .about-content {
        width: 95%;
        max-width: none;
        top: 50%;
    }

    .about-paragraph p {
        font-size: clamp(16px, 4vw, 28px);
        line-height: 1.5;
        word-spacing: 0.08em;
        letter-spacing: 0.01em;
    }

    .about-paragraph[data-lang="fa"] p {
        word-spacing: 0.12em;
        font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    }

    .about-paragraph[data-lang="en"] p {
        font-size: clamp(14px, 3.2vw, 24px);
        line-height: 1.5;
        word-spacing: 0.02em;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 30px 10px;
        min-height: 75vh;
    }

    .about-content {
        width: 95%;
        top: 55%;
    }

    .about-paragraph p {
        font-size: clamp(14px, 4.5vw, 20px);
        line-height: 1.6;
        word-spacing: 0.1em;
        letter-spacing: 0.01em;
    }

    .about-paragraph[data-lang="fa"] p {
        word-spacing: 0.15em;
        font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    }

    .about-paragraph[data-lang="en"] p {
        font-size: clamp(13px, 4vw, 18px);
        line-height: 1.55;
        word-spacing: 0.02em;
    }
}

/* =========================
   SATURN 3D CANVAS STYLES
   ========================= */

#saturn-canvas {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 15;
    pointer-events: none;
    opacity: 0.92;
    transition: opacity 0.3s ease, left 0.5s cubic-bezier(0.77, 0, 0.18, 1), top 0.5s cubic-bezier(0.77, 0, 0.18, 1), transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}

/* =========================
   EARTH 3D CANVAS STYLES (HELP SECTION)
   ========================= */

#help-circle-canvas {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translate(-50%, -50%);
    width: 750px;
    height: 750px;
    z-index: 15;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.3s ease, left 0.5s cubic-bezier(0.77, 0, 0.18, 1);
    filter: drop-shadow(0 0 40px rgba(200, 200, 200, 0.3)) drop-shadow(0 0 80px rgba(150, 150, 150, 0.15));
}

/* Responsive Earth Canvas */
@media (max-width: 1024px) {
    #help-circle-canvas {
        width: 600px;
        height: 600px;
        left: 8%;
    }
}

/* =========================
   SATURN: Hide in mobile/tablet
   ========================= */
@media (max-width: 768px) {
    #saturn-canvas {
        display: none !important;
    }
}

@media (max-width: 480px) {
    #saturn-canvas {
        display: none !important;
    }
}

/* =========================
   EARTH IN ABOUT SECTION (MOBILE)
   ========================= */
#about-earth-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.5s ease, height 0.5s ease;
    filter: drop-shadow(0 0 40px rgba(200, 200, 200, 0.3)) drop-shadow(0 0 80px rgba(150, 150, 150, 0.15));
    display: none;
}

/* نمایش Earth در بکگراند About Section برای موبایل */
@media (max-width: 768px) {
    #about-earth-canvas {
        display: block !important;
        width: 780px;
        height: 780px;
        opacity: 0.72;
        left: 8vw;
        top: 52%;
        transform: none;
        z-index: 101;
    }
}

@media (max-width: 480px) {
    #about-earth-canvas {
        display: block !important;
        width: 600px;
        height: 600px;
        opacity: 0.62;
        left: 2vw;
        top: 59%;
        transform: none;
        z-index: 101;
    }
}

/* Earth larger and centered in Help section for mobile */
@media (max-width: 768px) {
    #help-circle-canvas {
        display: none !important;
    }
}
@media (max-width: 480px) {
    #help-circle-canvas {
        display: none !important;
    }
}

@keyframes saturn-halo-glow {

    0%,
    100% {
        filter: none;
    }

    50% {
        filter: none;
    }
}

/* Responsive Saturn Canvas */
@media (max-width: 1024px) {
    #saturn-canvas {
        width: 350px;
        height: 350px;
        left: 18%;
    }
}

/* =========================
   ENGLISH LAYOUT (Saturn moves right; but hide in mobile)
   ========================= */
.about-section[data-lang="en"] #saturn-canvas,
body[data-lang="en"] #saturn-canvas {
    left: 80%;
}

@media (max-width: 1024px) {

    .about-section[data-lang="en"] #saturn-canvas,
    body[data-lang="en"] #saturn-canvas {
        left: 82%;
    }
}

@media (max-width: 768px) {

    .about-section[data-lang="en"] #saturn-canvas,
    body[data-lang="en"] #saturn-canvas {
        display: none !important;
    }
}

/* English Layout - Saturn on right side */
.about-section[data-lang="en"] #saturn-canvas,
body[data-lang="en"] #saturn-canvas {
    left: 80%;
}

@media (max-width: 1024px) {

    .about-section[data-lang="en"] #saturn-canvas,
    body[data-lang="en"] #saturn-canvas {
        left: 82%;
    }
}

@media (max-width: 768px) {

    .about-section[data-lang="en"] #saturn-canvas,
    body[data-lang="en"] #saturn-canvas {
        left: 50%;
    }
}

/* Language-specific RTL support */
/* language rules for removed about-text deleted */

/* Decoder Effect Styles */
.decoder-text {
    font-family: 'Share Tech Mono', monospace !important;
    position: relative;
    color: #ffffff !important;
    text-shadow: 0 0 5px #ffffff, 0 0 15px #ffffff, 0 0 30px #ffffff !important;
    cursor: default;
    text-transform: uppercase;
    white-space: nowrap;
    font-weight: 400 !important;
    background: transparent !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.decoder-char {
    display: inline-block;
    position: relative;
    min-width: 0.5ch;
    will-change: contents;
    transition: color 0.1s ease;
    color: #ffffff !important;
    text-shadow: 0 0 5px #ffffff, 0 0 15px #ffffff, 0 0 30px #ffffff !important;
}

.decoder-char:hover {
    color: #ffffff !important;
    text-shadow: 0 0 8px #ffffff, 0 0 20px #ffffff, 0 0 40px #ffffff !important;
}

/* Responsive adjustments for decoder text */
@media (max-width: 768px) {
    .decoder-text {
        font-size: clamp(14px, 3.5vw, 18px) !important;
    }
}

@media (max-width: 480px) {
    .decoder-text {
        font-size: 12px !important;
    }
}

.decoder-text[data-lang="fa"] {
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    direction: rtl;
    unicode-bidi: plaintext;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.decoder-text[data-lang="en"] {
    direction: ltr;
}

/* Scroll-driven text reveal styles for About paragraph */
.scroll-reveal {
    position: relative;
}

.scroll-reveal-text {
    position: relative;
    display: inline;
}

.scroll-reveal .word {
    display: inline;
    will-change: opacity, transform, filter;
    vertical-align: baseline;
}

/* Sweeping highlight overlay */
.highlight-sweep {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    left: 0;
    transform: translateX(-40%);
    pointer-events: none;
    mix-blend-mode: screen;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.07) 20%,
            rgba(255, 255, 255, 0.18) 45%,
            rgba(255, 255, 255, 0.07) 70%,
            rgba(255, 255, 255, 0) 100%);
    filter: blur(6px);
    opacity: 0;
    z-index: 3;
    display: none !important;
    /* disabled */
}

.section-three {
    width: 100vw;
    min-height: 100vh;
    background: #000000;
}

/* When using GSAP pinning, its spacer wrapper should blend with our dark theme */
.pin-spacer {
    background-color: #000000 !important;
}

/* Gallery Section Styles */
.gallery-section {
    width: 100vw;
    background: #000000;
    padding: 0;
    margin: 0;
    overflow: hidden;
    cursor: none !important;
}

.section {
    width: 100%;
    position: relative;
    display: block;
    cursor: none !important;
}

.section .left,
.section .middle,
.section .right {
    width: 100%;
    display: block;
    color: #fff;
    box-sizing: border-box;
    left: 0;
    padding: 30px;
    text-align: center;
    overflow: hidden;
    position: relative;
    cursor: none !important;

    -moz-transition: 0.3s ease-in-out all;
    -o-transition: 0.3s ease-in-out all;
    -webkit-transition: 0.3s ease-in-out all;
    transition: 0.3s ease-in-out all;
}

.section .left .content,
.section .middle .content,
.section .right .content {
    position: relative;
}

@media (min-width: 480px) {

    .section .left,
    .section .middle,
    .section .right {
        width: 50%;
        font-size: 0.9em;
        padding: 10px;
        left: 0;
        float: left;
        position: absolute;
    }

    .section .left .content,
    .section .middle .content,
    .section .right .content {
        position: relative;
        top: 50%;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
    }
}

@media (min-width: 768px) {

    .section .left,
    .section .middle,
    .section .right {
        width: 33.33333%;
        left: 33.33%;
        padding: 10px;
    }
}

@media (min-width: 992px) {

    .section .left,
    .section .middle,
    .section .right {
        padding: 30px;
        font-size: 1em;
    }
}

.section.animate .left {
    left: 0;
}

@media (min-width: 480px) {
    .section.animate .left {
        left: 50%;
    }
}

@media (min-width: 768px) {
    .section.animate .left {
        left: 0;
    }
}

.section.animate .right {
    left: 0;
}

@media (min-width: 480px) {
    .section.animate .right {
        left: 50%;
    }
}

@media (min-width: 768px) {
    .section.animate .right {
        left: 66.66%;
    }
}

.section .title {
    background: tomato;
}

.section .title h2 {
    margin-top: 0;
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.section .title p {
    line-height: 1.55em;
    margin-bottom: 0.75em;
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
}

.section .title .btn-primary {
    color: #fff;
    background: #bf4926;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 3px;
    display: inline-block;
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    -moz-transition: 0.3s ease-in-out all;
    -o-transition: 0.3s ease-in-out all;
    -webkit-transition: 0.3s ease-in-out all;
    transition: 0.3s ease-in-out all;
}

.section .title .btn-primary:hover {
    background: #a33d20;
}

/* Language-specific styles for titles */
.section .title .lang-content[data-lang="fa"] {
    direction: rtl;
    text-align: right;
}

.section .title .lang-content[data-lang="fa"] h2 {
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 24px;
    line-height: 1.3;
}

.section .title .lang-content[data-lang="fa"] p {
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
}

.section .title .lang-content[data-lang="en"] {
    direction: ltr;
    text-align: left;
}

.section .title .lang-content[data-lang="en"] h2 {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 28px;
    line-height: 1.2;
}

.section .title .lang-content[data-lang="en"] p {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
}

.section .tiles {
    padding: 0;
    background: #fff;
    clear: both;
    display: none;
    float: none;
}

.section .tiles img {
    width: 50%;
    float: left;
    height: auto;
    opacity: 0.8;
    -webkit-filter: grayscale(100%) brightness(0.7);
    -moz-filter: grayscale(100%) brightness(0.7);
    -o-filter: grayscale(100%) brightness(0.7);
    filter: grayscale(100%) brightness(0.7);
    -moz-transition: 0.4s ease-in-out all;
    -o-transition: 0.4s ease-in-out all;
    -webkit-transition: 0.4s ease-in-out all;
    transition: 0.4s ease-in-out all;
    cursor: pointer;
}

.section .tiles img:hover {
    opacity: 1;
    -webkit-filter: grayscale(0%) brightness(1);
    -moz-filter: grayscale(0%) brightness(1);
    -o-filter: grayscale(0%) brightness(1);
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .section .tiles {
        display: block;
    }
}

.section .middle {
    background: slategray;
    z-index: 2;
    padding: 0;
}

.section .middle img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 400px;
    object-fit: cover;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .gallery-section {
        min-height: auto;
        padding: 20px 0;
        /* اضافه کردن padding کم */
    }

    .section {
        display: block;
        height: auto;
        width: 100%;
    }

    .section .left,
    .section .middle,
    .section .right {
        width: 100%;
        height: 50vh;
        margin: 0;
        position: relative;
        transform: translateX(0) !important;
        left: 0 !important;
    }

    .section .left img,
    .section .middle img,
    .section .right img {
        display: none !important;
        /* مخفی کردن عکس‌ها در موبایل */
    }
}

/* ===== Overrides for 3-up image layout ===== */
/* Uniform height and no internal padding/gutters */
.gallery-section .section {
    height: 70vh;
}

.gallery-section .section .left,
.gallery-section .section .middle,
.gallery-section .section .right {
    padding: 0 !important;
}

/* Remove middle background and make all images fully cover their columns */
.gallery-section .section .middle {
    background: transparent !important;
}

.gallery-section .section .left img,
.gallery-section .section .middle img,
.gallery-section .section .right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) brightness(0.9) contrast(0.95);
    transition: filter 0.35s ease;
}

.gallery-section .section .left img:hover,
.gallery-section .section .middle img:hover,
.gallery-section .section .right img:hover {
    filter: grayscale(0%) brightness(1) contrast(1);
}

@media (max-width: 768px) {
    .about-section {
        justify-content: flex-start;
        align-items: center;
        flex-direction: column;
    }

    .about-headline {
        position: relative;
        padding-top: 18px;
        margin-bottom: 10px;
    }

    .about-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 92%;
        max-width: 720px;
        margin-top: 16px;
        text-align: center;
    }

    .about-headline .decoder-text {
        white-space: normal !important;
        word-break: keep-all;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 40px 12px;
    }

    .about-content {
        width: 94%;
        max-width: 600px;
        margin-top: 20px;
    }

    .about-headline .decoder-text {
        white-space: normal !important;
        word-break: break-word;
    }
}

@media (max-width: 767px) {
    .gallery-section {
        overflow: visible;
    }

    .gallery-section .section {
        height: auto !important;
        display: none !important;
        /* مخفی کردن کل بخش گالری در موبایل */
    }
}

/* =========================
   HOW CAN I HELP YOU SECTION
   ========================= */

.help-section {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    overflow: hidden;
}

/* ===== Integration tweaks for Section 2 inside Help section ===== */
.help-section .section2-container {
    margin-top: 56px;
    /* Make the services block span full width so it doesn't get centered by the flex parent */
    width: 100% !important;
    align-self: stretch !important;
}

@media (max-width: 767px) {
    .help-section .section2-container {
        margin-top: 20px !important;
    }
}

@media (max-width: 480px) {
    .help-section .section2-container {
        margin-top: 15px !important;
    }
}

@media (min-width: 768px) {
    .help-section .section2-container {
        margin-top: 96px;
    }
}

/* Tighten internal spacing to avoid double-large gaps from section2 defaults */
.help-section .section2-container .client_list {
    margin-top: 0;
    margin-bottom: 0;
}

/* Full-width separators for Section 2 rows */
.help-section .section2-container .container {
    overflow: visible;
}

.help-section .section2-container .heading-mask {
    position: relative;
    border-top: none;
    /* override */
}

.help-section .section2-container .heading-mask:before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: rgba(199, 199, 199, 0.15);
    pointer-events: none;
    z-index: 0;
}

.help-section .section2-container .heading-mask:last-child {
    border-bottom: none;
    /* override */
}

/* Remove bottom separator line of the last Help/Services row */
.help-section .section2-container .heading-mask:last-child:after {
    display: none !important;
}

/* Ensure there is breathing room above floating nav overlay (removed extra bottom space) */
.help-section {
    padding-bottom: 0;
}

.help-headline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    transform: none;
    padding-top: 80px;
    padding-bottom: 0px;
    text-align: center;
    z-index: 30;
    font-family: 'Asiatech', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
}

.help-headline .headline-text {
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 80%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.25), 0 0 18px rgba(74, 158, 255, 0.13);
    line-height: 1.15;
    letter-spacing: 0.03em;
    transition: opacity 0.3s;
    text-align: center;
    width: 100%;
}

.help-headline .headline-text[data-lang="fa"] {
    direction: rtl;
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    text-align: center;
}

.help-headline .headline-text[data-lang="en"] {
    direction: ltr;
    font-family: 'Asiatech', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    text-align: center;
}

@media (max-width: 1024px) {
    .help-headline {
        padding-top: 48px;
        min-width: 120px;
    }

    .help-headline .headline-text {
        font-size: clamp(14px, 2.7vw, 19px);
    }
}

@media (max-width: 768px) {
    .help-headline {
        padding-top: 20px;
        margin-bottom: 8px;
    }

    .help-headline .headline-text {
        font-size: clamp(12px, 3vw, 16px);
    }

    .help-section {
        padding: 40px 15px 10px;
        /* کاهش بیشتر padding پایین */
        min-height: 85vh;
        /* کاهش ارتفاع */
    }
}

@media (max-width: 480px) {
    .help-headline {
        padding-top: 15px;
        margin-bottom: 5px;
    }

    .help-headline .headline-text {
        font-size: 11px;
    }

    /* Mobile specific adjustments for Persian help headline */
    .help-headline .headline-text[data-lang="fa"] {
        font-size: 14px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .help-section {
        padding: 30px 10px 5px;
        /* کاهش بیشتر padding پایین */
        min-height: 75vh;
        /* کاهش ارتفاع */
    }
}

.help-content {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    text-align: center;
    z-index: 20;
}

.help-paragraph {
    opacity: 0;
    animation: fadeInContent 1s ease-out 0.5s forwards;
}

.help-paragraph p {
    font-size: clamp(20px, 3vw, 40px);
    line-height: 1.4;
    color: #ffffff;
    font-weight: 400;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1);
    margin: 0;
    word-spacing: normal;
    letter-spacing: 0.02em;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
}

.help-paragraph[data-lang="fa"] p {
    direction: rtl;
    text-align: justify;
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    word-spacing: 0.1em;
    text-justify: inter-word;
}

.help-paragraph[data-lang="en"] p {
    direction: ltr;
    text-align: justify;
    text-align-last: left;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: clamp(18px, 2.4vw, 32px);
    line-height: 1.45;
    word-spacing: 0.02em;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    text-wrap: pretty;
    overflow-wrap: anywhere;
    word-break: normal;
    font-kerning: normal;
    text-rendering: optimizeLegibility;
}

/* headline direction for help section */
.help-headline .headline-text[data-lang="fa"] {
    direction: rtl;
    text-align: center;
}

.help-headline .headline-text[data-lang="en"] {
    direction: ltr;
    text-align: center;
}

.video-section {
    position: relative;
    width: 100vw;
    min-height: calc(100vh - 200px);
    /* center content while reserving space for bottom nav */
    background: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* center video vertically */
    padding: 0 20px 200px;
    /* reserve space below for nav */
    gap: 0;
    overflow: hidden;
}


.video-wrapper {
    position: relative;
    width: min(90vw, 960px);
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.6));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.featured-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000000;
}

.featured-video:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

@media (max-width: 1024px) {
    .video-section {
        min-height: calc(100vh - 180px);
        padding: 0 16px 120px;
        /* کاهش padding پایین */
    }

    .video-wrapper {
        border-radius: 22px;
    }
}

@media (max-width: 768px) {
    .video-section {
        min-height: calc(75vh - 100px);
        /* کاهش ارتفاع */
        padding: 0 16px 80px;
        /* کاهش padding */
    }

    .video-wrapper {
        width: 95vw;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .video-section {
        min-height: calc(65vh - 80px);
        /* کاهش ارتفاع */
        padding: 0 12px 60px;
        /* کاهش padding */
    }

    .video-wrapper {
        border-radius: 16px;
    }
}

/* =========================
   ARTICLES SECTION (Section 3)
   ========================= */

.articles-section {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    overflow: hidden;
}

.articles-headline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    transform: none;
    padding-top: 80px;
    padding-bottom: 0px;
    text-align: center;
    z-index: 30;
    font-family: 'Asiatech', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
}

.articles-headline .headline-text {
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 80%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.25), 0 0 18px rgba(74, 158, 255, 0.13);
    line-height: 1.15;
    letter-spacing: 0.03em;
    transition: opacity 0.3s;
    text-align: center;
    width: 100%;
}

.articles-headline .headline-text[data-lang="fa"] {
    direction: rtl;
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    text-align: center;
}

.articles-headline .headline-text[data-lang="en"] {
    direction: ltr;
    font-family: 'Asiatech', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    text-align: center;
}

.articles-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    min-height: 400px;
    text-align: center;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.articles-container::after {
    content: "محتوا به زودی اضافه میشه";
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    opacity: 0.7;
}

/* English version - controlled by JavaScript */
.articles-container.english-lang::after {
    content: "Content will be added soon";
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (max-width: 1024px) {
    .articles-headline {
        padding-top: 48px;
        min-width: 120px;
    }

    .articles-headline .headline-text {
        font-size: clamp(14px, 2.7vw, 19px);
    }

    .articles-container::after {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .articles-section {
        padding: 0px 15px 60px;
        /* حذف padding بالا برای نزدیک شدن به سکشن بالایی */
        margin-top: -50px;
        /* شیفت دادن به بالا با margin منفی */
        min-height: 75vh;
        /* کاهش ارتفاع */
        justify-content: flex-start;
        align-items: center;
        flex-direction: column;
    }

    .articles-headline {
        position: relative;
        padding-top: 20px;
        margin-bottom: 8px;
    }

    .articles-headline .headline-text {
        font-size: clamp(12px, 3vw, 16px);
        white-space: normal !important;
        word-break: keep-all;
    }

    .articles-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 95%;
        max-width: 720px;
        margin-top: 30px;
        min-height: 300px;
    }

    .articles-container::after {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .articles-section {
        padding: 0px 12px 30px;
        /* حذف padding بالا برای نزدیک شدن به سکشن بالایی */
        margin-top: -60px;
        /* شیفت دادن به بالا با margin منفی */
        min-height: 65vh;
        /* کاهش ارتفاع */
    }

    .articles-headline {
        padding-top: 15px;
        margin-bottom: 5px;
    }

    .articles-headline .headline-text {
        font-size: 11px;
    }

    .articles-headline .headline-text[data-lang="fa"] {
        font-size: 14px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .articles-container {
        width: 94%;
        max-width: 600px;
        margin-top: 25px;
        min-height: 250px;
    }

    .articles-container::after {
        font-size: 13px;
    }
}

/* =========================
   CONTACT ME SECTION (Section 4)
   ========================= */

.contact-section {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    overflow: hidden;
}

.contact-headline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    transform: none;
    padding-top: 80px;
    padding-bottom: 0px;
    text-align: center;
    z-index: 30;
    font-family: 'Asiatech', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
}

.contact-headline .headline-text {
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 80%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.25), 0 0 18px rgba(74, 158, 255, 0.13);
    line-height: 1.15;
    letter-spacing: 0.03em;
    transition: opacity 0.3s;
    text-align: center;
    width: 100%;
}

.contact-headline .headline-text[data-lang="fa"] {
    direction: rtl;
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    text-align: center;
}

.contact-headline .headline-text[data-lang="en"] {
    direction: ltr;
    font-family: 'Asiatech', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    text-align: center;
}

.contact-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    min-height: 400px;
    text-align: center;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 16px;
    background: transparent;
}

/* Sharp & Glowing Card Styles */
@font-face {
    font-family: "Mona Sans";
    src: url("https://assets.codepen.io/64/Mona-Sans.woff2") format("woff2 supports variations"),
        url("https://assets.codepen.io/64/Mona-Sans.woff2") format("woff2-variations");
    font-weight: 100 1000;
}

@property --hue {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

@property --rotate {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

@property --bg-y {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

@property --bg-x {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

@property --glow-translate-y {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

@property --bg-size {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

@property --glow-opacity {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

@property --glow-blur {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

@property --glow-scale {
    syntax: "<number>";
    inherits: true;
    initial-value: 2;
}

@property --glow-radius {
    syntax: "<number>";
    inherits: true;
    initial-value: 2;
}

@property --white-shadow {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

.glowing-card {
    --card-color: hsl(0deg 0% 4%);
    --text-color: hsl(260deg 10% 55%);
    --card-radius: 3.6vw;
    --card-width: 50vw;
    --border-width: 3px;
    --bg-size: 1;

    --hue: 0;
    --hue-speed: 1;

    --rotate: 0;
    --animation-speed: 4s;

    --interaction-speed: 0.55s;
    --glow-scale: 1.2;
    --scale-factor: 1;
    --glow-blur: 4;
    --glow-opacity: 0.8;
    --glow-radius: 80;
    --glow-rotate-unit: 1deg;

    width: var(--card-width);
    width: min(720px, var(--card-width));
    aspect-ratio: 1.5/1;
    color: white;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    border-radius: var(--card-radius);
    cursor: pointer;
    font-family: "Mona Sans", sans-serif;
    perspective: 800px;
    transition-duration: 300ms;
    transition-property: transform, box-shadow;
    transition-timing-function: ease-out;
    transform: rotate3d(0, 0, 0, 0deg);
}

.glowing-card:hover>div {
    mix-blend-mode: darken;
    --text-color: white;
    box-shadow: 0 0 calc(var(--white-shadow) * 1vw) calc(var(--white-shadow) * 0.15vw) rgb(255 255 255 / 20%);
    animation: shadow-pulse calc(var(--animation-speed) * 2) linear infinite;
}

.glowing-card:hover {
    transition-duration: 150ms;
    box-shadow: 0 5px 20px 5px #00000044;
}

.glowing-card:hover>div:before {
    --bg-size: 15;
    animation-play-state: paused;
    transition: --bg-size var(--interaction-speed) ease;
}

.glowing-card:hover .glow {
    --glow-blur: 1.2;
    --glow-opacity: 0.5;
    --glow-scale: 2.0;
    --glow-radius: 0;
    --rotate: 900;
    --glow-rotate-unit: 0;
    --scale-factor: 1.15;
    animation-play-state: paused;
}

.glowing-card:hover .glow:after {
    --glow-translate-y: 0;
    animation-play-state: paused;
    transition: --glow-translate-y 0s ease, --glow-blur 0.05s ease,
        --glow-opacity 0.05s ease, --glow-scale 0.05s ease,
        --glow-radius 0.05s ease;
}

.glowing-card:before,
.glowing-card:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--card-radius);
}

.glowing-card .card-3d-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
}

.glowing-card .glow-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-image: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.1));
    border-radius: var(--card-radius);
    pointer-events: none;
    z-index: 10;
}

.glowing-card>div {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--card-color);
    border-radius: calc(calc(var(--card-radius) * 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    text-transform: uppercase;
    font-stretch: 150%;
    font-size: 18px;
    font-size: clamp(1.5vw, 1.5vmin, 32px);
    color: var(--text-color);
    padding: calc(var(--card-width) / 8);
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.glowing-card>div span {
    display: inline-block;
    padding: 0.25em;
    border-radius: 4px;
    background: var(--text-color);
    color: black;
    margin-right: 8px;
    font-weight: 900;
}

/* Card Default Text - Show initially, hide on hover */
.card-default-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(32px);
    width: 92%;
    max-width: 560px;
    text-align: center;
    z-index: 12;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Mona Sans', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: clamp(0.75rem, 1.1vw, 0.95rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.81);
    line-height: 1.4;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.16);
    filter: none;
    user-select: none;
    will-change: opacity, visibility;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 600px) {
    .card-default-text {
        font-size: clamp(0.75rem, 2.5vw, 1rem);
        max-width: 96vw;
        width: 98vw;
    }
}

.card-default-text .default-text-content {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
    text-shadow: inherit;
    filter: inherit;
    user-select: inherit;
}

.card-default-text .default-text-content[data-lang="fa"] {
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    direction: rtl;
    text-align: center;
}

.card-default-text .default-text-content[data-lang="en"] {
    font-family: "Mona Sans", 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    direction: ltr;
    text-align: center;
    font-size: clamp(0.75rem, 1.1vw, 0.95rem);
}

@media (max-width: 600px) {
    .card-default-text .default-text-content[data-lang="en"] {
        font-size: clamp(0.75rem, 2.5vw, 1rem);
    }
}

.glowing-card:hover .card-default-text {
    opacity: 0;
    visibility: hidden;
    transition-delay: 0s;
}

/* Contact Methods - Hidden by default, fade in together on hover */
.contact-methods {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(30px);
    width: calc(100% - 60px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform-style: preserve-3d;
    z-index: 10;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.glowing-card:hover .contact-methods {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0.01s;
}

/* NEW: Individual contact item - each with its own hover effect */
.contact-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: translateZ(30px) translateY(0px);
    transform-style: preserve-3d;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    perspective: 1000px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

/* NEW: Individual Hover - box lifts forward */
.contact-item:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateZ(80px) translateY(-8px) rotateX(5deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.35),
        0 5px 15px rgba(255, 255, 255, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.contact-item:hover .contact-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.12));
    transform: translateZ(20px) rotateY(15deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3),
        0 4px 15px rgba(255, 255, 255, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-item:hover .contact-icon::before {
    opacity: 1;
}

.contact-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.05) 75%,
            rgba(255, 255, 255, 0.1) 100%);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover::after {
    opacity: 1;
}

.contact-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    flex: 1;
    gap: 4px;
    min-height: 40px;
    text-align: left;
}

.contact-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin: 0;
}

.contact-label[data-lang="fa"] {
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

.contact-label[data-lang="en"] {
    font-family: "Mona Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    direction: ltr;
    text-align: left;
}

.contact-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    font-family: "Mona Sans", monospace;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin: 0;
}

/* REMOVED: Old hover state that hid default text and showed all boxes together */
/* REMOVED: floatingSlideIn animation */
/* REMOVED: telegram/email/linkedin item specific hover overrides */

.glowing-card>div:before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: calc(calc(var(--card-radius) * 0.9));
    box-shadow: 0 0 20px black;
    mix-blend-mode: color-burn;
    z-index: -1;
    background: hsl(0deg 0% 4%) radial-gradient(30% 30% at calc(var(--bg-x) * 1%) calc(var(--bg-y) * 1%),
            rgba(255, 255, 255, 0.9) calc(0% * var(--bg-size)),
            rgba(255, 255, 255, 0.8) calc(20% * var(--bg-size)),
            rgba(255, 255, 255, 0.6) calc(40% * var(--bg-size)),
            transparent 100%);
    width: calc(100% + var(--border-width));
    height: calc(100% + var(--border-width));
    animation: rotate-bg var(--animation-speed) linear infinite;
    transition: --bg-size var(--interaction-speed) ease;
}

.glowing-card .glow {
    --glow-translate-y: 0;
    display: block;
    position: absolute;
    width: calc(var(--card-width) / 5);
    height: calc(var(--card-width) / 5);
    animation: rotate var(--animation-speed) linear infinite;
    transform: rotateZ(calc(var(--rotate) * var(--glow-rotate-unit)));
    transform-origin: center;
    border-radius: calc(var(--glow-radius) * 10vw);
}

.glowing-card .glow:after {
    content: "";
    display: block;
    z-index: -2;
    filter: blur(calc(var(--glow-blur) * 10px));
    width: 130%;
    height: 130%;
    left: -15%;
    top: -15%;
    background: rgba(255, 255, 255, 0.6);
    position: relative;
    border-radius: calc(var(--glow-radius) * 10vw);
    transform: scaleY(calc(var(--glow-scale) * var(--scale-factor) / 1.1)) scaleX(calc(var(--glow-scale) * var(--scale-factor) * 1.2)) translateY(calc(var(--glow-translate-y) * 1%));
    opacity: var(--glow-opacity);
}

@keyframes shadow-pulse {

    0%,
    24%,
    46%,
    73%,
    96% {
        --white-shadow: 0.5;
    }

    12%,
    28%,
    41%,
    63%,
    75%,
    82%,
    98% {
        --white-shadow: 2.5;
    }

    6%,
    32%,
    57% {
        --white-shadow: 1.3;
    }

    18%,
    52%,
    88% {
        --white-shadow: 3.5;
    }
}

@keyframes rotate-bg {
    0% {
        --bg-x: 0;
        --bg-y: 0;
    }

    25% {
        --bg-x: 100;
        --bg-y: 0;
    }

    50% {
        --bg-x: 100;
        --bg-y: 100;
    }

    75% {
        --bg-x: 0;
        --bg-y: 100;
    }

    100% {
        --bg-x: 0;
        --bg-y: 0;
    }
}

@keyframes rotate {
    from {
        --rotate: -70;
        --glow-translate-y: -65;
    }

    25% {
        --glow-translate-y: -65;
    }

    50% {
        --glow-translate-y: -65;
    }

    60%,
    75% {
        --glow-translate-y: -65;
    }

    85% {
        --glow-translate-y: -65;
    }

    to {
        --rotate: calc(360 - 70);
        --glow-translate-y: -65;
    }
}


.contact-container::after {
    display: none;
}

.contact-container.english-lang::after {
    display: none;
}

/* Responsive styles for glowing card */
@media (max-width: 1024px) {
    .glowing-card {
        --card-width: 60vw;
        --card-radius: 4vw;
        perspective: 900px;
    }

    .contact-methods {
        width: calc(100% - 40px);
    }

    .contact-item {
        gap: 12px;
        margin-bottom: 16px;
        padding: 10px 14px;
        transform: translateZ(25px) translateY(0px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25),
            0 3px 10px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .contact-item:hover {
        transform: translateZ(70px) translateY(-6px) rotateX(4deg);
    }

    .contact-icon {
        width: 36px;
        height: 36px;
        transform: translateZ(8px);
    }

    .contact-item:hover .contact-icon {
        transform: translateZ(18px) rotateY(10deg) scale(1.08);
    }

    .contact-info {
        min-height: 36px;
    }

    .contact-label {
        font-size: 11px;
    }

    .contact-value {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .glowing-card {
        --card-width: 85vw;
        --card-radius: 5vw;
        max-width: 450px;
        max-height: 50vh;
        perspective: 1000px;
        aspect-ratio: 1.6/1;
    }

    .card-default-text {
        font-size: clamp(0.7rem, 2.2vw, 0.85rem);
        max-width: 92%;
        padding: 0 8px;
    }

    .contact-methods {
        width: calc(100% - 24px);
    }

    .contact-item {
        gap: 10px;
        margin-bottom: 12px;
        padding: 8px 12px;
        transform: translateZ(20px) translateY(0px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.22),
            0 2px 8px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .contact-item:hover {
        transform: translateZ(60px) translateY(-5px) rotateX(3deg);
    }

    .contact-icon {
        width: 32px;
        height: 32px;
        transform: translateZ(6px);
    }

    .contact-icon svg {
        width: 18px;
        height: 18px;
    }

    .contact-item:hover .contact-icon {
        transform: translateZ(12px) rotateY(8deg) scale(1.06);
    }

    .contact-info {
        min-height: 32px;
    }

    .contact-label {
        font-size: 10px;
    }

    .contact-value {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .glowing-card {
        --card-width: 92vw;
        --card-radius: 6vw;
        max-width: 380px;
        max-height: 48vh;
        perspective: 1100px;
        aspect-ratio: 1.5/1;
        min-height: auto;
    }

    .glowing-card > div {
        padding: calc(var(--card-width) / 12);
        font-size: clamp(1.2vw, 1.2vmin, 18px);
    }

    .card-default-text {
        font-size: clamp(0.65rem, 2.8vw, 0.8rem);
        max-width: 94%;
        padding: 0 6px;
        line-height: 1.5;
    }

    .card-default-text .default-text-content[data-lang="fa"] {
        font-size: clamp(0.7rem, 3vw, 0.85rem);
        line-height: 1.6;
    }

    .card-default-text .default-text-content[data-lang="en"] {
        font-size: clamp(0.65rem, 2.8vw, 0.8rem);
        line-height: 1.5;
    }

    .contact-methods {
        width: calc(100% - 16px);
        padding: 0 4px;
    }

    .contact-item {
        gap: 8px;
        margin-bottom: 10px;
        padding: 7px 10px;
        border-radius: 8px;
        transform: translateZ(15px) translateY(0px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18),
            0 1px 6px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .contact-item:last-child {
        margin-bottom: 0;
    }

    .contact-item:hover {
        transform: translateZ(40px) translateY(-3px) rotateX(2deg);
    }

    .contact-icon {
        width: 30px;
        height: 30px;
        transform: translateZ(4px);
    }

    .contact-icon svg {
        width: 16px;
        height: 16px;
    }

    .contact-item:hover .contact-icon {
        transform: translateZ(8px) rotateY(5deg) scale(1.04);
    }

    .contact-info {
        min-height: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
    }

    .contact-label {
        font-size: 9px;
        letter-spacing: 0.3px;
        line-height: 1.2;
    }

    .contact-value {
        font-size: 11px;
        letter-spacing: 0.2px;
        line-height: 1.3;
        word-break: break-word;
    }

    .contact-label[data-lang="fa"] {
        font-size: 10px;
    }

    .contact-value {
        font-size: 10.5px;
    }
}


@media (max-width: 1024px) {
    .contact-headline {
        padding-top: 48px;
        min-width: 120px;
    }

    .contact-headline .headline-text {
        font-size: clamp(14px, 2.7vw, 19px);
    }

    .contact-container::after {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 50px 15px;
        min-height: 80vh;
        justify-content: flex-start;
        align-items: center;
        flex-direction: column;
    }

    .contact-headline {
        position: relative;
        padding-top: 20px;
        margin-bottom: 15px;
    }

    .contact-headline .headline-text {
        font-size: clamp(12px, 3vw, 16px);
        white-space: normal !important;
        word-break: keep-all;
    }

    .contact-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 95%;
        max-width: 500px;
        margin-top: 20px;
        min-height: auto;
    }

    .contact-container::after {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 40px 10px;
        min-height: 75vh;
    }

    .contact-headline {
        padding-top: 15px;
        margin-bottom: 12px;
    }

    .contact-headline .headline-text {
        font-size: 11px;
    }

    .contact-headline .headline-text[data-lang="fa"] {
        font-size: 14px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .contact-container {
        width: 96%;
        max-width: 380px;
        margin-top: 15px;
        min-height: auto;
    }

    .contact-container::after {
        font-size: 13px;
    }
}

/* Extra small mobile devices (360px and below) */
@media (max-width: 360px) {
    .contact-section {
        padding: 35px 8px;
        min-height: 70vh;
    }

    .glowing-card {
        --card-width: 94vw;
        --card-radius: 7vw;
        max-width: 340px;
        max-height: 45vh;
        aspect-ratio: 1.4/1;
    }

    .glowing-card > div {
        padding: calc(var(--card-width) / 14);
        font-size: clamp(1vw, 1vmin, 16px);
    }

    .card-default-text {
        font-size: clamp(0.6rem, 3vw, 0.75rem);
        max-width: 95%;
        padding: 0 4px;
        line-height: 1.5;
    }

    .card-default-text .default-text-content[data-lang="fa"] {
        font-size: clamp(0.65rem, 3.2vw, 0.8rem);
        line-height: 1.6;
    }

    .contact-methods {
        width: calc(100% - 12px);
        padding: 0 2px;
    }

    .contact-item {
        gap: 6px;
        margin-bottom: 8px;
        padding: 6px 8px;
        border-radius: 7px;
    }

    .contact-icon {
        width: 26px;
        height: 26px;
    }

    .contact-icon svg {
        width: 14px;
        height: 14px;
    }

    .contact-info {
        min-height: 26px;
        gap: 2px;
    }

    .contact-label {
        font-size: 8px;
        letter-spacing: 0.2px;
    }

    .contact-value {
        font-size: 10px;
        letter-spacing: 0.15px;
    }

    .contact-label[data-lang="fa"] {
        font-size: 9px;
    }

    .contact-value {
        font-size: 9.5px;
    }

    .contact-headline .headline-text[data-lang="fa"] {
        font-size: 13px !important;
    }

    .contact-container {
        width: 97%;
        max-width: 340px;
    }
}

/* Mobile Landscape Orientation */
@media (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
    .contact-section {
        padding: 30px 10px;
        min-height: 100vh;
    }

    .contact-headline {
        padding-top: 10px;
        margin-bottom: 10px;
    }

    .contact-headline .headline-text {
        font-size: 10px;
    }

    .contact-headline .headline-text[data-lang="fa"] {
        font-size: 12px !important;
    }

    .contact-container {
        margin-top: 10px;
    }

    .glowing-card {
        --card-width: 70vw;
        max-width: 500px;
        max-height: 65vh;
        aspect-ratio: 2/1;
    }

    .glowing-card > div {
        padding: calc(var(--card-width) / 18);
    }

    .card-default-text {
        font-size: clamp(0.7rem, 2vw, 0.85rem);
    }

    .contact-methods {
        width: calc(100% - 20px);
    }

    .contact-item {
        gap: 8px;
        margin-bottom: 8px;
        padding: 6px 10px;
    }

    .contact-icon {
        width: 28px;
        height: 28px;
    }

    .contact-icon svg {
        width: 16px;
        height: 16px;
    }

    .contact-info {
        min-height: 28px;
    }

    .contact-label {
        font-size: 9px;
    }

    .contact-value {
        font-size: 10px;
    }
}

/* Touch Device Optimizations for Contact Card */
@media (hover: none) and (pointer: coarse) {
    .glowing-card {
        /* Disable complex 3D transforms on touch devices for better performance */
        transform: none !important;
    }

    .glowing-card:hover {
        transform: none !important;
    }

    .glowing-card .card-3d-inner {
        transform: none !important;
    }

    .contact-item {
        /* Simplify transforms for touch devices */
        transform: none !important;
    }

    .contact-item:hover {
        transform: none !important;
        background: rgba(255, 255, 255, 0.15);
    }

    .contact-item:active {
        background: rgba(255, 255, 255, 0.22);
        transform: scale(0.98) !important;
    }

    .contact-icon {
        transform: none !important;
    }

    .contact-item:hover .contact-icon {
        transform: none !important;
    }

    .contact-item:active .contact-icon {
        transform: scale(0.95) !important;
    }

    /* Show contact methods immediately on touch devices */
    .glowing-card .contact-methods {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .glowing-card .card-default-text {
        opacity: 0;
        visibility: hidden;
        display: none;
    }
}

/* =========================
   FOOTER SECTION
   ========================= */

/* =========================
   MOBILE: SHOW ONLY HERO SECTION
   Hide all other sections on mobile devices
   ========================= */

@media (max-width: 768px) {
    /* Hide About Section on mobile */
    .about-section,
    #aboutSection {
        display: none !important;
    }

    /* Hide Gallery Section on mobile */
    .gallery-section {
        display: none !important;
    }

    /* Hide Help Section on mobile */
    .help-section,
    #helpSection {
        display: none !important;
    }

    /* Hide Articles Section on mobile */
    .articles-section,
    #articlesSection {
        display: none !important;
    }

    /* Hide Contact Section on mobile */
    .contact-section,
    #contactSection {
        display: none !important;
    }

    /* Hide Footer Section on mobile */
    .footer-section,
    footer {
        display: none !important;
    }

    /* Hide Section 2 containers on mobile */
    .section2-container,
    #sectionTwo,
    #sectionTwoFa {
        display: none !important;
    }

    /* Hide Video Section on mobile (if exists) */
    .video-section,
    #videoSection {
        display: none !important;
    }

    /* Make hero section full height on mobile */
    .hero-section {
        min-height: 100vh;
        height: 100vh;
        position: relative;
    }

    /* Keep navigation bar at bottom of hero section on mobile */
    .minimal-nav {
        position: absolute !important;
        bottom: 80px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 100 !important;
    }

    /* Ensure body doesn't scroll past hero on mobile */
    body {
        overflow: hidden;
        height: 100vh;
    }

    html {
        overflow: hidden;
        height: 100vh;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    /* Hide About Section on small mobile */
    .about-section,
    #aboutSection {
        display: none !important;
    }

    /* Hide Gallery Section on small mobile */
    .gallery-section {
        display: none !important;
    }

    /* Hide Help Section on small mobile */
    .help-section,
    #helpSection {
        display: none !important;
    }

    /* Hide Articles Section on small mobile */
    .articles-section,
    #articlesSection {
        display: none !important;
    }

    /* Hide Contact Section on small mobile */
    .contact-section,
    #contactSection {
        display: none !important;
    }

    /* Hide Footer Section on small mobile */
    .footer-section,
    footer {
        display: none !important;
    }

    /* Hide Section 2 containers on small mobile */
    .section2-container,
    #sectionTwo,
    #sectionTwoFa {
        display: none !important;
    }

    /* Hide Video Section on small mobile (if exists) */
    .video-section,
    #videoSection {
        display: none !important;
    }

    /* Make hero section full height on small mobile */
    .hero-section {
        min-height: 100vh;
        height: 100vh;
        position: relative;
    }

    /* Keep navigation bar at bottom of hero section on small mobile */
    .minimal-nav {
        position: absolute !important;
        bottom: 70px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 100 !important;
    }

    /* Ensure body doesn't scroll on small mobile */
    body {
        overflow: hidden;
        height: 100vh;
    }

    html {
        overflow: hidden;
        height: 100vh;
    }
}


.footer-section {
    position: relative;
    width: 100vw;
    min-height: 450px;
    /* ارتفاع بیشتر برای Horizon بزرگ‌تر */
    max-height: 450px;
    /* ارتفاع ثابت */
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.footer-container {
    position: relative;
    width: 1200px;
    /* عرض ثابت به جای نسبی */
    max-width: 1200px;
    text-align: center;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 270px;
    /* ارتفاع بیشتر */
    overflow: visible;
    /* برگشت به visible */
}

/* ===================================
   FOOTER HORIZON SVG - کاملا قابل تنظیم
   =================================== */

.footer-horizon {
    /* === اندازه کلی - VIEWPORT-RESPONSIVE (سازگار با تمام اندازه‌های صفحه) === */
    --horizon-width: 100vw;
    /* عرض نسبی به viewport */
    --horizon-max-width: 100vw;
    /* حداکثر عرض نسبی */
    --horizon-height: 70vh;
    /* ارتفاع نسبی به viewport */
    --horizon-max-height: 70vh;
    /* حداکثر ارتفاع نسبی */

    /* === کشیدگی - RESPONSIVE === */
    --horizon-scale-x: 1.5;
    /* پهن‌تر */
    --horizon-scale-y: 0.95;
    /* کشیده‌تر */

    /* === موقعیت - FIXED === */
    --horizon-position-y: 250px;
    /* پایین‌تر */
    --horizon-margin-top: 0px;
    --horizon-margin-bottom: 20px;

    /* === شفافیت و فیلتر === */
    --horizon-opacity: 1;
    --horizon-blur: 0px;
    --horizon-brightness: 1.2;
    /* کمی روشن‌تر برای گلو */

    /* === Glowing Effect Variables === */
    --glow-color: rgba(255, 255, 255, 0.8);
    --glow-size: 20px;
    --glow-intensity: 0.6;

    /* === انیمیشن === */
    --horizon-animation-duration: 0s;

    /* اعمال متغیرها */
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(var(--horizon-position-y)) scaleX(var(--horizon-scale-x)) scaleY(var(--horizon-scale-y));
    width: var(--horizon-width);
    max-width: var(--horizon-max-width);
    min-width: var(--horizon-width);
    /* تغییر به responsive */
    height: var(--horizon-height);
    max-height: var(--horizon-max-height);
    min-height: var(--horizon-height);
    /* تغییر به responsive */
    margin-top: var(--horizon-margin-top);
    margin-bottom: var(--horizon-margin-bottom);
    opacity: var(--horizon-opacity);

    /* === Glowing Effect - افکت نور درخشان === */
    filter: blur(var(--horizon-blur)) brightness(var(--horizon-brightness)) drop-shadow(0 0 10px var(--glow-color)) drop-shadow(0 0 20px var(--glow-color)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.2));

    /* تنظیمات اضافی */
    display: block;
    pointer-events: none;
    user-select: none;
    transition: all var(--horizon-animation-duration) ease;
    object-fit: contain;

    /* افکت Pulse نرم - فعال به صورت پیش‌فرض */
    animation: horizon-glow-pulse-soft 4s ease-in-out infinite;
}

/* === Glowing Pulse Animation - نسخه نرم === */
@keyframes horizon-glow-pulse-soft {

    0%,
    100% {
        filter: brightness(1.15) drop-shadow(0 0 10px rgba(255, 255, 255, 0.75)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.75)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.18));
    }

    50% {
        filter: brightness(1.25) drop-shadow(0 0 12px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 45px rgba(255, 255, 255, 0.42)) drop-shadow(0 0 70px rgba(255, 255, 255, 0.25));
    }
}

/* ===================================
   LINEAR GLOW OVERLAY - نور خطی از Horizon
   =================================== */

.horizon-linear-glow {
    position: absolute;
    /* نسبت به footer-container */
    bottom: 0;
    /* چسبیده به پایین فوتر */
    left: 0;
    width: 100%;
    height: 500px;
    /* ارتفاع نور خطی - افزایش برای پوشش بهتر */

    /* Gradient از پایین (روشن) به بالا (شفاف) با محو شدن تدریجی */
    background: linear-gradient(to top,
            rgba(255, 255, 255, 0.15) 0%,
            /* پایین - روشن */ rgba(255, 255, 255, 0.10) 15%,
            /* کمی بالاتر */ rgba(255, 255, 255, 0.06) 30%,
            /* نیمه راه */ rgba(255, 255, 255, 0.03) 50%,
            /* محو */ rgba(255, 255, 255, 0.015) 70%,
            /* خیلی محو */ rgba(255, 255, 255, 0.005) 85%,
        /* تقریبا محو کامل */
            rgba(255, 255, 255, 0) 100%
            /* بالا - کاملا شفاف */
        );

    pointer-events: none;
    z-index: 19;
    /* زیر Horizon SVG */
    mix-blend-mode: screen;
    /* ترکیب نوری */
}

/* انیمیشن نبض نور (اختیاری) */
@keyframes linear-glow-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* اگه میخوای انیمیشن داشته باشه */
.horizon-linear-glow.animated {
    animation: linear-glow-pulse 4s ease-in-out infinite;
}

/* ===================================
   FLOATING PARTICLES - ذرات شناور فوتر
   =================================== */

.footer-particles {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 18;
    /* زیر linear glow */
    overflow: hidden;
}

.footer-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
    animation: footer-particle-float linear infinite;
    opacity: 0;
}

/* هر ذره موقعیت و سرعت منحصر به فرد داره */
.footer-particle:nth-child(1) {
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
    width: 2px;
    height: 2px;
}

.footer-particle:nth-child(2) {
    left: 20%;
    animation-duration: 10s;
    animation-delay: 1s;
    width: 3px;
    height: 3px;
}

.footer-particle:nth-child(3) {
    left: 30%;
    animation-duration: 12s;
    animation-delay: 2s;
    width: 2.5px;
    height: 2.5px;
}

.footer-particle:nth-child(4) {
    left: 40%;
    animation-duration: 9s;
    animation-delay: 0.5s;
    width: 2px;
    height: 2px;
}

.footer-particle:nth-child(5) {
    left: 50%;
    animation-duration: 11s;
    animation-delay: 1.5s;
    width: 3.5px;
    height: 3.5px;
}

.footer-particle:nth-child(6) {
    left: 60%;
    animation-duration: 10s;
    animation-delay: 2.5s;
    width: 2px;
    height: 2px;
}

.footer-particle:nth-child(7) {
    left: 70%;
    animation-duration: 13s;
    animation-delay: 0.8s;
    width: 3px;
    height: 3px;
}

.footer-particle:nth-child(8) {
    left: 80%;
    animation-duration: 9s;
    animation-delay: 1.8s;
    width: 2.5px;
    height: 2.5px;
}

.footer-particle:nth-child(9) {
    left: 85%;
    animation-duration: 11s;
    animation-delay: 0.3s;
    width: 2px;
    height: 2px;
}

.footer-particle:nth-child(10) {
    left: 95%;
    animation-duration: 10s;
    animation-delay: 2s;
    width: 3px;
    height: 3px;
}

/* انیمیشن ذرات - از پایین (Horizon) به بالا */
@keyframes footer-particle-float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
        bottom: 0;
    }

    10% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-450px) translateX(calc(sin(1) * 30px)) rotate(360deg);
        opacity: 0;
        bottom: 0;
    }
}

/* مثال: می‌تونی این کلاس‌ها رو برای تغییرات سریع استفاده کنی */
.footer-horizon.wide {
    --horizon-scale-x: 1.5;
}

.footer-horizon.narrow {
    --horizon-scale-x: 0.7;
}

.footer-horizon.tall {
    --horizon-scale-y: 0.8;
}

.footer-horizon.short {
    --horizon-scale-y: 0.3;
}

.footer-horizon.fade {
    --horizon-opacity: 0.5;
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    .footer-section {
        min-height: 280px;
        max-height: 280px;
        padding: 15px;
        overflow: hidden;
        /* منع از overflow برای جلوگیری از scroll اضافی */
    }

    .footer-container {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        overflow: visible;
    }

    /* تنظیم Horizon SVG برای تبلت */
    .footer-horizon {
        --horizon-scale-x: 1.2;
        --horizon-scale-y: 0.6;
        --horizon-position-y: 120px;
        --horizon-width: 100vw;
        --horizon-height: 50vh;
    }

    /* تنظیم Linear Glow برای تبلت - گرادیانت ملایم‌تر و بدون bending */
    .horizon-linear-glow {
        height: 350px;
        mix-blend-mode: normal; /* حذف screen blend mode در تبلت */
        background: linear-gradient(to top,
        rgba(255, 255, 255, 0.09) 0%,
        rgba(255, 255, 255, 0.06) 20%,
        rgba(255, 255, 255, 0.03) 40%,
        rgba(255, 255, 255, 0.015) 60%,
        rgba(255, 255, 255, 0.006) 75%,
        rgba(255, 255, 255, 0.002) 88%,
        rgba(255, 255, 255, 0) 100%);
    }
}

@media (max-width: 480px) {
    .footer-section {
        min-height: 220px;
        max-height: 220px;
        padding: 10px;
        overflow: hidden;
        /* منع از overflow برای جلوگیری از scroll اضافی */
    }

    .footer-container {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        overflow: visible;
    }

    /* تنظیم Horizon SVG برای موبایل - نمایش با scale کوچکتر */
    .footer-horizon {
        --horizon-scale-x: 1;
        --horizon-scale-y: 0.8;
        --horizon-position-y: 70px;
        --horizon-width: 100vw;
        --horizon-height: 35vh;
        --horizon-opacity: 0.9;
    }

    /* فیکس مشکل bending در موبایل */
    .horizon-linear-glow {
        height: 280px;
        /* حذف کامل mix-blend-mode برای جلوگیری از انحنا */
        mix-blend-mode: normal !important;
        /* استفاده از گرادیانت ساده‌تر با شفافیت کمتر */
        background: linear-gradient(to top,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.05) 18%,
        rgba(255, 255, 255, 0.03) 35%,
        rgba(255, 255, 255, 0.015) 52%,
        rgba(255, 255, 255, 0.008) 68%,
        rgba(255, 255, 255, 0.004) 82%,
        rgba(255, 255, 255, 0.001) 92%,
        rgba(255, 255, 255, 0) 100%);
        /* اضافه کردن will-change برای بهینه‌سازی rendering */
        will-change: opacity;
        /* حذف transform برای جلوگیری از bending */
        transform: none;
    }
}

/* Footer Section Styles (continue from existing footer-horizon) */

.footer-content {
    position: relative;
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 60px 20px 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer-nav-link {
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.footer-nav-link[data-lang="en"] {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.footer-nav-link:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: transform 0.3s ease;
}

.footer-nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.footer-designer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-designer-text {
    font-family: 'Dana', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.footer-designer-text[data-lang="en"] {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.footer-designer-name {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-designer-text:hover .footer-designer-name {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Responsive Footer Content */
@media (max-width: 768px) {
    .footer-content {
        gap: 20px;
        padding: 30px 15px 20px;
        position: relative;
        /* تضمین قرارگیری صحیح */
        z-index: 25;
        /* بالای گرادیانت */
    }

    .footer-nav {
        gap: 18px;
        flex-wrap: wrap;
    }

    .footer-nav-link {
        font-size: 13px;
        padding: 6px 0;
    }

    .footer-designer-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 15px;
        padding: 25px 10px 15px;
        position: relative;
        /* تضمین قرارگیری صحیح */
        z-index: 25;
        /* بالای گرادیانت */
    }

    /* Navigation افقی مینیمال در موبایل */
    .footer-nav {
        gap: 12px;
        flex-direction: row;
        /* افقی به جای عمودی */
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-nav-link {
        font-size: 11px;
        /* فونت کوچکتر */
        padding: 4px 0;
        white-space: nowrap;
        /* جلوگیری از شکستن متن */
    }

    .footer-designer {
        gap: 8px;
    }

    .footer-designer-text {
        font-size: 10px;
        line-height: 1.5;
    }
}