:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --dark-bg: #0a0a0a;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
}

* {
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

/* نوار ناوبری */
.navbar {
    background-color: rgba(10, 10, 10, 0.8) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light) !important;
}

.nav-link {
    color: var(--text-light) !important;
    margin: 0 10px;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* بخش قهرمان */
.hero {
    min-height: 100vh;
    background: linear-gradient(-45deg, #6c5ce7, #a29bfe, #fd79a8, #00cec9);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
}

.hero-title {
    min-height: 1.5em;
    background: linear-gradient(to left, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-description {
    max-width: 600px;
    margin: 0 auto;
}

/* ذرات پس‌زمینه (با CSS) */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255,255,255,0.1) 0%, transparent 50%);
    background-size: 100% 100%;
    animation: particleMove 20s linear infinite;
}

@keyframes particleMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

/* دکمه‌ها */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #5a4bd1;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.4);
}

.btn-outline-light {
    border-radius: 50px;
    border-width: 2px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* بخش مهارت‌ها */
.skills-section {
    background-color: var(--dark-bg);
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    transition: all 0.3s ease;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.skill-card i {
    color: var(--secondary-color);
}

/* صفحه نمونه کارها */
.portfolio-section {
    background-color: var(--dark-bg);
    min-height: 100vh;
}

.filter-btn {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px 20px;
    margin: 5px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.portfolio-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-img-wrapper img {
    transition: transform 0.5s ease;
    height: 220px;
    object-fit: cover;
}

.portfolio-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(108, 92, 231, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .overlay {
    opacity: 1;
}

    background: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
}

.card-title {
    font-weight: 700;
}

.card-text {
    color: var(--text-muted);
}

/* فوتر */
.footer {
    background-color: #000;
    color: var(--text-light);
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* انیمیشن برای نمایش آیتم‌های فیلتر شده */
.portfolio-item {
    transition: all 0.5s ease;
    opacity: 1;
    transform: scale(1);
}

.portfolio-item.hide {
    opacity: 0;
    transform: scale(0.8);
    display: none;
}

/* صفحات جزئیات پروژه */
.project-hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.project-title {
    background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.project-overview {
    background-color: var(--dark-bg);
}

.project-features {
    background-color: #111;
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.tech-badge {
    background: rgba(108, 92, 231, 0.2);
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 500;
    border: 1px solid rgba(108, 92, 231, 0.4);
}

.gallery-img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* کوچک‌سازی بج دسته‌بندی */
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
    letter-spacing: 0.3px;
}

/* کاهش پهنای بج دسته‌بندی */
    padding-left: 6px !important;
    padding-right: 6px !important;
    font-size: 0.7rem !important;
    letter-spacing: 0;
    display: inline-block;
    white-space: nowrap;
}
/* کوچک‌سازی کامل بج دسته‌بندی */
    font-size: 0.65rem !important;
    padding: 2px 4px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    border-radius: 8px !important;
    display: inline-block !important;
}
/* کوتاه‌تر کردن بج دسته‌بندی (کاهش ارتفاع) */
.badge.category-badge,
span.badge.category-badge {
    padding-top: 1px !important;
    padding-bottom: 1px !important;
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
}
