@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'),
        url('../fonts/Vazirmatn-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Bold.woff2') format('woff2'),
        url('../fonts/Vazir-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

body {
    margin: 0;
    background: #0d0d0d;
    color: #fff;
    font-family: 'Vazir', sans-serif;
    line-height: 1.7;
    text-align: right;
}

header {
    padding: 25px 40px;
    background: #111;
    border-bottom: 1px solid #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: #ccc;
    font-size: 16px;
    transition: color 0.25s ease, transform 0.25s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a:hover {
    color: #fff;
    transform: translateY(-2px);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: #4cc9f0;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        font-size: 2rem;
        right: -100%;
        width: 80%;
        max-width: 25vh;
        height: 100vh;
        background: rgba(24, 24, 24, 0.95);
        backdrop-filter: blur(15px);
        transition: right 0.4s ease;
        z-index: 999;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav li {
        margin: 1rem 0;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.4s ease;
        background-color: #221f1f;
        border-radius: 15px;
    }

    nav.active li {
        opacity: 1;
        transform: translateX(0);
    }

    nav.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    nav.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    nav.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    nav.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    nav a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        width: 150px;
    }

    nav a:hover {
        background: rgba(18, 18, 19, 0.1);
    }

    nav a::after {
        display: none;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 998;
    }

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

main {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

section {
    margin-bottom: 60px;
    border: 1px solid #222;
    padding: 30px;
    border-radius: 8px;
    background: #111;
}

h1,
h2,
h3 {
    margin-top: 0;
    border-bottom: 1px solid #222;
    padding-bottom: 8px;
}

form {
    display: grid;
    gap: 20px;
    max-width: 500px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #bbb;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    background: #0a0a0a;
    color: #fff;
    font-size: 14px;
}

button {
    padding: 12px 20px;
    border: none;
    background: #444;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #555;
}

footer {
    padding: 30px;
    text-align: center;
    border-top: 1px solid #222;
    background: #0f0f0f;
    color: #777;
    margin-top: 70px;
}

.notice-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.notice-card {
    min-width: 250px;
    background: #131313;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 20px;
    text-align: right;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.notice-card h3 {
    margin: 0 0 10px 0;
    color: #e2e2e2;
    font-size: 18px;
    border-bottom: none;
    padding-bottom: 0;
}

.notice-card p {
    margin: 0;
    color: #b5b5b5;
    font-size: 14px;
}

.notice-wrapper::-webkit-scrollbar {
    height: 10px;
}

.notice-wrapper::-webkit-scrollbar-track {
    background: #0f0f0f;
}

.notice-wrapper::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.notice-wrapper::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.subs-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.subs-card {
    background: #131313;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.subs-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin: 0 auto 12px auto;
    object-fit: cover;
    border: 1px solid #333;
    display: block;
}


.subs-wrapper .subs-card .subs-id {
    font-family: 'Vazir', sans-serif;
    display: inline-block;
    color: #ffffff;
    font-weight: 500;
    margin-top: 8px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.subs-wrapper .subs-card .subs-id:hover {
    color: #1e90ff;
}

.subs-card h3 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 10px 0;
    border-bottom: none;
    padding-bottom: 0;
    direction: rtl;
}


.subs-card p {
    color: #b8b8b8;
}

.type {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
    margin-right: 4px;
}

.type.bot {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" fill-rule="evenodd" d="M6.1 8.494c-.017.203-.03 1.288-.039 2.7-.009 1.39-.012 3.039-.014 4.308-.001.69.557 1.248 1.248 1.248h9.409c.691 0 1.25-.56 1.25-1.249 0-1.272-.002-2.92-.009-4.308-.007-1.41-.02-2.492-.037-2.698-.266-2.726-3.02-4.745-5.87-4.745h-.077c-2.852 0-5.603 2.02-5.86 4.744m-1.493-.137c.346-3.69 3.939-6.107 7.354-6.107h.077c3.416 0 7.007 2.416 7.364 6.105v.007c.025.278.036 1.457.043 2.823.007 1.393.01 3.044.01 4.316a2.75 2.75 0 0 1-2.751 2.749H7.295a2.747 2.747 0 0 1-2.748-2.75c.002-1.27.005-2.921.014-4.315.008-1.367.021-2.546.046-2.823v-.005M22 9.25a.75.75 0 0 1 .75.75v4.821a.75.75 0 0 1-1.5 0V10a.75.75 0 0 1 .75-.75M18.25 20.5a.75.75 0 0 1-.75.75h-11a.75.75 0 0 1 0-1.5h11a.75.75 0 0 1 .75.75M2 9.25a.75.75 0 0 1 .75.75v4.821a.75.75 0 0 1-1.5 0V10A.75.75 0 0 1 2 9.25" clip-rule="evenodd"/><path fill="white" d="M10.5 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0M15.5 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/></svg>');
}

.type.group {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>');
}

.type.channel {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="white" stroke-width="1.5" d="M4.875 22.342a.75.75 0 0 1-.092-1.057l1.285-1.532a.75.75 0 1 1 1.15.964l-1.286 1.532a.75.75 0 0 1-1.057.093M16.875 19.662a.75.75 0 0 1 1.056.092l1.286 1.532a.75.75 0 0 1-1.15.964l-1.285-1.532a.75.75 0 0 1 .093-1.056"/><path fill="none" stroke="white" stroke-width="1.5" d="M16.416 5.162c-2.98-.049-5.923-.05-8.83 0h-.013c-2.822 0-4.823 1.976-4.823 4.701v4.65c0 2.725 2.002 4.701 4.823 4.701h.012c2.892.049 5.834.051 8.83 0h.013c2.821 0 4.822-1.976 4.822-4.701v-4.65c0-2.724-2-4.701-4.822-4.701h-.012m.019-1.5c-2.991-.049-5.948-.05-8.869 0C3.952 3.665 1.25 6.28 1.25 9.863v4.65c0 3.583 2.702 6.198 6.316 6.201 2.905.049 5.86.051 8.869 0 3.614-.003 6.315-2.618 6.315-6.201v-4.65c0-3.582-2.701-6.198-6.315-6.201"/><path fill="none" stroke="white" stroke-width="1.5" d="M15.624 1.584a.75.75 0 0 1-.208 1.04L12 4.901 8.584 2.624a.75.75 0 0 1 .832-1.248L12 3.099l2.584-1.723a.75.75 0 0 1 1.04.208"/></svg>');
}

#team {
    padding: 40px 20px;
    background: #111;
    color: #fff;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}


#team h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

#team p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 30px;
}

.team-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.team-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.team-wrapper::-webkit-scrollbar {
    height: 10px;
}

.team-wrapper::-webkit-scrollbar-track {
    background: #0f0f0f;
}

.team-wrapper::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.team-card {
    scroll-snap-align: start;
}


.team-wrapper::-webkit-scrollbar {
    display: none;
}

.team-card {
    background: #131313;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    flex-shrink: 0;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.team-card .profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
    margin-bottom: 15px;
}

.team-card .name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-card .lastname {
    font-size: 16px;
    color: #aaa;
    margin-bottom: 10px;
}

.team-card .contact {
    font-size: 14px;
    color: #1e90ff;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.team-card .contact:hover {
    color: #00bfff;
}


.scroll-indicator {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.scroll-indicator span {
    display: inline-block;
    animation: bounce 2s infinite;
}

#teamWrapper {
    overflow-x: scroll;
    scroll-behavior: smooth;
    cursor: grab;
}

#teamWrapper.active {
    cursor: grabbing;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(0);
    }

    40% {
        transform: translateX(-5px);
    }

    60% {
        transform: translateX(-3px);
    }
}

.contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.bale-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.contact a:hover .bale-icon {
    filter: brightness(0) invert(1);
    transform: scale(1.18) translateY(-1px);
    filter: brightness(2) invert(1);
}


@media (max-width: 1024px) {
    header {
        padding: 20px;
    }

    nav ul {
        gap: 25px;
        flex-wrap: wrap;
    }

    main {
        margin: 30px auto;
        padding: 0 15px;
    }

    section {
        padding: 20px;
        margin-bottom: 40px;
    }

    .subs-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .notice-card {
        min-width: 220px;
        padding: 15px;
    }

    .team-card {
        width: 160px;
        padding: 12px;
    }

    .team-card .profile-img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px;
    }

    header h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    nav ul {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }

    nav a {
        font-size: 14px;
    }

    main {
        margin: 20px auto;
    }

    section {
        padding: 15px;
        margin-bottom: 30px;
    }

    h1,
    h2,
    h3 {
        font-size: 20px;
    }

    form {
        gap: 15px;
    }

    input,
    textarea,
    select {
        padding: 8px;
        font-size: 13px;
    }

    button {
        padding: 10px 15px;
        font-size: 14px;
    }

    .subs-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .subs-card {
        padding: 15px;
    }

    .subs-img {
        width: 50px;
        height: 50px;
    }

    .notice-wrapper {
        gap: 15px;
    }

    .notice-card {
        min-width: 200px;
        padding: 15px;
    }

    .team-card {
        width: 140px;
        padding: 10px;
    }

    .team-card .profile-img {
        width: 60px;
        height: 60px;
    }

    .team-card .name {
        font-size: 16px;
    }

    .team-card .lastname {
        font-size: 14px;
    }

    .team-card .contact {
        font-size: 12px;
    }

    footer {
        padding: 20px;
        margin-top: 50px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px;
    }

    header h1 {
        font-size: 20px;
    }

    nav ul {
        gap: 10px;
    }

    main {
        padding: 0 10px;
    }

    section {
        padding: 10px;
    }

    .subs-card {
        padding: 12px;
    }

    .notice-card {
        min-width: 180px;
        padding: 12px;
    }

    .team-card {
        width: 130px;
    }

    .team-card .profile-img {
        width: 55px;
        height: 55px;
    }

    .scroll-indicator {
        font-size: 12px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    header {
        padding: 10px 20px;
    }

    main {
        margin: 20px auto;
    }

    section {
        margin-bottom: 20px;
        padding: 15px;
    }
}

@media (min-width: 1400px) {
    main {
        max-width: 1300px;
    }
}