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

:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --text-muted: #666;
    --text-hover: #959595;
    --text-underline: #dbdbdb;
    --border: #e5e5e5;
    --accent: #0066cc;
    --accent-hover: #7da6d0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

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

nav#navbar {
    display: none;
}

/* Container & Header */
.container {
    min-width: 600px;
    max-width: 40%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 3rem;
}

.header nav {
    display: flex;
    gap: 2rem;
}


.header a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.header a:hover {
    color: var(--accent-hover);
}

.ascii-logo {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    transition: opacity 0.3s;
    white-space: nowrap;
    margin-top: 0.4rem;
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p,
li {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/*gray underline for clickable text*/
/*
a {
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-color: var(--text-underline);
    text-decoration-thickness: 10%;
}

a:hover {
    color: var(--text-hover);
}*/

/*blue hue for clickable text*/
a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

.name-link {
    color: inherit;
    text-decoration: none;
}

/* Sections */
.section {
    margin-bottom: 4rem;
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Project Cards */
.project-card {
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 2rem;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.project-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #f5f5f5;
    border-bottom: 2px solid var(--border);
}

.project-card .content {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.project-card .text {
    flex: 1;
}

.project-card .links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.project-card .links a {
    font-weight: 500;
    white-space: nowrap;
}

.placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-bottom: 2px solid var(--border);
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* About Page */
.about-hero {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin: 3rem auto;
    max-width: 900px;
}

.about-hero img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    flex-shrink: 0;
}

.profile-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    border: 3px solid var(--border);
    flex-shrink: 0;
}

.about-hero h1 {
    font-size: 2.5rem;
}

.about-hero p {
    font-size: 1.25rem;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-date {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.875rem;
    padding-top: 0.25rem;
}

.timeline-content h3 {
    margin-bottom: 0.25rem;
}

.timeline-org {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.timeline-content p:last-child {
    margin-top: 0.5rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header nav {
        gap: 1rem;
    }

    .project-card .content {
        flex-direction: column;
    }

    .project-card .links {
        flex-direction: row;
        align-items: flex-start;
    }

    .project-card img,
    .placeholder {
        height: 200px;
    }

    .about-hero {
        flex-direction: column;
        text-align: center;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .timeline-date {
        padding-top: 0;
    }
}