/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #03cc85;
    --primary-dark: #03bb7a;
    --sidebar-bg: #2b2b2b;
    --sidebar-dark: #202020;
    --text-color: #333;
    --bg-light: #f7f7f7;
    --bg-lighter: #fcfcfc;
    --white: #fff;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.profile {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.profile h2 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
}

.profile h3 {
    font-size: 12px;
    font-weight: 300;
    opacity: 0.8;
    line-height: 1.5;
}

/* Navigation */
.nav-menu {
    list-style: none;
    padding: 0;
    flex: 1;
}

.nav-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--white);
    transition: all 0.3s;
    font-size: 14px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #363636;
    border-left: 3px solid var(--primary-color);
}

.nav-menu a .icon {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

/* Sidebar footer */
.sidebar-footer {
    background-color: var(--sidebar-dark);
    padding: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.social-links a {
    color: var(--white);
    opacity: 0.7;
    font-size: 18px;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.copyright {
    font-size: 12px;
    opacity: 0.5;
}

/* Main content */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
}

.section {
    padding: 60px 40px;
}

.section:nth-child(odd) {
    background-color: var(--bg-light);
}

.section:nth-child(even) {
    background-color: var(--bg-lighter);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Typography */
.page-title {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--text-color);
}

.section-title {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 25px;
    text-align: center;
    color: var(--text-color);
}

/* Biography section */
.bio-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.bio-image {
    text-align: center;
}

.bio-image img {
    max-width: 300px;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.external-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.external-links a {
    text-align: center;
    color: var(--text-color);
}

.external-links img {
    height: 50px;
    margin-bottom: 5px;
}

.external-links span {
    display: block;
    font-size: 12px;
}

.bio-text p {
    margin-bottom: 15px;
}

/* Career timeline */
.career-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.career-item {
    display: flex;
    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.career-dates {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    min-width: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.career-dates .year-end {
    font-size: 18px;
    font-weight: 700;
}

.career-dates .year-start {
    font-size: 14px;
    background: var(--primary-dark);
    padding: 3px;
    margin-top: 5px;
}

.career-content {
    padding: 15px;
}

.career-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.career-content p {
    font-size: 13px;
    opacity: 0.7;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding: 20px;
    background: var(--white);
    border-radius: 5px;
    margin-bottom: 20px;
    margin-left: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 25px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
}

.timeline-date {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 13px;
    margin-bottom: 10px;
}

.timeline-item h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.contact-info {
    background: var(--white);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.contact-list .icon {
    width: 30px;
    color: var(--primary-color);
}

.map-container {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* Materials/Documents */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.material-card {
    background: var(--white);
    border-radius: 5px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.material-card h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.material-card p {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 15px;
}

.material-card .file-type {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    text-transform: uppercase;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: var(--sidebar-bg);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .bio-grid {
        grid-template-columns: 1fr;
    }

    .career-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .section {
        padding: 40px 20px;
    }

    .page-title {
        font-size: 32px;
    }
}
