:root {
    --primary-color: #1f2937; /* dark slate */
    --secondary-color: #ff6b6b; /* vibrant coral */
    --light-gray: #f0f2f5;
    --dark-gray: #374151;
    --background-color: #ffffff;
    --sidebar-bg: #ffffff;
    --card-shadow: 0 6px 16px rgba(0,0,0,0.06);
    --gradient-header: linear-gradient(135deg,#4b6cb7,#182848);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: linear-gradient(180deg, var(--background-color) 0%, var(--light-gray) 100%);
    color: var(--primary-color);
    padding-top: 60px; /* Space for fixed header */
}

.container {
    display: flex;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

/* --- Header and Navigation --- */
.main-header {
    background: var(--gradient-header);
    color: white;
    box-shadow: var(--card-shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    margin: 0 15px;
    padding: 5px 0;
    transition: color 0.3s, border-bottom-color 0.3s;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.lang-switcher button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.lang-switcher button.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* --- Sidebar --- */
.sidebar {
    width: 300px;
    flex-shrink: 0;
    background-color: var(--sidebar-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    height: fit-content;
    position: sticky;
    top: 80px;
    transition: box-shadow 0.3s;
}

.sidebar:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.profile {
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
    margin-bottom: 15px;
}

.profile h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: var(--dark-gray);
}

.profile .title {
    font-size: 1em;
    color: var(--secondary-color);
    font-weight: 600;
}

.sidebar h4 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.sidebar div {
    margin-bottom: 20px;
}

.sidebar p {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.sidebar a {
    color: var(--secondary-color);
    text-decoration: none;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* --- Main Content --- */
.main-content {
    flex-grow: 1;
    padding-left: 40px;
}

.main-content section {
    background-color: var(--sidebar-bg);
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.main-content section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.main-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: var(--dark-gray);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
}

.main-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.job, .education-item {
    margin-bottom: 20px;
}

.job-details, .education-details {
    color: #7f8c8d;
    font-weight: 600;
}

.main-content ul {
    list-style: none;
    padding-left: 0;
}

.main-content ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.main-content ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-size: 0.8em;
}


/* --- Language Specific Styles --- */
.en {
    display: none;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }

    .main-content {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }
    .main-nav {
       flex-direction: column;
       height: auto;
       padding: 10px;
    }
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 10px;
    }
    .nav-links a {
        margin: 5px 10px;
    }
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.social-media a {
    color: var(--primary-color);
    margin: 0 15px;
    font-size: 1.8em;
    transition: color 0.3s;
}

.social-media a:hover {
    color: var(--secondary-color);
}
