
   body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #0b101a; 
    font-family: 'vazir', sans-serif;
    overflow: hidden; /* حذف کامل اسکرول */
    color: #fff;
    
    /* چیدمان عمودی */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1; /* قرار گرفتن روی پس‌زمینه */
}



  /* Loader Overlay */
  #loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
  }

  /* Progress Bar Container */
  .progress-container {
    width: 60%;
    max-width: 500px;
    height: 10px;
    background-color: rgba(79, 70, 229, 0.2);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
  }

  /* Moving Pulse */
  .pulse {
    position: absolute;
    width: 20px;
    height: 10px;
    background-color: #4f46e5;
    border-radius: 5px;
    animation: movePulse 1s linear infinite;
    left: 0;
  }

  @keyframes movePulse {
    0% { left: -20px; }
    100% { left: 100%; }
  }

  /* Progress Bar Fill (Optional smooth effect) */
  .progress-fill {
    width: 0%;
    height: 100%;
    background-color: #4f46e5;
    border-radius: 5px;
    transition: width 0.5s ease;

  }

  /* Loading Text */
  .loader-text {
    margin-top: 20px;
    color: #94a3b8;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: blink 1.2s infinite;
  }
  @keyframes blink {
    0%, 50%, 100% { opacity: 0.3; }
    25%, 75% { opacity: 1; }
  }


@font-face {
    font-family: 'vazir';
    src: url('Vazir-Bold.ttf');
}

/* =========================================
    پس‌زمینه شبکه عصبی (Canvas)
   ========================================= */
#networkCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* طبق خواسته شما: 0 */
    background: radial-gradient(circle at center, #1a2332 0%, #0b101a 100%);
}

/* =========================================
   هدر
   ========================================= */
header {
    display: flex;
    direction: row;
    align-items: center;
    width: 100%;
    padding: 15px 40px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

header h4 {
    color: #ffffff;
    margin: 0;
    font-size: 1.1rem;
    margin-right: 15px;
    font-family: "vazir";
}

header img {
    width: 50px;
}


/* =========================================
    کارت متن شیشه‌ای (بخش اصلی)
   ========================================= */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 800px;
    max-height: 50vh;
    padding: 25px;
    margin-top: -30px;
    
    /* استایل شیشه‌ای */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s ease-out;
    
    overflow-y: auto;
}

.container::-webkit-scrollbar {
    width: 5px;
}
.container::-webkit-scrollbar-thumb {
    background: rgba(255, 105, 25, 0.3);
    border-radius: 10px;
}

.container h1 {
    color: white;
    font-size: 2rem;
    margin: 0 0 15px 0;
    transform: translateZ(30px);
    text-shadow: 0 0 10px rgba(255, 105, 25, 0.8); /* این خط باعث افکت نئونی می‌شود */
}

.half-highlight {
    position: relative;
    z-index: 1;
    padding: 0 5px;
    color: #fff;
}

.half-highlight::before {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 40%;
    border-radius: 5px;
    background-color: #ff520e;
    z-index: -1;
}

.container p {
    color: #e0e0e0;
    font-weight: 400;
    font-size: 14px;
    text-align: justify;
    line-height: 1.6;
    margin: 0;
    transform: translateZ(10px);
    text-align: center;

}

.bold {
    color: #FF6919;
    font-weight: bold;
    font-size: 15px;
}

.gold {
    color: #FF6919;
    font-weight: 900;
    font-size: 15px;
    display: block;
    margin-top: 10px;
    text-align: center;
}

/* =========================================
    بخش تماس
   ========================================= */
.caller {
    display: flex;
    flex-direction: row;
    margin-top: -25px;
    justify-content: space-evenly;
    gap: 20px;
    position: relative;
    z-index: 10; /* زدن ایندکس بالا برای نمایش */
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
    flex-shrink: 0;
}

.caller h3 {
    color: white;
    margin: 0;
    align-self: center;
}

.caller button {
    border: 2px solid #FF6919;
    padding: 10px 40px;
    color: rgb(217, 176, 255);
    font-size: 20px;
    font-family: vazir;
    font-weight: bold;
    border-radius: 16px;
    outline: none;
    box-shadow: 
        0 0 25px 1px #ff520e,
        0 0 95px 16px #FF6919,
        0 0 1px 1px #FF6919;
    cursor: pointer;
    position: relative;
    background: linear-gradient(130deg, #c2410c 0%,  #FF6919 55%);
    transition: transform 0.3s;
}

.caller button:hover {
    transform: translateY(-3px);
}

.caller button::after {
    content: "";
    position: absolute;
    top: 120%;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #FF6919;
    filter: blur(30px);
    opacity: 0.7;
    transform: perspective(1.5em) rotateX(35deg) scale(1, 0.6);
}

/* =========================================
    دکمه بازگشت مگنتی
   ========================================= */
.backpage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    perspective: 500px;
    flex-shrink: 0;
}

.magnetic-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-family: 'vazir';
    font-weight: bold;
    font-size: 14px;
    transition: all 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.8s;
}

.magnetic-btn:hover::before {
    left: 100%;
}

.magnetic-btn:hover {
    background: rgba(255, 105, 25, 0.2);
    border-color: #FF6919;
    box-shadow: 0 0 20px rgba(255, 105, 25, 0.3);
    color: #fff;
}

.btn-icon {
    transition: transform 0.3s;
}

.magnetic-btn:hover .btn-icon {
    transform: translateX(-5px);
}

/* =========================================
   ریسپانسیو (موبایل)
   ========================================= */
@media (max-width: 768px) {
    header {
        padding: 10px 20px;
    }
    header img {
        width: 40px;
    }
    header h4 {
        font-size: 0.9rem;
    }
    
    .container {
        width: 95%;
        padding: 15px;
        max-height: 55vh;
    }
    
    .container h1 {
        font-size: 1.4rem;
    }
    
    .container p {
        font-size: 13px;
        text-align: center;
    }
    
    .caller {
        flex-direction: column;
        gap: 15px;
        margin-top: 10px;
        margin-bottom: 5px;
    }
    
    .backpage {
        margin-bottom: 15px;
    }
}