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

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Navigation Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar.hidden {
    transform: translateX(-250px);
}

.name {
    font-size: 24px;
    font-weight: bold;
    padding: 0 20px 30px 20px;
    border-bottom: 1px solid #555;
    margin-bottom: 20px;
}

.nav-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-item:hover {
    background-color: #444;
}

.nav-item.active {
    background-color: #555;
}

.arrow {
    transition: transform 0.3s;
    font-size: 12px;
}

.arrow.rotated {
    transform: rotate(90deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #222;
}

.submenu.expanded {
    max-height: 500px;
}

.submenu-item {
    padding: 12px 20px 12px 40px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submenu-item:hover {
    background-color: #444;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.menu-toggle.shifted {
    transform: translateX(250px);
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 60px 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: margin-left 0.3s ease, transform 0.3s ease;
}

.main-content.shifted {
    transform: translateX(250px);
}

.content-wrapper {
    flex: 1;
}

.header {
    margin-bottom: 40px;
}

.header h1 {
    font-size: 48px;
    margin-bottom: 15px;
    color: #333;
}

.tagline {
    font-size: 24px;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: #ddd;
}

.intro-text {
    max-width: 700px;
    line-height: 1.8;
    color: #555;
    font-size: 16px;
    margin-bottom: 40px;
}

/* Social Icons */
.social-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 120px));
    gap: 30px;
    max-width: 700px;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, opacity 0.3s;
}

.social-item:hover {
    transform: translateY(-5px);
    opacity: 0.8;
}

.social-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    object-fit: contain;
}

.social-label {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}



/* Overlay for mobile */
.overlay {
    display: none;
}

a.nav-item, a.submenu-item 
    {
    display: block;
    text-decoration: none;
    color: inherit;
    }

a.nav-item, a.submenu-item 
    {
    display: block;
    text-decoration: none;
    color: inherit;
    }


.book-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.book-link {
    flex-shrink: 0;
    display: block;
}

.book-cover {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.25s ease;
    display: block;
}

.book-link:hover .book-cover {
    transform: translateY(-6px);
}

.book-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.book-author {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.book-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.degree-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.degree-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 1rem;
}

.degree-icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.degree-title { font-size: 16px; font-weight: 500; color: #333; margin-bottom: 3px; }
.degree-school { font-size: 14px; color: #666; margin-bottom: 3px; }
.degree-dates { font-size: 12px; color: #999; }

.edu-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 1rem 0;
}

.section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
}

.thesis-box {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.thesis-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.project-list { list-style: none; padding: 0; margin: 0; }

.project-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.project-item:last-child { border-bottom: none; padding-bottom: 0; }

.project-name { font-size: 14px; font-weight: 500; color: #333; margin-bottom: 3px; }
.project-desc { font-size: 13px; color: #666; line-height: 1.6; }

.edu-intro {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 1.5rem;
}

.content-wrapper {
    max-width: 800px;
}

.degree-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: var(--border-radius-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-250px);
    }

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

    .main-content {
        margin-left: 0;
        padding: 100px 30px 40px 30px;
    }

    .header h1 {
        font-size: 36px;
    }

    .tagline {
        font-size: 18px;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

    .social-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .social-icon {
        width: 60px;
        height: 60px;
    }
}
