/* ============================================================
   استایل‌های اختصاصی – سرور مجازی میکروتیک آلمان
   ============================================================ */

/* ============================================================
   بخش ۱: انیمیشن فوق‌حرفه‌ای با پرچم‌های تصویری
   ============================================================ */
.mikrotik-hero {
    background: linear-gradient(160deg, #f0f6ff 0%, #ffffff 40%, #f5f9ff 100%);
    padding: 2.5rem 0 2rem;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(26, 95, 180, 0.06);
    direction: rtl;
}

.mikrotik-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 10% 20%, rgba(26, 95, 180, 0.08) 0%, transparent 45%),
            radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.07) 0%, transparent 45%),
            radial-gradient(circle at 50% 50%, rgba(124, 77, 255, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 30% 70%, rgba(0, 200, 200, 0.04) 0%, transparent 40%),
            radial-gradient(circle at 70% 30%, rgba(255, 100, 100, 0.03) 0%, transparent 40%);
    animation: mikrotikBgShift 20s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes mikrotikBgShift {
    0% { transform: scale(1) rotate(0deg); }
    33% { transform: scale(1.05) rotate(2deg); }
    66% { transform: scale(1.1) rotate(-2deg); }
    100% { transform: scale(1.15) rotate(4deg); }
}

.mikrotik-hero__container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== هدر ===== */
.mikrotik-hero__header {
    text-align: center;
    margin-bottom: 0.2rem;
}

.mikrotik-hero__badge {
    display: inline-block;
    background: rgba(26, 95, 180, 0.08);
    color: #1a5fb4;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 1.6rem;
    border-radius: 30px;
    letter-spacing: 0.8px;
    border: 1px solid rgba(26, 95, 180, 0.12);
    backdrop-filter: blur(8px);
    animation: mikrotikBadgeGlow 3s ease-in-out infinite;
}

@keyframes mikrotikBadgeGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26, 95, 180, 0); }
    50% { box-shadow: 0 0 20px rgba(26, 95, 180, 0.08); }
}

.mikrotik-hero__title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0b1a2e;
    margin: 0.3rem 0 0.1rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.mikrotik-hero__title span {
    background: linear-gradient(135deg, #1a5fb4 0%, #7c4dff 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: mikrotikTitleShine 4s ease-in-out infinite;
}

@keyframes mikrotikTitleShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.mikrotik-hero__desc {
    color: #5a6a7e;
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0.2rem auto 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ===== صحنه انیمیشن ===== */
.mikrotik-hero__scene {
    position: relative;
    width: 100%;
    max-width: 860px;
    height: 310px;
    margin: 0.8rem auto 0;
    perspective: 1200px;
}

/* ===== نقاط شبکه (۲۰ گره) ===== */
.mikrotik-hero__node {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(26, 95, 180, 0.15), rgba(26, 95, 180, 0.02));
    border: 1.5px solid rgba(26, 95, 180, 0.06);
    animation: mikrotikNodeFloat 8s ease-in-out infinite alternate;
    backdrop-filter: blur(2px);
}

.mikrotik-hero__node .mikrotik-hero__dot {
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    background: radial-gradient(circle, #1a5fb4, rgba(26, 95, 180, 0.05));
    opacity: 0.5;
    animation: mikrotikNodePulse 3.5s ease-in-out infinite;
}

.mikrotik-hero__node:nth-child(1)  { width: 60px; height: 60px; top: 3%; left: 2%; animation-delay: 0s; }
.mikrotik-hero__node:nth-child(2)  { width: 44px; height: 44px; top: 1%; right: 8%; animation-delay: 0.5s; }
.mikrotik-hero__node:nth-child(3)  { width: 54px; height: 54px; bottom: 6%; left: 2%; animation-delay: 1s; }
.mikrotik-hero__node:nth-child(4)  { width: 38px; height: 38px; bottom: 2%; right: 5%; animation-delay: 1.5s; }
.mikrotik-hero__node:nth-child(5)  { width: 48px; height: 48px; top: 32%; left: 20%; animation-delay: 0.3s; }
.mikrotik-hero__node:nth-child(6)  { width: 32px; height: 32px; top: 25%; right: 16%; animation-delay: 1.2s; }
.mikrotik-hero__node:nth-child(7)  { width: 42px; height: 42px; top: 52%; left: 36%; animation-delay: 1.8s; }
.mikrotik-hero__node:nth-child(8)  { width: 28px; height: 28px; bottom: 22%; right: 26%; animation-delay: 0.7s; }
.mikrotik-hero__node:nth-child(9)  { width: 36px; height: 36px; top: 10%; left: 46%; animation-delay: 2.1s; }
.mikrotik-hero__node:nth-child(10) { width: 24px; height: 24px; top: 44%; right: 40%; animation-delay: 0.4s; }
.mikrotik-hero__node:nth-child(11) { width: 30px; height: 30px; bottom: 14%; left: 52%; animation-delay: 1.6s; }
.mikrotik-hero__node:nth-child(12) { width: 22px; height: 22px; top: 16%; right: 50%; animation-delay: 0.9s; }
.mikrotik-hero__node:nth-child(13) { width: 40px; height: 40px; top: 60%; left: 12%; animation-delay: 1.1s; }
.mikrotik-hero__node:nth-child(14) { width: 26px; height: 26px; top: 70%; right: 18%; animation-delay: 1.9s; }
.mikrotik-hero__node:nth-child(15) { width: 34px; height: 34px; top: 18%; left: 32%; animation-delay: 0.6s; }
.mikrotik-hero__node:nth-child(16) { width: 20px; height: 20px; top: 38%; right: 52%; animation-delay: 1.4s; }
.mikrotik-hero__node:nth-child(17) { width: 28px; height: 28px; bottom: 32%; left: 44%; animation-delay: 2.2s; }
.mikrotik-hero__node:nth-child(18) { width: 18px; height: 18px; top: 8%; right: 32%; animation-delay: 0.8s; }
.mikrotik-hero__node:nth-child(19) { width: 32px; height: 32px; bottom: 8%; left: 38%; animation-delay: 1.7s; }
.mikrotik-hero__node:nth-child(20) { width: 16px; height: 16px; top: 48%; left: 10%; animation-delay: 0.2s; }

.mikrotik-hero__node:nth-child(3) .mikrotik-hero__dot { background: radial-gradient(circle, #d4af37, rgba(212, 175, 55, 0.1)); }
.mikrotik-hero__node:nth-child(7) .mikrotik-hero__dot { background: radial-gradient(circle, #d4af37, rgba(212, 175, 55, 0.1)); }
.mikrotik-hero__node:nth-child(13) .mikrotik-hero__dot { background: radial-gradient(circle, #7c4dff, rgba(124, 77, 255, 0.1)); }
.mikrotik-hero__node:nth-child(17) .mikrotik-hero__dot { background: radial-gradient(circle, #00c8c8, rgba(0, 200, 200, 0.1)); }

@keyframes mikrotikNodeFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(14px, -22px) scale(1.08); }
}

@keyframes mikrotikNodePulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.4); }
}

/* ===== خطوط اتصال (۱۲ لینک) ===== */
.mikrotik-hero__link {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(26, 95, 180, 0.12), rgba(212, 175, 55, 0.2), rgba(124, 77, 255, 0.12), transparent);
    background-size: 400% 100%;
    animation: mikrotikLinkDraw 6s ease-in-out infinite, mikrotikLinkColor 10s ease-in-out infinite alternate;
    transform-origin: right center;
    border-radius: 3px;
    opacity: 0.4;
    box-shadow: 0 0 15px rgba(26, 95, 180, 0.03);
}

.mikrotik-hero__link:nth-child(21) { height: 3px; width: 180px; top: 14%; right: 16%; transform: rotate(-14deg); animation-delay: 0s; }
.mikrotik-hero__link:nth-child(22) { height: 2px; width: 140px; top: 42%; right: 28%; transform: rotate(10deg); animation-delay: 0.7s; }
.mikrotik-hero__link:nth-child(23) { height: 2.5px; width: 200px; top: 28%; left: 10%; transform: rotate(18deg); animation-delay: 1.4s; }
.mikrotik-hero__link:nth-child(24) { height: 1.5px; width: 120px; bottom: 16%; left: 16%; transform: rotate(-8deg); animation-delay: 2.1s; }
.mikrotik-hero__link:nth-child(25) { height: 3px; width: 160px; top: 4%; left: 30%; transform: rotate(30deg); animation-delay: 0.4s; }
.mikrotik-hero__link:nth-child(26) { height: 2px; width: 100px; bottom: 4%; right: 24%; transform: rotate(-20deg); animation-delay: 1.1s; }
.mikrotik-hero__link:nth-child(27) { height: 2.5px; width: 130px; top: 50%; left: 50%; transform: rotate(-4deg); animation-delay: 1.8s; }
.mikrotik-hero__link:nth-child(28) { height: 1.5px; width: 90px; top: 20%; right: 46%; transform: rotate(24deg); animation-delay: 0.5s; }
.mikrotik-hero__link:nth-child(29) { height: 2px; width: 150px; top: 60%; left: 18%; transform: rotate(8deg); animation-delay: 1.3s; }
.mikrotik-hero__link:nth-child(30) { height: 2.5px; width: 110px; top: 72%; right: 30%; transform: rotate(-12deg); animation-delay: 2s; }
.mikrotik-hero__link:nth-child(31) { height: 1.5px; width: 80px; top: 8%; left: 55%; transform: rotate(40deg); animation-delay: 0.9s; }
.mikrotik-hero__link:nth-child(32) { height: 3px; width: 170px; top: 36%; left: 60%; transform: rotate(-6deg); animation-delay: 1.6s; }

@keyframes mikrotikLinkDraw {
    0%, 100% { transform: scaleX(0.2); opacity: 0.1; }
    50% { transform: scaleX(1); opacity: 0.7; }
}

@keyframes mikrotikLinkColor {
    0% { background-position: 0% 0%; }
    100% { background-position: 400% 0%; }
}

/* ===== ستون‌های نورانی ===== */
.mikrotik-hero__light-pillar {
    position: absolute;
    bottom: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(to top, rgba(212, 175, 55, 0.2), transparent);
    animation: mikrotikPillarGrow 4s ease-in-out infinite alternate;
    z-index: 1;
}

.mikrotik-hero__light-pillar--2 {
    left: 25%;
    animation-delay: 0.8s;
    background: linear-gradient(to top, rgba(26, 95, 180, 0.15), transparent);
}
.mikrotik-hero__light-pillar--3 {
    right: 25%;
    animation-delay: 1.6s;
    background: linear-gradient(to top, rgba(124, 77, 255, 0.12), transparent);
}

@keyframes mikrotikPillarGrow {
    0% { height: 0%; opacity: 0; }
    50% { height: 80%; opacity: 1; }
    100% { height: 60%; opacity: 0.6; }
}

/* ============================================================
   پرچم‌های تصویری (با بهینه‌سازی سرعت)
   ============================================================ */
.mikrotik-hero__flags-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mikrotikFlagsFloat 6s ease-in-out infinite;
}

/* شش‌ضلعی‌های چرخان */
.mikrotik-hero__hex-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(212, 175, 55, 0.08);
    border-radius: 50%;
    animation: mikrotikHexRingSpin 15s linear infinite;
}

.mikrotik-hero__hex-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #d4af37, #b8962e);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    animation: mikrotikOrbPulse 2s ease-in-out infinite;
}

@keyframes mikrotikOrbPulse {
    0%, 100% { transform: translateX(-50%) scale(0.8); opacity: 0.5; }
    50% { transform: translateX(-50%) scale(1.3); opacity: 1; }
}

.mikrotik-hero__hex-ring--reverse {
    animation-direction: reverse;
    animation-duration: 20s;
    border-color: rgba(26, 95, 180, 0.06);
}

.mikrotik-hero__hex-ring--reverse::before {
    background: radial-gradient(circle, #1a5fb4, #0b1a2e);
    box-shadow: 0 0 30px rgba(26, 95, 180, 0.3);
}

.mikrotik-hero__hex-ring--slow {
    animation-duration: 35s;
    animation-direction: alternate;
    border-color: rgba(124, 77, 255, 0.05);
    width: 130%;
    height: 130%;
    top: -15%;
    left: -15%;
}

.mikrotik-hero__hex-ring--slow::before {
    background: radial-gradient(circle, #7c4dff, rgba(124, 77, 255, 0.2));
    box-shadow: 0 0 30px rgba(124, 77, 255, 0.2);
}

@keyframes mikrotikHexRingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== کانتینر پرچم‌ها ===== */
.mikrotik-hero__flag-container {
    position: relative;
    width: 120px;
    height: 85px;
    z-index: 2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 40px rgba(212, 175, 55, 0.05);
    animation: mikrotikFlagContainerPulse 4s ease-in-out infinite;
    transform-style: preserve-3d;
    background: #f0f0f0; /* fallback در حین لود */
}

@keyframes mikrotikFlagContainerPulse {
    0%, 100% { transform: scale(1) rotateY(0deg); }
    25% { transform: scale(1.02) rotateY(4deg); }
    75% { transform: scale(1.02) rotateY(-4deg); }
}

/* ===== هر پرچم ===== */
.mikrotik-hero__flag {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.8) rotateY(90deg);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.mikrotik-hero__flag.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
}

.mikrotik-hero__flag.exit {
    opacity: 0;
    transform: scale(0.8) rotateY(-90deg);
}

/* ===== تصویر پرچم (بهینه‌سازی شده) ===== */
.mikrotik-hero__flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    image-rendering: auto;
    /* جلوگیری از Flash of Unstyled Content */
    background: #f0f0f0;
}

/* ===== لیبل پرچم ===== */
.mikrotik-hero__flag-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 600;
    color: #0b1a2e;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.1rem 0.8rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s ease;
    letter-spacing: 0.3px;
    pointer-events: none;
}

.mikrotik-hero__flag.active .mikrotik-hero__flag-label {
    opacity: 1;
}

/* ===== حلقه‌های نورانی ===== */
.mikrotik-hero__glow-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.04);
    animation: mikrotikGlowRingExpand 5s ease-in-out infinite;
}

.mikrotik-hero__glow-ring:nth-child(4) {
    width: 160%;
    height: 160%;
    top: -30%;
    left: -30%;
    animation-delay: 0s;
    border-color: rgba(212, 175, 55, 0.04);
}

.mikrotik-hero__glow-ring--delay {
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    animation-delay: 1.5s;
    border-color: rgba(26, 95, 180, 0.04);
}

.mikrotik-hero__glow-ring--delay2 {
    width: 240%;
    height: 240%;
    top: -70%;
    left: -70%;
    animation-delay: 3s;
    border-color: rgba(124, 77, 255, 0.03);
}

@keyframes mikrotikGlowRingExpand {
    0%, 100% { transform: scale(0.6); opacity: 0.05; }
    50% { transform: scale(1.3); opacity: 0.25; }
}

@keyframes mikrotikFlagsFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-14px); }
}

/* ===== ذرات داده (۱۵ پکت) ===== */
.mikrotik-hero__packet {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #d4af37, #b8962e);
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
    opacity: 0;
    animation: mikrotikPacketMove 5.5s ease-in-out infinite;
    z-index: 5;
}

.mikrotik-hero__packet .mikrotik-hero__trail {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent);
    animation: mikrotikTrailPulse 1.5s ease-in-out infinite;
}

@keyframes mikrotikTrailPulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(2.5); opacity: 0; }
}

.mikrotik-hero__packet:nth-child(33) { top: 12%; right: 34%; animation-delay: 0s; }
.mikrotik-hero__packet:nth-child(34) { top: 44%; right: 40%; animation-delay: 0.7s; }
.mikrotik-hero__packet:nth-child(35) { top: 28%; left: 30%; animation-delay: 1.4s; }
.mikrotik-hero__packet:nth-child(36) { top: 64%; left: 38%; animation-delay: 2.1s; }
.mikrotik-hero__packet:nth-child(37) { top: 2%; left: 46%; animation-delay: 0.3s; }
.mikrotik-hero__packet:nth-child(38) { top: 38%; left: 54%; animation-delay: 1.1s; }
.mikrotik-hero__packet:nth-child(39) { top: 52%; right: 46%; animation-delay: 1.9s; }
.mikrotik-hero__packet:nth-child(40) { top: 18%; left: 16%; animation-delay: 0.6s; }
.mikrotik-hero__packet:nth-child(41) { top: 72%; right: 20%; animation-delay: 1.3s; }
.mikrotik-hero__packet:nth-child(42) { top: 8%; right: 54%; animation-delay: 2s; }
.mikrotik-hero__packet:nth-child(43) { top: 56%; left: 22%; animation-delay: 0.5s; }
.mikrotik-hero__packet:nth-child(44) { top: 30%; right: 56%; animation-delay: 1.2s; }
.mikrotik-hero__packet:nth-child(45) { top: 68%; left: 52%; animation-delay: 1.8s; }
.mikrotik-hero__packet:nth-child(46) { top: 22%; right: 20%; animation-delay: 0.9s; }
.mikrotik-hero__packet:nth-child(47) { top: 48%; left: 10%; animation-delay: 1.6s; }

.mikrotik-hero__packet:nth-child(33) { animation-name: mikrotikPacketMove1; }
.mikrotik-hero__packet:nth-child(34) { animation-name: mikrotikPacketMove2; }
.mikrotik-hero__packet:nth-child(35) { animation-name: mikrotikPacketMove3; }
.mikrotik-hero__packet:nth-child(36) { animation-name: mikrotikPacketMove4; }
.mikrotik-hero__packet:nth-child(37) { animation-name: mikrotikPacketMove5; }
.mikrotik-hero__packet:nth-child(38) { animation-name: mikrotikPacketMove1; }
.mikrotik-hero__packet:nth-child(39) { animation-name: mikrotikPacketMove2; }
.mikrotik-hero__packet:nth-child(40) { animation-name: mikrotikPacketMove3; }
.mikrotik-hero__packet:nth-child(41) { animation-name: mikrotikPacketMove4; }
.mikrotik-hero__packet:nth-child(42) { animation-name: mikrotikPacketMove5; }
.mikrotik-hero__packet:nth-child(43) { animation-name: mikrotikPacketMove1; }
.mikrotik-hero__packet:nth-child(44) { animation-name: mikrotikPacketMove2; }
.mikrotik-hero__packet:nth-child(45) { animation-name: mikrotikPacketMove3; }
.mikrotik-hero__packet:nth-child(46) { animation-name: mikrotikPacketMove4; }
.mikrotik-hero__packet:nth-child(47) { animation-name: mikrotikPacketMove5; }

@keyframes mikrotikPacketMove1 {
    0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
    15% { opacity: 1; transform: translate(16px, -26px) scale(1.2); }
    30% { opacity: 1; transform: translate(32px, -52px) scale(1); }
    60% { opacity: 1; transform: translate(64px, -104px) scale(0.8); }
    100% { opacity: 0; transform: translate(100px, -160px) scale(0.2); }
}

@keyframes mikrotikPacketMove2 {
    0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
    15% { opacity: 1; transform: translate(-14px, -22px) scale(1.2); }
    30% { opacity: 1; transform: translate(-28px, -44px) scale(1); }
    60% { opacity: 1; transform: translate(-56px, -88px) scale(0.8); }
    100% { opacity: 0; transform: translate(-90px, -140px) scale(0.2); }
}

@keyframes mikrotikPacketMove3 {
    0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
    15% { opacity: 1; transform: translate(8px, -32px) scale(1.2); }
    30% { opacity: 1; transform: translate(16px, -64px) scale(1); }
    60% { opacity: 1; transform: translate(32px, -128px) scale(0.8); }
    100% { opacity: 0; transform: translate(50px, -192px) scale(0.2); }
}

@keyframes mikrotikPacketMove4 {
    0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
    15% { opacity: 1; transform: translate(20px, -18px) scale(1.2); }
    30% { opacity: 1; transform: translate(40px, -36px) scale(1); }
    60% { opacity: 1; transform: translate(80px, -72px) scale(0.8); }
    100% { opacity: 0; transform: translate(120px, -110px) scale(0.2); }
}

@keyframes mikrotikPacketMove5 {
    0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
    15% { opacity: 1; transform: translate(-10px, -38px) scale(1.2); }
    30% { opacity: 1; transform: translate(-20px, -76px) scale(1); }
    60% { opacity: 1; transform: translate(-40px, -152px) scale(0.8); }
    100% { opacity: 0; transform: translate(-60px, -228px) scale(0.2); }
}

/* ===== نوار شیشه‌ای پایین ===== */
.mikrotik-hero__glassbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(90deg,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.12),
    rgba(255,255,255,0.02)
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.06);
    z-index: 1;
    pointer-events: none;
}

/* ============================================================
   بخش ۲: شش باکس واکنش‌گرا
   ============================================================ */
.mikrotik-features {
    background: #f8faff;
    padding: 3.5rem 0 3rem;
    direction: rtl;
}

.mikrotik-features__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.mikrotik-features__header {
    text-align: center;
    margin-bottom: 2.8rem;
}

.mikrotik-features__badge {
    display: inline-block;
    background: #e8f0fe;
    color: #1a5fb4;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 1.2rem;
    border-radius: 30px;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
    border: 1px solid #d2e3fc;
}

.mikrotik-features__title {
    font-size: 2rem;
    font-weight: 700;
    color: #0b1a2e;
    margin: 0;
}

.mikrotik-features__title span {
    color: #1a5fb4;
}

.mikrotik-features__desc {
    color: #5a6a7e;
    font-size: 1rem;
    max-width: 500px;
    margin: 0.4rem auto 0;
}

.mikrotik-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mikrotik-features__box {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.8rem 1.5rem 1.5rem;
    border: 1px solid #eef3f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
}

.mikrotik-features__box:hover {
    border-color: #d2e3fc;
    box-shadow: 0 8px 24px rgba(26, 95, 180, 0.05);
    transform: translateY(-3px);
}

.mikrotik-features__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.mikrotik-features__icon--blue { background: #e8f0fe; color: #1a5fb4; }
.mikrotik-features__icon--gold { background: #fef5e6; color: #b8962e; }
.mikrotik-features__icon--green { background: #e6f7f0; color: #1f8b6b; }
.mikrotik-features__icon--purple { background: #f0e8fe; color: #7c4dff; }
.mikrotik-features__icon--red { background: #fde8e8; color: #d64f4f; }
.mikrotik-features__icon--teal { background: #e6f5f7; color: #1a8a8a; }

.mikrotik-features__box-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0b1a2e;
    margin: 0 0 0.5rem 0;
}

.mikrotik-features__box-desc {
    font-size: 0.9rem;
    color: #4a5a6e;
    line-height: 1.7;
    margin: 0 0 0.8rem 0;
}

.mikrotik-features__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mikrotik-features__list li {
    font-size: 0.85rem;
    color: #3a4a5e;
    padding: 0.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mikrotik-features__list li::before {
    content: '✓';
    color: #1a5fb4;
    font-weight: 700;
    font-size: 0.8rem;
}

/* ============================================================
   واکنش‌گرایی
   ============================================================ */
@media (max-width: 992px) {
    .mikrotik-hero { padding: 2rem 0 1.5rem; min-height: 420px; }
    .mikrotik-hero__title { font-size: 2.2rem; }
    .mikrotik-hero__scene { height: 260px; }
    .mikrotik-hero__flags-wrapper { width: 130px; height: 130px; }
    .mikrotik-hero__flag-container { width: 100px; height: 70px; }

    .mikrotik-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mikrotik-hero__node:nth-child(1)  { width: 48px; height: 48px; }
    .mikrotik-hero__node:nth-child(2)  { width: 36px; height: 36px; }
    .mikrotik-hero__node:nth-child(3)  { width: 42px; height: 42px; }
    .mikrotik-hero__node:nth-child(4)  { width: 30px; height: 30px; }
    .mikrotik-hero__node:nth-child(5)  { width: 38px; height: 38px; }
    .mikrotik-hero__node:nth-child(6)  { width: 28px; height: 28px; }
    .mikrotik-hero__node:nth-child(7)  { width: 34px; height: 34px; }
    .mikrotik-hero__node:nth-child(8)  { width: 24px; height: 24px; }
    .mikrotik-hero__node:nth-child(9)  { width: 30px; height: 30px; }
    .mikrotik-hero__node:nth-child(10) { width: 20px; height: 20px; }
    .mikrotik-hero__node:nth-child(11) { width: 26px; height: 26px; }
    .mikrotik-hero__node:nth-child(12) { width: 18px; height: 18px; }
    .mikrotik-hero__node:nth-child(13) { width: 32px; height: 32px; }
    .mikrotik-hero__node:nth-child(14) { width: 22px; height: 22px; }
    .mikrotik-hero__node:nth-child(15) { width: 28px; height: 28px; }
    .mikrotik-hero__node:nth-child(16) { width: 16px; height: 16px; }
    .mikrotik-hero__node:nth-child(17) { width: 24px; height: 24px; }
    .mikrotik-hero__node:nth-child(18) { width: 14px; height: 14px; }
    .mikrotik-hero__node:nth-child(19) { width: 26px; height: 26px; }
    .mikrotik-hero__node:nth-child(20) { width: 12px; height: 12px; }

    .mikrotik-hero__link:nth-child(21) { width: 140px; }
    .mikrotik-hero__link:nth-child(22) { width: 110px; }
    .mikrotik-hero__link:nth-child(23) { width: 160px; }
    .mikrotik-hero__link:nth-child(24) { width: 90px; }
    .mikrotik-hero__link:nth-child(25) { width: 130px; }
    .mikrotik-hero__link:nth-child(26) { width: 80px; }
    .mikrotik-hero__link:nth-child(27) { width: 100px; }
    .mikrotik-hero__link:nth-child(28) { width: 70px; }
    .mikrotik-hero__link:nth-child(29) { width: 120px; }
    .mikrotik-hero__link:nth-child(30) { width: 85px; }
    .mikrotik-hero__link:nth-child(31) { width: 65px; }
    .mikrotik-hero__link:nth-child(32) { width: 135px; }
}

@media (max-width: 576px) {
    .mikrotik-hero { padding: 1.5rem 0 1rem; min-height: 360px; }
    .mikrotik-hero__title { font-size: 1.7rem; }
    .mikrotik-hero__desc { font-size: 0.9rem; }
    .mikrotik-hero__scene { height: 200px; max-width: 100%; }
    .mikrotik-hero__flags-wrapper { width: 100px; height: 100px; }
    .mikrotik-hero__flag-container { width: 78px; height: 55px; }
    .mikrotik-hero__flag-label { font-size: 0.5rem; bottom: -18px; padding: 0.05rem 0.5rem; }
    .mikrotik-hero__glow-ring:nth-child(4) { width: 180%; height: 180%; top: -40%; left: -40%; }
    .mikrotik-hero__glow-ring--delay { width: 220%; height: 220%; top: -60%; left: -60%; }
    .mikrotik-hero__glow-ring--delay2 { width: 260%; height: 260%; top: -80%; left: -80%; }

    .mikrotik-features__grid {
        grid-template-columns: 1fr;
    }
    .mikrotik-features__title {
        font-size: 1.6rem;
    }
    .mikrotik-features__box {
        padding: 1.4rem 1.2rem;
    }

    .mikrotik-hero__node:nth-child(1)  { width: 34px; height: 34px; top: 3%; left: 1%; }
    .mikrotik-hero__node:nth-child(2)  { width: 26px; height: 26px; top: 1%; right: 5%; }
    .mikrotik-hero__node:nth-child(3)  { width: 30px; height: 30px; bottom: 5%; left: 2%; }
    .mikrotik-hero__node:nth-child(4)  { width: 22px; height: 22px; bottom: 1%; right: 4%; }
    .mikrotik-hero__node:nth-child(5)  { width: 28px; height: 28px; top: 30%; left: 18%; }
    .mikrotik-hero__node:nth-child(6)  { width: 20px; height: 20px; top: 24%; right: 14%; }
    .mikrotik-hero__node:nth-child(7)  { width: 26px; height: 26px; top: 48%; left: 34%; }
    .mikrotik-hero__node:nth-child(8)  { width: 18px; height: 18px; bottom: 20%; right: 24%; }
    .mikrotik-hero__node:nth-child(9)  { width: 22px; height: 22px; top: 8%; left: 44%; }
    .mikrotik-hero__node:nth-child(10) { width: 16px; height: 16px; top: 42%; right: 38%; }
    .mikrotik-hero__node:nth-child(11) { width: 20px; height: 20px; bottom: 12%; left: 50%; }
    .mikrotik-hero__node:nth-child(12) { width: 14px; height: 14px; top: 14%; right: 48%; }
    .mikrotik-hero__node:nth-child(13) { width: 24px; height: 24px; top: 58%; left: 10%; }
    .mikrotik-hero__node:nth-child(14) { width: 18px; height: 18px; top: 68%; right: 16%; }
    .mikrotik-hero__node:nth-child(15) { width: 22px; height: 22px; top: 16%; left: 30%; }
    .mikrotik-hero__node:nth-child(16) { width: 12px; height: 12px; top: 36%; right: 50%; }
    .mikrotik-hero__node:nth-child(17) { width: 18px; height: 18px; bottom: 30%; left: 42%; }
    .mikrotik-hero__node:nth-child(18) { width: 10px; height: 10px; top: 6%; right: 30%; }
    .mikrotik-hero__node:nth-child(19) { width: 20px; height: 20px; bottom: 6%; left: 36%; }
    .mikrotik-hero__node:nth-child(20) { width: 10px; height: 10px; top: 46%; left: 8%; }

    .mikrotik-hero__link:nth-child(21) { width: 70px; top: 12%; right: 12%; }
    .mikrotik-hero__link:nth-child(22) { width: 55px; top: 40%; right: 26%; }
    .mikrotik-hero__link:nth-child(23) { width: 85px; top: 26%; left: 8%; }
    .mikrotik-hero__link:nth-child(24) { width: 45px; bottom: 14%; left: 14%; }
    .mikrotik-hero__link:nth-child(25) { width: 65px; top: 2%; left: 28%; }
    .mikrotik-hero__link:nth-child(26) { width: 40px; bottom: 2%; right: 22%; }
    .mikrotik-hero__link:nth-child(27) { width: 50px; top: 48%; left: 48%; }
    .mikrotik-hero__link:nth-child(28) { width: 35px; top: 18%; right: 44%; }
    .mikrotik-hero__link:nth-child(29) { width: 60px; top: 58%; left: 16%; }
    .mikrotik-hero__link:nth-child(30) { width: 42px; top: 70%; right: 28%; }
    .mikrotik-hero__link:nth-child(31) { width: 32px; top: 6%; left: 52%; }
    .mikrotik-hero__link:nth-child(32) { width: 68px; top: 34%; left: 58%; }

    .mikrotik-hero__packet { width: 4px; height: 4px; }
    .mikrotik-hero__glassbar { height: 20px; }
}

@media (max-width: 400px) {
    .mikrotik-hero__title { font-size: 1.3rem; }
    .mikrotik-hero__scene { height: 170px; }
    .mikrotik-hero__flags-wrapper { width: 80px; height: 80px; }
    .mikrotik-hero__flag-container { width: 62px; height: 44px; }
    .mikrotik-hero__flag-label { font-size: 0.4rem; bottom: -15px; padding: 0.02rem 0.4rem; }
    .mikrotik-hero__hex-ring--slow { width: 150%; height: 150%; top: -25%; left: -25%; }

    .mikrotik-hero__node:nth-child(1)  { width: 24px; height: 24px; }
    .mikrotik-hero__node:nth-child(2)  { width: 18px; height: 18px; }
    .mikrotik-hero__node:nth-child(3)  { width: 22px; height: 22px; }
    .mikrotik-hero__node:nth-child(4)  { width: 16px; height: 16px; }
    .mikrotik-hero__node:nth-child(5)  { width: 20px; height: 20px; }
    .mikrotik-hero__node:nth-child(6)  { width: 14px; height: 14px; }
    .mikrotik-hero__node:nth-child(7)  { width: 18px; height: 18px; }
    .mikrotik-hero__node:nth-child(8)  { width: 12px; height: 12px; }
    .mikrotik-hero__node:nth-child(9)  { width: 16px; height: 16px; }
    .mikrotik-hero__node:nth-child(10) { width: 10px; height: 10px; }
    .mikrotik-hero__node:nth-child(11) { width: 14px; height: 14px; }
    .mikrotik-hero__node:nth-child(12) { width: 10px; height: 10px; }
    .mikrotik-hero__node:nth-child(13) { width: 18px; height: 18px; }
    .mikrotik-hero__node:nth-child(14) { width: 12px; height: 12px; }
    .mikrotik-hero__node:nth-child(15) { width: 16px; height: 16px; }
    .mikrotik-hero__node:nth-child(16) { width: 8px; height: 8px; }
    .mikrotik-hero__node:nth-child(17) { width: 14px; height: 14px; }
    .mikrotik-hero__node:nth-child(18) { width: 8px; height: 8px; }
    .mikrotik-hero__node:nth-child(19) { width: 14px; height: 14px; }
    .mikrotik-hero__node:nth-child(20) { width: 8px; height: 8px; }

    .mikrotik-hero__link:nth-child(21) { width: 45px; }
    .mikrotik-hero__link:nth-child(22) { width: 35px; }
    .mikrotik-hero__link:nth-child(23) { width: 55px; }
    .mikrotik-hero__link:nth-child(24) { width: 30px; }
    .mikrotik-hero__link:nth-child(25) { width: 40px; }
    .mikrotik-hero__link:nth-child(26) { width: 25px; }
    .mikrotik-hero__link:nth-child(27) { width: 35px; }
    .mikrotik-hero__link:nth-child(28) { width: 22px; }
    .mikrotik-hero__link:nth-child(29) { width: 38px; }
    .mikrotik-hero__link:nth-child(30) { width: 28px; }
    .mikrotik-hero__link:nth-child(31) { width: 20px; }
    .mikrotik-hero__link:nth-child(32) { width: 42px; }
}
