/* ===== VARIABLES ===== */
:root {
    --primary-dark: #2c3e50;
    --primary-orange: #e67e22;
    --primary-blue: #3498db;
    --light-bg: #ecf0f1;
    --text-dark: #2c3e50;
    --text-light: #666;
    --text-lighter: #999;
    --white: #fff;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --sidebar-width: 300px;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background: #f5f5f5;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-orange);
}

ul {
    list-style: none;
}

/* ===== LAYOUT ===== */
.wrapper {
    display: flex;
    max-width: 1400px;
    margin: 30px auto;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar-wrapper {
    background: var(--primary-dark);
    color: var(--white);
    width: var(--sidebar-width);
    padding: 40px 30px;
    flex-shrink: 0;
}

/* Profile */
.profile-container {
    text-align: center;
    margin-bottom: 30px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.2);
    object-fit: cover;
    margin-bottom: 20px;
    transition: var(--transition);
}

.profile-img:hover {
    border-color: var(--primary-orange);
    transform: scale(1.02);
}

.name {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--white);
}

.tagline {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* Sidebar Containers */
.container-block {
    margin-bottom: 30px;
}

.container-block-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact List */
.contact-list li {
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.8);
}

.contact-list li i {
    width: 25px;
    font-size: 16px;
    color: var(--primary-orange);
    margin-right: 10px;
}

.contact-list li a {
    color: rgba(255,255,255,0.8);
    word-break: break-all;
}

.contact-list li a:hover {
    color: var(--primary-orange);
}

/* Education */
.education-container .item {
    margin-bottom: 20px;
}

.education-container .degree {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px;
    color: var(--white);
}

.education-container .meta {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 3px;
    font-style: italic;
}

.education-container .time {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* Languages & Interests */
.languages-container li,
.interests-container li,
.awards-sidebar li {
    margin-bottom: 12px;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
}

.languages-container li i,
.interests-container li i,
.awards-sidebar li i {
    width: 25px;
    color: var(--primary-orange);
    margin-right: 10px;
}

.lang-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-left: 8px;
}

/* ===== MAIN CONTENT ===== */
.main-wrapper {
    flex: 1;
    padding: 50px 40px;
    background: var(--white);
}

/* Sections */
.section {
    margin-bottom: 45px;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-orange);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
}

.section-title i {
    color: var(--primary-orange);
    margin-right: 15px;
    font-size: 26px;
}

/* About Section */
.summary p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
}

.summary a {
    color: var(--primary-orange);
    font-weight: 600;
}

.summary a:hover {
    text-decoration: underline;
}

/* Experience Section */
.experiences-section .item {
    margin-bottom: 35px;
}

.experiences-section .meta {
    margin-bottom: 15px;
}

.experiences-section .upper-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.experiences-section .job-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
}

.experiences-section .time {
    font-size: 15px;
    color: var(--text-lighter);
    font-weight: 400;
}

.experiences-section .company {
    font-size: 16px;
    color: var(--primary-orange);
    font-weight: 500;
}

.experiences-section .details {
    line-height: 1.7;
}

.experiences-section .details ul {
    margin-top: 10px;
    padding-left: 20px;
}

.experiences-section .details li {
    margin-bottom: 5px;
    list-style-type: disc;
}

/* Projects/Software Section */
.projects-section .item {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f9f9f9;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.projects-section .item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.projects-section .project-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
}

.projects-section .project-title a {
    color: var(--primary-dark);
}

.projects-section .project-title a:hover {
    color: var(--primary-orange);
}

.projects-section .project-tagline {
    font-size: 15px;
    color: var(--text-light);
    margin-left: 10px;
}

/* Publications Section */
.publication-note {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 25px;
    font-size: 15px;
}

.publication-year {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-orange);
    margin: 30px 0 15px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-orange);
}

.publications-section .item {
    margin-bottom: 20px;
    padding: 18px;
    background: #f9f9f9;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.publications-section .item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.publication-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.publication-authors {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 8px;
}

.publication-journal {
    font-size: 14px;
    color: var(--primary-orange);
    font-weight: 500;
    display: inline-block;
    margin-right: 15px;
}

.publication-doi {
    font-size: 13px;
    font-family: monospace;
}

.publication-doi a {
    color: var(--primary-dark);
}

.publication-doi a:hover {
    color: var(--primary-orange);
    text-decoration: underline;
}

/* Skills Section */
.skills-section .item {
    margin-bottom: 20px;
}

.skills-section .level-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.progress {
    height: 25px;
    background: var(--light-bg);
    border-radius: 30px;
    overflow: hidden;
}

.progress-bar {
    background: var(--primary-orange);
    color: white;
    line-height: 25px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: width 1s ease;
}

/* Service Section */
.subsection-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--light-bg);
}

.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.custom-list li:before {
    content: "•";
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    left: 0;
}

/* Supervision Cards */
.supervision-card {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.supervision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.supervision-card .number {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-orange);
    line-height: 1.2;
}

.supervision-card .label {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
}

.supervision-card small {
    font-size: 13px;
    color: var(--text-light);
}

/* International Collaborations */
.collab-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.collab-item {
    background: var(--light-bg);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 15px;
    transition: var(--transition);
}

.collab-item:hover {
    background: var(--primary-orange);
    color: white;
}

.collab-item i {
    margin-right: 8px;
    color: var(--primary-orange);
    transition: var(--transition);
}

.collab-item:hover i {
    color: white;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: var(--primary-dark);
    color: white;
    font-size: 14px;
}

footer a {
    color: var(--primary-orange);
}

footer a:hover {
    text-decoration: underline;
}

/* ===== BOOTSTRAP GRID HELPER ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-4, .col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .wrapper {
        flex-direction: column;
        margin: 15px;
    }
    
    .sidebar-wrapper {
        width: 100%;
    }
    
    .main-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 22px;
    }
    
    .section-title i {
        font-size: 22px;
    }
    
    .experiences-section .upper-row {
        flex-direction: column;
    }
    
    .experiences-section .time {
        margin-top: 5px;
    }
    
    .collab-grid {
        flex-direction: column;
    }
    
    .collab-item {
        width: 100%;
    }
    
    .publications-section .item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .profile-img {
        width: 120px;
        height: 120px;
    }
    
    .name {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .projects-section .project-tagline {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
    
    .supervision-card {
        margin-bottom: 15px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .wrapper {
        box-shadow: none;
        margin: 0;
    }
    
    .sidebar-wrapper {
        background: #f5f5f5;
        color: black;
    }
    
    .contact-list li a,
    .name,
    .container-block-title,
    .education-container .degree {
        color: black;
    }
    
    .contact-list li i {
        color: black;
    }
    
    .progress-bar {
        background: #ccc;
        color: black;
    }
    
    footer {
        display: none;
    }
}