/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    z-index: 1000;
}

body.fa .language-switcher {
    left: 20px;
}

body.en .language-switcher {
    right: 20px;
}

.lang-btn {
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border: 1px solid #ccc;
    background: white;
    border-radius: 5px;
    transition: all 0.5s ease;
}

.lang-btn:hover {
    background: #c02b2b;
    transform: scale(1.1);
}

.lang-btn.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

/* Container */
.container {
    max-width: 2400px;
    margin: 10px auto;
    padding: 20px;
    display: flex;
    gap: 20px;
}

/* Sidebar */
.sidebar {
    flex: 0 0 20vw;
    background: #e6f0fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 10, 1);
}

.sidebar img {
    width: 80%;
    border-radius: 100%;
    transition: transform 0.8s ease;
}

.sidebar img:hover {
    transform: scale(1.1);
}

.sidebar header {
    text-align: center;
}

.sidebar h1 {
    font-size: 1.8em;
    color: #1a73e8;
    margin-bottom: 5px;
}

.sidebar h2 {
    font-size: 1.5em;
    color: #333;

}

/* Main Content */
.main-content {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 1);
}

/* Sections */
section {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 15px;
    transition: all 0.5s ease;
}

section:hover {
    background-color: #dae8f5;
    transform: scale(1.01);
}

section h2 {
    color: #1a73e8;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #1a73e8;
}

/* Lists */
ul {
    list-style: inside;
    padding: 0;
}

li {
    padding: 5px 0;
    margin-bottom: 8px;
}

/* Job Entries */
.job-entry {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 1s ease;
}

.job-entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.job-entry summary {
    padding: 15px;
    background: #fdfbfb;
    cursor: pointer;
    transition: background-color 1s ease;
}

.job-entry summary:hover {
    background: #e3e4e6;
}

.job-entry summary h3 {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 5px;
}

.job-entry summary p {
    color: #666;
    font-size: 0.9em;
}

.job-details {
    padding: 15px;
    background: white;
    border-top: 1px solid #e3e4e6;
    margin-top: 10px;
}

/* Software Grid */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.software-column ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.software-column li {
    background-color: #e0e0e0;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.software-column li:hover {
    background-color: #1a73e8;
    color: white;
    transform: scale(1.05);
}

/* Links */
a {
    color: #1a73e8;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: #1557b0;
}

/* RTL Support */
body.fa {
    direction: rtl;
    text-align: right;
}

body.en {
    direction: ltr;
    text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        flex: none;
        width: 100%;
    }

    .software-grid {
        grid-template-columns: 1fr;
    }
}