/* Define all font faces properly */
@font-face {
    font-family: 'IRANSans';
    src: url('/fonts/IRANSANS-LIGHT EDITORTEAM.TTF') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('/fonts/IRANSANS EDITORTEAM.TTF') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('/fonts/IRANSANS-MEDIUM_EDITORTEAM.TTF') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('/fonts/IRANSANS-BOLDEDITORTEAM.TTF') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html {
    overflow-x: hidden;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at 50% 0%, #1a1a3a 0%, #05050a 70%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    direction: rtl;
}

/* Use the font in your Bootstrap RTL site */
*:not(.no-font) {
    font-family: 'Vazirmatn','IRANSans', 'Segoe UI', Tahoma, system-ui, sans-serif;
}

.no-font {
    font-family: system-ui, -apple-system, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Add to your site.css for better animations */
/* اضافه کنید به site.css یا layout */
.btn-close-custom:hover {
    transition: all 0.3s ease;
}

.btn-close-custom:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.15) !important;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #050816;
}

::-webkit-scrollbar-thumb {
    background: #2e3365;
    border-radius: 999px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #4f46e5;
    }

/*badge*/

.badge-glow {
    background: rgba(129, 140, 248, 0.15);
    backdrop-filter: blur(4px);
    padding: 7px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    color: #a5b4fc;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 24px;
    border: 1px solid rgba(129, 140, 248, 0.2);
    line-height: 1;
}

/*header sections*/

/* بخش هدر  */
.section-header {
    padding: 80px 0 40px;
    text-align: center;
}

    .section-header a {
        background: linear-gradient(135deg, #ffffff, #a5b4fc);
    }

    .section-header h1 {
        background: linear-gradient(-181deg, #ffffff, #adadad);
    }

    .section-header h1,
    .section-header a {
        font-size: 2.5em;
        font-weight: 800;
        color: transparent;
        margin-bottom: 20px;
        text-align: right;
        -webkit-background-clip: text;
        background-clip: text;
    }

    .section-header p {
        color: #94a3b8;
        max-width: 700px;
        font-size: 16px;
        line-height: 2;
        text-align: justify;
    }

@media (max-width: 768px) {

    .section-header h1,
    .section-header a {
        font-size: 30px;
    }

    .section-header p {
        font-size: .93em;
    }
}

/* لوگو */
.brand-devacode {
    font-size: 30px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s;
    position: relative;
    padding: 0;
}

    .brand-devacode span {
        background: linear-gradient(135deg, #818cf8, #e8b0ff);
        -webkit-background-clip: text;
        background-clip: text;
    }

    .brand-devacode::before {
        content: '';
        position: absolute;
        bottom: -4px;
        right: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #818cf8, #c084fc);
        transition: width 0.3s;
    }

    .brand-devacode:hover::before {
        width: 100%;
    }

.logo {
    text-align: center;
    margin-bottom: 32px;
}

    .logo a {
        font-weight: 800;
        text-decoration: none;
        background: linear-gradient(135deg, #ffffff, #a5b4fc);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .logo span {
        background: linear-gradient(135deg, #818cf8, #c084fc);
        -webkit-background-clip: text;
        background-clip: text;
    }

/* موبایل */
@media (max-width: 992px) {
    .brand-devacode {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .brand-devacode {
        font-size: 20px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.no-hover-effect {
    text-decoration: none !important;
}

    .no-hover-effect:hover {
        text-decoration: none !important;
    }

/* ذرات در حال حرکت */
/* --- Particle Animation --- */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(99, 102, 241, 0.4);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh);
        opacity: 0;
    }
}

/* ========================================
   DEVA CODE SUPPORT WIDGET
======================================== */

.support-wrapper {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
    /*    opacity:.85;*/
}

/* ========================================
   SUPPORT POPUP
======================================== */

.support-popup {
    position: absolute;
    right: 0;
    bottom: 95px;
    width: 340px;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient( 180deg, rgba(20, 24, 45, .98), rgba(12, 16, 32, .98) );
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(24px);
    box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 50px rgba(99,102,241,.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(.95);
    transition: all .45s cubic-bezier(.22,1,.36,1);
    overflow: hidden;
}

    .support-popup::before {
        content: '';
        position: absolute;
        width: 250px;
        height: 250px;
        top: -120px;
        right: -100px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(99,102,241,.18), transparent 70% );
        pointer-events: none;
    }

.support-wrapper:hover .support-popup {
    opacity: .94;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ========================================
   HEADER
======================================== */

.support-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

    .support-header img {
        width: 58px;
        height: 58px;
        object-fit: cover;
        border-radius: 50%;
        border: 2px solid rgba(99,102,241,.35);
        box-shadow: 0 0 25px rgba(99,102,241,.25);
        animation: supportAvatarFloat 4s ease-in-out infinite;
    }

.agent-name {
    color: white;
    font-weight: 700;
    font-size: .95rem;
}

.agent-status {
    color: #22c55e;
    font-size: .8rem;
    margin-top: 2px;
    font-weight: 500;
    opacity: .85;
}

/* ========================================
   MESSAGE AREA
======================================== */

.support-message {
    position: relative;
    z-index: 2;
    min-height: 45px;
    color: #dbe4ff;
    font-size: .9rem;
    line-height: 1.9;
    margin-bottom: 18px;
}

/* ========================================
   CHAT BUTTON
======================================== */

.support-chat-btn {
    position: relative;
    z-index: 2;
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: .8em;
    background: linear-gradient( 135deg, #4f46e5, #7c3aed );
    box-shadow: 0 12px 30px rgba(79,70,229,.3);
    transition: transform .35s ease, box-shadow .35s ease;
}

    .support-chat-btn:hover {
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 18px 40px rgba(79,70,229,.4);
    }

/* ========================================
   SUPPORT BUTTON
======================================== */

.support-fab {
    opacity: .85;
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 999px;
    text-decoration: none;
    overflow: hidden;
    background: linear-gradient( 135deg, rgba(20,24,45,.98), rgba(35,30,80,.98) );
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0,0,0,.35), 0 0 30px rgba(99,102,241,.15);
    transition: all .4s ease;
}

    .support-fab::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient( 120deg, transparent, rgba(255,255,255,.08), transparent );
        transform: translateX(-120%);
        transition: 1s;
    }

.support-wrapper:hover .support-fab::before {
    transform: translateX(120%);
}

.support-fab:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 40px rgba(99,102,241,.25);
}

/* ========================================
   ICON
======================================== */

.support-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.2rem;
    background: linear-gradient( 135deg, #4f46e5, #7c3aed );
    box-shadow: 0 0 25px rgba(99,102,241,.35);
}

/* ========================================
   TEXT
======================================== */

.support-content {
    display: flex;
    flex-direction: column;
}

.support-title {
    color: white;
    font-size: .92rem;
    font-weight: 700;
}

.support-subtitle {
    color: rgba(255,255,255,.55);
    font-size: .72rem;
}

/* ========================================
   ONLINE INDICATOR
======================================== */

.support-status {
    position: absolute;
    width: 12px;
    height: 12px;
    top: 14px;
    border-radius: 50%;
    background: #22c55e;
    animation: supportPulse 2s infinite;
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes supportPulse {

    0% {
        box-shadow: 0 0 0 0 rgba(34,197,94,.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(34,197,94,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34,197,94,0);
    }
}

@keyframes supportAvatarFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* ========================================
   MOBILE
======================================== */

@media(max-width:768px) {

    .support-wrapper {
        right: 16px;
        bottom: 16px;
    }

    .support-popup {
        width: 300px;
    }

    .support-title {
        display: none;
    }

    .support-subtitle {
        display: none;
    }

    .support-fab {
        padding: 12px;
        gap: 0;
    }
}
