/* ==========================================================================
   متغیرهای سراسری (منطبق با تم اصلی سایت)
   ========================================================================== */

@font-face {
    font-family: 'Peyda';
    src: url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.eot');
    src: url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.woff2') format('woff2'),
    url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.woff') format('woff'),
    url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --main-font: 'Peyda', sans-serif;
    --accent-blue: #00f2fe;
    --text-light: #e2e8f0;
    --text-white: #ffffff;
    --text-muted: #a0aec0;
    --aquatic-deep-abyss: linear-gradient(135deg, #060730, #02122b, #05082f);

    --glass-hull-bg: linear-gradient(135deg, rgba(16, 43, 81, 0.65) 0%, rgba(7, 24, 48, 0.85) 100%);
    --sf-glass-bg: rgba(38, 44, 51, 0.25);
    --card-liquid-border: 1px solid rgba(255, 255, 255, 0.08);
    --premium-glow-border: rgba(0, 242, 254, 0.4);

    --neon-aqua-cyan: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --neon-blue-glow: 0 15px 35px rgba(0, 242, 254, 0.25);
    --grad-text-aquatic: linear-gradient(90deg, #bef8fb 0%, #00f2fe 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--main-font);
}

body {
    background: var(--aquatic-deep-abyss);
    color: var(--text-light);
    overflow-x: hidden;
}

/* ==========================================================================
   تنظیمات اسکرول نرم (Lenis)
   ========================================================================== */
html {
    scroll-behavior: initial;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* ==========================================================================
   انیمیشن حباب‌ها (ارث‌بری از تم اصلی)
   ========================================================================== */
.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -20px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2), inset 0 0 4px rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-110vh) scale(1.2);
        opacity: 0;
    }
}

.velog-main-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ==========================================================================
   دکمه بازگشت به صفحه اصلی (Glassmorphism Floating Back Button)
   ========================================================================== */
.back-home-btn {
    position: fixed;
    top: 25px;
    left: 25px;
    height: 50px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(4, 12, 26, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--card-liquid-border, 1px solid rgba(0, 242, 254, 0.15));
    border-radius: 30px;
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.back-home-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.back-home-btn span {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* حالت هاور دکمه */
.back-home-btn:hover {
    color: var(--accent-blue, #00f2fe);
    background: rgba(4, 12, 26, 0.85);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2), 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.back-home-btn:hover svg {
    transform: translateX(4px) scale(1.1);
    color: var(--accent-blue, #00f2fe);
}

/* ریسپانسیو در موبایل */
@media (max-width: 768px) {
    .back-home-btn {
        top: 15px;
        left: 15px;
        height: 42px;
        padding: 0 14px;
        gap: 6px;
    }

    .back-home-btn span {
        font-size: 11.5px;
    }

    .back-home-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ==========================================================================
   5. فیلترهای دسته‌بندی چسبان (Sticky Glass Menu)
   ========================================================================== */
.sticky-glass-menu {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    background: rgba(4, 12, 26, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--card-liquid-border);
    border-right: none;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s;
    z-index: 100;
}

.sticky-glass-menu:hover {
    width: 220px;
    background: rgba(4, 12, 26, 0.85);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.sticky-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.sticky-menu-list li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-muted);
    text-decoration: none;
    gap: 15px;
    transition: color 0.3s, background 0.3s;
    white-space: nowrap;
}

.sticky-menu-list li a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: color 0.3s, transform 0.3s;
}

.sticky-menu-list li a span {
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s 0.1s;
}

.sticky-glass-menu:hover li a span {
    opacity: 1;
}

.sticky-menu-list li a:hover {
    color: var(--accent-blue);
    background: rgba(0, 242, 254, 0.05);
}

.sticky-menu-list li a:hover svg {
    transform: scale(1.1);
}

/* عناوین سکشن‌ها مشترک */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.section-header.center {
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 15px;
}

.glow-wave-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-blue);
    animation: pulseGlow 2s infinite alternate;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ==========================================================================
   1. هدر سینمایی با افکت اسکرول-ویدیو (Desktop Standard)
   ========================================================================== */

.cinematic-hero-scroll-space {
    position: relative;
    height: 300vh;
}

.cinematic-hero {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate; /* ایجاد Stacking Context اختصاصی جهت جلوگیری از رفتن ویدیو زیر body */
}

.hero-video-bg,
.hero-scrub-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video-bg {
    object-fit: cover;
    z-index: 1;
}

.hero-scrub-canvas {
    display: none;
    z-index: 2;
}

.hero-scrub-canvas.is-active {
    display: block;
}

.cinematic-hero.scrub-mode .hero-video-bg {
    display: none;
}

.hero-dark-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to right, rgba(4, 12, 26, 0.95) 0%, rgba(4, 12, 26, 0.5) 50%, rgba(4, 12, 26, 0.2) 100%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 4;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
}

/* ==========================================================================
   طراحی پنل شیشه‌ای هیرو
   ========================================================================== */

.asymmetric-glass-panel {
    background: rgba(10, 20, 35, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 3px solid var(--accent-blue, #00f2fe);
    border-radius: 24px;
    padding: 55px 45px;
    max-width: 650px;
    text-align: right;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.asymmetric-glass-panel.is-visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.blog-badge {
    background: transparent;
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--accent-blue, #00f2fe);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.hero-article-title {
    font-size: clamp(30px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.4;
    background: linear-gradient(90deg, #ffffff 0%, #c4f5f8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-article-desc {
    font-size: 16px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin-bottom: 45px;
}

.btn-velog-read {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 35px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white, #fff);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-velog-read::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--neon-aqua-cyan, #00f2fe);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-velog-read:hover {
    border-color: transparent;
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.3);
    color: #040c1a;
    transform: translateY(-3px);
}

.btn-velog-read:hover::before {
    opacity: 1;
}

.btn-velog-read svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-velog-read:hover svg {
    transform: translateX(-5px);
}

.scroll-cue-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted, rgba(255, 255, 255, 0.6));
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.scroll-cue-hint svg {
    width: 18px;
    height: 18px;
    animation: scrollCueBounce 1.8s ease-in-out infinite;
}

.scroll-cue-hint.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes scrollCueBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}


/* ==========================================================================
   ریسپانسیو اختصاصی صفحات کوچک و موبایل (Mobile & Tablet Responsive)
   ========================================================================== */

@media (max-width: 992px) {
    /* ۱. لغو فضای ۳۰۰درصدی اسکرول در موبایل و تبدیل به هیروی استاندارد */
    .cinematic-hero-scroll-space {
        height: auto !important;
    }

    .cinematic-hero {
        position: relative !important;
        top: auto;
        left: auto;
        height: 100dvh;
        min-height: 580px;
        padding: 20px 0;
    }

    /* ۲. فعال‌سازی و نمایش اجباری ویدیوی پس‌زمینه و مخفی کردن کانواس اسکراب */
    .hero-video-bg {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1 !important;
    }

    .hero-scrub-canvas {
        display: none !important;
    }

    /* ۳. اورلی تیره شیب‌دار از پایین به بالا جهت خوانایی عالی متن روی ویدیو */
    .hero-dark-overlay {
        z-index: 3 !important;
        background: linear-gradient(
                to top,
                rgba(4, 12, 26, 0.95) 0%,
                rgba(4, 12, 26, 0.65) 50%,
                rgba(4, 12, 26, 0.4) 100%
        );
    }

    /* ۴. تنظیم جایگیری و ظاهر پنل شیشه‌ای در موبایل */
    .hero-content-wrapper {
        z-index: 4 !important;
        width: 100%;
        padding: 0 16px;
        justify-content: center;
        align-items: center;
    }

    .asymmetric-glass-panel {
        max-width: 100%;
        padding: 28px 20px;
        border-radius: 20px;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-top: 3px solid var(--accent-blue, #00f2fe);
        text-align: center;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .blog-badge {
        font-size: 11px;
        padding: 5px 14px;
        margin-bottom: 16px;
    }

    .hero-article-title {
        font-size: clamp(20px, 5.5vw, 28px);
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .hero-article-desc {
        font-size: 13.5px;
        line-height: 1.8;
        margin-bottom: 25px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .btn-velog-read {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 14px;
    }

    /* حذف هینت اسکرول غیرضروری در حالت بدون اسکراب موبایل */
    .scroll-cue-hint {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .asymmetric-glass-panel {
        padding: 22px 16px;
    }

    .hero-article-title {
        font-size: 19px;
    }
}

/* ==========================================================================
   2. گرید بنتو مقالات (Bento / Masonry Grid)
   ========================================================================== */
.bento-articles-section {
    width: 90%;
    max-width: 1300px;
    margin: 100px auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
}

.bento-small-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.bento-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: var(--card-liquid-border);
    background: var(--aquatic-deep-abyss);
    display: flex;
    align-items: flex-end;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.bento-large {
    min-height: 480px;
}

.bento-small {
    flex: 1;
    min-height: 225px;
}

.card-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s;
    filter: brightness(0.6) saturate(0.8);
    z-index: 1;
}

.card-glass-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(4, 12, 26, 0.95) 0%, transparent 100%);
    transition: transform 0.4s ease;
}

.category-tag {
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.bento-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 10px;
}

.bento-large .bento-title {
    font-size: 1.8rem;
}

.bento-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bento-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Hover Effects (The "Turning on the lights" feel) */
.bento-card:hover {
    border-color: var(--premium-glow-border);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.15);
    transform: translateY(-5px);
}

.bento-card:hover .card-bg-img {
    transform: scale(1.08);
    filter: brightness(0.9) saturate(1.1);
}

.bento-card:hover .card-glass-content {
    background: linear-gradient(to top, rgba(4, 12, 26, 1) 10%, transparent 100%);
}

/* ==========================================================================
   3. اسلایدر مقایسه قبل و بعد (Before/After)
   ========================================================================== */
.magic-build-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--card-liquid-border);
    border-bottom: 1px solid var(--card-liquid-border);
    padding: 100px 0;
    margin: 100px 0;
}

.ba-blog-showcase {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.ba-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: var(--neon-blue-glow);
    direction: ltr;
}

.ba-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ba-image {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-after {
    z-index: 1;
}

.ba-before {
    z-index: 2;
    clip-path: polygon(0 0, var(--pos) 0, var(--pos) 100%, 0 100%);
}

.ba-badge {
    position: absolute;
    bottom: 20px;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(4, 12, 26, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 5;
}

.badge-left {
    left: 20px;
    color: #a0aec0;
}

.badge-right {
    right: 20px;
    color: var(--accent-blue);
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    transform: translateX(-50%);
    width: 40px;
    z-index: 4;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ba-handle-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.ba-handle-btn {
    position: relative;
    width: 44px;
    height: 44px;
    background: rgba(4, 12, 26, 0.8);
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3px;
    color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

.ba-handle-btn svg {
    width: 14px;
    height: 14px;
}

.ba-range-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
    margin: 0;
}

.ba-blog-info {
    text-align: center;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.ba-project-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.ba-blog-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ==========================================================================
   4. معرفی تجهیزات: کاتالوگ شناور (Floating Tech Cards)
   ========================================================================== */
.floating-tech-section {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto 100px auto;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tech-card {
    background: var(--sf-glass-bg);
    border: var(--card-liquid-border);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: var(--accent-blue);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
    pointer-events: none;
}

.tech-img-wrapper {
    width: 180px;
    height: 180px;
    position: relative;
    z-index: 1;
}

.tech-item-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tech-item-img.round-fix {
    mix-blend-mode: multiply;
    filter: contrast(1.1);
}

.tech-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tech-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-white);
}

.tech-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.read-more-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-blue);
    text-decoration: none;
    margin-top: 10px;
}

.tech-card:hover {
    border-color: rgba(0, 242, 254, 0.3);
    transform: translateY(-8px);
}

.tech-card:hover::before {
    opacity: 0.15;
}

.tech-card:hover .tech-item-img {
    transform: translateY(-15px) scale(1.1);
    filter: drop-shadow(0 25px 20px rgba(0, 242, 254, 0.3));
}


/* ==========================================================================
   6. بخش آرشیو مقالات (Minimal Hover-Reveal List)
   ========================================================================== */
.journal-list-section {
    width: 90%;
    max-width: 1300px;
    margin: 100px auto 150px auto;
}

.journal-list-container {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--card-liquid-border);
}

.journal-list-item {
    display: grid;
    /* گرید سه‌ستونه: متادیتا (راست)، محتوا (وسط)، تصویر و فلش (چپ) */
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    padding: 45px 20px;
    border-bottom: 1px solid var(--card-liquid-border);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}

/* افکت نوری پس‌زمینه هنگام هاور */
.journal-list-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 242, 254, 0.05) 0%, transparent 80%);
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
    pointer-events: none;
}

.journal-list-item > * {
    position: relative;
    z-index: 1;
}

/* اعداد و تاریخ */
.jl-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jl-num {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-muted);
    font-family: monospace;
    transition: color 0.4s ease;
}

.jl-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

/* محتوا (عنوان و تگ‌ها) */
.jl-content {
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.jl-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-white);
    transition: all 0.4s ease;
}

.jl-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.jl-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

/* بخش بصری (عکس مخفی و فلش) */
.jl-visual {
    display: flex;
    align-items: center;
    gap: 25px;
}

.jl-img-wrapper {
    width: 0;
    /* عکس در حالت پیش‌فرض عرض ندارد */
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.2, 1);
}

.jl-img-wrapper img {
    width: 140px;
    /* عرض ثابت داخلی تا عکس موقع باز شدن مچاله نشود */
    height: 100%;
    object-fit: cover;
}

.jl-arrow {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.jl-arrow svg {
    width: 24px;
    height: 24px;
}

/* ================== HOVER EFFECTS ================== */
.journal-list-item:hover {
    border-bottom-color: rgba(0, 242, 254, 0.3);
}

.journal-list-item:hover::before {
    transform: translateX(0);
    /* نمایان شدن گرادیانت */
}

.journal-list-item:hover .jl-num {
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.journal-list-item:hover .jl-title {
    color: var(--accent-blue);
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
    transform: translateX(-5px);
}

.journal-list-item:hover .jl-tag {
    color: var(--accent-blue);
    border-color: rgba(0, 242, 254, 0.2);
    background: rgba(0, 242, 254, 0.05);
}

.journal-list-item:hover .jl-img-wrapper {
    width: 140px;
    /* باز شدن نرم عکس */
    opacity: 1;
}

.journal-list-item:hover .jl-arrow {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #040c1a;
    transform: rotate(45deg) scale(1.05);
    /* چرخش فلش به سمت بالا-چپ (جهت باز کردن لینک در فارسی) */
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.3);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
    .journal-list-item {
        grid-template-columns: 80px 1fr auto;
        padding: 35px 10px;
    }

    .jl-title {
        font-size: 20px;
    }

    .jl-img-wrapper {
        display: none;
        /* مخفی کردن عکس در تبلت و موبایل برای خلوت ماندن طرح */
    }
}

@media (max-width: 768px) {
    .journal-list-item {
        grid-template-columns: 1fr auto;
        gap: 20px;
        padding: 30px 5px;
    }

    .jl-meta {
        flex-direction: row;
        align-items: baseline;
        gap: 15px;
        grid-column: 1 / -1;
    }

    .jl-content {
        padding: 0;
        grid-column: 1 / 2;
    }

    .jl-title {
        font-size: 18px;
    }

    .jl-arrow {
        width: 45px;
        height: 45px;
    }
}

/* ==========================================================================
   7. فوتر مینیمال، مدرن و شیشه‌ای (طراحی اصلاح‌شده)
   ========================================================================== */
.minimal-glass-footer {
    position: relative;
    width: 100%;
    margin-top: 100px;
    padding: 80px 5% 40px;
    /* بک‌گراند تاریک‌تر در پایین برای ایجاد عمق */
    background: linear-gradient(to bottom, transparent, rgba(4, 12, 26, 0.8) 30%, #01060e);
    border-top: 1px solid rgba(0, 242, 254, 0.05);
    z-index: 10;
}

/* افکت نور تابشی در لبه بالای فوتر */
.minimal-glass-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    box-shadow: 0 0 25px 2px rgba(0, 242, 254, 0.4);
    opacity: 0.6;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto 40px auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-brand h3 {
    font-size: 22px;
    font-weight: 900;
    /* گرادیانت متالیک برای اسم برند */
    background: linear-gradient(90deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    gap: 10px;
}

/* استایل کپسولی برای لینک‌ها */
.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0);
    border: 1px solid transparent;
    transition: all 0.4s ease;
}

.footer-links a:hover {
    color: var(--accent-blue);
    background: rgba(0, 242, 254, 0.05);
    border-color: rgba(0, 242, 254, 0.15);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* دکمه پریمیوم بازگشت به بالا */
.back-to-top {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
    color: var(--accent-blue);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.back-to-top:hover {
    background: var(--accent-blue);
    color: #040c1a;
    border-color: var(--accent-blue);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.25);
    transform: translateY(-3px);
}

.back-to-top:hover svg {
    color: #040c1a;
    transform: translateY(-4px);
}

/* ================== RESPONSIVE (Footer) ================== */
@media (max-width: 768px) {
    .minimal-glass-footer {
        padding: 50px 5% 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 30px;
        text-align: center;
    }
}