@font-face {
    font-family: 'Favorit Hangul';
    src: url('fonts/ABCFavoritHangul-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Favorit Hangul';
    src: url('fonts/ABCFavoritHangul-Medium.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    color: #0f0f0f;
    font-weight: normal;
    word-spacing: -0.01em;
    line-height: 1.2;
    font-family: 'Favorit Hangul', sans-serif;
    font-feature-settings: "zero", "ss05", "ss06", "ss04", "ss03", "ss02", "ss05";
}

body {
    background-color: #ffffff;
    font-size: 16px;
    padding: 0 24px;
}

@media (max-width: 768px) {
    body {
        padding: 0 16px;
    }
}

h1 {
    font-size: 3.5rem; /* 56px */
    line-height: 1;
}

h2 {
    font-size: 1rem; /* 40px */
    opacity: 0.5;
    line-height: 1;
}

h3 {
    font-size: 1.5rem; /* 24px */
    line-height: 1;
}

h4 {
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    line-height: auto;
}

p {
    font-size: 0.875rem; /* 14px */
    line-height: auto;
}

#sub {
    opacity: 0.5;
}

.section {
    padding: 6rem 0;
    gap: 1rem;
    display: flex;
    flex-direction: column;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    justify-content: flex-start; /* Left align */
}

.filter-option {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease-in-out;
}

.filter-option.active {
    opacity: 1;
    font-weight: 500;
}

.filter-controls:has(.filter-option:hover) .filter-option:not(:hover) {
    opacity: 0.2;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    row-gap: 4rem;
    align-items: start;
}

.item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    /* grid-column is now handled in media queries */
}

/* Medium screens (Tablet) */
@media (min-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 8rem;
    }

    .item.bold {
        grid-column: span 2;
    }
}

/* Large screens (Desktop) */
@media (min-width: 1600px) {
    .featured-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

a.item {
    text-decoration: none;
}

.item img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
}

/* Add a container for the image to control aspect ratio */
.item .thumbnail-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Default to 4:3 landscape */
    overflow: hidden;
}

.item.landscape .thumbnail-container {
    padding-top: 75%; /* 4:3 */
}

.item.square .thumbnail-container {
    padding-top: 100%; /* 1:1 */
}

.item.portrait .thumbnail-container {
    padding-top: 133.33%; /* 3:4 */
}

.item .thumbnail-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop and center the image */
}

.hero img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.header {
    margin-top: 3.5rem; /* 56px */
    margin-bottom: 3.5rem; /* 56px */
    display: flex;
    flex-direction: row; /* Stack children vertically */
    gap: 1rem; /* 16px gap between containers */
}

.header-left,
.header-right {
    width: 50%;
}

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

/* Project table styling */
.project-table {
    width: 100%;
    margin-top: 24px;
}

.project-header, .project-item {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.project-header {
    font-size: 0.75rem; /* 12px */
    font-weight: 400;
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.project-header .project-year {
    text-align: right;
}

.project-name {
    grid-column: span 3;
}

.project-affiliation {
    grid-column: span 3;
}

.project-description {
    grid-column: span 5;
}

.project-year {
    grid-column: span 1;
    text-align: right;
}

.project-year p {
    text-align: right;
}

.project-item {
    padding: 0.25rem 0;
    text-align: left;
    font-size: 1rem; /* 16px */
}

.project-item p {
    font-size: 1rem; /* 16px */
}

.project-item .project-name p,
.project-item .project-affiliation p {
    text-transform: uppercase;
}

/* Responsive project list */
@media (max-width: 767px) {
    .project-affiliation,
    .project-description {
        display: none;
    }
    .project-header, .project-item {
        grid-template-columns: 1fr auto;
    }
    .project-name {
        grid-column: span 1;
    }
}

.project-col {
    text-align: left;
}

a.project-item {
    text-decoration: none;
    color: inherit;
}

.project-name a, .project-affiliation a {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
    transition: color 0.2s ease;
}

.project-name a:hover, .project-affiliation a:hover {
    color: inherit !important;
}

.item h4 {
    font-size: 1rem; /* 16px */
    text-transform: uppercase;
}

.item p#sub {
    font-size: 1rem; /* 16px */
    text-transform: uppercase;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between; /* Keep space-between for main axis alignment */
    align-items: baseline;
    padding: 1rem 24px;
    gap: 1rem; /* 1rem gap between left and right containers */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    box-sizing: border-box;
}

.nav-left,
.nav-right {
    flex-basis: 0;
    flex-grow: 1;
    text-align: left; /* Left-align content within containers */
}

nav h4 a {
    text-decoration: none;
    color: inherit;
    font-size: 1.25rem; /* Adjust size as needed */
    font-weight: 600;
    position: relative;
    top: -0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: flex-start; /* Explicitly left-align list items within the flex container */
    width: 100%;
}

nav li {
    margin-right: 1.5rem; /* Space between nav items */
    margin-left: 0; /* Ensure no left margin */
}

nav li.push-right {
    margin-left: auto;
}

nav li a {
    text-decoration: none;
    color: inherit;
    font-size: 1rem;
    text-transform: uppercase;
}

/* Responsive navigation */
@media (max-width: 768px) {
    nav {
        margin-left: 0;
        margin-right: 0;
    }
    nav ul {
        display: flex;
        align-items: baseline;
    }
}

.nav-left,
.nav-right ul li {
    transition: opacity 0.2s ease-in-out;
}

/* Home page navigation styles - white text over image */
body:has(.brief-intro) nav h4 a,
body:has(.brief-intro) nav li a {
    color: white;
}

/* Update nav hover effects to match filter controls exactly */
nav ul:has(a:hover) li:not(:hover) {
    opacity: 0.2;
}

/* Remove the old nav hover effect */
/* nav:has(a:hover) .nav-left:not(:has(a:hover)),
nav:has(a:hover) .nav-right ul li:not(:has(a:hover)):not(:has(a.active)) {
    opacity: 0.4;
} */

/* Footer */
footer {
    margin-top: 8rem;
    border-top: 1px solid #e0e0e0;
    padding: 4rem 0 2rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-intro {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-intro h2 {
    font-size: 1.5rem; /* 24px */
    font-weight: 400;
    margin: 0;
}

.footer-intro .subtitle {
    font-size: 0.875rem; /* 14px */
    opacity: 0.6;
    margin: 0;
}

.footer-description {
    font-size: 0.875rem; /* 14px */
    line-height: 1.5;
    opacity: 0.8;
    max-width: 320px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact-label {
    font-size: 0.75rem; /* 12px */
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    margin: 0;
}

.footer-email {
    font-size: 0.875rem; /* 14px */
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.2s ease;
    width: fit-content;
    position: relative;
    cursor: pointer;
}

.footer-email:hover {
    border-bottom: 1px solid #0f0f0f;
}

.footer-email::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: #0f0f0f;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    margin-bottom: 0.25rem;
}

.footer-email:hover::after {
    opacity: 1;
    visibility: visible;
}

.footer-email.copied::after {
    background-color: #28a745;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-nav {
    display: flex;
    gap: 4rem;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav-title {
    font-size: 0.75rem; /* 12px */
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.footer-nav-col a {
    text-decoration: none;
    color: inherit;
    font-size: 0.875rem; /* 14px */
    transition: opacity 0.2s ease;
    opacity: 0.8;
}

.footer-nav-col a:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social-title {
    font-size: 0.75rem; /* 12px */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.footer-social-links {
    display: flex;
    gap: 1.5rem;
}

.footer-social-links a {
    font-size: 0.875rem; /* 14px */
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-social-links a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.75rem; /* 12px */
    opacity: 0.6;
}

.footer-copyright {
    font-family: 'Roboto Mono', monospace;
}

.footer-times {
    display: flex;
    gap: 2rem;
    font-family: 'Roboto Mono', monospace;
}

.footer-location {
    display: flex;
    gap: 2rem;
    font-family: 'Roboto Mono', monospace;
}

/* Responsive footer */
@media (max-width: 768px) {
    footer {
        margin-top: 6rem;
        padding: 3rem 0 2rem 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 3rem;
    }
    
    .footer-nav {
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-times,
    .footer-location {
        gap: 1rem;
    }
}

/* About Section Styling */

.about-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1rem;
    align-items: flex-start;
}

.about-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

.about-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-top .name {
    font-size: 3.5rem; /* Bigger */
    line-height: 1;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.about-top .title,
.about-top .subtitle {
    opacity: 0.5;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.about-top .link {
    opacity: 0.5;
    font-size: 0.875rem;
    color: inherit;
    text-decoration: none;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid transparent;
    transition: opacity 0.2s ease;
}

.about-top .link:hover {
    opacity: 1;
    border-bottom: 1px solid #181818;
}

.about-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 66.67%; /* 2/3 of the left container */
}

.about-bottom p {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.about-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-right > * {
    width: fit-content;
    max-width: 66.67%; /* 2/3 of the about-right width */
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.875rem;
}

.image-placeholder::before {
    content: "Image placeholder";
}

/* Responsive design for about section */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }
    
    .about-top .name {
        font-size: 2.5rem;
    }
}

.paper-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #181818;
    transition: opacity 0.2s ease;
}

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

.item, .project-item {
    transition: opacity 0.2s ease-in-out;
}

.featured-grid:has(.item.clickable:hover) .item:not(:hover),
.featured-grid-home:has(.item.clickable:hover) .item:not(:hover),
.project-list:has(.project-item:hover) .project-item:not(:hover) {
    opacity: 0.4;
}



/* Additional mobile responsive adjustments */
@media (max-width: 768px) {
    /* Ensure consistent alignment for all main content */
    .section {
        margin-left: 0;
        margin-right: 0;
    }
    
    .filter-controls {
        margin-left: 0;
        margin-right: 0;
    }
    
    .project-table {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Landing Page Styles */

/* Hero Section */
.hero-section {
    padding: 4rem 0 6rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem; /* 56px */
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem; /* 20px */
    line-height: 1.4;
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-location,
.hero-status {
    font-size: 0.875rem; /* 14px */
    opacity: 0.6;
}

.hero-status {
    color: #28a745;
    opacity: 1;
}

.hero-image {
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-year {
    font-size: 0.75rem; /* 12px */
    font-family: 'Roboto Mono', monospace;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-link {
    font-size: 0.875rem; /* 14px */
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.2s ease;
}

.section-link:hover {
    border-bottom: 1px solid #0f0f0f;
}

/* Focus Grid */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.focus-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.focus-item:hover {
    border-color: #c0c0c0;
}

.focus-label {
    font-size: 0.75rem; /* 12px */
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.focus-item h4 {
    font-size: 1.125rem; /* 18px */
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.focus-item p {
    font-size: 0.875rem; /* 14px */
    line-height: 1.4;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.focus-affiliation {
    font-size: 0.75rem; /* 12px */
    opacity: 0.6;
    margin-top: auto;
}

/* Featured Work */
.featured-work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.featured-work-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: opacity 0.2s ease;
}

.featured-work-item:hover {
    opacity: 0.8;
}

.featured-work-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px;
}

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

.featured-work-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.featured-work-year {
    font-size: 0.75rem; /* 12px */
    font-family: 'Roboto Mono', monospace;
    opacity: 0.6;
}

.featured-work-content h4 {
    font-size: 1rem; /* 16px */
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.featured-work-content p {
    font-size: 0.875rem; /* 14px */
    line-height: 1.4;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.featured-work-affiliation {
    font-size: 0.75rem; /* 12px */
    opacity: 0.6;
}

/* Recognition Section */
.recognition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.recognition-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.recognition-text {
    font-size: 0.875rem; /* 14px */
    line-height: 1.5;
    font-style: italic;
    margin: 0;
}

.recognition-source {
    font-size: 0.75rem; /* 12px */
    font-weight: 500;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive Landing Page */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 4rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem; /* 40px */
    }
    
    .hero-subtitle {
        font-size: 1rem; /* 16px */
    }
    
    .hero-image {
        justify-content: center;
        order: -1;
    }
    
    .hero-image img {
        max-width: 200px;
    }
    
    .focus-grid,
    .featured-work-grid,
    .recognition-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Disable hover effects on mobile */
@media (hover: none) {
    .featured-grid:has(.item.clickable:hover) .item:not(:hover),
    .project-list:has(.project-item:hover) .project-item:not(:hover),
    .filter-controls:has(.filter-option:hover) .filter-option:not(:hover),
    nav:has(a:hover) .nav-left:not(:has(a:hover)),
    nav:has(a:hover) .nav-right ul li:not(:has(a:hover)):not(:has(a.active)),
    .footer-nav:has(a:hover) a:not(:hover) {
        opacity: 1; /* Or initial value */
    }
}

#image-preview {
    width: 200px; /* Or your desired width */
    height: auto;
    border: 1px solid #ddd;
    background: #fff;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    pointer-events: none; /* Make sure the preview doesn't interfere with mouse events */
}

#image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* Project Detail Page */
.project-detail {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

.project-hero {
    margin-bottom: 1rem;
}

.project-hero img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.meta-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.75rem; /* 12px */
    font-family: 'Roboto Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    margin-bottom: 0.25rem;
}

.meta-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-meta a {
    font-size: 0.875rem; /* 14px */
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.2s ease;
    width: fit-content;
}

.project-meta a:hover {
    border-bottom: 1px solid #0f0f0f;
}

@media (max-width: 768px) {
    .project-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

.project-title {
    font-size: 1.5rem; /* 24px */
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.project-brief {
    font-size: 1rem; /* 16px */
    line-height: 1.5;
    margin-bottom: 3rem;
}

.project-brief p {
    font-size: 1rem; /* 16px */
    margin-bottom: 1rem;
}

.project-content {
    margin-bottom: 3rem;
}

.project-media {
    margin: 2rem 0;
}

.project-detail > .project-media:first-child {
    margin-top: 0rem;
    margin-bottom: 0rem;
}

.project-media img,
.project-media video {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.project-media-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .project-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-text {
    font-size: 1rem; /* 16px */
    line-height: 1.5;
    margin-bottom: 2rem;
}

.project-text p {
    font-size: 1rem; /* 16px */
    margin-bottom: 1rem;
}

.project-text h3 {
    font-size: 1.25rem; /* 20px */
    margin: 2rem 0 1rem 0;
    font-weight: 500;
}

.project-credit {
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
    margin-top: 3rem;
}

.project-credit h4 {
    font-size: 1rem; /* 16px */
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 1;
}

.project-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-group-title {
    font-size: 0.75rem; /* 12px */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    margin-bottom: 0.25rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem; /* 12px */
    font-family: 'Roboto Mono', monospace;
    font-weight: 400;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 0.875rem; /* 14px */
    font-weight: 400;
    line-height: 1.4;
}

.detail-value a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.2s ease;
}

.detail-value a:hover {
    border-bottom: 1px solid #0f0f0f;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.detail-tag {
    background-color: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem; /* 12px */
    font-weight: 400;
}

/* Mobile adjustments for project details */
@media (max-width: 768px) {
    .project-details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Navigation for project pages */
.project-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
}

.project-nav a {
    font-size: 0.875rem; /* 14px */
    color: inherit;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.2s ease;
}

.project-nav a:hover {
    border-bottom: 1px solid #0f0f0f;
}

/* Responsive adjustments for project detail */
@media (max-width: 768px) {
    .project-detail {
        padding: 0;
    }
    
    .project-hero {
        margin-left: 0;
        margin-right: 0;
    }
    
    .project-hero img {
        height: 40vh;
    }
    
    .project-title {
        font-size: 1.25rem; /* 20px */
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .project-brief,
    .project-text p {
        font-size: 0.875rem; /* 14px */
    }
}

/* Collapsible detail sections */
.detail-section {
    margin-bottom: 0;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.detail-header:hover {
    opacity: 0.7;
}

.detail-header h3 {
    margin: 0;
    font-size: 1.25rem; /* 20px */
    font-weight: 500;
}

.expand-btn {
    font-size: 1.25rem;
    font-weight: 300;
    color: #666;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.detail-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 0;
    padding-bottom: 0;
}

.detail-content.expanded {
    opacity: 1;
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

.detail-content-inner {
    padding-bottom: 0;
}

.detail-content-inner p {
    font-size: 1rem; /* 16px */
    line-height: 1.5;
    margin-bottom: 1rem;
}

.detail-section.expanded .expand-btn {
    transform: rotate(45deg);
}

/* Mobile adjustments for collapsible sections */
@media (max-width: 768px) {
    .detail-header {
        padding: 0.75rem 0;
    }
    
    .detail-header h3 {
        font-size: 1.125rem; /* 18px */
    }
    
    .detail-content-inner p {
        font-size: 0.875rem; /* 14px */
    }
}

/* Home Page Specifics */
.hero-placeholder {
    width: 100%;
    height: 300px; /* Or other desired height */
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.worked-with {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    align-items: start;
}

.worked-with-title {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.worked-with-title h3 {
    font-size: 1.5rem; /* 24px */
    font-weight: 500;
}

.worked-with-title p {
    font-size: 1rem; /* 16px */
    opacity: 0.6;
    max-width: 400px;
}

.logo-wall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    background-color: #f9f9f9;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.logo-item img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    background-color: transparent;
}

.brief-intro {
    text-align: left;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    background: url("resources/DSC06366.jpg") center/cover;
    padding-top: 15rem;
    padding-bottom: 12rem;
    padding-left: 2rem;
}

.brief-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Dark overlay with 30% opacity */
    z-index: 1;
}

.brief-intro > * {
    position: relative;
    z-index: 2; /* Ensure content appears above the overlay */
}

.brief-intro p {
    font-size: 4rem; /* 24px */
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: rgb(255, 255, 255);
    max-width: 60vw;
}

.cta-button {
    background-color: transparent;
    color: #0f0f0f;
    padding: 0.5rem 1rem;
    border: 1px solid #0f0f0f;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cta-button:hover {
    background-color: #0f0f0f;
    color: #ffffff;
}

.brief-intro .cta-button {
    color: white;
    border-color: white;
}

.brief-intro .cta-button:hover {
    background-color: white;
    color: #0f0f0f;
    mix-blend-mode: normal;
}

.featured-grid-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 items per row */
    gap: 16px;
    row-gap: 4rem;
    align-items: start;
}

@media (max-width: 768px) {
    .worked-with {
        grid-template-columns: 1fr;
    }
    .logo-wall {
        grid-template-columns: repeat(3, 1fr);
    }
    .featured-grid-home {
        grid-template-columns: 1fr;
    }
    
    .brief-intro {
        padding-top: 8rem;
        padding-bottom: 6rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .brief-intro p {
        font-size: 2.5rem; /* Reduced from 4rem for mobile */
        max-width: 90vw; /* Increased from 60vw for mobile */
        line-height: 1.2; /* Slightly increased for better readability */
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .brief-intro {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    
    .brief-intro p {
        font-size: 2rem; /* Even smaller for very small screens */
        max-width: 95vw;
    }
}


