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


@font-face {
    font-family: 'AbarLow';
    src: url('../fonts/AbarLow-SemiBold.woff') format('woff');
    /* font-weight: 600; */
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+0660-0669, U+06F0-06F9, U+200C;
}

/* Font variables */
:root {
    --font-farsi: 'AbarLow', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-english: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* Base font setting */
body {
    font-family: var(--font-farsi);
    background-color: #0F172A;
    position: relative;
    overflow-x: hidden;
}

/* Force Latin to system SF on Apple devices */
:lang(en) {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Section background variations */
.bg-dark {
    background-color: #000000;
}

.bg-dark-dot {
    background-color: #000000;
}

.bg-dark-vip {
    background-color: #000000;
}

.bg-white {
    background-color: #000000;
}

.bg-light {
    background-color: #ffffff;
    color: #0F172A;
}

/* Particles styling */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.bg-dark .particle {
    background-color: rgba(251, 191, 36, 0.3);
}

.bg-light .particle {
    background-color: rgba(251, 191, 36, 0.3);
}

.particle {
    position: absolute;
    width: 1px;
    height: 1px;
    border-radius: 50%;
    animation: move-particles 20s linear infinite;
}

@keyframes move-particles {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* Ensure section content stays above particles */
section > *:not(.particles-container) {
    position: relative;
    z-index: 2;
}

html[lang="en"] *, body.lang-en * {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[lang="fa"] *, body.lang-fa * {
    font-family: 'AbarLow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}


html {
    scroll-behavior: smooth;
}

.scroll-container {
    overflow-y: scroll;
    height: 100vh;
}

section {
    min-height: 100vh;
    width: 100%;
    flex-shrink: 0;
}

/* استایل هدر */
.sticky-header, .progress-container {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}


/* استایل های جدید منوی همبرگری */
.menu-overlay {
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
    visibility: hidden;
}
.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}
.menu-content {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
    transform: scale(0.95);
    opacity: 0;
}
.menu-overlay.open .menu-content {
    transform: scale(1);
    opacity: 1;
}

.menu-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slide-in 0.5s ease-out forwards;
}
@keyframes slide-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* section-bg-hero */
.section-bg-hero {
    background-color: #000000; /* یک طوسی بسیار روشن */
    min-height: 100vh; /* ارتفاع بهینه شده برای چسبیدن به بالا */
    width: 100%;
    overflow: hidden;
}

/* افکت برش موجی برای پایین عکس */
.image-wave-mask {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 1000 800" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L1000,0 L1000,750 Q500,850 0,750 Z" fill="black"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 1000 800" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L1000,0 L1000,750 Q500,850 0,750 Z" fill="black"/></svg>');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}



/* section-6 */
.section-bg-6 {
    /* background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 0); */
    /* background-size: 30px 30px; */
    background-color: #000000;
}
@keyframes pulse-glow-section6 {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    }
}
.section-bg-6 .animate-pulse-glow {
    animation: pulse-glow-section6 4s ease-in-out infinite;
}

/* Fixed logo positioning for section-bg-6 */
.section-bg-6 .logo-fixed-position {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Mobile: center the logo */
@media (max-width: 767px) {
    .section-bg-6 .logo-fixed-position {
        position: relative;
        top: auto;
        transform: none;
        display: flex;
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .section-bg-6 .text-content-container {
        text-align: center;
    }
    
    /* Keep keywords in one line for English on mobile */
    .lang-en .section-bg-6 .flex.flex-wrap {
        flex-wrap: nowrap !important;
        justify-content: center;
        gap: 0.1rem;
    }
    
    .lang-en .section-bg-6 .flex.flex-wrap span {
        white-space: nowrap;
        font-size: 0.80rem; /* increase size for English keywords on mobile */
        font-weight: 800;
    }
}

/* Desktop: position logo based on language */
@media (min-width: 768px) {
    /* Farsi: logo on the left */
    .lang-fa .section-bg-6 .logo-fixed-position {
        left: 2rem;
        right: auto;
    }
    
    /* English: logo on the right */
    .lang-en .section-bg-6 .logo-fixed-position {
        right: 2rem;
        left: auto;
    }
    
    /* Text content positioning */
    .lang-fa .section-bg-6 .text-content-container {
        position: absolute;
        right: 2rem;
        left: 20rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .lang-en .section-bg-6 .text-content-container {
        position: absolute;
        left: 2rem;
        right: 20rem;
        top: 50%;
        transform: translateY(-50%);
    }
}


/* section-5 */

.section-bg-5 {
    background-color: #000000; /* بسیار تیره */
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}


@keyframes subtle-glow {
    from { opacity: 0; filter: blur(10px); }
    to { opacity: 1; filter: blur(0); }
}
.subtle-glow {
    animation: subtle-glow 2s ease-out forwards;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7)); }
}
.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}


/* section-7 */

.section-bg-7 {
    background-color: #000000;
    background-size: 50px 50px;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* انیمیشن ترسیم خطوط */
.blueprint-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-line 2s ease-out forwards;
}
@keyframes draw-line {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(103, 232, 249, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(103, 232, 249, 0.8)); }
}
.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

.pulsing-halo {
    position: absolute;
    /* کمی بزرگتر از کادر لوگو برای ایجاد فاصله */
    inset: -5px; 
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 220, 104, 0) 40%, rgba(255, 221, 109, 0.4) 70%, rgba(255, 223, 117, 0) 100%);
    animation: pulse 3s infinite ease-in-out;
    z-index: 1;
}

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

/* section-4 */

.section-bg-4 {
    background-color: #000000;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* انیمیشن آبشاری برای لیست */
.benefit-item {
    opacity: 0;
    transform: translateY(20px);
    animation: cascade-in 0.8s ease-out forwards;
}
@keyframes cascade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(217, 119, 6, 0.4)); }
    50% { filter: drop-shadow(0 0 25px rgba(217, 119, 6, 0.7)); }
}
.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
}

/* خط جداکننده */
.divider {
    background: linear-gradient(to bottom, transparent, rgba(202, 138, 4, 0.3), transparent);
}



/* section-8 */

.section-bg-8 {
    background-color: #000000;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* انیمیشن گوی نورانی */
.blob {
    background: linear-gradient(45deg, #f381a6, #d946ef);
    border-radius: 50%;
    filter: blur(80px);
    animation: move-blob 20s infinite alternate;
    position: absolute;
}
@keyframes move-blob {
    0% { transform: translate(-20%, -20%) scale(1); }
    100% { transform: translate(20%, 20%) scale(1.2); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
}

/* استایل جدید برای متن */
.stylized-text {
    border-right: 2px solid #d1d5db;
    padding-right: 1rem;
}

/* گرادینت برای کلمه رویا */
.dream-gradient {
    background: linear-gradient(45deg, #f472b6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.5)); }
    50% { filter: drop-shadow(0 0 25px rgba(236, 72, 153, 0.8)); }
}
.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}


/*  section 3 */

.galaxy-bg {
    background-color: #000000f5;
    height: 100vh;
    width: 100%;
}

/* انیمیشن برای ورود المان‌ها */
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
.zoom-in {
    opacity: 0;
    animation: zoomIn 1s ease-out forwards;
}

/* انیمیشن برای درخشش خطوط */
@keyframes glow-line {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}
.animate-glow-line {
    animation: glow-line 3s linear infinite;
}


/* section-11 */

.section-bg-12 {
    background-color: #000000;
    /* background-image: 
        radial-gradient(circle at center, rgba(6, 182, 212, 0.3), transparent 1px),
        radial-gradient(circle at center, rgba(6, 182, 212, 0.2), transparent 2px); */
    background-position: 25px 25px, 25px 25px;
    background-size: 50px 50px;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* انیمیشن های چشم */
@keyframes rotate-outer {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes rotate-inner {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}
.animate-rotate-outer {
    animation: rotate-outer 40s linear infinite;
    transform-origin: center;
}
.animate-rotate-inner {
    animation: rotate-inner 30s linear infinite;
    transform-origin: center;
}

@keyframes pulse-iris {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px #d4af36d2);
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 16px #d4af36);
    }
}
.animate-pulse-iris {
    animation: pulse-iris 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
}

/* کادر متنی با خطوط باریک */
.text-frame {
    position: relative;
    padding: 1.5rem;
    border: 1px solid rgba(212, 175, 54, 0.283);
}

/* انیمیشن گرادینت برای تیتر */
.animated-text-gradient {
    background: linear-gradient(45deg, #c9c9c9, #d4af36, #d4af36cb);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-gradient-flow 6s linear infinite;
}

@keyframes text-gradient-flow {
    to {
        background-position: 200% center;
    }
}



/* section-10 */

.section-bg-10 {
    background-color: #0F172A; /* رنگ پایه سرمه‌ای تیره */
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* انیمیشن ذرات پس‌زمینه */
@keyframes move-particles {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgb(252, 211, 77);
    border-radius: 50%;
    animation: move-particles 20s linear infinite;
}
.bg-amber{
    background-color: #d4af36;
}

.text-amber-10{
    color: #d4af36;
}


/* انیمیشن درخشش لوگو */
@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.8));
    }
}
.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}
.animate-pulse-glow:hover {
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}


/* section-9 */

.section-bg-9 {
    background-color: #000000;
    /* background-image:#ffffff; */
    /* background-size: 40px 40px; */
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(250, 204, 21, 0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(250, 204, 21, 0.8)); }
}
.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}


.animated-gradient-bg-2{
    background-color: #000000;
}


/* section 2 */

.animated-gradient-bg {
    background-color: #000000;
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    height: 100vh; /* تضمین می‌کند هر بخش کل صفحه را بگیرد */
    width: 100%;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* انیمیشن برای ورود المان‌ها */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}



/* section-bg-11 */

.section-bg-11 {
    background-color: #000000; /* طوسی بسیار روشن */
    width: 100%;
}

/* Fix text direction for English in section-bg-11 */
@media (min-width: 768px) {
    .lang-en .section-bg-11 .section-bg-11-text {
        text-align: left !important;
    }
    
    .lang-en .section-bg-11 .section-bg-11-text h2,
    .lang-en .section-bg-11 .section-bg-11-text p {
        text-align: left !important;
    }
}

.item-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.item-icon, .item-download {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.item-card:hover .item-icon {
    opacity: 0;
    transform: scale(0.8);
}
.item-download {
    opacity: 0;
    transform: scale(0.8);
}
.item-card:hover .item-download {
    opacity: 1;
    transform: scale(1);
}

html[lang="fa"] .section-h2 {
    line-height: 1.5;
}

html[lang="fa"] .animated-gradient-bg-2 {
    line-height: 1.5;
}

.main-button{
    background-color: #d5b032;
}

.main-button-2{
    background-color: #d5b032;
}

/* Farsi heading clipping fix in section 12 */
html[lang="fa"] .section-bg-12 .animated-text-gradient {
    line-height: 1.25;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

html[lang="fa"] .section-bg-8 .dream-gradient {
    line-height: 1.25;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* Mobile: unify vertical gaps between sections to 5px */
@media (max-width: 767px) {
    section {
        height: auto !important;
        min-height: auto !important;
    }
}

/* Increase line height between spans in bg-dark-dot */
.bg-dark-dot p span {
    line-height: 0.70;
    display: block;
}




html[lang="fa"] .section-bg-11 .animated-text-gradient {
    line-height: 1.25;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}


/* Mobile: widen glass boxes inside sections from animated-gradient-bg onward */
@media (max-width: 767px) {
    /* Prevent clipping on mobile: allow section to grow naturally */
    .section-bg-11 {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    .animated-gradient-bg > div,
    .animated-gradient-bg-2 > div,
    .galaxy-bg > div,
    .section-bg-4 > div,
    .section-bg-5 > div,
    .section-bg-6 > div,
    .section-bg-7 > div,
    .section-bg-8 > div,
    .section-bg-9 > div,
    .bg-dark > div,
    .bg-black > div,
    .bg-dark-dot > div,
    .bg-dark-vip > div,
    .bg-white > div,
    .section-bg-11 > div,
    .section-bg-12 > div {
        width: 98% !important;
        max-width: none !important;
    }
}



/* Mobile: increase vertical gap inside bg-dark-dot content */
@media (max-width: 767px) {
    .bg-dark-dot > div {
        row-gap: 2rem;
    }
}

/* Footer social boxes styling */
.footer-social {
    border-top: 1px solid rgba(212, 175, 54, 0.2);
}
.footer-social .social-box {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.footer-social .social-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px -10px rgba(0,0,0,0.6);
}

/* Mobile: center and stack if needed */
@media (max-width: 767px) {
    .footer-social .flex.flex-nowrap {
        gap: 1rem;
    }
}

/* Mobile Farsi: slightly smaller h2 in bg-dark-vip */
@media (max-width: 767px) {
    html[lang="fa"] .bg-dark-vip h2 {
        font-size: 2.25rem; /* ~text-4xl */
        line-height: 1.2;
    }
}

/* Mobile English: keep section-7 keywords on one line and slightly smaller */
@media (max-width: 767px) {
    html[lang="en"] .section-bg-7 span {
        font-size: 0.95rem;
        white-space: nowrap;
    }
}





/* Mobile Farsi: enlarge keywords in section-bg-6 */
@media (max-width: 767px) {
    html[lang="fa"] .section-bg-6 [data-key="center-innovation"],
    html[lang="fa"] .section-bg-6 [data-key="center-entrepreneurship"],
    html[lang="fa"] .section-bg-6 [data-key="center-value"] {
        font-size: 1.25rem !important; /* ~text-xl */
        font-weight: 800;
    }
}

/* Mobile English: make section-bg-6 heading smaller */
@media (max-width: 767px) {
    html[lang="en"] .section-bg-6 h2 {
        font-size: 1.5rem !important; /* ~text-2xl */
        line-height: 1.2 !important;
    }
}

/* Mobile English: force section-bg-6 heading to exactly two lines (one span per line) */
@media (max-width: 767px) {
    html[lang="en"] .section-bg-6 h2 span {
        display: block;
        white-space: nowrap;
    }
}

/* Video controls - show on desktop, hide on mobile */
@media (min-width: 768px) {

    #hero-video::-webkit-media-controls-play-button {
        display: flex !important;
    }
}

/* Mobile: hide video controls and ensure custom button works */
@media (max-width: 767px) {
    #hero-video::-webkit-media-controls {
        display: none !important;
    }
    
    #play-video-btn {
        z-index: 10;
        pointer-events: auto;
    }
}


.glass-box {
    background: rgba(17, 24, 39, 0.5); /* کمی تیره‌تر برای تضاد بهتر */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(202, 138, 4, 0.2);
}
        
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-frame-round {
    border-radius: 50%;
    padding: 4rem; /* Adjust padding as needed */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 400px; /* Adjust width as needed */
    height: 400px; /* Adjust height as needed */
    text-align: center;
}

.image-frame-round {
    border-radius: 50%;
    overflow: hidden; /* This will clip the image to the round shape */
}


.video-container {
    background: #cfc9cd;
}