/* ===== EXPERIENCE ITEM STRUCTURE ===== */
.experience-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.experience-item:last-child {
    border-bottom: none;
}

/* Period aligned to right after job title */
.experience-item h5.sub-title {
    display: inline-block;
    margin-bottom: 4px;
}

.experience-item .period {
    display: inline-block;
    float: right;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    font-style: normal;
    padding: 4px 8px;
    background: rgba(51, 153, 255, 0.1);
    border-radius: 4px;
}

.experience-item p {
    clear: both;
    margin-top: 10px;
}

/* Mobile adjustment for period */
@media (max-width: 768px) {
    .experience-item .period {
        float: none;
        display: block;
        margin: 6px 0 12px;
        text-align: left;
    }
    
    .experience-item p {
        clear: none;
    }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 4px;
    background: rgba(27, 38, 49, 0.95);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

.lang-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: 'Ubuntu', sans-serif;
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(51, 153, 255, 0.15);
}

.lang-btn.active {
    color: var(--text-primary);
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(51, 153, 255, 0.3);
}

/* Mobile adjustment for lang switcher */
@media (max-width: 600px) {
    .lang-switcher {
        top: 10px;
        right: 10px;
        padding: 3px;
    }
    .lang-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

/* Print: hide lang switcher */
@media print {
    .lang-switcher {
        display: none !important;
    }
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

:root {
    --bg-dark: #1b2631;
    --bg-card: #232f3e;
    --text-primary: #ffffff;
    --text-secondary: #b0b8c4;
    --accent: #3399ff;
    --accent-hover: #66b3ff;
    --progress-bg: #2a2a2a;
    --progress-fill: linear-gradient(90deg, var(--accent), var(--accent-hover));
    --border-color: #3a4a5a;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: #0f1419;
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    margin: 12px 0;
    line-height: 1.4;
    letter-spacing: 0.03em;
}

i.fa {
    color: var(--accent);
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* ===== TYPOGRAPHY ===== */
.title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.sub-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    margin: 20px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

em {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    font-style: normal;
    margin: 8px 0 4px;
}

p {
    color: var(--text-secondary);
    margin: 8px 0 12px;
    font-size: 0.95rem;
}

label {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    display: block;
    margin: 12px 0 6px;
}

/* ===== LAYOUT ===== */
.container {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
}

.section_left {
    width: 28%;
    min-width: 280px;
    padding: 30px 20px;
    background: var(--bg-dark);
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
}

.section_left img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin: 10px auto 15px;
    display: block;
    transition: transform 0.3s ease;
}

.section_left img:hover {
    transform: scale(1.05);
}

.section_right {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: #0f1419;
}

/* ===== PROGRESS BARS ===== */
.progress_container {
    width: 100%;
    height: 10px;
    background: var(--progress-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin: 4px 0 16px;
}

.progress_bar {
    height: 100%;
    background: var(--progress-fill);
    border-radius: 10px;
    transition: width 0.8s ease;
}

/* ===== SKILLS TABLE ===== */
.section_right table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.section_right table td {
    padding: 10px 8px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.section_right table td:first-child {
    width: 45%;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.section_right table td:last-child {
    width: 55%;
}

.section_right table tr:hover {
    background: rgba(51, 153, 255, 0.05);
}

/* ===== EXPERIENCE LIST ===== */
.section_right ul {
    margin: 0 0 16px 20px;
    padding-left: 0;
}

.section_right ul li {
    position: relative;
    padding-left: 18px;
    margin: 6px 0;
}

.section_right ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.9rem;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f1419;
}

::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .section_left {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .section_right {
        padding: 30px 20px;
    }
}

@media (max-width: 600px) {
    .title {
        font-size: 1.5rem;
    }
    
    .section_right table {
        display: block;
    }
    
    .section_right table tr {
        display: block;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .section_right table td {
        display: block;
        width: 100% !important;
        padding: 4px 0;
        text-align: left;
    }
    
    .section_right table td:first-child {
        color: var(--accent);
        font-weight: 700;
        margin-bottom: 8px;
    }
    
    .progress_container {
        margin-top: 8px;
    }
}

/* ===== PRINT ===== */
@media print {
    body {
        background: #fff;
        color: #000;
    }
    
    .section_left, .section_right {
        position: static;
        width: 100%;
        height: auto;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .progress_bar {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section_right > * {
    animation: fadeIn 0.4s ease forwards;
}

.section_right > *:nth-child(1) { animation-delay: 0.1s; }
.section_right > *:nth-child(2) { animation-delay: 0.2s; }
.section_right > *:nth-child(3) { animation-delay: 0.3s; }

