body, html {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
}

.wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(240, 240, 240, 0.862);
    z-index: 1;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.profile-img {
    margin-top: 20px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4a90e2;
    margin: 0 auto 15px auto;
    display: block;
}

.job {
    margin-bottom: 30px;
}

.job-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.company-logo {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    background: #f0f0f0;
    border: 1px solid #ddd;
    display: block;
}

.logo-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.job-info {
    flex: 1;
    text-align: left;
}

.job-title {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.education-details {
    margin-top: -0.4em;
    padding-left: 3.2rem;
    padding-bottom: 8px;
    font-size: 0.95em;
    line-height: 1.4;
    text-align: left;
    color: #444;
}

.education-details div {
    margin-bottom: 0.15em;
}

.education-details span.label {
    font-weight: bold;
    color: #222;
}

.date-tag {
    background: #4a90e2;
    color: white;
    font-size: 0.85rem;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    vertical-align: middle;
    user-select: none;
}

.status-tag {
    display: inline-block;
    background-color: #28a745;
    color: white;
    font-size: 0.75em;
    font-weight: 600;
    padding: 0.2em 0.6em;
    border-radius: 1em;
    margin-left: 0.5em;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.responsibilities {
    list-style-type: disc;
    padding-left: 20px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
}

h1 {
    font-size: 2.4rem;
    margin-bottom: 30px;
    color: #222;
}

section {
    margin-bottom: 40px;
    text-align: left;
}

section h2 {
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 6px;
    margin-bottom: 15px;
    color: #4a90e2;
    font-weight: 600;
    font-size: 1.4rem;
}

section p, section ul {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
}

ul {
    list-style-type: disc;
    padding-left: 20px;
}

.contacts a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    margin: 0 10px;
    display: inline-block;
}

.contacts a:hover {
    text-decoration: underline;
}

.language-dropdown {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
}

.language-dropdown select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    appearance: none;
}

#open-to-work-indicator {
    position: relative;
    width: 12px;
    height: 12px;
    background-color: #28a745;
    margin-top: -3vh;
    border-radius: 50%;
    cursor: default;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tooltip-text {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #28a745;
    color: white;
    font-size: 0.75em;
    padding: 0.25em 0.5em;
    border-radius: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    user-select: none;
}

#open-to-work-indicator:hover .tooltip-text {
    opacity: 1;
    pointer-events: auto;
}

#portfolio-entries .job {
    margin-bottom: 5px;
}

#portfolio-entries .job-header {
  align-items: center;
}

#portfolio-entries .job-title {
  padding-bottom: 3px;
}

@media (max-width: 480px) {
    .wrapper {
        padding: 20px 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    section h2 {
        font-size: 1.2rem;
    }
}
