/* --- BASE TYPOGRAPHY & SMOOTH SCROLLING --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
}

/* --- OVERALL LAYOUT --- */
.layout-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* --- ALWAYS-VISIBLE SIDEBAR TOGGLE --- */
.menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #553F64;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background-color 0.2s;
}

.menu-toggle:hover {
    background-color: #42314E;
}

/* --- SIDEBAR NAVIGATION (OVERLAY STYLE) --- */
.sidebar {
    width: 160px;
    background-color: #ffffff;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -280px;
    padding: 80px 20px 40px 20px; 
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    z-index: 1000;
    transition: left 0.3s ease;
}

.sidebar.active {
    left: 0;
}

.page-nav {
    display: flex;
    flex-direction: column;
    gap: 8px; 
}

.page-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.page-nav a:hover {
    background-color: #efeaf2;
    color: #553F64;
    transform: translateX(5px);
}

/* --- MAIN CONTENT AREA --- */
.content {
    flex: 1; 
    padding: 80px 40px 40px 40px;
    max-width: 850px;
    margin: 0 auto;
}

/* --- HEADER --- */
header {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    border-top: 5px solid #553F64;
}

header h1 {
    margin: 0;
    font-size: 2.8em;
    font-weight: 700;
    color: #553F64;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.location-tag {
    color: #666;
    font-size: 1.1em;
    margin: 10px 0 20px 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 26px;
    color: #553F64;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #42314E;
}

/* --- SECTION CARDS --- */
section {
    scroll-margin-top: 40px; 
}

.section-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.section-title {
    margin: 0 0 20px 0;
    font-size: 1.5em;
    color: #553F64;
    border-bottom: 2px solid #eef2f1;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

h3 {
    margin: 20px 0 0 0;
    color: #2a3b45;
    font-size: 1.15em;
}

.meta-info {
    font-size: 0.95em;
    color: #666;
    margin: 5px 0 0 0;
}

/* --- LISTS --- */
ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 5px 0 0 0;
}

li {
    margin: 5px 0 0 0;
}

a {
    color: #553F64;
    text-decoration: none;
    word-wrap: break-word;
    transition: color 0.2s;
}

a:hover {
    color: 4527a0;
    text-decoration: underline;
}

/* --- SKILLS BADGES --- */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.computational {
    background-color: #F4D0DB;
    color: #8E4B61;
    border: 1px solid #EBBBC9;
}

.wet-lab {
    background-color: #D0E1F4;
    color: #3E5C8E;
    border: 1px solid #BBD2EB;
}

.skill-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.legend-item {
    transition: opacity 0.3s ease;
}


.skill-badge.dimmed, .legend-item.dimmed {
    opacity: 0.25; 
}


/* --- COLLAPSIBLE ACCORDIONS --- */
details {
    margin-bottom: 15px;
    background-color: #fafafa;
    border-radius: 6px;
    padding: 12px 18px;
    border: 1px solid #eee;
}

details summary {
    cursor: pointer;
    font-weight: 600;
    color: #553F64;
    font-size: 1.05em;
    list-style-type: none;
    display: flex;
    align-items: center;
}

details summary::before {
    content: '\25B8'; 
    font-size: 1.3em;
    margin-right: 12px;
    color: #553F64;
    transition: transform 0.2s;
}

details[open] summary::before {
    transform: rotate(90deg);
}

details ol, details ul {
    margin-top: 0px;
    padding-left: 20px;
    font-size: 0.95em;
}

details li {
    margin-bottom: 0px;
}

/* --- BACK TO TOP ARROW --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #553F64;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    opacity: 0; 
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1; 
    visibility: visible;
}

.back-to-top:hover {
    background-color: #264a45;
    transform: translateY(-3px);
    color: white;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 850px) {
    .layout-container {
        flex-direction: column;
    }
    
    .content {
        padding: 80px 20px 20px 20px;
    }
    
    header {
        padding: 25px;
    }
    
    header h1 {
        font-size: 2.2em;
    }
}