@font-face {
    font-family: 'Vazirmatn';
    src: url('../assets/fonts/Vazirmatn-Regular.woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../assets/fonts/Vazirmatn-Bold.woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #0a0d14;
    font-family: 'Vazirmatn', sans-serif;
    color: #e3e8f5;
    overflow-x: hidden;
}

input,
button,
textarea,
select {
    font-family: inherit;
}

.section {
    padding: 60px 8%;
}

h2 {
    font-size: 28px;
    color: #1e6fff;
    text-shadow: 0 0 10px #1e6fff;
}

/* ناوبار */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 70px;
    background: rgba(10, 13, 20, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    z-index: 10;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(30, 111, 255, 0.2);
}

.logo {
    color: #1e6fff;
    font-size: 26px;
    font-weight: 800;
    text-shadow: 0 0 12px #1e6fff;
    flex-shrink: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 100;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #1e6fff; /* رنگ نئونی آبی سایت */
    border-radius: 5px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    box-shadow: 0 0 8px #1e6fff;
}

.nav-links {
    display: flex;
    align-items: center;
    overflow-x: auto;
    max-width: 70%;
    gap: 20px;
}

.nav-links a {
    color: #d8deef;
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #1e6fff;
}

/* هدر */
.hero {
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    color: #ffffff;
    text-shadow: 0 0 20px #1e6fff;
}

.hero-sub {
    font-size: 18px;
    margin-top: 10px;
    opacity: 0.8;
}

.hero-buttons {
    margin-top: 25px;
    display: flex;
    gap: 20px;
}

/* دکمه‌ها */
.btn-neon {
    padding: 12px 28px;
    background: #1e6fff;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 14px #1e6fff;
    transition: 0.3s;
}

.btn-neon:hover {
    box-shadow: 0 0 25px #3e8fff;
}

.btn-outline {
    padding: 12px 28px;
    border: 2px solid #1e6fff;
    border-radius: 8px;
    color: #1e6fff;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #1e6fff;
    color: white;
}

/* درباره سایت */
/* درباره سایت */
.about-card {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.1) 0%, transparent 100%), rgba(15, 15, 20, 0.8);
    color: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #0ff;
    transition: all 0.4s ease;
    text-align: center;
}

.about-card h2 {
    color: #fff;
    transition: all 0.4s ease;
}

.about-card:hover {
    border-color: #1e6fff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transform: translateY(-10px) scale(1.02);
}

.about-card:hover h2 {
    color: #1e6fff;
    text-shadow: 0 0 5px #1e6fff;
}

/* آپدیت‌ها */
/* --- استایل‌های بخش کشویی آپدیت‌ها --- */
.updates h2 {
    text-align: center;
}

.updates-container {
    max-width: 800px;
    margin: 0 auto;
}

.update-accordion {
    background: rgba(15, 15, 20, 0.8);
    /* پس‌زمینه تیره */
    border: 1px solid #0ff;
    /* حاشیه نئونی فیروزه‌ای */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* افکت هاور (رفتن موس روی باکس) */
.update-accordion:hover {
    box-shadow: 0 0 10px #3e8fff;
    border-color: #1e6fff;
    /* تغییر رنگ به سرخابی */
}

/* هدر (بخش عنوان آپدیت) */
.update-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.1) 0%, transparent 100%);
    user-select: none;
}

.update-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    text-shadow: 0 0 5px #0ff;
    transition: color 0.3s;
}

.toggle-icon {
    font-size: 1.5rem;
    color: #0ff;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* محتوای داخلی - تنظیم انیمیشن با Grid */
.update-content {
    display: grid;
    grid-template-rows: 0fr;
    /* در حالت بسته ارتفاع صفر است */
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.update-inner {
    overflow: hidden;
}

.update-inner ul {
    padding: 0 20px 15px 30px;
    color: #ddd;
    list-style: none;
}

.update-inner ul li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 20px;
}

/* بولت‌های لیست به سبک گیمینگ */
.update-inner ul li::before {
    content: '>';
    position: absolute;
    right: 0;
    color: #1e6fff;
    font-weight: bold;
    text-shadow: 0 0 5px #1e6fff;
}

/* --- حالت فعال (باز شده) --- */
.update-accordion.active {
    border-color: #1e6fff;
    box-shadow: 0 0 15px #3e8fff;
}

.update-accordion.active .update-content {
    grid-template-rows: 1fr;
    /* در حالت باز، ارتفاع به اندازه محتوا می‌شود */
}

.update-accordion.active .toggle-icon {
    transform: rotate(45deg);
    /* تبدیل علامت + به ضربدر x */
    color: #1e6fff;
}

.update-accordion.active .update-header h3 {
    color: #1e6fff;
    text-shadow: 0 0 5px #1e6fff;
}

/* اطلاعیه‌ها */
.announcements {
    text-align: center;
}

.announce-card {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.1) 0%, transparent 100%), rgba(15, 15, 20, 0.8);
    color: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #0ff;
    transition: all 0.4s ease;
    text-align: center;
}

.announce-card h3 {
    transition: color 0.4s ease;
}

.announce-card:hover {
    border-color: #1e6fff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transform: translateY(-10px) scale(1.02);
}

.announce-card:hover h3 {
    color: #1e6fff;
    text-shadow: 0 0 5px #1e6fff;
}

/* ارتباط */
.contact {
    text-align: center;
}

/* تنظیمات پایه دکمه */
/* استایل پایه دکمه تماس */
.contact-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative; /* برای قرارگیری درست آیکون */
    margin-right: 15px;
    padding: 12px 20px;
    border: 1px solid #1e6fff;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
    overflow: hidden; /* جلوگیری از بیرون زدن عناصر */
    min-width: 120px; /* حداقل عرض برای ثابت ماندن سایز دکمه */
    height: 45px;
}

.contact-btn:hover {
    background: #1e6fff;
    box-shadow: 0 0 10px #1e6fff; /* افکت نئونی */
}

/* استایل متن داخل دکمه */
.btn-text {
    transition: all 0.3s ease;
}

/* محو شدن متن هنگام هاور */
.contact-btn:hover .btn-text {
    opacity: 0;
    transform: translateY(-20px); /* حرکت متن به سمت بالا */
}

/* استایل آیکون (عکس) داخل دکمه */
.btn-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0;
    transform: translateY(20px); /* شروع حرکت آیکون از پایین */
    transition: all 0.3s ease;

}

/* ظاهر شدن آیکون هنگام هاور */
.contact-btn:hover .btn-icon {
    opacity: 1;
    transform: translateY(0); /* قرارگیری در مرکز */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}

.footer {
    text-align: center;
    padding: 30px 20px;
    background: rgba(10, 13, 20, 0.7);
    backdrop-filter: blur(8px);
    color: #a0aabf;
    font-size: 14px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .section {
        padding-top: 60px;
    }

    .navbar {
        padding: 14px 6%;
        flex-direction: row; /* قرارگیری در یک ردیف */
        justify-content: space-between; /* فاصله دادن بین لوگو و همبرگر */
        align-items: center;
        padding: 15px 5%;
    }
    
    .logo {
        width: auto;
        padding-left: 6%; /* پدینگ اختصاصی لوگو */
        margin-bottom: 0;
    }

    .hamburger {
        display: flex; /* نمایش دکمه همبرگر */
        padding-right: 6%; /* پدینگ اختصاصی همبرگر */
        cursor: pointer;
    }

    /* نوار ناوبری موبایل - حالت منوی کشویی */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0; /* حالا به راحتی از لبه صفحه شروع می‌شود */
        width: 100%; /* کل عرض را می‌پوشاند */
        max-width: 100%;
        background: linear-gradient(90deg, rgba(0, 255, 255, 0.1) 0%, transparent 100%), rgba(15, 15, 20, 0.98); /* تغییر 0.8 به 0.98 برای کاهش شفافیت */
        backdrop-filter: blur(15px);
        border-bottom: 2px solid #1e6fff;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 25px;
    
        /* افکت باز شدن (حالت بسته) */
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.5s ease-in-out;
    }


    /* کلاسی که با JS اضافه می‌شود (حالت باز) */
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        max-height: 400px; /* مقداری بیشتر از ارتفاع محتوای منو */
        padding: 20px 0;
    }

    /* انیمیشن تبدیل همبرگر به علامت X هنگام باز بودن منو */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .nav-links a {
        font-size: 15px;
    }

    .hero {
        height: auto;
        padding: 80px 5% 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .hero-buttons a {
        width: 70%;
        margin: 0;
    }

    .about p {
        font-size: 15px;
    }

    .section-title {
        font-size: 28px;
    }

    .contact-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .contact-btn {
        width: 70%;
        margin: 0;
    }

}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.4); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 30px rgba(255, 0, 255, 0.6); }
    100% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.4); }
}

.new-announce {
    animation: pulseGlow 3s infinite alternate; /* اجرای مداوم تپش */
}

/* توقف تپش و درخشش ثابت هنگام هاور */
.new-announce:hover {
    animation: none;
}