* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tahoma', 'Vazirmatn', sans-serif;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
}

[dir="rtl"] {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

.lang-switch {
    position: fixed;
    top: 15px;
    right: 15px;
    background: linear-gradient(to bottom, #2584FC, #084B8A);
    color: white;
    border: 2px solid #003C74;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.3),
                inset 0 -1px rgba(0, 0, 0, 0.3),
                0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.2s ease;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

.lang-switch:hover {
    background: linear-gradient(to bottom, #3AA1FF, #0A5FB0);
    transform: translateY(-1px);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.4),
                inset 0 -1px rgba(0, 0, 0, 0.4),
                0 3px 6px rgba(0, 0, 0, 0.3);
}

.lang-switch:active {
    transform: translateY(1px);
    background: linear-gradient(to bottom, #1A7AF0, #064780);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.fa {
    text-align: right;
}

[dir="rtl"] .title-bar-text {
    margin-right: 10px;
}

[dir="rtl"] .info-item,
[dir="rtl"] .experience-item,
[dir="rtl"] .education-item {
    text-align: right;
}

[dir="rtl"] ul {
    padding-right: 20px;
    padding-left: 0;
}

[dir="rtl"] .date {
    text-align: right;
}

[dir="rtl"] .skill-item {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

.experience-items,
.education-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body {
    background: #236B8E url('xp-background.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.xp-window {
    width: 800px;
    background: #ECE9D8;
    border: 1px solid #0054E3;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.title-bar {
    background: linear-gradient(to right, #0058E6, #3A93FF);
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    border-radius: 8px 8px 0 0;
}

.title-bar-text {
    display: flex;
    align-items: center;
    font-weight: bold;
}



.title-bar-controls button {
    width: 24px;
    height: 24px;
    margin-left: 4px;
    border: 1px solid #fff;
    background: transparent;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.window-content {
    padding: 20px;
}

.section {
    background: white;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #919B9C;
}

h2 {
    color: #003399;
    margin-bottom: 15px;
    border-bottom: 2px solid #ECE9D8;
    padding-bottom: 5px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    padding: 8px;
    background: #F5F5F5;
    border: 1px solid #DDD;
}

.experience-item, .education-item {
    margin-bottom: 15px;
}

.experience-item h3, .education-item h3 {
    color: #0054E3;
    margin-bottom: 5px;
}

.date {
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 5px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.skill-item {
    background: #F0F0F0;
    padding: 8px;
    text-align: center;
    border: 1px solid #DDD;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.skill-item:hover {
    background: #E0E0E0;
    border-color: #0054E3;
}

@media (max-width: 768px) {
    .xp-window {
        width: 100%;
    }
    
    .info-grid, .skills-grid {
        grid-template-columns: 1fr;
    }
}