/* ==========================================================================
   Vazirmatn Font (Local)
   ========================================================================== */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* اگر از وزن‌های دیگر (مثل 500 یا 600) استفاده می‌کنی، اینجا تعریف کن */


/* 
   ۱. تنظیمات پایه و متغیرها
   ========================================================================== */

:root {
    /* رنگ‌های اصلی */
    --navy: #0A192F;
    --navy-light: #112240;
    --turquoise: #64FFDA;
    --white: #FFFFFF;
    --gray-light: #8892B0;

    /* رنگ‌های کمکی */
    --turquoise-dim: rgba(100, 255, 218, 0.1);
    --turquoise-border: rgba(100, 255, 218, 0.2);
    --turquoise-border-hover: rgba(100, 255, 218, 0.6);

    /* فونت */
    --font-main: 'Vazirmatn', sans-serif;

    /* انیمیشن */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================================================
   ۲. ریست و تنظیمات پایه
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* برای منوی چسبان */
}

body {
    font-family: var(--font-main);
    background-color: var(--navy);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
}

/* ==========================================================================
   ۳. اسکرول‌بار سفارشی
   ========================================================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--navy);
}

::-webkit-scrollbar-thumb {
    background: var(--turquoise);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4dd4b8;
}

/* ==========================================================================
   ۴. انتخاب متن
   ========================================================================== */

::selection {
    background: var(--turquoise);
    color: var(--navy);
}

/* ==========================================================================
   ۵. انیمیشن‌ها
   ========================================================================== */

/* Fade In */
.fade-in {
    animation: fadeIn 1s ease-in;
}

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

/* Fade In از راست */
.fade-in-right {
    animation: fadeInRight 1s ease-in;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In از چپ */
.fade-in-left {
    animation: fadeInLeft 1s ease-in;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse (برای آیکون‌های خاص) */
.pulse {
    animation: pulse 2s infinite;
}

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

/* ==========================================================================
   ۶. دکمه‌ها
   ========================================================================== */

/* دکمه اصلی (Primary) */
.btn-primary {
    background-color: var(--turquoise);
    color: var(--navy);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid var(--turquoise);
    text-decoration: none;
}

.btn-primary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--turquoise);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

/* دکمه ثانویه (Secondary) */
.btn-secondary {
    background-color: transparent;
    color: var(--turquoise);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid var(--turquoise);
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

/* دکمه با آیکون */
.btn-primary i,
.btn-secondary i {
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.btn-primary:hover i,
.btn-secondary:hover i {
    transform: translateX(-3px);
}

/* ==========================================================================
   ۷. آیکون‌های شبکه اجتماعی
   ========================================================================== */

.social-icon {
    color: var(--gray-light);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--turquoise);
    transform: translateY(-3px);
}

/* ==========================================================================
   ۸. کارت‌ها
   ========================================================================== */

.card {
    background-color: var(--navy-light);
    border: 1px solid var(--turquoise-border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all var(--transition-fast);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card:hover {
    border-color: var(--turquoise-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   ۹. نوار پیشرفت (Progress Bar)
   ========================================================================== */

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--navy);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 1.5s ease-in-out;
}

.progress-bar-fill.advanced {
    background-color: var(--turquoise);
}

.progress-bar-fill.intermediate {
    background-color: var(--gray-light);
}

.progress-bar-fill.beginner {
    background-color: rgba(136, 146, 176, 0.5);
}

/* ==========================================================================
   ۱۰. فرم تماس
   ========================================================================== */

input,
textarea {
    background-color: var(--navy);
    border: 1px solid var(--turquoise-border);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    width: 100%;
    transition: all var(--transition-fast);
    font-family: var(--font-main);
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--turquoise);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-light);
    opacity: 0.7;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* ==========================================================================
   ۱۱. منوی چسبان (Sticky Nav) - برای بعداً
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all var(--transition-fast);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 2rem;
}

.navbar a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.navbar a:hover {
    color: var(--turquoise);
}

/* ==========================================================================
   ۱۲. تنظیمات واکنش‌گرا (Responsive)
   ========================================================================== */

/* تبلت */
@media (max-width: 1024px) {
    html {
        scroll-padding-top: 70px;
    }

    .navbar {
        padding: 0.75rem 1.5rem;
    }
}

/* موبایل */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px;
    }

    body {
        font-size: 15px;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .card {
        padding: 1.5rem;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .card {
        padding: 1.25rem;
    }
}

/* ==========================================================================
   ۱۳. تنظیمات چاپ
   ========================================================================== */

@media print {
    .navbar,
    .social-icon,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* ==========================================================================
   ۱۴. کاهش انیمیشن (برای کاربران با تنظیمات خاص)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   ۱۵. منوی اصلی (Navbar)
   ========================================================================== */

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar ul li a {
    position: relative;
    padding: 0.5rem 0;
}

/* خط زیر لینک فعال */
.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--turquoise);
    transition: width var(--transition-fast);
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
    width: 100%;
}

.navbar ul li a.active {
    color: var(--turquoise);
}

/* ==========================================================================
   ۱۶. منوی موبایل
   ========================================================================== */

#nav-menu {
    transition: all var(--transition-fast);
}

#nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid var(--turquoise-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.menu-open {
    overflow: hidden;
}

/* ==========================================================================
   ۱۷. دکمه بازگشت به بالا
   ========================================================================== */

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.3);
}

#back-to-top i {
    transition: transform var(--transition-fast);
}

#back-to-top:hover i {
    transform: translateY(-2px);
}







/* لایه تیره برای خوانایی متن */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 25, 47, 0.75) 0%,
        rgba(10, 25, 47, 0.85) 100%
    );
    z-index: 2;
}

/* محتوای Hero */
.hero-content {
    position: relative;
    z-index: 3;
}

/* برای کاربرانی که انیمیشن نمی‌خواهند */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
    .hero-section {
        background-image: url('../img/hero-poster.jpg');
        background-size: cover;
        background-position: center;
    }
}


/* ==========================================================================
   Hero Background - Gradient Mesh + Grid + Noise
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0D0D0D;
}

/* لایه ۱: Gradient Mesh اصلی (طلایی + آبی محو) */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(
            ellipse 80% 60% at 20% 30%,
            rgba(212, 175, 55, 0.18) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse 70% 50% at 80% 70%,
            rgba(100, 255, 218, 0.10) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 100% 80% at 50% 100%,
            rgba(212, 175, 55, 0.08) 0%,
            transparent 60%
        );
    z-index: 1;
    pointer-events: none;
}

/* لایه ۲: شبکه‌ی ظریف طلایی (Subtle Grid) */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 2;
    pointer-events: none;
    mask-image: radial-gradient(
        ellipse 80% 80% at 50% 50%,
        black 30%,
        transparent 90%
    );
    -webkit-mask-image: radial-gradient(
        ellipse 80% 80% at 50% 50%,
        black 30%,
        transparent 90%
    );
}

/* محتوای Hero */
.hero-content {
    position: relative;
    z-index: 3;
}

/* ==========================================================================
   انیمیشن ملایم برای Gradient (اختیاری)
   ========================================================================== */

@keyframes gradientShift {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 100%;
    }
    50% {
        background-position: 20% 10%, 80% 90%, 50% 90%;
    }
    100% {
        background-position: 0% 0%, 100% 100%, 50% 100%;
    }
}

.hero-section::before {
    background-size: 200% 200%, 200% 200%, 200% 200%;
    animation: gradientShift 20s ease-in-out infinite;
}

/* ==========================================================================
   برای کاربرانی که انیمیشن نمی‌خواهند
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
}

.skill-progress-fill {
    width: 100%; /* ← به جای width: 0 */
    height: 100%;
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
    transform: scaleX(0);           /* ← شروع از صفر */
    transform-origin: right center; /* ← از راست به چپ (RTL) */
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-card.visible .skill-progress-fill {
    transform: scaleX(calc(var(--progress-width) / 100)); /* ← پر شدن */
}

/* ==========================================================================
   Skill Progress Bar (Animated)
   ========================================================================== */

/* کانتینر نوار پیشرفت */
.skill-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #0A192F;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

/* نوار پیشرفت */
.skill-progress-fill {
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
    
    /* انیمیشن از صفر تا مقدار */
    transform: scaleX(0);
    transform-origin: right center; /* برای RTL */
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-card.visible .skill-progress-fill {
    transform: scaleX(calc(var(--progress-width) / 100));
}

/* درخشش روی نوار پیشرفت هنگام پر شدن */
.skill-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* کارت مهارت */
.skill-card {
    opacity: 0;
    transform: translateY(40px);
    transition: 
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    
    min-width: 0;    /* ← جلوگیری از سرریز */
    flex: 1 1 0;     /* ← عرض مساوی */
    position: relative;
    overflow: hidden;
}

.skill-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* تأخیر پله‌ای */
.skill-card:nth-child(1) { transition-delay: 0s; }
.skill-card:nth-child(2) { transition-delay: 0.15s; }
.skill-card:nth-child(3) { transition-delay: 0.3s; }
.skill-card:nth-child(4) { transition-delay: 0.45s; }

/* درخشش طلایی روی کارت */
.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        transparent 40%,
        rgba(212, 175, 55, 0.15) 50%,
        transparent 60%,
        transparent 100%
    );
    transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    pointer-events: none;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card > * {
    position: relative;
    z-index: 2;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 175, 55, 0.1);
}


/* ==========================================================================
   Project Modal (Lightbox)
   ========================================================================== */

/* پس‌زمینه مودال */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 9999;

    /* حالت مخفی */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* کانتینر مودال */
.modal-container {
    position: relative;
    background-color: #1A1A1A;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 1.5rem;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);

    /* انیمیشن ورود */
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

/* دکمه بستن */
.modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background-color: #D4AF37;
    color: #0D0D0D;
    transform: rotate(90deg);
}

/* دکمه‌های ناوبری */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.25rem;
}

.modal-nav:hover {
    background-color: #D4AF37;
    color: #0D0D0D;
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    right: 1rem;
}

.modal-next {
    left: 1rem;
}

/* تصویر */
.modal-image-wrapper {
    width: 100%;
    background-color: #0D0D0D;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1.5rem 1.5rem 0 0;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.modal-image.loading {
    opacity: 0.3;
}

/* اطلاعات */
.modal-info {
    padding: 1.5rem 2rem 2rem;
    text-align: right;
    direction: rtl;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
}

.modal-description {
    font-size: 1rem;
    color: #A0A0A0;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.modal-tags span {
    font-size: 0.75rem;
    background-color: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.modal-counter {
    text-align: center;
    color: #A0A0A0;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* نقطه‌های ناوبری */
.modal-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-bottom: 1.5rem;
}

.modal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.modal-dot:hover {
    background-color: rgba(212, 175, 55, 0.6);
}

.modal-dot.active {
    background-color: #D4AF37;
    width: 24px;
    border-radius: 9999px;
}

/* جلوگیری از اسکرول پس‌زمینه وقتی مودال بازه */
body.modal-open {
    overflow: hidden;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .modal-container {
        max-height: 95vh;
        border-radius: 1rem;
    }

    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .modal-prev {
        right: 0.5rem;
    }

    .modal-next {
        left: 0.5rem;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        top: 0.5rem;
        left: 0.5rem;
    }

    .modal-info {
        padding: 1rem 1.25rem 1.5rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-description {
        font-size: 0.9rem;
    }

    .modal-image {
        max-height: 50vh;
    }
}

/* .hero-section {
    background-image: 
        linear-gradient(rgba(13, 13, 13, 0.85), rgba(13, 13, 13, 0.95)),
        url('assets/img/header.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
} */

/* #bg-3d{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  display:block;
}
.navbar, main, footer{position:relative;z-index:1}
#hero,#about,#skills,#projects,#services,#resume,#contact{background:transparent !important}
#about,#projects,#resume{background:rgba(17,34,64,.55) !important}
.hero-overlay{background:linear-gradient(180deg,rgba(10,25,47,.55),rgba(10,25,47,.88)) !important} */



/* ==========================================================================
   Campaign Modal - Instagram Phone Mockup
   ========================================================================== */

/* ==========================================================================
   ۱. پس‌زمینه مودال (Overlay)
   ========================================================================== */

.campaign-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 10000;

    /* حالت مخفی */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.campaign-modal.active {
    opacity: 1;
    visibility: visible;
}

.campaign-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.campaign-modal.active .campaign-modal-content {
    transform: scale(1);
}

/* ==========================================================================
   ۲. دکمه بستن
   ========================================================================== */

.campaign-modal-close {
    position: absolute;
    top: -50px;
    left: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgb(4, 230, 238);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.campaign-modal-close:hover {
    background-color: #07bfdf;
    color: #0D0D0D;
    transform: rotate(90deg);
}

/* ==========================================================================
   ۳. قاب موبایل (Phone Frame)
   ========================================================================== */

.phone-frame {
    position: relative;
    width: 375px;
    height: 750px;
    background: linear-gradient(145deg, #1A1A1A 0%, #0D0D0D 100%);
    border-radius: 45px;
    padding: 12px;
    box-shadow:
        0 0 0 2px #2A2A2A,
        0 0 0 4px #1A1A1A,
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(212, 175, 55, 0.15);
}

/* نوچ بالای موبایل */
.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 28px;
    background-color: #000;
    border-radius: 0 0 20px 20px;
    z-index: 20;
}

.phone-notch::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 6px;
    background-color: #1A1A1A;
    border-radius: 3px;
}

/* دکمه‌های کناری موبایل */
.phone-btn {
    position: absolute;
    background-color: #2A2A2A;
    border-radius: 2px;
}

.phone-btn-volume-up {
    top: 80px;
    left: -3px;
    width: 3px;
    height: 35px;
}

.phone-btn-volume-down {
    top: 125px;
    left: -3px;
    width: 3px;
    height: 35px;
}

.phone-btn-power {
    top: 100px;
    right: -3px;
    width: 3px;
    height: 50px;
}

/* ==========================================================================
   ۴. صفحه موبایل (Phone Screen)
   ========================================================================== */

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    border-radius: 28px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* مخفی کردن اسکرول‌بار */
.phone-screen::-webkit-scrollbar {
    display: none;
}

.phone-screen {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   ۵. نوار وضعیت (Status Bar)
   ========================================================================== */

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 14px 4px;
    background-color: #FFFFFF;
    color: #000000;
    font-size: 0.65rem;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 15;
}

.status-icons {
    display: flex;
    gap: 0.3rem;
    font-size: 0.6rem;
}

/* ==========================================================================
   ۶. هدر اینستاگرام
   ========================================================================== */

.insta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #EFEFEF;
    /* position: sticky; ← حذف شد */
    /* top: 42px; ← حذف شد */
    /* z-index: 14; ← حذف شد */
}

.insta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #EFEFEF;
    /* بدون sticky */
}

.insta-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insta-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #08afec;
    padding: 1px;
    background: linear-gradient(45deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888);
}

.insta-username {
    font-size: 0.7rem;
    font-weight: 700;
    color: #000000;
}

.insta-location {
    font-size: 0.6rem;
    color: #737373;
}

.insta-follow-btn {
    background-color: #0095F6;
    color: #FFFFFF;
    border: none;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.insta-follow-btn:hover {
    background-color: #0077C8;
}

/* ==========================================================================
   ۷. تصویر پست
   ========================================================================== */

.insta-image-container {
     width: 100%;
    aspect-ratio: 1 / 1;        /* ← نسبت مربع */
    background-color: #FAFAFA;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.insta-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* ← پر کردن کادر */
    display: block;
    
}

/* ==========================================================================
   ۸. آیکون‌های تعامل
   ========================================================================== */

.insta-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px 4px;
    background-color: #FFFFFF;
}



.insta-actions-left,
.insta-actions-right {
    display: flex;
    gap: 0.75rem;
}

.insta-action-btn {
    background: none;
    border: none;
    font-size: 1rem;
    color: #000000;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.insta-action-btn:hover {
    transform: scale(1.15);
    color: #737373;
}

.insta-action-btn.liked {
    color: #ED4956;
}

.insta-action-btn.liked i {
    font-weight: 900;
}

/* ==========================================================================
   ۹. تعداد لایک
   ========================================================================== */

.insta-likes {
    padding: 0 8px 4px;
    font-size: 0.7rem;
    color: #000000;
}

.insta-likes strong {
    font-weight: 700;
}

/* ==========================================================================
   ۱۰. کپشن
   ========================================================================== */

.insta-caption {
    padding: 10px 12px 12px;
    font-family: 'Vazirmatn', sans-serif;
    flex-shrink: 0;
}

.insta-caption-username {
    font-size: 0.7rem;
    font-weight: 700;
    color: #000000;
}

.insta-caption p {
    font-size: 0.7rem;
    color: #262626;
    line-height: 1.5;
    margin-top: 3px;
    margin-bottom: 4px;
    white-space: pre-line;
}

.insta-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
}

.insta-hashtags span {
    color: #00376B;
    font-size: 0.65rem;
    font-weight: 500;
}

/* ==========================================================================
   ۱۱. تاریخ پست
   ========================================================================== */

.insta-date {
    padding: 0 8px 10px;
    font-size: 0.6rem;
    color: #8E8E8E;
}

/* ==========================================================================
   ۱۲. نوار پایین موبایل (Home Indicator)
   ========================================================================== */

.phone-home-indicator {
    width: 90px;
    height: 4px;
    background-color: #000000;
    border-radius: 2px;
    margin: 5px auto 3px;
}

/* ==========================================================================
   ۱۳. ناوبری پست‌ها
   ========================================================================== */

.campaign-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
    margin-top: 0.5rem;
}

.campaign-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: transparent;
    border: 2px solid #05d1f5;
    color: #fdfdff;
    border-radius: 0.5rem;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.campaign-nav-btn:hover {
    background-color: #09c0e9;
    color: #0D0D0D;
    transform: translateY(-2px);
}

.campaign-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.campaign-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 140px;
}

#campaign-post-counter {
    color: #FFFFFF;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
}

.campaign-day-badge {
    background-color: rgba(105, 55, 212, 0.15);
    border: 1px solid rgb(58, 55, 212);
    border-radius: 9999px;
    padding: 2px 10px;
}

#campaign-day-label {
    color: #0bcaf4;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ==========================================================================
   ۱۴. نقطه‌های ناوبری
   ========================================================================== */

.campaign-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    max-width: 500px;
    margin-top: 0.5rem;
}

.campaign-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(12, 19, 236, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.campaign-dot:hover {
    background-color: rgba(24, 137, 152, 0.6);
    transform: scale(1.2);
}

.campaign-dot.active {
    background-color: #0abfcb;
    width: 24px;
    border-radius: 9999px;
}

/* ==========================================================================
   ۱۵. جلوگیری از اسکرول پس‌زمینه
   ========================================================================== */

body.campaign-modal-open {
    overflow: hidden;
}

.campaign-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;      /* ← اضافه شد */
    align-items: center;
    justify-content: flex-start; /* ← تغییر: از center به flex-start */
    padding: 1rem;
    padding-top: 4rem;            /* ← فاصله از بالا */
    overflow-y: auto;             /* ← اسکرول در صورت نیاز */
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ==========================================================================
   ۱۶. Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .campaign-modal {
        padding: 0.5rem;
    }

    .campaign-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto 0;              /* ← اضافه شد: وسط‌چین عمودی */
    width: 100%;
    max-width: 500px;
}

    .phone-frame {
        position: relative;
        width: 280px;        /* ← از 340 به 280 */
        height: 550px;       /* ← از 650 به 550 */
        background: linear-gradient(145deg, #1A1A1A 0%, #0D0D0D 100%);
        border-radius: 35px;
        padding: 8px;
        box-shadow:
            0 0 0 2px #2A2A2A,
            0 0 0 4px #1A1A1A,
            0 30px 60px rgba(0, 0, 0, 0.6),
            0 0 80px rgba(212, 175, 55, 0.15);
    }

    .phone-screen {
        position: relative;
        width: 100%;
        height: 100%;
        background-color: #FFFFFF;
        border-radius: 35px;
        overflow-y: auto;      /* ← اسکرول عمودی */
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
    }

    .phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 18px;
    background-color: #000;
    border-radius: 0 0 15px 15px;
    z-index: 20;
}

.phone-notch::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 4px;
    background-color: #1A1A1A;
    border-radius: 2px;
}

    .campaign-modal-close {
    position: absolute;
    top: -50px;
    left: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

    .campaign-nav {
        gap: 0.75rem;
    }

    .campaign-nav-btn {
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
    }

    .campaign-nav-btn span {
        display: none;
    }

    .campaign-nav-btn i {
        font-size: 1rem;
    }

    .campaign-counter {
        min-width: 110px;
    }

    #campaign-post-counter {
        font-size: 0.85rem;
    }

    #campaign-day-label {
        font-size: 0.65rem;
    }

    .campaign-dots {
        gap: 0.3rem;
    }

    .campaign-dot {
        width: 6px;
        height: 6px;
    }

    .campaign-dot.active {
        width: 18px;
    }
}

@media (max-width: 400px) {
    .phone-frame {
        width: 270px;
        height: 540px;
        padding: 8px;
        border-radius: 30px;
    }

    .phone-screen {
        border-radius: 24px;
    }

    .phone-notch {
        width: 90px;
        height: 20px;
    }
}

/* ==========================================================================
   ۱۷. برای کاربرانی که انیمیشن نمی‌خواهند
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .campaign-modal,
    .campaign-modal-content,
    .campaign-modal-close,
    .campaign-nav-btn,
    .campaign-dot {
        transition: none !important;
    }
}

/* ==========================================
   🎨 بنر راه‌حل‌های آماده (نسخه A)
========================================== */
.solutions-banner {
  background: linear-gradient(135deg, #112240 0%, #0A192F 60%, #0A192F 100%);
  border-color: rgba(100, 255, 218, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(100, 255, 218, 0.05);
  transition: all 0.4s ease;
}
.solutions-banner:hover {
  border-color: rgba(100, 255, 218, 0.5);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(100, 255, 218, 0.1);
}

/* درخشش گوشه‌ها */
.banner-glow-1 {
  position: absolute;
  top: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(100, 255, 218, 0.15), transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}
.banner-glow-2 {
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(78, 168, 255, 0.12), transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

/* برچسب */
.banner-badge {
  color: #64FFDA;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.banner-title {
  color: #E6F1FF;
}
.banner-desc {
  color: #8892B0;
}

/* دکمه اصلی */
.banner-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #64FFDA;
  color: #0A192F;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.6rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
  text-decoration: none;
}
.banner-cta-primary:hover {
  background: #7CFFE0;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(100, 255, 218, 0.5);
}
.banner-cta-primary .fa-arrow-left {
  transition: transform 0.3s ease;
}
.banner-cta-primary:hover .fa-arrow-left {
  transform: translateX(-3px);
}

/* دکمه ثانویه */
.banner-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #64FFDA;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(100, 255, 218, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}
.banner-cta-secondary:hover {
  background: rgba(100, 255, 218, 0.1);
  border-color: #64FFDA;
  transform: translateY(-2px);
}

/* کارت‌های کوچک پیش‌نمایش */
.banner-mini-card {
  position: absolute;
  width: 130px;
  height: 150px;
  border-radius: 1rem;
  background: rgba(17, 34, 64, 0.9);
  border: 1px solid rgba(100, 255, 218, 0.15);
  backdrop-filter: blur(10px);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.banner-mini-back {
  transform: translateX(-40px) translateY(-15px) rotate(-10deg);
  opacity: 0.6;
  z-index: 1;
}
.banner-mini-mid {
  transform: translateX(-10px) translateY(5px) rotate(-3deg);
  opacity: 0.85;
  z-index: 2;
}
.banner-mini-front {
  transform: translateX(25px) translateY(15px) rotate(5deg);
  z-index: 3;
  border-color: rgba(100, 255, 218, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(100, 255, 218, 0.15);
}

/* هاور بنر - کارت‌ها به هم نزدیک‌تر می‌شوند */
.solutions-banner:hover .banner-mini-back {
  transform: translateX(-55px) translateY(-25px) rotate(-15deg);
}
.solutions-banner:hover .banner-mini-mid {
  transform: translateX(-15px) translateY(-5px) rotate(-5deg);
}
.solutions-banner:hover .banner-mini-front {
  transform: translateX(40px) translateY(20px) rotate(8deg);
}

.banner-mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: rgba(100, 255, 218, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.banner-mini-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #E6F1FF;
  margin-top: auto;
}

.banner-mini-tags {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.banner-mini-tags span {
  font-size: 0.6rem;
  background: rgba(100, 255, 218, 0.1);
  color: #64FFDA;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(100, 255, 218, 0.2);
}

/* ==========================================
   🎨 نسخه B - بنر مینیمال
========================================== */
.solutions-banner-minimal {
  background: rgba(17, 34, 64, 0.5);
  border-color: rgba(100, 255, 218, 0.2);
  text-decoration: none;
}
.solutions-banner-minimal:hover {
  background: rgba(17, 34, 64, 0.8);
  border-color: rgba(100, 255, 218, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(100, 255, 218, 0.08);
}

.banner-minimal-icon {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  background: rgba(100, 255, 218, 0.1);
  color: #64FFDA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}
.solutions-banner-minimal:hover .banner-minimal-icon {
  background: rgba(100, 255, 218, 0.2);
  transform: scale(1.08) rotate(-5deg);
}

/* ==========================================
   📱 ریسپانسیو
========================================== */
@media (max-width: 640px) {
  .banner-cta-primary, .banner-cta-secondary {
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.7rem 1.25rem;
  }
}

body.light-mode .solutions-banner {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F4F8 100%);
  border-color: rgba(13, 148, 136, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}
body.light-mode .solutions-banner:hover {
  border-color: rgba(13, 148, 136, 0.5);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12), 0 0 60px rgba(13, 148, 136, 0.08);
}
body.light-mode .banner-title { color: #0F172A; }
body.light-mode .banner-desc { color: #475569; }
body.light-mode .banner-badge {
  color: #0D9488;
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.3);
}
body.light-mode .banner-cta-primary {
  background: #0D9488;
  color: white;
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.3);
}
body.light-mode .banner-cta-primary:hover {
  background: #0F766E;
}
body.light-mode .banner-cta-secondary {
  color: #0D9488;
  border-color: rgba(13, 148, 136, 0.4);
}
body.light-mode .banner-cta-secondary:hover {
  background: rgba(13, 148, 136, 0.1);
  border-color: #0D9488;
}
body.light-mode .banner-mini-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(13, 148, 136, 0.15);
}
body.light-mode .banner-mini-front {
  border-color: rgba(13, 148, 136, 0.4);
}
body.light-mode .banner-mini-title { color: #0F172A; }
body.light-mode .banner-mini-tags span {
  background: rgba(13, 148, 136, 0.1);
  color: #0D9488;
  border-color: rgba(13, 148, 136, 0.2);
}
body.light-mode .banner-mini-icon { background: rgba(13, 148, 136, 0.08); }
body.light-mode .solutions-banner-minimal {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(13, 148, 136, 0.2);
}
body.light-mode .solutions-banner-minimal:hover {
  background: #FFFFFF;
  border-color: rgba(13, 148, 136, 0.5);
}
body.light-mode .banner-minimal-icon {
  background: rgba(13, 148, 136, 0.1);
  color: #0D9488;
}