:root {
    --bg-color: #c0c0c0;
    --bg-paper: #ffffff;
    --bg-sidebar: #d4d0c8;
    --text-color: #000000;
    --text-light: #333333;
    --text-muted: #666666;
    --border-color: #808080;
    --border-light: #ffffff;
    --border-dark: #000000;
    --accent-color: #0000ff;
    --accent-visited: #800080;
    --accent-hover: #ff0000;
    --shadow-3d: inset -1px -1px #000000, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #c0c0c0;
}

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

body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect width="100" height="100" fill="%23c0c0c0"/><circle cx="50" cy="50" r="2" fill="%23a0a0a0" opacity="0.3"/></svg>');
    background-repeat: repeat;
    scroll-behavior: smooth;
}

/* Top Navigation */
.top-navigation {
    background-color: var(--bg-sidebar);
    border-bottom: 2px inset var(--border-color);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-height: 50px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.nav-link {
    padding: 0.75rem 1.5rem;
    border: 2px outset var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    font-family: 'Arial Black', Arial, sans-serif;
    transition: all 0.2s ease;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0 0.25rem;
    display: inline-block;
}

.nav-link:hover {
    border-style: inset;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
    background-color: var(--bg-paper);
    color: var(--accent-color);
}

.nav-link:active {
    transform: scale(0.95);
}

.nav-link.active {
    border-style: inset;
    background-color: var(--bg-paper);
    color: var(--accent-color);
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-container {
    display: flex;
    min-height: calc(100vh - 50px);
    max-width: 1400px;
    margin: 0 auto;
    border: 2px outset var(--border-color);
    border-top: none;
}

/* Sidebar with Profile Picture */
.sidebar {
    width: 300px;
    background-color: var(--bg-sidebar);
    border-right: 2px inset var(--border-color);
    padding: 2rem 1.5rem;
    position: sticky;
    top: 50px;
    height: calc(100vh - 50px);
    overflow-y: auto;
    flex-shrink: 0;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2);
    align-self: flex-start;
}

.profile-section {
    text-align: center;
}

.profile-image {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image img {
    width: 280px;
    height: 280px;
    border: 3px outset var(--border-color);
    object-fit: cover;
    background-color: var(--bg-paper);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

.profile-image img:hover {
    border-style: inset;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--text-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'Arial Black', Arial, sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.profile-location {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
    font-style: italic;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 2px outset var(--border-color);
    background-color: var(--bg-paper);
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    border-style: inset;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3);
    background-color: var(--bg-color);
}

.social-link:active {
    border-style: inset;
    transform: scale(0.95);
}

.social-icon {
    font-family: 'Arial Black', Arial, sans-serif;
    line-height: 1;
}

.social-link[title="Email"] .social-icon {
    font-size: 1.1rem;
}

.social-link[title="X (Twitter)"] .social-icon {
    font-size: 1.3rem;
    font-weight: bold;
}

.social-link[title="LinkedIn"] .social-icon {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--accent-color);
}

.social-link[title="GitHub"] .social-icon {
    font-size: 1.1rem;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 2rem;
    background-color: var(--bg-paper);
    min-height: calc(100vh - 50px);
    border-left: 1px solid var(--border-dark);
    align-self: flex-start;
}

.content-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px groove var(--border-color);
}

.content-section:last-of-type {
    border-bottom: none;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px double var(--border-dark);
    font-family: 'Arial Black', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}

.content-section em {
    font-style: italic;
    font-weight: bold;
}

.content-section strong {
    font-weight: bold;
    color: var(--text-color);
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border: 2px outset var(--border-color);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.project-card-featured {
    grid-column: 1 / -1;
    padding: 2rem;
    border-width: 3px;
}

.project-card:hover {
    border-style: inset;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'Arial Black', Arial, sans-serif;
    text-decoration: underline;
}

.project-card-featured h3 {
    font-size: 1.5rem;
}

.project-card p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-card-featured p {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px outset var(--border-color);
    background-color: var(--bg-paper);
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    font-family: 'Arial Black', Arial, sans-serif;
    transition: all 0.2s ease;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.project-link:hover {
    border-style: inset;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
    background-color: var(--bg-color);
    color: var(--accent-hover);
}

.project-link:active {
    border-style: inset;
    transform: scale(0.95);
}

/* Research Section */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border: 2px outset var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: bold;
    font-family: 'Arial Black', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.filter-tab:hover {
    border-style: inset;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
    background-color: var(--bg-paper);
}

.filter-tab.active {
    border-style: inset;
    background-color: var(--bg-paper);
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: var(--accent-color);
}

.filter-tab:active {
    transform: scale(0.95);
}

.research-list {
    margin-top: 1rem;
}

.research-item.hidden {
    display: none !important;
}

/* GitHub Activity Section */
.github-contribution-graph {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background-color: var(--bg-color);
    padding: 1.5rem;
    border: 2px outset var(--border-color);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.github-contribution-graph .calendar {
    width: 100%;
    max-width: 100%;
}

/* Simplify GitHub calendar appearance – show only the activity blocks */
.github-contribution-graph .calendar h1,
.github-contribution-graph .calendar h2,
.github-contribution-graph .calendar h3,
.github-contribution-graph .calendar h4,
.github-contribution-graph .calendar h5,
.github-contribution-graph .calendar h6,
.github-contribution-graph .calendar p,
.github-contribution-graph .calendar a,
.github-contribution-graph .calendar .wday,
.github-contribution-graph .calendar .legend,
.github-contribution-graph .calendar .contrib-footer,
.github-contribution-graph .calendar .contrib-column,
.github-contribution-graph .calendar .sr-only {
    display: none !important;
}

/* Hide all text inside the SVG (month labels, numbers, etc.) */
.github-contribution-graph .calendar svg text {
    display: none !important;
}

.contribution-chart {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.github-stats {
    margin-top: 1.5rem;
}

.stat-item {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.stat-item strong {
    font-weight: bold;
    font-family: 'Arial Black', Arial, sans-serif;
    margin-right: 0.5rem;
}

.research-item {
    background-color: var(--bg-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px outset var(--border-color);
    border-left: 4px solid var(--accent-color);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.research-item:hover {
    border-style: inset;
    border-left-color: var(--accent-hover);
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.research-item h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'Arial Black', Arial, sans-serif;
    text-decoration: underline;
}

.research-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-style: italic;
    font-family: 'Courier New', monospace;
}

.research-item > p:not(.research-meta) {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.research-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-dark);
    background-color: var(--bg-paper);
    color: var(--text-color);
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    font-style: italic;
}

/* Contact Section */
.contact-info {
    margin-top: 2rem;
}

.contact-item {
    padding: 1.25rem;
    margin-bottom: 1rem;
    background-color: var(--bg-color);
    border: 2px outset var(--border-color);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.contact-item:hover {
    border-style: inset;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-item strong {
    color: var(--text-color);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 1rem;
    font-family: 'Arial Black', Arial, sans-serif;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.contact-item a:visited {
    color: var(--accent-visited);
}

.contact-item a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px groove var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

/* Classic Web Elements */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1.5rem;
        border-right: none;
        border-bottom: 2px inset var(--border-color);
    }

    .profile-image img {
        width: 200px;
        height: 200px;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .main-content {
        padding: 1.5rem;
        border-left: none;
    }

    .content-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card-featured {
        grid-column: 1;
    }
    
    .project-links {
        gap: 0.75rem;
    }
    
    .project-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 1rem;
    }

    .profile-image img {
        width: 150px;
        height: 150px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .main-content {
        padding: 1rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }
}
