@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.woff2') format('woff2');
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Vazir';
    margin: 0;
    padding: 0;
    background: rgb(255, 255, 229);
    direction: rtl;
    color: #333;
    overflow-x:hidden;
  
}

/* ===== HEADER ===== */

.header{
    position: sticky;
    top: 0;
    z-index: 999;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:14px 40px;

    background:rgba(255,255,255,.95);
    backdrop-filter:blur(10px);

    border-bottom:3px solid #e5e7eb;

    box-shadow:
        0 6px 20px rgba(0,0,0,.06);
}

/* ===== LOGO ===== */

.logo{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo img{
    height:58px;
    border-radius:50%;

    transition:.3s;

    box-shadow:
        0 0 0 4px #fff,
        0 0 0 7px rgba(59,130,246,.15);
}

.logo img:hover{
    transform:rotate(-8deg) scale(1.08);
}

.logo h2{
    margin:0;

    font-size:30px;
    font-weight:800;

    background:linear-gradient(
        135deg,
        #8b5cf6,
        #3b82f6
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

/* ===== NAV ===== */

.nav{
    display:flex;
    align-items:center;
    gap:22px;
}

.nav > a:not(.btn-login){
    color:#334155;
    text-decoration:none;

    font-size:17px;
    font-weight:700;

    transition:.3s;
    position:relative;
}

.nav > a:not(.btn-login):hover{
    color:#3b82f6;
}

.nav > a:not(.btn-login)::after{
    content:"";

    position:absolute;
    bottom:-6px;
    right:0;

    width:0;
    height:3px;

    border-radius:10px;

    background:#3b82f6;

    transition:.3s;
}

.nav > a:not(.btn-login):hover::after{
    width:100%;
}

/* ===== LOGIN BUTTON ===== */

.btn-login{
    display:flex;
    align-items:center;
    gap:10px;

    text-decoration:none;

    background:linear-gradient(
        135deg,
        #8b5cf6,
        #3b82f6,
        #06b6d4
    );

    color:#fff;

    padding:8px 20px;

    border-radius:999px;

    font-size:15px;
    font-weight:800;

    box-shadow:
        0 6px 16px rgba(59,130,246,.25);

    transition:.3s;

    position:relative;
    overflow:hidden;
}

.btn-login::before{
    content:"";

    position:absolute;
    top:0;
    left:-120%;

    width:100%;
    height:100%;

    background:
    linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.35),
        transparent
    );

    transition:.6s;
}

.btn-login:hover::before{
    left:120%;
}

.btn-login:hover{
    transform:translateY(-3px);

    box-shadow:
        0 10px 24px rgba(59,130,246,.35);
}

.btn-login img{
    width:42px;
    height:42px;

    object-fit:contain;

    background:#fff;
    border-radius:50%;

    padding:2px;
}

.btn-login span{
    color:#fff;
}

.mobile-menu-btn,
.menu-overlay,
.side-menu {
    display:none;
}




@media (min-width: 769px) and (max-width: 1024px){

    .header{
        padding: 12px 25px;
    }

    .logo{
        gap: 8px;
    }

    .logo img{
        height: 50px;
    }

    .logo h2{
        font-size: 24px;
    }

    .nav{
        gap: 14px;
    }

    .nav > a:not(.btn-login){
        font-size: 15px;
    }

    .btn-login{
        padding: 6px 14px;
        gap: 8px;
    }

    .btn-login img{
        width: 34px;
        height: 34px;
    }

    .btn-login span{
        font-size: 14px;
    }

.mobile-menu-btn,
.menu-overlay,
.side-menu {
    display:none;
}
  
}

@media (min-width: 487px) and (max-width: 768px){

    .header{
        flex-direction:row;
        padding:12px 15px;
    }

    .logo{
        justify-content: center;
    }

    .logo img{
        height: 45px;
    }

    .logo h2{
        font-size: 24px;
    }

    .nav{
        display:none;
    }

    .mobile-menu-btn{

        display:flex;

        align-items:center;
        justify-content:center;

        width:42px;
        height:42px;

        border-radius:12px;

        background:#f3f4f6;

        font-size:24px;

        cursor:pointer;

        transition:.3s;
    }

    .mobile-menu-btn:hover{
        background:#e5e7eb;
    }

    /* Overlay */

    .menu-overlay{

        position:fixed;
        inset:0;

        background:rgba(0,0,0,.35);

        backdrop-filter:blur(4px);

        opacity:0;
        visibility:hidden;

        transition:.3s;

        z-index:999;
    }

    .menu-overlay.active{
        opacity:1;
        visibility:visible;
    }

    /* Drawer */

    .side-menu{

        position:fixed;

        top:0;
        left:0;

        width:280px;
        height:100vh;

        background:#fff;

        padding:20px;

        display:flex;
        flex-direction:column;

        gap:15px;

        transition:.35s ease;

        z-index:1000;

        box-shadow:5px 0 30px rgba(0,0,0,.12);

        transform: translateX(-100%);

        transition: transform .35s ease;
    }

    .side-menu.active{
        left:0;
       transform: translateX(0);
    }

    /* هدر منو */

    .menu-header{

        display:flex;

        justify-content:space-between;
        align-items:center;

        margin-bottom:20px;
    }

    .menu-header img{
        width:50px;
        height:50px;
        border-radius:50%;
    }

    /* دکمه بستن */

    .menu-close{

        width:40px;
        height:40px;

        display:flex;
        align-items:center;
        justify-content:center;

        border-radius:50%;

        background:#f3f4f6;

        cursor:pointer;

        font-size:20px;

        transition:.3s;
    }

    .menu-close:hover{

        background:#e5e7eb;

        transform:rotate(90deg);
    }

    /* لینک ها */

    .side-menu a{

        text-decoration:none;

        color:#334155;

        font-size:16px;
        font-weight:700;

        padding:14px;

        border-radius:12px;

        transition:.3s;
    }

    .side-menu a:hover{
        background:#f3f4f6;
    }

    /* دکمه ورود */

    .mobile-login{

        display:flex !important;

        align-items:center;
        justify-content:center;

        gap:10px;

        margin-top:10px;

        color:#fff !important;

        background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #3b82f6,
            #06b6d4
        );
    }

    .mobile-login img{

        width:34px;
        height:34px;

        border-radius:50%;

        background:#fff;

        padding:2px;
    }


/* حذف هایلایت پیشفرض موبایل */
        * {
            -webkit-tap-highlight-color: transparent;
        }
    
        /* فوکوس حرفه‌ای */
        a,
        button,
        input,
        select,
        textarea {
            transition: all 0.2s ease;
            border-radius: 12px;
        }
    
        /* افکت لمس موبایل */
        a:active,
        button:active {
            transform: scale(0.95);
        }


}

@media (max-width:486px){

    .header{
        flex-direction:row;
        padding:12px 15px;
    }

    .logo h2{
        font-size:18px;
    }

    .logo img{
        height:42px;
    }

    .nav{
        display:none;
    }

    .mobile-menu-btn{

        display:flex;

        align-items:center;
        justify-content:center;

        width:42px;
        height:42px;

        border-radius:12px;

        background:#f3f4f6;

        font-size:24px;

        cursor:pointer;

        transition:.3s;
    }

    .mobile-menu-btn:hover{
        background:#e5e7eb;
    }

    /* Overlay */

    .menu-overlay{

        position:fixed;
        inset:0;

        background:rgba(0,0,0,.35);

        backdrop-filter:blur(4px);

        opacity:0;
        visibility:hidden;

        transition:.3s;

        z-index:999;
    }

    .menu-overlay.active{
        opacity:1;
        visibility:visible;
    }

    /* Drawer */

    .side-menu{

        position:fixed;

        top:0;
        left:0;

        width:280px;
        height:100vh;

        background:#fff;

        padding:20px;

        display:flex;
        flex-direction:column;

        gap:15px;

        transition:.35s ease;

        z-index:1000;

        box-shadow:5px 0 30px rgba(0,0,0,.12);

        transform: translateX(-100%);

        transition: transform .35s ease;
    }

    .side-menu.active{
        left:0;
       transform: translateX(0);
    }

    /* هدر منو */

    .menu-header{

        display:flex;

        justify-content:space-between;
        align-items:center;

        margin-bottom:20px;
    }

    .menu-header img{
        width:50px;
        height:50px;
        border-radius:50%;
    }

    /* دکمه بستن */

    .menu-close{

        width:40px;
        height:40px;

        display:flex;
        align-items:center;
        justify-content:center;

        border-radius:50%;

        background:#f3f4f6;

        cursor:pointer;

        font-size:20px;

        transition:.3s;
    }

    .menu-close:hover{

        background:#e5e7eb;

        transform:rotate(90deg);
    }

    /* لینک ها */

    .side-menu a{

        text-decoration:none;

        color:#334155;

        font-size:16px;
        font-weight:700;

        padding:14px;

        border-radius:12px;

        transition:.3s;
    }

    .side-menu a:hover{
        background:#f3f4f6;
    }

    /* دکمه ورود */

    .mobile-login{

        display:flex !important;

        align-items:center;
        justify-content:center;

        gap:10px;

        margin-top:10px;

        color:#fff !important;

        background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #3b82f6,
            #06b6d4
        );
    }

    .mobile-login img{

        width:34px;
        height:34px;

        border-radius:50%;

        background:#fff;

        padding:2px;
    }

    
    

  /* حذف هایلایت پیشفرض موبایل */
        * {
            -webkit-tap-highlight-color: transparent;
        }
    
        /* فوکوس حرفه‌ای */
        a,
        button,
        input,
        select,
        textarea {
            transition: all 0.2s ease;
            border-radius: 12px;
        }
    
        /* افکت لمس موبایل */
        a:active,
        button:active {
            transform: scale(0.95);
        }

        }

@media(max-width:360px) {

 .header { padding:8px 15px; }

            .header .logo img {
                height: 40px;
                /* کوچک‌تر برای موبایل */
                border-radius: 50%;
                transition: transform 0.3s ease, box-shadow 0.5s ease;
                animation: logoGlow 2.5s infinite alternate;
            }
    
            .header .logo img:hover {
                transform: scale(1.05);
            }
    

  /* حذف هایلایت پیشفرض موبایل */
        * {
            -webkit-tap-highlight-color: transparent;
        }
    
        /* فوکوس حرفه‌ای */
        a,
        button,
        input,
        select,
        textarea {
            transition: all 0.2s ease;
            border-radius: 12px;
        }
    
        /* افکت لمس موبایل */
        a:active,
        button:active {
            transform: scale(0.95);
        }

        }