/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #F0EEE9;
    --primary-text: #2D00FB;
    --secondary-text: #E8441F;
    --body-text: #000000;
    --grid-line: #000000;
    
    /* Fluid spacing scale - scales with viewport */
    --space-xs: clamp(8px, 0.5vw + 4px, 12px);
    --space-sm: clamp(12px, 0.8vw + 6px, 20px);
    --space-md: clamp(16px, 1.2vw + 8px, 30px);
    --space-lg: clamp(24px, 2vw + 12px, 50px);
    --space-xl: clamp(40px, 3vw + 20px, 80px);
    
    /* Fluid typography scale */
    --text-sm: clamp(12px, 0.8vw + 4px, 16px);
    --text-base: clamp(14px, 1vw + 4px, 20px);
    --text-lg: clamp(16px, 1.2vw + 6px, 24px);
    --text-xl: clamp(20px, 1.5vw + 8px, 28px);
    --text-2xl: clamp(24px, 2vw + 10px, 32px);
    --text-title: clamp(42px, 4.5vw + 10px, 80px);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    background-color: var(--bg-color);
    color: var(--body-text);
    line-height: 1.4;
    overflow-x: hidden;
}

/* Grid System */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr 1fr;
    width: 100%;
}

/* Continuous vertical lines - applied to a wrapper */
.site-wrapper {
    position: relative;
}

.site-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1000;
    background: 
        linear-gradient(to right, transparent 23px, var(--grid-line) 23px, var(--grid-line) 24px, transparent 24px),
        linear-gradient(to right, transparent calc(100% - 24px), var(--grid-line) calc(100% - 24px), var(--grid-line) calc(100% - 23px), transparent calc(100% - 23px)),
        linear-gradient(to right, transparent calc(20% - 1px), var(--grid-line) calc(20% - 1px), var(--grid-line) 20%, transparent 20%),
        linear-gradient(to right, transparent calc(80% - 1px), var(--grid-line) calc(80% - 1px), var(--grid-line) 80%, transparent 80%);
}

.site-wrapper > * {
    position: relative;
    z-index: 1;
}

/* No border on top of nav */

.grid-cell {
    padding: var(--space-md);
    display: flex;
    align-items: center;
    min-height: clamp(60px, 5vw, 80px);
}

/* Nav cells have no borders */

/* Navigation */
nav.main-grid {
    min-height: clamp(60px, 5vw, 80px);
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--grid-line);
}

nav.main-grid .grid-cell {
    border-bottom: none;
}

/* Spacer between nav and welcome */
.spacer-row {
    height: clamp(80px, 10vw, 150px);
}

.spacer-row .empty-cell {
    border-bottom: none;
}

.logo-cell {
    justify-content: flex-start;
    padding-left: var(--space-lg);
}

.logo-cell img {
    height: clamp(35px, 3vw + 10px, 50px);
}

.home-button {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.home-button:hover {
    transform: scale(1.1);
}

.home-button:active {
    transform: scale(0.95);
}

.nav-links-cell {
    justify-content: center;
    gap: clamp(20px, 3vw, 50px);
    grid-column: 2 / 4;
}

.nav-links-cell a {
    color: var(--body-text);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 500;
    text-transform: lowercase;
}

.nav-links-cell a:hover {
    color: var(--primary-text);
}

.nav-links-cell a.active {
    font-weight: 700;
}

.location-cell {
    justify-content: flex-end;
    padding-right: var(--space-lg);
    font-size: var(--text-base);
}

/* Welcome Section */
#welcome.main-grid {
    border-bottom: none;
}

/* Title row - spans center columns */
.title-row {
    border-top: 1px solid var(--grid-line);
    border-bottom: 1px solid var(--grid-line);
    min-height: auto;
}

/* Title cell with all borders */
.title-cell {
    padding: 0;
    justify-content: center;
    grid-column: 2 / 4;
    border-top: 1px solid var(--grid-line);
    border-bottom: 1px solid var(--grid-line);
    min-height: auto;
}

.main-title {
    font-size: var(--text-title);
    font-weight: 700;
    letter-spacing: clamp(-1px, -0.1vw, -2px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1vw, 15px);
    white-space: nowrap;
    padding: 0.1em 0.15em;
    width: 100%;
    line-height: 1.1;
}

.main-title .name {
    color: var(--primary-text);
}

.main-title .name-logo {
    width: 0.45em;
    height: 0.45em;
    vertical-align: super;
    margin-left: 0.05em;
}

.main-title .separator {
    color: var(--body-text);
    font-weight: 300;
    margin: 0 clamp(5px, 0.7vw, 10px);
}

.main-title .designer {
    color: var(--secondary-text);
}

/* Image row - empty cells on sides get horizontal lines */
.image-row {
    border-bottom: 1px solid var(--grid-line);
    position: relative;
    padding: clamp(10px, 1vw, 14px) var(--space-md) clamp(11px, 1vw, 15px) var(--space-md);
}

/* Inner horizontal lines for image row side cells */
.image-row::before,
.image-row::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--grid-line);
}

.image-row::before {
    top: 13px;
}

.image-row::after {
    bottom: 14px;
}

.image-cell {
    padding: 14px 0 15px 0;
    justify-content: center;
    align-items: center;
    grid-column: 2 / 4;
    border-bottom: 1px solid var(--grid-line);
    position: relative;
}

/* Double horizontal lines at top and bottom of image section */
.image-cell::before,
.image-cell::after {
    content: '';
    position: absolute;
    left: -100vw;
    right: -100vw;
    height: 1px;
    background-color: var(--grid-line);
}

.image-cell::before {
    top: 13px;
}

.image-cell::after {
    bottom: 14px;
}

.image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}


.image-cell img {
    width: clamp(150px, 13vw, 220px);
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

.image-wrapper .hover-img {
    display: none;
}

.image-wrapper:hover .default-img {
    display: none;
}

.image-wrapper:hover .hover-img {
    display: block;
}

.content-cell {
    padding: var(--space-md) var(--space-lg);
    align-items: flex-start;
    justify-content: center;
    grid-column: 2 / 4;
    border-bottom: 1px solid var(--grid-line);
    min-height: auto;
}

.content-row-side {
    border-bottom: 1px solid var(--grid-line);
    min-height: auto;
}

.arrow-row-side,
.arrow-row-center {
    border-bottom: 1px solid var(--grid-line);
}

.content-wrapper {
    width: 100%;
    max-width: clamp(500px, 55vw, 800px);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.content-row {
    display: grid;
    grid-template-columns: clamp(80px, 8vw, 120px) 1fr;
    gap: var(--space-md);
}

.content-row .label {
    font-weight: 700;
    font-size: var(--text-base);
    text-align: right;
    text-transform: lowercase;
}

.currently .label {
    color: var(--primary-text);
}

.currently .text {
    color: var(--body-text);
}

.previously .label {
    color: var(--secondary-text);
}

.previously .text {
    color: black;
}

.content-row .text {
    font-size: var(--text-base);
    line-height: 1.4;
    max-width: clamp(400px, 40vw, 600px);
}

.content-row .text p {
    margin-bottom: var(--space-md);
}

.content-row .text p:last-child {
    margin-bottom: 0;
}

.content-row .text a {
    color: inherit;
    text-decoration: underline;
}

.currently .text a {
    color: var(--primary-text);
}

.currently .text a.link-black {
    color: #000000;
}

.previously .text a {
    color: black;
}

.arrow-cell {
    justify-content: center;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid var(--grid-line);
}

.scroll-indicator {
    width: clamp(150px, 17vw, 270px);
    height: clamp(150px, 17vw, 270px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.scroll-indicator:hover {
    transform: scale(1.05);
}

.scroll-indicator img {
    width: 100%;
    height: 100%;
}

/* Responsive Design - Tablet/Mobile breakpoint */
@media (max-width: 1024px) {
    .site-wrapper::before {
        display: none;
    }
    
    .main-grid,
    .my-work-section,
    .work-container,
    .resume-section,
    .resume-container {
        grid-template-columns: 1fr;
    }

    .grid-cell {
        border-right: none;
    }
    
    .nav-links-cell,
    .title-cell,
    .image-cell,
    .content-cell,
    .resume-container {
        grid-column: auto;
    }

    .main-title {
        font-size: 48px;
        white-space: normal;
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }

    .content-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .content-row .label {
        text-align: left;
    }

    .arrow-cell {
        justify-content: center;
        min-height: 200px;
    }

    .scroll-indicator {
        width: 150px;
        height: 150px;
    }
}


/* My Work Section */
.my-work-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr 1fr;
    width: 100%;
    scroll-margin-top: 80px;
    height: auto;
    min-height: auto;
}

.work-container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr 1fr;
}

.grid-header {
    display: contents;
}

.grid-header .section-label {
    grid-column: 1;
}

.grid-header .empty-cell:nth-child(2) {
    grid-column: 2;
}

.grid-header .empty-cell:nth-child(3) {
    grid-column: 3;
}

.grid-header .empty-cell:nth-child(4) {
    grid-column: 4;
}

.grid-header .column-label {
    padding: var(--space-md) var(--space-md);
    font-size: var(--text-xl);
    font-weight: 700;
    border-bottom: 1px solid var(--grid-line);
    text-transform: lowercase;
}

.grid-header .column-label.currently-label {
    color: var(--primary-text);
}

.grid-header .column-label.previously-label {
    color: var(--secondary-text);
}

.grid-header .empty-cell {
    border-bottom: 1px solid var(--grid-line);
}

.grid-header .section-label {
    padding: var(--space-md) var(--space-md);
    font-size: var(--text-xl);
    font-weight: 700;
    color: #000;
    border-bottom: 1px solid var(--grid-line);
    text-transform: lowercase;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.grid-header .section-label.in-view {
    background-color: var(--primary-text);
    color: #ffffff;
}

#resume-label {
    scroll-margin-top: 80px;
}

#my-work-label {
    scroll-margin-top: 80px;
}

.work-row {
    display: contents;
}

.row-label {
    padding: var(--space-md) var(--space-md);
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--body-text);
    border-bottom: 1px solid var(--grid-line);
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: lowercase;
    text-align: center;
}

.work-item {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--grid-line);
    transition: background-color 0.2s ease;
}

.work-item.double-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
}

.work-sub-item {
    padding: var(--space-md) var(--space-lg);
}

.work-sub-item:first-child {
    border-right: none;
}

.project-date {
    display: block;
    font-size: var(--text-sm);
    font-weight: 400;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: var(--space-xs);
}

.project-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--body-text);
    margin-bottom: var(--space-sm);
}

.project-description {
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--body-text);
    line-height: 1.7;
}

.empty-cell {
    border-bottom: 1px solid var(--grid-line);
}

/* Project Detail View */
.project-detail-view {
    display: none;
    grid-column: 1 / -1;
}

.project-detail-view.active {
    display: block;
    grid-column: 1 / -1;
}

/* Dark theme for project detail row only (sidebar, content, pagination) */
.project-detail-view.active .project-sidebar {
    background-color: #000000;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.project-detail-view.active .back-button {
    color: #ffffff;
}

.project-detail-view.active .back-button:hover {
    color: rgba(255, 255, 255, 0.7);
}

.project-detail-view.active .detail-title {
    color: #ffffff;
}

.project-detail-view.active .detail-description {
    color: rgba(255, 255, 255, 0.8);
}

.project-detail-view.active .meta-label {
    color: #ffffff;
}

.project-detail-view.active .meta-value {
    color: rgba(255, 255, 255, 0.8);
}

.project-detail-view.active .project-content {
    background-color: #000000;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.project-detail-view.active .content-section-title {
    color: #ffffff;
}

.project-detail-view.active .content-text {
    color: #ffffff;
}

.project-detail-view.active .content-page {
    color: #ffffff;
}

.project-detail-view.active .project-pagination {
    background-color: #000000;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.project-detail-view.active .pagination-dot {
    color: #ffffff;
}

.project-detail-view.active .pagination-dot:hover {
    background-color: transparent;
    color: #ffffff;
    transform: scale(1.1);
}

.project-detail-view.active .pagination-dot.active {
    background-color: transparent;
    color: #ffffff;
    font-size: 1.15em;
    font-weight: 700;
}

.project-detail-view .work-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr 1fr;
    width: 100%;
}

.work-list-view {
    display: block;
    grid-column: 1 / -1;
}

.work-list-view .work-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr 1fr;
    width: 100%;
}

.work-list-view.hidden {
    display: none;
}

/* Clickable Projects */
.clickable-project {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.clickable-project:hover {
    background-color: rgba(45, 0, 251, 0.05);
}

/* Project Detail Row */
.project-detail-row {
    display: contents;
}

.project-sidebar {
    grid-column: 1;
    padding: var(--space-lg) var(--space-md);
    border-bottom: 1px solid var(--grid-line);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.back-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--body-text);
    transition: color 0.2s ease;
    width: clamp(30px, 2.5vw, 40px);
    height: clamp(30px, 2.5vw, 40px);
}

.back-button:hover {
    color: var(--primary-text);
}

.detail-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--body-text);
    line-height: 1.2;
}

.detail-subtitle {
    font-size: var(--text-md);
    color: #ffffff;
    line-height: 1.3;
}

.detail-description {
    font-size: var(--text-sm);
    color: var(--body-text);
    line-height: 1.5;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.meta-label {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--body-text);
}

.meta-value {
    font-size: clamp(11px, 0.8vw + 3px, 14px);
    color: var(--body-text);
    line-height: 1.4;
}

.meta-value .company-link {
    color: #ffffff;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s ease;
}

.meta-value .company-link:hover {
    opacity: 0.8;
}

.meta-link {
    font-size: clamp(11px, 0.8vw + 3px, 14px);
    color: var(--primary-text);
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}

.meta-link:hover {
    text-decoration: none;
}

/* Project Content Area */
.project-content {
    grid-column: 2 / 4;
    padding: var(--space-sm) var(--space-lg) var(--space-lg);
    border-bottom: 1px solid var(--grid-line);
    background-color: rgba(0, 0, 0, 0.03);
    min-height: clamp(300px, 26vw, 400px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: var(--space-sm);
}

.content-page {
    display: none;
    width: 100%;
}

.content-page.active {
    display: block;
}

.content-section-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--body-text);
    margin: 0 0 var(--space-xs) 0;
}

.content-text {
    font-size: var(--text-sm);
    color: var(--body-text);
    line-height: 1.6;
}

.content-image {
    width: 100%;
    margin-top: 24px;
    margin-bottom: var(--space-md);
    border-radius: 8px;
    overflow: hidden;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-images-side-by-side {
    display: flex;
    gap: var(--space-md);
    margin-top: 24px;
    margin-bottom: var(--space-md);
    width: 75%;
    margin-left: auto;
    margin-right: auto;
}

.content-images-side-by-side .content-image {
    flex: 1;
    margin-top: 0;
    margin-bottom: 0;
    aspect-ratio: 16 / 17.578125;
    overflow: hidden;
}

.content-images-side-by-side .content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.content-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.06) 100%);
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-image-caption {
    font-size: var(--text-sm);
    color: #ffffff;
    font-style: italic;
    margin-top: calc(var(--space-sm) * -1);
    margin-bottom: var(--space-md);
    text-align: center;
}

.content-subsection-title {
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
    color: rgba(255, 255, 255, 0.6);
}

.content-page .content-subsection-title:first-of-type {
    margin-top: 0;
}

.content-page .content-subsection-title:first-of-type {
    margin-top: 0;
}

/* Pagination */
.project-pagination {
    grid-column: 4;
    padding: var(--space-lg) var(--space-md);
    border-bottom: 1px solid var(--grid-line);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--space-md);
}

.pagination-label {
    font-size: var(--text-sm);
    color: rgba(0, 0, 0, 0.4);
}

.pagination-dots {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    align-items: stretch;
    width: 100%;
}

.pagination-dot {
    width: 100%;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 6px;
    transition: transform 0.3s ease, font-size 0.3s ease, font-weight 0.3s ease;
    border: none;
    background: transparent;
    color: var(--body-text);
    font-size: clamp(10px, 0.7vw + 3px, 12px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pagination-dot:hover {
    background-color: transparent;
    color: var(--primary-text);
    transform: scale(1.1);
}

.pagination-dot.active {
    background-color: transparent;
    color: var(--primary-text);
    font-size: 1.15em;
    font-weight: 700;
}

/* Next Project Link */
.next-project-link {
    margin-top: auto;
    align-self: flex-end;
    font-size: var(--text-sm);
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.next-project-link .next-project-text {
    text-decoration: underline;
}

.next-project-link .next-arrow {
    font-size: 1.1em;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.next-project-link:hover .next-arrow {
    transform: translateX(3px);
}

/* Other Projects Row */
.other-projects-row {
    display: contents;
}

.other-projects-row .row-label {
    grid-column: 1;
}

.other-projects-grid {
    grid-column: 2 / 4;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--grid-line);
}

.other-projects-row .empty-cell {
    grid-column: 4;
}

.other-project-item {
    padding: var(--space-md) var(--space-md);
    border-right: 1px solid var(--grid-line);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.other-project-item:last-child {
    border-right: none;
}

.other-project-item:hover {
    background-color: rgba(45, 0, 251, 0.05);
}

.other-project-item.current-project {
    opacity: 0.5;
    pointer-events: none;
}

.other-project-date {
    display: block;
    font-size: clamp(10px, 0.7vw + 3px, 12px);
    font-weight: 400;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: var(--space-xs);
}

.other-project-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--body-text);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.other-project-desc {
    font-size: clamp(11px, 0.8vw + 3px, 14px);
    color: var(--body-text);
    line-height: 1.5;
}

/* MDes grid with fewer items */
.other-projects-grid.mdes-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Detail Spacer Row */
.detail-spacer-row {
    display: contents;
}

.detail-spacer-row .empty-cell {
    min-height: clamp(40px, 4vw, 60px);
}

.detail-spacer-row .empty-cell:nth-child(1) { grid-column: 1; }
.detail-spacer-row .empty-cell:nth-child(2) { grid-column: 2; }
.detail-spacer-row .empty-cell:nth-child(3) { grid-column: 3; }
.detail-spacer-row .empty-cell:nth-child(4) { grid-column: 4; }

/* Resume Section */
.resume-section {
    width: 100%;
    min-height: 300px;
}

.resume-container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr 1fr;
}

.resume-row {
    display: contents;
}

.resume-row .row-label {
    padding: var(--space-xl) var(--space-md);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--body-text);
    border-bottom: 1px solid var(--grid-line);
}

.resume-content {
    grid-column: span 2;
    padding: var(--space-lg) var(--space-md);
    border-bottom: 1px solid var(--grid-line);
}

.resume-entry {
    margin-bottom: var(--space-lg);
}

.resume-entry:last-child {
    margin-bottom: 0;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
    gap: var(--space-md);
}

.entry-left {
    flex: 1;
}

.entry-right {
    text-align: right;
    flex-shrink: 0;
}

.company-name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--body-text);
    margin: 0 0 2px 0;
}

.company-note {
    font-weight: 400;
    color: rgba(0, 0, 0, 0.5);
}

.resume-row .location {
    font-size: var(--text-sm);
    color: rgba(0, 0, 0, 0.5);
    display: block;
}

.entry-role {
    font-size: var(--text-sm);
    color: var(--body-text);
}

.entry-date {
    font-size: var(--text-sm);
    color: rgba(0, 0, 0, 0.5);
}

.entry-bullets {
    margin: 0;
    padding-left: var(--space-md);
    list-style-type: disc;
}

.entry-bullets li {
    font-size: var(--text-sm);
    color: var(--body-text);
    line-height: 1.5;
    margin-bottom: var(--space-xs);
}

.entry-bullets li:last-child {
    margin-bottom: 0;
}

.resume-sidebar {
    padding: var(--space-lg) var(--space-md);
    border-bottom: 1px solid var(--grid-line);
}

.sidebar-section {
    margin-bottom: var(--space-lg);
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--body-text);
    margin: 0 0 var(--space-sm) 0;
}

.sidebar-list {
    margin: 0;
    padding-left: var(--space-md);
    list-style-type: disc;
}

.sidebar-list li {
    font-size: var(--text-sm);
    color: var(--body-text);
    line-height: 1.5;
    margin-bottom: 4px;
}

.sidebar-list li:last-child {
    margin-bottom: 0;
}

.resume-row .empty-cell {
    border-bottom: 1px solid var(--grid-line);
}

.section-title {
    font-size: clamp(40px, 4vw + 10px, 64px);
    font-weight: 700;
    color: var(--body-text);
    text-transform: lowercase;
}

/* Responsive Design */
@media (max-width: 1512px) {
    .nav-container,
    .welcome-section,
    .my-work-section,
    .resume-section {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .main-title {
        font-size: 56px;
        flex-wrap: wrap;
    }
    
    .welcome-content {
        grid-template-columns: 1fr;
    }
    
    .profile-center {
        grid-template-rows: auto auto auto;
        gap: 30px;
        border-right: none;
        border-bottom: 1px solid var(--grid-line);
    }
    
    .profile-image {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .content-right {
        gap: 0;
        border-bottom: 1px solid var(--grid-line);
    }
    
    .currently-content {
        border-bottom: 1px solid var(--grid-line);
        padding-bottom: 30px;
    }
    
    .previously-content {
        padding-top: 30px;
    }
    
    .work-grid {
        grid-template-columns: 150px 1fr 1fr 150px;
    }
    
    .empty-col {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 15px 20px;
    }
    
    .nav-container {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .location {
        order: -1;
    }
    
    .welcome-section {
        padding: 0;
    }
    
    .main-title {
        font-size: 42px;
        padding: 40px 20px 30px 20px;
    }
    
    .profile-center {
        padding: 30px 20px;
    }
    
    .content-right {
        padding: 30px 20px;
    }
    
    .profile-image {
        max-width: 100%;
    }
    
    .scroll-indicator {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .my-work-section {
        padding: 40px 20px;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        display: block;
    }
    
    .grid-header {
        display: none;
    }
    
    .row-label {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        padding: 20px;
        border-bottom: 1px solid var(--grid-line);
        border-right: none;
        text-align: left;
    }
    
    .work-item {
        border-right: none;
    }
    
    .work-item.double-item {
        grid-template-columns: 1fr;
    }
    
    .work-sub-item {
        border-right: none;
        border-bottom: 1px solid var(--grid-line);
    }
    
    .work-sub-item:last-child {
        border-bottom: none;
    }
    
    .empty-cell {
        display: none;
    }
    
    .resume-section {
        padding: 40px 20px;
    }
    
    .resume-row {
        display: block;
    }
    
    .resume-row .row-label {
        padding: 20px;
        border-bottom: 1px solid var(--grid-line);
    }
    
    .resume-content {
        padding: 30px 20px;
    }
    
    .resume-sidebar {
        padding: 30px 20px;
        border-bottom: 1px solid var(--grid-line);
    }
    
    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .entry-right {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 32px;
        gap: 10px;
    }
    
    .currently-label,
    .previously-label {
        font-size: 20px;
    }
    
    .currently-content,
    .previously-content {
        font-size: 14px;
    }
    
    .project-title {
        font-size: 18px;
    }
    
    .project-description {
        font-size: 14px;
    }
}

/* Double Line Divider */
.double-line-divider {
    position: relative;
    height: 14px;
    border-bottom: 1px solid var(--grid-line);
}

/* Footer */
.site-footer {
    background-color: var(--primary-text);
    color: #ffffff;
    padding: var(--space-sm) var(--space-lg);
    position: relative;
    z-index: 1001;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-section {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.footer-label {
    font-weight: 700;
    font-size: var(--text-sm);
    margin-right: var(--space-xs);
}

.footer-text {
    font-size: var(--text-sm);
    opacity: 0.85;
}

.footer-link {
    font-size: var(--text-sm);
    color: #ffffff;
    text-decoration: underline;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 1;
}

.footer-separator {
    width: 12px;
    height: 12px;
    opacity: 0.6;
    flex-shrink: 0;
    margin: 0 -4px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .footer-section {
        flex-wrap: wrap;
    }
}

