:root {
    --bg-color: #c0c0c0;
    --text-color: #000000;
    --primary-color: #000080;
    --accent-color: #ff0000;
    --border-color: #808080;
    --highlight-bg: #ffff00;
}

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

body {
    font-family: "Times New Roman", Times, serif;
    background-color: var(--bg-color);
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFElEQVQIW2NkYGD4z8DAwMgAI0AMDAwARzIBB2Q1tL8AAAAASUVORK5CYII='); /* Tiny dot pattern */
    color: var(--text-color);
    line-height: 1.4;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    background-color: #ffffff;
    border: 3px outset #ffffff;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

header {
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px groove #ffffff;
    padding-bottom: 1rem;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-decoration: underline;
}

section {
    margin-bottom: 2rem;
    border: 2px inset #ffffff;
    padding: 1rem;
    background-color: #e0e0e0;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000;
    background-color: #000080;
    color: #fff;
    padding: 0.2rem 0.5rem;
    display: inline-block;
    width: 100%;
}

/* Skills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: #c0c0c0;
    border: 2px outset #ffffff;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    color: #0000ee;
    text-decoration: underline;
}

.skill-tag:hover {
    color: #ff0000;
}

.skill-tag.active {
    background-color: #000080;
    color: #fff;
    border: 2px inset #ffffff;
    text-decoration: none;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #808080;
    border-right: 2px solid #ffffff;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2.35rem;
    top: 0.25rem;
    width: 16px;
    height: 16px;
    background-color: #000080;
    border: 2px outset #fff;
}

.timeline-content {
    background: #c0c0c0;
    padding: 1rem;
    border: 2px outset #ffffff;
}

.timeline-content h3 {
    margin-bottom: 0.25rem;
    color: #000080;
    text-decoration: underline;
}

.date {
    display: block;
    font-size: 0.9rem;
    color: #000;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.item-skills {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.item-skills span {
    font-size: 0.8rem;
    background: #ffffff;
    border: 1px solid #000;
    padding: 0.1rem 0.3rem;
    color: #000;
}

/* Education Specific Styling */
.education-content {
    background: #e0e0e0;
    border: 2px inset #ffffff;
}
.education-content h3 {
    color: #000;
}
.education-content h4 {
    color: #333;
    margin-bottom: 0.25rem;
    font-style: italic;
}
.education-dot {
    background-color: #008000;
}

/* Highlighting Logic */
.timeline.filtering .timeline-item {
    opacity: 0.5;
}

.timeline.filtering .timeline-item.highlight {
    opacity: 1;
}

.timeline.filtering .timeline-item.highlight .timeline-content {
    background-color: var(--highlight-bg);
}

.timeline.filtering .timeline-item.highlight .timeline-dot {
    background-color: #ff0000;
}

.timeline.filtering .timeline-item.highlight .item-skills span.skill-match {
    background-color: #ff0000;
    color: #fff;
}

/* Showcase Full-Width Cards */
#showcase-container, #upcoming-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.full-width-card {
    display: flex;
    flex-direction: row;
    background: #c0c0c0;
    border: 3px outset #ffffff;
    padding: 0.5rem;
}
.card-image-wrapper {
    flex: 0 0 150px;
    border: 2px inset #ffffff;
    margin-right: 1rem;
}
.full-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.full-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.category-label {
    font-size: 0.8rem;
    color: #ff0000;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.full-card-content h3 {
    margin-bottom: 0.5rem;
    color: #000080;
}
.workplace-badge {
    display: inline-block;
    background: #000080;
    color: white;
    padding: 0.1rem 0.5rem;
    border: 1px solid #fff;
    margin-bottom: 0.5rem;
}
.event-tag {
    display: inline-block;
    background: #ffff00;
    border: 1px solid #000;
    padding: 0.1rem 0.3rem;
    margin-right: 0.3rem;
}
.extra-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #000;
}

@media (max-width: 600px) {
    .full-width-card {
        flex-direction: column;
    }
    .card-image-wrapper {
        height: 150px;
        flex: auto;
        margin-right: 0;
        margin-bottom: 1rem;
    }
}


/* Photos and Poems */
.feed-container img {
    border: 3px outset #ffffff;
    margin-bottom: 1rem;
}

.poem-card {
    background: #c0c0c0;
    border: 3px outset #ffffff;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0;
}
.poem-card summary {
    font-size: 1.2rem;
    color: #000080;
    text-decoration: underline;
    font-weight: bold;
}
.poem-meta {
    font-weight: bold;
    color: #000;
    margin-top: 1rem;
}
.form-group input, .form-group select {
    background: #fff;
    border: 2px inset #ffffff;
    color: #000;
    padding: 0.2rem;
    border-radius: 0;
}

/* Theme Switcher */
#theme-switcher-wrapper {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    background: var(--bg-color, #fff);
    color: var(--text-color, #000);
    padding: 0.5rem;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 4px;
    font-family: inherit;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#theme-switcher-wrapper select {
    background: var(--bg-color, #fff);
    color: var(--text-color, #000);
    border: 1px solid var(--border-color, #ccc);
    padding: 0.2rem;
    font-family: inherit;
    border-radius: 2px;
}

/* Timeline Description List */
.timeline-description-list {
    margin: 0.5rem 0 1rem 1.2rem;
    padding: 0;
    list-style-type: disc;
}
.timeline-description-list li {
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

/* Timeline Projects */
.timeline-projects {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.timeline-project-block {
    background: rgba(0, 0, 0, 0.03);
    border-left: 3px solid #000080;
    padding: 0.75rem;
}
.project-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-weight: bold;
}
.project-icon {
    font-size: 1.1rem;
}
.project-title {
    color: #000080;
}
.project-desc {
    font-size: 0.9rem;
    color: #333;
}
