   /* تنظیمات پایه برای تمام صفحه */
   body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #0b101a; 
    font-family: vazir;
    font-size: bold;
    overflow: hidden; 
    background-image: url("s1.png");
    animation: fall 2s linear infinite;
    margin-top: -20px;
    background-image: none !important;
    animation: none !important;

}

/* تنظیمات بوم نقاشی برای برف */
#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* قرار گرفتن در پشت تمام محتوا */
    background: linear-gradient(to bottom, #050911, #0b101a); /* گرادینت شب زمستانی */
    pointer-events: none; /* کلیک روی آن کار نکند */
}
#loading-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #0b1120; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    flex-direction: column;
    transition: opacity 0.1s ease-out, visibility 0.1s;
    
    /* حیاتی: اگر JS کار نکرد، این خط بعد از 4 ثانیه لودینگ را حذف میکند */
    animation: forceHideLoader 0s linear 1.5s forwards;
}

@keyframes forceHideLoader { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.loader-circle {
    width: 100px; height: 100px; border-radius: 50%; background: #0f172a;
    display: flex; justify-content: center; align-items: center; position: relative;
    box-shadow: 0 0 30px rgba(255, 105, 25, 0.2); animation: pulse-glow 2s infinite;
}
.loader-logo { width: 65%; height: 65%; object-fit: contain; animation: breathe 2s infinite ease-in-out; }
.loader-text { margin-top: 20px; font-family: monospace; color: #FF6919; font-size: 14px; letter-spacing: 1px; font-weight: bold; opacity: 0.9; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 20px rgba(255, 105, 25, 0.2); border: 2px solid rgba(255, 105, 25, 0.3); } 50% { box-shadow: 0 0 50px rgba(255, 105, 25, 0.6); border: 2px solid rgba(255, 105, 25, 0.8); } }
@font-face {
    font-family: 'vazir';
    src: url('Vazir-Bold.ttf');
}

/* کانتینر اصلی برای چیدمان عمودی */
.container {
    display: flex;
    flex-direction: column; /* چیدمان عمودی: عکس بالا، متن پایین */
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: -20px;
}


.firsttitle{
    color: #ffffff;
    font-family: vazir;
    padding-top: 5%;
    font-weight: 900;
    font-size: 38px;
    background: linear-gradient(
        to right, 
        #FF6919, /* نارنجی تیره */
        white  /* سفید */
            );
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
            
            /* انیمیشن برای درخشش */
    animation: gol 3s linear infinite;
    z-index: 1;
}
@keyframes gol {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}
a{
    color: #ffffff;
    text-decoration: none;
    font-family: vazir;
}
a::after{
    color: #ffffff;
    text-decoration: none;
}


/* دکمه اینترنت */

.btn-net {
    width: 100%; padding: 15px 80px 15px 80px; margin-top: 30px;
    background: linear-gradient(50deg, #c2410c 0%,  #FF6919 40%);
    color: white; border: none; border-radius: 9px; font-size: 0.95rem; font-weight: 700; 
    cursor: pointer; position: relative; overflow: hidden;
    transition: 0.3s; box-shadow: 0 8px 12px rgba(255, 105, 25, 0.3);
    display: flex; justify-content: center; align-items: center; gap: 10px;
    font-family: vazir;
}

.btn-net span{
    font-size: 18px;
}
.btn-net:hover { transform: translateY(-2px); box-shadow: 0 1px 20px rgba(255, 105, 25, 0.5); }
.btn-net::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg); animation: shine 4s infinite;
}
@keyframes shine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }
.btn-net.loading { background: #334155; cursor: wait; pointer-events: none; }
.btn-net.loading::after { display: none; }
.spinner { width: 16px; height: 16px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; display: none; }
.btn-net.loading .spinner { display: block; }
.btn-net.loading span { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* انیمیشن طبیعی بارش */
@keyframes fall {
    0% { background-position: 0px 0px; }
    100% { background-position: 500px 1000px; }
}

/* انیمیشن چشمک‌زن نقاط متن */
.loader span {
    animation: blink 1.5s infinite;
    margin: 0 2px;
}
.loader span:nth-child(2) { animation-delay: 0.2s; }
.loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* باکس وسط */
.ctnall{
    display: flex;
    flex-direction: row; /* چیدمان عمودی: عکس بالا، متن پایین */
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-top: 7px;
    margin-bottom: 10px;
    gap: 10%;
    

}
.resimg.logo{
    width: 180px;
    margin-top: 25px;
    margin-bottom: 25px;
    margin-left: 20px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        20px 20px 60px #05080d, 
        -20px -20px 60px #111829;
        border-radius: 50%; 
    padding: 15px; 
    background: rgba(11, 16, 26, 0.6);
    border: 1px solid rgba(255, 105, 25, 0.1);
    animation: LogoPulse 4s infinite ease-in-out;
    z-index: 10;
    position: relative;
    
}

.resimg.logo::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255, 105, 25, 0.3); /* رنگ نارنجی برند */
    box-shadow: 0 0 20px rgba(255, 105, 25, 0.2);
    z-index: -1;
    animation: RingPulse 3s infinite linear;
}

@keyframes LogoPulse {
    0% {
        transform: scale(1);
        box-shadow: 
            20px 20px 60px #05080d, 
            -20px -20px 60px #111829,
            0 0 15px rgba(255, 105, 25, 0.1); /* نور ملایم */
    }
    50% {
        transform: scale(1.05); /* کمی بزرگتر شدن */
        box-shadow: 
            20px 20px 60px #05080d, 
            -20px -20px 60px #111829,
            0 0 35px rgba(255, 105, 25, 0.4); /* نور بیشتر */
        border-color: rgba(255, 105, 25, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 
            20px 20px 60px #05080d, 
            -20px -20px 60px #111829,
            0 0 15px rgba(255, 105, 25, 0.1);
    }
}
@keyframes RingPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
        border-color: rgba(255, 105, 25, 0.3);
    }
    50% {
        transform: scale(1.05);
        opacity: 0.4;
        border-color: rgba(255, 105, 25, 0.1);
    }
    100% {
        transform: scale(0.95);
        opacity: 0.8;
        border-color: rgba(255, 105, 25, 0.3);
    }
}
.resimg.logo:hover {
    transform: scale(1.1) rotate(5deg); /* بزرگتر شدن و کمی چرخش */
    box-shadow: 
        20px 20px 60px #05080d, 
        -20px -20px 60px #111829,
        0 0 50px rgba(255, 105, 25, 0.6); /* درخشش شدید */
    cursor: pointer;
}
/* باکس چپ */

.ctnleft{
    display: flex;
    flex-direction: column;
}

/* دکمه اینترنت */

.btn-center {
    width: 100%; padding: 15px 80px 15px 80px; margin-top: 40px;
    background: linear-gradient(135deg, #FF6919 0%, #c2410c 100%);
    color: white; border: none; border-radius: 6px; font-size: 0.95rem; font-weight: 700; 
    cursor: pointer; position: relative; overflow: hidden;
    transition: 0.3s; box-shadow: 0 8px 20px rgba(255, 105, 25, 0.3);
    display: flex; justify-content: center; align-items: center; gap: 10px;
    font-family: vazir;

}
.btn-center span{
    font-size: 17px;
}
.btn-center:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(255, 105, 25, 0.5); }
.btn-center::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg); animation: shine 4s infinite;
}
@keyframes shine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }
.btn-center.loading { background: #334155; cursor: wait; pointer-events: none; }
.btn-center.loading::after { display: none; }
.spinner { width: 16px; height: 16px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; display: none; }
.btn-center.loading .spinner { display: block; }
.btn-center.loading span { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* انیمیشن طبیعی بارش */
@keyframes fall {
    0% { background-position: 0px 0px; }
    100% { background-position: 500px 1000px; }
}

/* انیمیشن چشمک‌زن نقاط متن */
.loader span {
    animation: blink 1.5s infinite;
    margin: 0 2px;
}
.loader span:nth-child(2) { animation-delay: 0.2s; }
.loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}
/* باکس راست */

.ctnright {
    display: flex;
    flex-direction: column;
}

.respimg{
    display: none;
}

.respimg img{
    width: 15%;
}



/* =========================================
   بخش ریسپانسیو (Responsive)
   ========================================= */

/* برای صفحات کوچکتر از 768 پیکسل (گوشی‌ها و تبلت‌های عمودی) */
@media (max-width: 768px) {

    .body{
        justify-content: center;
        align-items: center;
        margin-top: 10%;
    }
    
    /* تغییر چیدمان کلی کانتینرها به ستونی */
    .container, .ctnall {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0 10px; /* کمی فاصله از لبه‌های صفحه */
        box-sizing: border-box;
    }

    /* مخفی کردن لوگوی وسط طبق درخواست شما */
    .resimg.logo {
        display: none !important;
    }

    /* تنظیمات دکمه‌های وسط */
    .btn-center {
        width: 100%; /* دکمه تمام عرض کانتینر خود را می‌گیرد */
        padding: 15px 20px; /* کاهش پدینگ افقی برای متن‌های طولانی */
        margin-top: 10px; /* فاصله بین دکمه‌ها */
        font-size: 0.9rem; /* کمی کوچک کردن فونت اگر نیاز بود */
        justify-content: center; /* وسط چین کردن محتوا */
    }

    /* تنظیمات دکمه‌های بالا و پایین (اینترنت و ابری) */
    .btn-net , .btn-cloud {
        width: 100%;
        padding: 15px 75px;
        margin-top: 25px;
        justify-content: center;
    }

    /* تنظیم عنوان اصلی */
    .firsttitle {
        font-size: 28px; /* سایز فونت مناسب برای موبایل */
        margin-bottom: 10px;
        padding-top: 20px;
    }

    /* تنظیم موقعیت آیکون‌ها در دکمه‌ها برای موبایل */
    .net-icon, .center-icon {
        display: none;
        position: absolute; /* تغییر از absolute به relative برای جلوگیری از بهم ریختگی */
        right: auto;
        top: -30px;
        width: 24px;
        height: 60px;
        margin-left: 50px; /* فاصله آیکون از متن */
        display: inline-flex;
    }
    /* تنظیم باکس‌های چپ و راست */
    .ctnleft, .ctnright {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
}

/* برای صفحات خیلی کوچک (مثل آیفون 5 و قدیمی‌تر) */
@media (max-width: 320px) {
    .body{
        justify-content: center;
        align-items: center;
        margin-top: 10%;
    }
    .firsttitle {
        font-size: 24px;
    }
    .btn-net, .btn-center, .btn-cloud {
        font-size: 0.8rem;
        padding: 12px 10px;
    }
    .net-icon, .center-icon {
        display: none;
}
}



/* دکمه اختصاصی فضای ابری */


.btn-cloud {
    width: 100%; padding: 15px 80px 15px 80px; margin-top: 40px;
    background: linear-gradient(135deg, #FF6919 0%, #c2410c 100%);
    color: white; border: none; border-radius: 6px; font-size: 0.95rem; font-weight: 700; 
    cursor: pointer; position: relative; overflow: hidden;
    box-shadow: 0 8px 20px rgba(255, 105, 25, 0.3);
    display: inline-block; justify-content: center; align-items: center; gap: 10px;
    font-family: vazir; font-weight: 600; border: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);

}
.btn-cloud span{
    font-size: 17px;
}
.btn-cloud:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(0,0,0,0.25); }
.btn-cloud .cloud{
    position: absolute;
    top: 25px;
    left: -75px;
    width: 80px;
    height: 40px;
    background: #ffffff ;
    border-radius: 60px 60px 60px 60px;
    box-shadow: 20px -10px 0 0 #ffffff,
    40px 0 0 0 #ffffff;
    opacity: 0.9;
    transition:  transform 0.3s;
}
.btn-cloud:hover .cloud{
    transform: translateX(5px) translateY(-5px);
}
.btn-cloud::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg); animation: shine 4s infinite;
}
.btn-cloud:hover .center-icon {
    animation: centerfloat 1.8s ease-in-out infinite;
}
@keyframes centerfloat {
    0%{
        transform: translateY(0) rotate(0);
    }
    50%{
        transform: translateY(-4px) rotate(-6deg);
    }
    100%{
        transform: translateY(0) rotate(0);
    }
}

@keyframes cloud-move {
    0%{
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(15px, 8px) scale(1.08);
    }
    100%{
        transform: translate(0, 0) scale(1);
    }
}


/* انیمیشن طبیعی بارش */
@keyframes fall {
    0% { background-position: 0px 0px; }
    100% { background-position: 500px 1000px; }
}

/* انیمیشن چشمک‌زن نقاط متن */
.loader span {
    animation: blink 1.5s infinite;
    margin: 0 2px;
}
.loader span:nth-child(2) { animation-delay: 0.2s; }
.loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}


/* دکمه مخصوص VoIP */



.center-icon{
    position: absolute;
    right: 85%;
    width: 38px;
    height: 38px;
    top: 14px;
}

.btn-center:hover .center-icon {
    animation: centerfloat 1.8s ease-in-out infinite;
}
@keyframes centerfloat {
    0%{
        transform: translateY(0) rotate(0);
    }
    50%{
        transform: translateY(-4px) rotate(-6deg);
    }
    100%{
        transform: translateY(0) rotate(0);
    }
}




/* آیکون مودم و حجم نامحدود */
.net-icon{
    position: absolute;
    right: 85%;
    width: 38px;
    height: 38px;
    top: 14px;
}

.btn-net:hover .net-icon {
    animation: netfloat 1.8s ease-in-out infinite;
}

@keyframes netfloat {
    0%{
        transform: translateY(0) rotate(0);
    }
    50%{
        transform: translateY(-4px) rotate(-6deg);
    }
    100%{
        transform: translateY(0) rotate(0);
    }
}

/* --- ۱. افکت موج (Ripple Effect) --- */
/* این کلاس با جاوااسکریپت به دکمه‌ها اضافه می‌شود */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4); /* رنگ موج سفید نیمه‌شفاف */
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none; /* کلیک روی خود موج کار نکند */
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* تنظیمات کلی برای همه دکمه‌ها برای آماده‌سازی حالت مگنتی */
.btn-net, .btn-center, .btn-cloud {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s; /* سرعت حرکت مگنتی */
    position: relative; /* ضروری برای قرارگیری موج */
    overflow: hidden; /* موج بیرون نزند */
    will-change: transform; /* بهینه‌سازی عملکرد */
}

/* --- ۲. افکت مگنتی (Magnetic Effect) --- */
/* وقتی موس روی دکمه می‌رود، کمی بزرگتر و نرم‌تر می‌شود */
.btn-net:hover, .btn-center:hover, .btn-cloud:hover {
    /* نکته: transform قبلی (مثل translateY) را حذف نکنید، به آن اضافه می‌شود */
    /* اما چون ما با JS transform را ست می‌کنیم، اینجا فقط سایه را تنظیم می‌کنیم */
    box-shadow: 0 15px 35px rgba(255, 105, 25, 0.4); 
}

/* جلوگیری از بهم ریختگی متن هنگام حرکت مگنتی */
.btn-net span, .btn-center span, .btn-cloud span {
    pointer-events: none;
}
/* =========================================
   انیمیشن ظاهر شدن دکمه‌ها (نسخه نهایی بدون باگ)
   ========================================= */

/* اعمال انیمیشن روی دکمه‌ها */
.btn-net, .btn-center, .btn-cloud {
    
    /* تنظیمات اولیه */
    opacity: 0; /* مخفی در شروع */
    filter: blur(10px); /* تاری در شروع */
    
    /* نکته مهم: ما transform را اینجا انیمیت نمی‌کنیم تا با JS تداخل نداشته باشد */
    /* فقط یک مقدار ثابت می‌دهیم تا دکمه همیشه بزرگ باشد */
    transform: scale(1) rotateX(0deg); 
    
    animation-fill-mode: forwards;
    animation-name: smoothAppear;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

/* زمان‌بندی ظاهر شدن */
.containerbtn:first-of-type .btn-net { animation-delay: 1.5s; }

.ctnleft .btn-center:nth-child(1) { animation-delay: 1.8s; }
.ctnleft .btn-center:nth-child(2) { animation-delay: 1.9s; }

.ctnright .btn-cloud { animation-delay: 2.1s; }
.ctnright .btn-center { animation-delay: 2.2s; }

.containerbtn:last-of-type .btn-net { animation-delay: 1.7s; }

/* تعریف انیمیشن (فقط روی شفافیت و تاری) */
@keyframes smoothAppear {
    0% {
        opacity: 0;
        filter: blur(10px);
        /* transform را تغییر نمی‌دهیم تا قفل نشود */
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}