@font-face {
    font-family: 'Helvetica Neue Medium';
    src: url('HelveticaNeueMedium.otf') format('opentype');
}

@font-face {
    font-family: 'Helvetica Neue Light';
    src: url('HelveticaNeueLight.otf') format('opentype');
}

@font-face {
    font-family: 'Helvetica Neue Regular';
    src: url('HelveticaNeueRoman.otf') format('opentype');
}

#content {
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
    will-change: transform;
    padding-top: 50px;
    
    /* Force hardware acceleration */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --text-muted: rgba(0,0,0,0.6);
    --highlight-bg: #d6f1ec;
    --highlight-text: #000000;
    --cursor: url("cursors/light.svg"), auto;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-color: #1e1e1e;
        --text-color: #ffffff;
        --text-muted: #c8c8c8;
        --highlight-bg: #2a3f3a;
        --highlight-text: #ffffff;
        --cursor: url("cursors/dark.svg"), auto;
    }
}

:root[data-theme="dark"] {
    --bg-color: #1e1e1e;
    --text-color: #ffffff;
    --text-muted: #c8c8c8;
    --highlight-bg: #2a3f3a;
    --highlight-text: #ffffff;
    --cursor: url("cursors/dark.svg"), auto;
}

:root[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #000000;
    --text-muted: rgba(0,0,0,0.6);
    --highlight-bg: #d6f1ec;
    --highlight-text: #000000;
}

html, body {
    height: auto;
    min-height: 100vh;
    cursor: var(--cursor);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    display: flex;
    align-items: center;     /* vertical */
    padding: 25px;
    background-color: var(--bg-color);
    color: var(--text-color);
    flex-direction: column;
}

#header {
    line-height: 0.5;
    padding: 1px;
    margin-bottom: 10px;
}

.section {
    display: flex;
    align-items: flex-start;
    padding: 1px;
    margin-bottom: 20px;
}

.sectionHeader {
    font-family: 'Helvetica Neue Regular', sans-serif;
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.2;
    min-width: 140px;
    color: var(--text-muted);
}

.sectionMain {
    font-family: 'Helvetica Neue Regular', sans-serif;
    letter-spacing: 0.0125em;
    font-size: 16px;
    line-height: 1.2;
    width: clamp(20vw, 600px, 2000px);
    margin-top: 10px;
    margin-bottom: 0px;
    display: flex;
    text-align: justify;
}

.itemMain {
    font-family: 'Helvetica Neue Regular', sans-serif;
    letter-spacing: 0.0125em;
    font-size: 16px;
    line-height: 1.2;
    width: clamp(20vw, 600px, 2000px);
    margin-top: 10px;
    margin-bottom: 0px;
    display: flex;
    justify-content: space-between;
}

.itemSub {
    font-family: 'Helvetica Neue Light', sans-serif;
    letter-spacing: 0.0125em;
    font-size: 14px;
    line-height: 1.2;
    width: clamp(20vw, 600px, 2000px);
    margin-top: 4px;
    margin-bottom: 0px;
    text-align: justify;
}

.demoLink {
    font-family: 'Helvetica Neue Light', sans-serif;
    letter-spacing: 0.0125em;
    font-size: 14px;
    line-height: 1.2;
    width: clamp(20vw, 600px, 2000px);
    margin-top: 4px;
    margin-bottom: 0px;
    text-align: justify;

    color: inherit;
}

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

.right {
    color: var(--text-muted);
}

.highlight {
    background-color: transparent;
    color: var(--highlight-text);
    font-weight: normal;
    padding: 0px 3px;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.highlight::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    bottom: 1px;
    border: 1px solid var(--highlight-text);
    border-radius: 2px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Helvetica Neue Light', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    z-index: 1000;
}

.theme-toggle:hover {
    color: var(--text-color);
}

.project-link {
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
}

.project-link:hover {
    color: var(--text-color);
}

/* For smaller displays */
@media (max-width: 768px) {
    body {
        padding: 15px; 
    }

    .section {
        flex-direction: column; 
        align-items: flex-start;
    }

    .sectionHeader {
        min-width: auto;
        font-size: 16px;
        margin-bottom: 5px;
    }

    .sectionMain,
    .itemMain,
    .itemSub {
        width: 100%;
        font-size: 12px;
    }

    .list {
        width: 100%;
    }

    .itemMain {
        flex-wrap: wrap;
    }

    .right {
        display: block;
        text-align: left;
        margin-top: 2px;
    }
}