:root {
    --primary-color: #0D8ABC;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --sidebar-bg: #fff;
    --card-bg: #fff;
    --border-color: #eee;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background-color: var(--sidebar-bg);
    padding: 2rem;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-y: auto;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.profile-text-container {
    width: 100%;
    margin-top: 1rem;
    padding-left: 20px;
}

.profile-img-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    border-left: 5px solid var(--primary-color);
    padding-left: 10px;
    text-align: left;
    width: 100%;
}

.institution {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: left;
    width: 100%;
    padding-left: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: left;
    width: 100%;
    padding-left: 10px;
}

.contact-info {
    width: 100%;
    text-align: left;
    padding-left: 10px;
}

.contact-info a {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.contact-info a i {
    width: 24px;
    text-align: center;
    margin-right: 10px;
    font-size: 1.2rem;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.nav-menu {
    margin-top: 2rem;
    width: 100%;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 0.8rem;
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    display: block;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* Main Content */
.content {
    flex: 1;
    padding: 2rem 3rem;
}

.section {
    margin-bottom: 3rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

h2 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

h3 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Timeline */
.timeline-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--border-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

.timeline-header h4 {
    margin: 0;
    color: #444;
}

.date {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.role {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

ul.details, ul.achievements {
    list-style-position: inside;
    margin-top: 0.5rem;
}

ul.details li, ul.achievements li {
    margin-bottom: 0.3rem;
}

.timeline-image {
    margin-top: 1rem;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.timeline-image img:hover {
    transform: scale(1.02);
}

/* Interests Grid */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.interest-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.interest-card:hover {
    transform: translateY(-5px);
}

.interest-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-top: 0;
    color: #555;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags span {
    background-color: #e9ecef;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #495057;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-size: 0.9rem;
    background-color: var(--sidebar-bg);
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu {
        display: none; /* Can implement a hamburger menu later if needed, or just list links */
    }
    
    .nav-menu ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-menu li {
        margin-bottom: 0;
    }

    .content {
        padding: 1rem;
    }
    
    .section {
        padding: 1.5rem;
    }
}
