:root {
    --bg: #121214;
    --bg-elevated: #1a1a1d;
    --text: #f0f0f2;
    --text-muted: #a0a0a8;
    --text-dim: #6b6b75;
    --accent: #4ade80;
    --border: #2a2a30;
    --font-sans: 'Space Grotesk', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.intro {
    padding: 4rem 0 2rem;
}

.intro h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

section {
    padding: 1.5rem 0;
}

.section-header {
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.education-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.education-item:hover {
    background: var(--bg-elevated);
}

.education-logo {
    width: 80px;
    height: 80px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    overflow: hidden;
}

.education-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.education-item:hover .education-logo {
    border-color: var(--accent);
}

.education-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.education-degree {
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.education-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

.education-gpa {
    color: var(--accent);
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.experience-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1.25rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 0.35rem 0.5rem;
    margin: -0.35rem -0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.experience-item:hover {
    background: var(--bg-elevated);
}

.experience-logo {
    width: 56px;
    height: 56px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    flex-shrink: 0;
    overflow: hidden;
}

.experience-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.experience-item:hover .experience-logo {
    border-color: var(--accent);
}

.experience-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.experience-role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.projects-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.project-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1.5rem 0;
    gap: 2rem;
    transition: opacity 0.2s ease;
}

.project-item:hover .project-header {
    opacity: 0.7;
}

.project-title-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.project-brief {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.project-toggle {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-dim);
    transition: transform 0.3s ease, color 0.2s ease;
    line-height: 1;
}

.project-item.active .project-toggle {
    transform: rotate(45deg);
    color: var(--accent);
}

.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.project-item.active .project-details {
    max-height: 500px;
}

.project-details-inner {
    padding: 0 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-detail-block h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.project-outcome {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: opacity 0.2s ease;
}

.project-link:hover {
    opacity: 0.7;
}

footer {
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-dim);
    transition: color 0.2s ease;
}

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

.footer-links svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .education-item {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
    }

    .education-logo {
        width: 60px;
        height: 60px;
    }

    .education-content h3 {
        font-size: 1.25rem;
    }

    .experience-item {
        grid-template-columns: 48px 1fr;
        gap: 1rem;
    }

    .experience-logo {
        width: 48px;
        height: 48px;
    }

    .project-details-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-title {
        font-size: 1.1rem;
    }
}

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

    .intro {
        padding: 3rem 0 1.5rem;
    }

    section {
        padding: 1.25rem 0;
    }

    .education-item {
        grid-template-columns: 50px 1fr;
        gap: 0.75rem;
    }

    .education-logo {
        width: 50px;
        height: 50px;
        font-size: 0.6rem;
    }

    .education-content h3 {
        font-size: 1.1rem;
    }

    .education-degree {
        font-size: 0.9rem;
    }

    .education-meta {
        font-size: 0.7rem;
        gap: 0.75rem;
    }

    .experience-item {
        grid-template-columns: 44px 1fr;
        gap: 0.75rem;
    }

    .experience-logo {
        width: 44px;
        height: 44px;
        font-size: 0.6rem;
    }

    .experience-content h3 {
        font-size: 0.95rem;
    }

    .experience-role {
        font-size: 0.8rem;
    }

    .project-header {
        padding: 1.25rem 0;
        gap: 1rem;
    }

    .project-title {
        font-size: 1rem;
    }

    .project-brief {
        font-size: 0.85rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-links a {
        width: 44px;
        height: 44px;
    }
}
