@font-face {
    font-family: 'Helvetica';
    src: url('../helvetica-255/Helvetica.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica';
    src: url('../helvetica-255/Helvetica-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica';
    src: url('../helvetica-255/Helvetica-Oblique.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Helvetica';
    src: url('../helvetica-255/Helvetica-BoldOblique.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

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

/* Hide scrollbar but keep scroll functionality */
*::-webkit-scrollbar {
    display: none;
}

* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html {
    font-size: 16px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Helvetica', sans-serif;
    font-size: 1em;
}

.main-container {
    display: flex;
    flex: 1;
    padding-bottom: 3rem;
}

p {
    font-family: 'Helvetica', sans-serif;
    font-size: 0.875em;
    font-weight: normal;
    line-height: 1.6;
}

a {
    font-family: 'Helvetica', sans-serif;
    font-size: 0.875em;
    font-weight: normal;
    color: #000;
    text-decoration: none;
}

a:visited {
    color: #000;
}

a:hover {
    text-decoration: underline;
}

.column-left {
    width: 25%;
    margin-top: 2rem;
    margin-left: 2rem;
    position: sticky;
    top: 2rem;
    align-self: flex-start;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
}

.column-right {
    width: 75%;
    padding: 2rem;
    position: relative;
}

#content-display {
    width: 100%;
    position: relative;
}

/* Initial Slideshow */
.intro-slideshow {
    position: relative;
    width: 100%;
    height: calc(100vh - 8rem);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slideshow-image {
    position: absolute;
    max-width: 85%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    pointer-events: none; /* Disable clicks on hidden images */
}

.slideshow-image.active {
    pointer-events: auto; /* Only active image is clickable */
    opacity: 1;
}

.slideshow-image.active:hover {
    transform: scale(1.02);
}

.slideshow-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75em;
    color: #999;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.nav-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-arrow-button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5em 0.75em;
    font-family: 'Helvetica', sans-serif;
    font-size: 0.875em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #000;
}

.nav-arrow-button:hover {
    background: #f5f5f5;
}

.nav-button {
    background: transparent;
    border: none;
    font-size: 1em;
    cursor: pointer;
    color: #999;
    font-family: 'Helvetica', sans-serif;
    line-height: 1;
    padding: 0.375em;
    width: 1.5em;
    height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.nav-button:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
}

.close-button {
    background: transparent;
    border: none;
    font-size: 1.125em;
    cursor: pointer;
    color: #999;
    font-family: 'Helvetica', sans-serif;
    line-height: 1;
    padding: 0.5em;
    width: 2em;
    height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.close-button:hover {
    color: #000;
}

.project-header {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 1.5rem 2rem;
    margin: 0 -2rem 1.5rem -2rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 20px 10px #fff;
}

.project-header h1 {
    margin: 0;
    font-family: 'Helvetica', sans-serif;
    font-size: 1em;
    font-weight: normal;
    line-height: 1.6;
    animation: fadeIn 0.3s ease-out;
}

.project-content {
    padding-top: 0;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#content-display h1 {
    margin-bottom: 2rem;
    font-family: 'Helvetica', sans-serif;
    font-size: 1em;
    font-weight: normal;
    line-height: 1.6;
}

.project-blurb {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 5rem;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project-content > .project-image:first-child,
.project-content > .project-figure:first-child {
    margin-top: 1rem;
}

.project-figure {
    margin: 0 0 5rem 0;
}

.project-figure .project-image {
    margin-bottom: 0.5em;
}

.project-video {
    width: 75%;
    max-width: 800px;
    height: auto;
    margin: 4rem auto 0.5rem auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-figure {
    margin: 0 0 4rem 0;
    text-align: center;
}

.video-figure .project-video {
    margin-bottom: 0.5rem;
}

.video-caption {
    font-size: 0.75em;
    color: #666;
    text-align: left;
    width: 75%;
    max-width: 800px;
    margin: 0 auto;
}

.image-caption {
    font-size: 0.75em;
    color: #666;
    text-align: left;
    margin-bottom: 4rem;
}

.company-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 2rem;
    display: block;
}

.project-image-small {
    width: 50%;
    max-width: 400px;
    height: auto;
    margin: 3rem auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.3);
    z-index: 999;
    pointer-events: none;
}

#project-thumbnail {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    background: white;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #ddd;
}

#project-thumbnail img {
    max-width: 600px;
    max-height: 450px;
    width: auto;
    height: auto;
    display: block;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0.5rem 2rem;
    text-align: left;
    font-family: 'Helvetica', sans-serif;
    font-size: 0.75em;
    border-top: 1px solid #ddd;
    background: #fff;
    z-index: 200;
}

footer p {
    margin: 0;
}

#link-preview {
    position: fixed;
    z-index: 2000;
    pointer-events: none;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 320px;
    max-width: 90vw;
    overflow: hidden;
}

.link-preview-header {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

.link-preview-icon {
    font-size: 1.25em;
    flex-shrink: 0;
}

.link-preview-info {
    flex: 1;
    min-width: 0;
}

.link-preview-title {
    font-family: 'Helvetica', sans-serif;
    font-size: 0.875em;
    font-weight: normal;
    color: #000;
    margin-bottom: 0.25em;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.link-preview-url {
    font-family: 'Helvetica', sans-serif;
    font-size: 0.75em;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-preview-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.link-preview-description {
    font-family: 'Helvetica', sans-serif;
    font-size: 0.8125em;
    color: #333;
    padding: 0.75em;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.link-preview-loading {
    padding: 1.25em;
    text-align: center;
    font-family: 'Helvetica', sans-serif;
    font-size: 0.8125em;
    color: #666;
}

/* Left Column Navigation */
.site-header {
    margin-bottom: 2.5em;
}

.site-title {
    font-size: 0.875em;
    font-weight: bold;
    margin-bottom: 1em;
}

.blurb {
    margin-bottom: 0;
}

.project-nav {
    margin-bottom: 2.5em;
}

.nav-section-title {
    margin-bottom: 1.5em;
}

.project-group {
    margin-bottom: 2em;
}

.company-link,
.company-link:visited {
    display: inline-block;
    margin-bottom: 1em;
    color: #4A6FA5;
}

.project-category {
    margin-left: 1.5em;
    margin-bottom: 1.25em;
}

.category-label {
    margin-bottom: 0.25em;
}

.project-link,
.project-link:visited {
    display: inline-block;
    padding: 0.125em 0;
    color: #4A6FA5;
}

.project-category .project-link {
    margin-left: 1em;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
}

.footer-link,
.footer-link:visited {
    color: #4A6FA5;
}

/* Project Timeline */
.project-timeline {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #000;
    padding: 1em 2em;
    z-index: 1000;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.timeline-company {
    font-size: 0.875em;
    font-weight: bold;
}

.timeline-close {
    background: transparent;
    border: none;
    font-size: 1.25em;
    cursor: pointer;
    color: #000;
    padding: 0.25em;
    line-height: 1;
}

.timeline-close:hover {
    opacity: 0.6;
}

.timeline-scroll-container {
    overflow-x: auto;
    padding-bottom: 0.5em;
}

.timeline-track {
    display: flex;
    gap: 1.5em;
}

.timeline-item {
    flex-shrink: 0;
    cursor: pointer;
    text-align: center;
    width: 80px;
}

.timeline-item:hover .timeline-thumbnail {
    border-color: #000;
}

.timeline-item.active .timeline-thumbnail {
    border-color: #000;
    border-width: 2px;
}

.timeline-thumbnail {
    width: 80px;
    height: 60px;
    background: #ccc;
    border: 1px solid #ddd;
    margin-bottom: 0.5em;
    overflow: hidden;
}

.timeline-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Company/Logo items in timeline - wider */
.timeline-company-item {
    width: 120px;
}

.timeline-logo {
    width: 120px;
    height: 50px;
    background: #fff;
    border: none;
}

.timeline-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.timeline-label {
    font-size: 0.625em;
    display: block;
    line-height: 1.3;
    color: #000;
}

.timeline-item.active .timeline-label {
    font-weight: bold;
}

/* Date Timeline */
.timeline-dates {
    position: relative;
    margin-top: 1em;
    padding-top: 0.5em;
    min-width: max-content;
}

.timeline-date-line {
    position: absolute;
    top: 0.65em;
    left: 0;
    right: 0;
    height: 1px;
    background: #000;
}

.timeline-date-track {
    display: flex;
    gap: 1.5em;
    position: relative;
    z-index: 1;
}

.timeline-date-item {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
}

.timeline-date-item.timeline-company-item {
    width: 120px;
}

.timeline-date-marker {
    width: 8px;
    height: 8px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 50%;
    margin: 0 auto 0.5em auto;
}

.timeline-date-item.active .timeline-date-marker {
    background: #000;
}

.timeline-date-label {
    font-size: 0.625em;
    color: #666;
}

.timeline-date-item.active .timeline-date-label {
    color: #000;
    font-weight: bold;
}

/* Minimized Timeline Button */
.timeline-button {
    display: inline-block;
    margin-top: 1rem;
    background: #fff;
    color: #000;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5em 1em;
    font-family: 'Helvetica', sans-serif;
    font-size: 0.75em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-button:hover {
    background: #f5f5f5;
}

/* View Live Button */
.view-live-button {
    display: inline-block;
    background: #fff;
    color: #000;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75em 1.5em;
    font-family: 'Helvetica', sans-serif;
    font-size: 0.875em;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 1em;
}

.view-live-button:hover {
    background: #f5f5f5;
    text-decoration: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .column-left {
        width: auto;
        margin: 1.5rem;
        padding-right: 1.5rem;
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
    }
    
    /* Project navigation on mobile */
    .project-nav {
        display: block !important;
        margin-bottom: 1.5em;
    }
    
    /* Right column - full screen overlay on mobile */
    .column-right {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 0 1rem 1rem 1rem;
        background: #fff;
        z-index: 500;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .column-right.mobile-open {
        display: block;
    }
    
    /* Site header mobile */
    .site-header {
        margin-bottom: 1.5rem;
    }
    
    .site-title {
        font-size: 1.25em;
    }
    
    .blurb {
        font-size: 0.8em;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Timeline button mobile */
    .timeline-button {
        margin-top: 0.75rem;
        font-size: 0.7em;
        padding: 0.4em 0.8em;
    }
    
    /* Footer nav mobile - show prominently */
    .footer-nav {
        margin-top: 1.5rem;
    }
    
    .footer-link {
        font-size: 0.9em;
    }
    
    /* Project header mobile */
    .project-header {
        position: fixed;
        top: -1px;
        left: 0;
        right: 0;
        padding: 1.5rem 1rem 1rem 1rem;
        padding-top: calc(1.5rem + env(safe-area-inset-top, 0px));
        margin: 0;
        background: #fff;
        z-index: 600;
        box-shadow: 0 10px 30px 15px #fff;
    }
    
    /* Add top padding to content to account for fixed header */
    .project-content {
        padding-top: calc(4rem + env(safe-area-inset-top, 0px));
    }
    
    .project-header h1 {
        font-size: 0.9em;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Nav buttons mobile - touch friendly */
    .nav-buttons {
        gap: 4px;
    }
    
    .nav-arrow-button {
        min-width: 36px;
        min-height: 36px;
        font-size: 1em;
        padding: 0.4em 0.6em;
    }
    
    .close-button {
        min-width: 36px;
        min-height: 36px;
        font-size: 1.2em;
    }
    
    /* Project content mobile */
    .project-content {
        padding-top: 0;
    }
    
    .project-blurb {
        font-size: 0.85em;
        margin-bottom: 1.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Images mobile */
    .project-image {
        margin-bottom: 2rem;
    }
    
    .project-content > .project-image:first-child,
    .project-content > .project-figure:first-child {
        margin-top: 5rem;
    }
    
    .project-image-small {
        width: 80%;
        max-width: 300px;
        margin: 2rem auto;
    }
    
    .company-logo {
        max-width: 150px;
    }
    
    /* Video mobile */
    .project-video {
        width: 100%;
        margin: 2rem auto 0.5rem auto;
    }
    
    .video-caption {
        font-size: 0.7em;
        width: 100%;
    }
    
    /* Image captions mobile */
    .image-caption {
        font-size: 0.7em;
    }
    
    /* Hide thumbnail preview on mobile - not useful with touch */
    #project-thumbnail,
    #blur-overlay {
        display: none !important;
    }
    
    /* Slideshow mobile */
    .intro-slideshow {
        height: 50vh;
        margin-top: 1rem;
    }
    
    .slideshow-image {
        max-width: 95%;
        max-height: 70%;
    }
    
    .slideshow-hint {
        bottom: 1rem;
        font-size: 0.7em;
    }
    
    /* View live button mobile */
    .view-live-button {
        font-size: 0.8em;
        padding: 0.6em 1.2em;
    }
    
    /* Footer mobile */
    footer {
        padding: 0.5rem 1rem;
        font-size: 0.7em;
    }
    
    /* Timeline mobile */
    .project-timeline {
        padding: 0.75em 1em;
    }
    
    .timeline-header {
        padding: 0 0 0.5em 0;
    }
    
    .timeline-company {
        font-size: 0.8em;
    }
    
    .timeline-close {
        font-size: 1em;
        min-width: 32px;
        min-height: 32px;
    }
    
    .timeline-item {
        width: 60px;
    }
    
    .timeline-thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .timeline-company-item {
        width: 90px;
    }
    
    .timeline-date-item.timeline-company-item {
        width: 90px;
    }
    
    .timeline-logo {
        width: 90px;
        height: 40px;
    }
    
    .timeline-label {
        font-size: 0.5em;
    }
    
    .timeline-date-item {
        width: 60px;
    }
    
    .timeline-date-label {
        font-size: 0.5em;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
    .column-left {
        margin: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .column-right {
        padding: 0 0.75rem 0.75rem 0.75rem;
    }
    
    .site-title {
        font-size: 1.1em;
    }
    
    .blurb {
        font-size: 0.75em;
    }
    
    .project-header {
        padding: 0.75rem;
        padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
    }
    
    .project-content {
        padding-top: calc(3rem + env(safe-area-inset-top, 0px));
    }
    
    .project-header h1 {
        font-size: 0.85em;
    }
    
    .project-blurb {
        font-size: 0.8em;
    }
    
    .project-image-small {
        width: 90%;
    }
    
    /* Timeline extra small */
    .timeline-item {
        width: 50px;
    }
    
    .timeline-thumbnail {
        width: 50px;
        height: 38px;
    }
    
    .timeline-company-item {
        width: 75px;
    }
    
    .timeline-date-item.timeline-company-item {
        width: 75px;
    }
    
    .timeline-logo {
        width: 75px;
        height: 32px;
    }
    
    .timeline-date-item {
        width: 50px;
    }
    
    .timeline-track,
    .timeline-date-track {
        gap: 1em;
    }
}
