/* BenyVK -_- */

#copy-protection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9997;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

:root {
    --github-dark: #0d1117;
    --github-dark-2: #161b22;
    --github-dark-3: #21262d;
    --github-dark-4: #30363d;
    --github-gray: #8b949e;
    --github-blue: #58a6ff;
    --github-green: #3fb950;
    --github-purple: #bc8cff;
    --github-orange: #ffa657;
    --github-red: #f85149;
    --github-border: #30363d;
    --github-text: #e6edf3;
    --github-text-secondary: #7d8590;
}

:root[data-theme="light"] {
    --github-dark: #ffffff;
    --github-dark-2: #f6f8fa;
    --github-dark-3: #eaeef2;
    --github-dark-4: #d0d7de;
    --github-gray: #656d76;
    --github-blue: #0969da;
    --github-green: #1a7f37;
    --github-purple: #8250df;
    --github-orange: #bc4c00;
    --github-red: #d1242f;
    --github-border: #d0d7de;
    --github-text: #1f2328;
    --github-text-secondary: #656d76;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: var(--github-dark);
    color: var(--github-text);
    line-height: 1.6;
    font-weight: 500;
    min-height: 100vh;
    overflow-x: hidden;
    transition: all 0.3s ease;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

*:not(input):not(textarea) {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
    background-color: var(--github-dark-2);
    border-bottom: 1px solid var(--github-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--github-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo i {
    color: var(--github-blue);
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.logo-text {
    display: inline;
}

.nav-container {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--github-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--github-dark-3);
}

.nav-main {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-main a {
    color: var(--github-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-main a:hover {
    color: var(--github-blue);
}

.nav-main a.active {
    color: var(--github-blue);
    font-weight: 800;
}

.nav-main a.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: var(--github-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
    background: var(--github-dark-3);
    border-radius: 6px;
    padding: 8px 12px;
    width: 240px;
    border: 1px solid var(--github-border);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--github-blue);
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--github-text);
    width: 100%;
    font-weight: 500;
    outline: none;
}

.search-box i {
    color: var(--github-gray);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--github-dark-2);
    border: 1px solid var(--github-border);
    border-radius: 6px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--github-border);
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--github-dark-3);
}

.search-result-item:last-child {
    border-bottom: none;
}

.theme-toggle {
    background: var(--github-dark-3);
    border: 1px solid var(--github-border);
    border-radius: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--github-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--github-dark-4);
    border-color: var(--github-blue);
    transform: scale(1.1);
}

.profile-hero {
    background: linear-gradient(135deg, var(--github-dark-2) 0%, var(--github-dark) 100%);
    padding: 40px 0 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(88, 166, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(63, 185, 80, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.language-selector {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: var(--github-dark-3);
    border: 1px solid var(--github-border);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--github-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: space-between;
}

.language-btn:hover {
    background: var(--github-dark-4);
    border-color: var(--github-blue);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    width: 100%;
    background: var(--github-dark-2);
    border: 1px solid var(--github-border);
    border-radius: 6px;
    margin-top: 5px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[dir="rtl"] .language-dropdown {
    right: 0;
}

[dir="ltr"] .language-dropdown {
    left: 0;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
    border-bottom: 1px solid var(--github-border);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: var(--github-dark-3);
}

.language-option i {
    color: var(--github-blue);
    width: 16px;
    text-align: center;
}

[dir="ltr"] .search-box i {
    left: 12px;
    right: auto;
}

[dir="ltr"] .search-box input {
    padding-left: 35px;
    padding-right: 12px;
}

[dir="ltr"] .nav-main a.active::after {
    right: auto;
    left: 0;
}

[dir="ltr"] .header-container {
    flex-direction: row;
}

[dir="ltr"] .logo-section {
    flex-direction: row;
}

[dir="ltr"] .header-actions {
    flex-direction: row;
}

[dir="ltr"] .footer-container {
    flex-direction: row;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 769px) {
    .profile-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .profile-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .profile-stats {
        grid-template-columns: 1fr 1fr;
    }
}

[dir="ltr"] .skills-row {
    grid-template-columns: 1fr 1fr;
}

[dir="ltr"] .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

[dir="ltr"] .hero-container {
    grid-template-columns: 300px 1fr;
}

[dir="ltr"] .main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

[dir="ltr"] .content-section {
    background: var(--github-dark-2);
    border: 1px solid var(--github-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

[dir="ltr"] .section-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--github-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.profile-card {
    background: var(--github-dark-2);
    border: 1px solid var(--github-border);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 90px;
    transition: all 0.3s ease;
}

.avatar-container {
    position: relative;
    margin-bottom: 20px;
}

.avatar {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--github-blue), var(--github-green));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--github-border);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    border-radius: 50%;
}

.avatar i {
    font-size: 70px;
    color: white;
    z-index: 1;
}

.status-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 16px;
    height: 16px;
    background: var(--github-green);
    border: 2px solid var(--github-dark-2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.profile-info h1 {
    font-weight: 900;
    font-size: 1.6rem;
    margin-bottom: 5px;
    background: linear-gradient(45deg, var(--github-text), var(--github-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.profile-info .username {
    color: var(--github-blue);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.profile-info .bio {
    color: var(--github-text-secondary);
    margin-bottom: 18px;
    line-height: 1.7;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: var(--github-dark-3);
    border-radius: 8px;
    border: 1px solid var(--github-border);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--github-blue);
    transform: translateY(-2px);
}

.stat-value {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--github-text);
    display: block;
    transition: color 0.3s ease;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--github-text-secondary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--github-blue);
    color: white;
}

.btn-primary:hover {
    background: #4a94e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

.btn-secondary {
    background: var(--github-dark-3);
    color: var(--github-text);
    border: 1px solid var(--github-border);
}

.btn-secondary:hover {
    background: var(--github-dark-4);
    border-color: var(--github-blue);
    transform: translateY(-2px);
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.content-section {
    background: var(--github-dark-2);
    border: 1px solid var(--github-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.section-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--github-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.section-title {
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.section-title i {
    color: var(--github-blue);
    transition: color 0.3s ease;
}

.section-actions {
    display: flex;
    gap: 10px;
}

.section-body {
    padding: 20px;
}

.skills-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skills-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.skill-category.main-category {
    background: var(--github-dark-3);
    border: 1px solid var(--github-border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    height: fit-content;
}

.skill-category.main-category:hover {
    border-color: var(--github-blue);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--github-border);
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--github-blue), var(--github-border));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-icon i {
    font-size: 24px;
    color: white;
}

.category-title {
    font-weight: 800;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.sub-skills {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sub-category {
    background: var(--github-dark-4);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--github-border);
    transition: all 0.3s ease;
}

.sub-category:hover {
    border-color: var(--github-blue);
}

.sub-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--github-blue);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--github-border);
    transition: color 0.3s ease;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--github-dark-3);
    color: var(--github-text);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--github-border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.skill-tag:hover {
    background: var(--github-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

.skill-tag[data-skill="html5"] i { color: #e34f26; }
.skill-tag[data-skill="css3"] i { color: #1572b6; }
.skill-tag[data-skill="javascript"] i { color: #f7df1e; }
.skill-tag[data-skill="react"] i { color: #61dafb; }
.skill-tag[data-skill="vue"] i { color: #4fc08d; }
.skill-tag[data-skill="typescript"] i { color: #3178c6; }
.skill-tag[data-skill="sass"] i { color: #cc6699; }
.skill-tag[data-skill="bootstrap"] i { color: #7952b3; }
.skill-tag[data-skill="webpack"] i { color: #8dd6f9; }
.skill-tag[data-skill="npm"] i { color: #cb3837; }
.skill-tag[data-skill="java"] i { color: #007396; }
.skill-tag[data-skill="python"] i { color: #3776ab; }
.skill-tag[data-skill="c"] i { color: #00599c; }
.skill-tag[data-skill="csharp"] i { color: #239120; }
.skill-tag[data-skill="nodejs"] i { color: #339933; }
.skill-tag[data-skill="php"] i { color: #777bb4; }
.skill-tag[data-skill="sql"] i { color: #4479a1; }
.skill-tag[data-skill="mongodb"] i { color: #47a248; }
.skill-tag[data-skill="mysql"] i { color: #4479a1; }
.skill-tag[data-skill="postgresql"] i { color: #336791; }
.skill-tag[data-skill="android-studio"] i { color: #3ddc84; }
.skill-tag[data-skill="flutter"] i { color: #02569b; }
.skill-tag[data-skill="react-native"] i { color: #61dafb; }
.skill-tag[data-skill="dart"] i { color: #0175c2; }
.skill-tag[data-skill="kotlin"] i { color: #7f52ff; }
.skill-tag[data-skill="swift"] i { color: #fa7343; }
.skill-tag[data-skill="git"] i { color: #f05032; }
.skill-tag[data-skill="docker"] i { color: #2496ed; }
.skill-tag[data-skill="aws"] i { color: #ff9900; }
.skill-tag[data-skill="linux"] i { color: #fcc624; }
.skill-tag[data-skill="rest"] i { color: #ff6b6b; }
.skill-tag[data-skill="graphql"] i { color: #e10098; }
.skill-tag[data-skill="phpmyadmin"] i { color: #ff6b00; }
.skill-tag[data-skill="firebase"] i { color: #ffca28; }
.skill-tag[data-skill="lua"] i { color: #000080; }
.skill-tag[data-skill="luac"] i { color: #0000FF; }

[dir="ltr"] .header-container,
[dir="ltr"] .logo-section,
[dir="ltr"] .header-actions,
[dir="ltr"] .footer-container {
    flex-direction: row;
}

[dir="ltr"] .nav-main a.active::after {
    right: auto;
    left: 0;
}

/* تنظیمات موبایل برای زبان‌های LTR */
@media (max-width: 768px) {
    [dir="ltr"] .header-container {
        flex-direction: column;
        gap: 12px;
        padding: 10px 0;
    }
    
    [dir="ltr"] .logo-section {
        width: 100%;
        justify-content: space-between;
    }
    
    [dir="ltr"] .logo-text {
        display: inline !important;
    }
    
    [dir="ltr"] .mobile-menu-toggle {
        display: block;
    }
    
    [dir="ltr"] .nav-main {
        position: fixed;
        top: 70px;
        left: -100%;
        right: auto;
        width: 80%;
        height: calc(100vh - 70px);
        background: var(--github-dark-2);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        border-right: 1px solid var(--github-border);
        border-left: none;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    [dir="ltr"] .nav-main.active {
        left: 0;
        right: auto;
    }
    
    [dir="ltr"] .nav-main li {
        width: 100%;
    }
    
    [dir="ltr"] .nav-main a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--github-border);
        text-align: left;
    }
    
    [dir="ltr"] .nav-main a.active::after {
        display: none;
    }
    
    [dir="ltr"] .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    [dir="ltr"] .search-box {
        width: calc(100% - 50px);
    }
    
    [dir="ltr"] .search-box i {
        left: 12px;
        right: auto;
    }
    
    [dir="ltr"] .search-box input {
        padding-left: 35px;
        padding-right: 12px;
    }
    
    [dir="ltr"] .language-btn {
        min-width: 110px;
    }
    
    [dir="ltr"] .profile-info h1,
    [dir="ltr"] .profile-info .username,
    [dir="ltr"] .profile-info .bio {
        text-align: center;
    }
    
    [dir="ltr"] .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    [dir="ltr"] .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    [dir="ltr"] .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

/* تنظیمات موبایل برای زبان‌های RTL */
@media (max-width: 768px) {
    [dir="rtl"] .header-container {
        flex-direction: column;
        gap: 12px;
        padding: 10px 0;
    }
    
    [dir="rtl"] .logo-section {
        width: 100%;
        justify-content: space-between;
    }
    
    [dir="rtl"] .logo-text {
        display: none;
    }
    
    [dir="rtl"] .mobile-menu-toggle {
        display: block;
    }
    
    [dir="rtl"] .nav-main {
        position: fixed;
        top: 70px;
        right: -100%;
        left: auto;
        width: 80%;
        height: calc(100vh - 70px);
        background: var(--github-dark-2);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        border-left: 1px solid var(--github-border);
        border-right: none;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    [dir="rtl"] .nav-main.active {
        right: 0;
        left: auto;
    }
    
    [dir="rtl"] .nav-main li {
        width: 100%;
    }
    
    [dir="rtl"] .nav-main a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--github-border);
        text-align: right;
    }
    
    [dir="rtl"] .nav-main a.active::after {
        display: none;
    }
    
    [dir="rtl"] .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    [dir="rtl"] .search-box {
        width: calc(100% - 50px);
    }
    
    [dir="rtl"] .search-box i {
        right: 12px;
        left: auto;
    }
    
    [dir="rtl"] .search-box input {
        padding-right: 35px;
        padding-left: 12px;
    }
    
    [dir="rtl"] .language-btn {
        min-width: 110px;
    }
    
    [dir="rtl"] .profile-info h1,
    [dir="rtl"] .profile-info .username,
    [dir="rtl"] .profile-info .bio {
        text-align: center;
    }
    
    [dir="rtl"] .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
    }
    
    [dir="rtl"] .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    [dir="rtl"] .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

/* تنظیمات اضافی برای نمایش بهتر در موبایل */
@media (max-width: 480px) {
    [dir="ltr"] .skills-row,
    [dir="rtl"] .skills-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    [dir="ltr"] .profile-stats,
    [dir="rtl"] .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    [dir="ltr"] .projects-grid,
    [dir="rtl"] .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    [dir="ltr"] .skill-tag,
    [dir="rtl"] .skill-tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    [dir="ltr"] .hero-container,
    [dir="rtl"] .hero-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.project-card {
    background: var(--github-dark-3);
    border: 1px solid var(--github-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    border-color: var(--github-green);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.project-header {
    padding: 18px;
    border-bottom: 1px solid var(--github-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.project-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--github-blue);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.project-description {
    color: var(--github-text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.project-badge {
    background: var(--github-green);
    color: var(--github-dark);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    transition: all 0.3s ease;
}

.project-body {
    padding: 18px;
}

.project-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--github-text-secondary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-stat i {
    color: var(--github-blue);
    transition: color 0.3s ease;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    background: var(--github-dark-4);
    color: var(--github-text);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    flex-direction: column;
    gap: 12px;
}

.spinner {
    width: 35px;
    height: 35px;
    border: 3px solid var(--github-border);
    border-left: 3px solid var(--github-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-message {
    background: var(--github-dark-3);
    border: 1px solid var(--github-red);
    border-radius: 8px;
    padding: 18px;
    text-align: center;
    color: var(--github-red);
    font-weight: 600;
    transition: all 0.3s ease;
}

.main-footer {
    background: var(--github-dark-2);
    border-top: 1px solid var(--github-border);
    padding: 30px 0;
    margin-top: 50px;
    transition: all 0.3s ease;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-logo i {
    color: var(--github-blue);
    transition: color 0.3s ease;
}

.copyright {
    color: var(--github-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-link {
    color: var(--github-text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--github-blue);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--github-dark-3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--github-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--github-border);
}

.social-link:hover {
    background: var(--github-blue);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.float {
    animation: float 3s ease-in-out infinite;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }

@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-container {
        grid-template-columns: 280px 1fr;
        gap: 25px;
    }
    
    .profile-card {
        padding: 20px;
    }
    
    .skills-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 12px;
        padding: 10px 0;
    }
    
    .logo-section {
        width: 100%;
        justify-content: space-between;
    }
    
    .logo-text {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-main {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: var(--github-dark-2);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        border-left: 1px solid var(--github-border);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-main.active {
        right: 0;
    }
    
    .nav-main li {
        width: 100%;
    }
    
    .nav-main a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--github-border);
    }
    
    .nav-main a.active::after {
        display: none;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box {
        width: calc(100% - 50px);
    }
    
    .profile-hero {
        padding: 30px 0 15px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-card {
        position: static;
        padding: 20px;
    }
    
    .profile-info h1 {
        font-size: 1.4rem;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-item {
        padding: 8px;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .skills-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skill-category.main-category {
        padding: 15px;
    }
    
    .sub-category {
        padding: 12px;
    }
    
    .skills-list {
        gap: 6px;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-header {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .section-body {
        padding: 15px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .footer-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .profile-card {
        padding: 15px;
    }
    
    .avatar {
        width: 120px;
        height: 120px;
        margin: 0 auto 15px;
    }
    
    .avatar i {
        font-size: 50px;
    }
    
    .profile-info h1 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .profile-info .username {
        text-align: center;
    }
    
    .profile-info .bio {
        text-align: center;
        font-size: 0.85rem;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .skill-tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .project-header {
        padding: 15px;
    }
    
    .project-body {
        padding: 15px;
    }
    
    .project-stats {
        gap: 8px;
    }
    
    .project-stat {
        font-size: 0.75rem;
    }
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes reconstruct {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(20deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes particleExplosion {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

@keyframes floatParticles {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(var(--tx), var(--ty)) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translate(calc(var(--tx) * 1.5), calc(var(--ty) * 1.5)) scale(0);
        opacity: 0;
    }
}

.explosion-particles {
    position: absolute;
    pointer-events: none;
    z-index: 1000;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: particleExplosion 0.8s ease-out forwards;
}

.particle.float {
    animation: floatParticles 1.2s ease-out forwards;
}

.skill-tag.exploding i {
    animation: explode 0.6s ease-in forwards;
}

.skill-tag.reconstructing i {
    animation: reconstruct 0.8s ease-out forwards;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, currentColor 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.skill-tag.exploding::before {
    animation: haloExpand 0.6s ease-out forwards;
}

@keyframes haloExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

.skill-tag {
    background: var(--github-dark-3);
    color: var(--github-text);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--github-border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-tag:hover {
    background: var(--github-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}