/* ============================================
   GLOBAL RESET
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #000;
    background-color: #fff;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

/* ============================================
   MOBILE HEADER
============================================ */
.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 100;
}

.mobile-header h1 {
    font-size: 1.25rem;
    font-weight: 300;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: #000;
    position: relative;
    display: block;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #000;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ============================================
   SIDEBAR
============================================ */
.sidebar {
    width: 320px;
    background: #fff;
    border-right: 1px solid #e5e5e5;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-content {
    padding: 2rem;
    padding-top: 7rem;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 1rem);
}

.sidebar-top {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}


.sidebar-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    display: none;
}

.home-button {
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    padding: 0;
    text-align: left;
    font-family: inherit;
    transition: color 0.2s;
    padding-bottom: 1rem;
}

.home-button:hover {
    color: #666;
}

.project-list {
    list-style: none;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.project-list li {
    margin-bottom: 0.05rem;
}

.project-list a {
    color: #000;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 300;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.project-list a:hover {
    color: #666;
}

.project-list a.active {
    color: #000;
    text-decoration: underline;
    font-weight: bold;
}

.sidebar-section {
    margin-top: 0;
    padding-top: 0;
}

.sidebar-section h2 {
    font-size: 0.875rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.sidebar-section p {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.2;
    color: #666;
    margin: 0;
    padding: 0.25rem 0;
}

/* ============================================
   MAIN CONTENT
============================================ */
.main-content {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 2.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Main Image + Text Container */
.content-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
}

.project-details {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
}

.detail-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.project-item {
    margin-bottom: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-item:first-child {
    margin-top: 2rem;
}

/* ============================================
   IMAGE BASE STYLING
============================================ */
.picture_holder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 800px;
}

.picture {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 0.25rem;
}

.picture a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.picture img {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    background-color: #f5f5f5;
}

.media_caption {
    text-align: left;
    color: #252525;
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Homepage captions only */
.media_caption.home-caption {
    font-size: 13px;
    color: #666;
    font-style: normal;
}

.media_caption a {
    color: #000;
    text-decoration: none;
}

.media_caption a:hover {
    text-decoration: underline;
}

/* Mobile: Small devices */
@media (max-width: 767px) {
    .content-wrapper {
        padding: 1rem;
        justify-content: center;
    }

    .project-details {
        justify-content: center;
        max-width: 100%;
    }

    .detail-section {
        width: 100%;
        align-items: center;
    }

    .picture_holder {
        max-width: 100%;
    }

    .picture img {
        max-width: 100%;
    }

    .project-item {
        margin-bottom: 8rem;
    }

    .sidebar-section {
        margin-bottom: 3rem;
    }
}

/* Tablet: iPad and medium devices */
@media (min-width: 768px) and (max-width: 1023px) {
    .content-wrapper {
        padding: 2rem;
        justify-content: center;
    }

    .project-details {
        justify-content: center;
        max-width: 700px;
    }

    .detail-section {
        width: 100%;
    }

    .picture_holder {
        max-width: 700px;
    }

    .picture img {
        max-width: 700px;
    }

    .project-item {
        margin-bottom: 6rem;
    }
}

/* Desktop: Large screens */
@media (min-width: 1024px) {
    .content-wrapper {
        padding: 3rem 2rem;
        justify-content: center;
    }

    .project-details {
        justify-content: center;
        max-width: 800px;
    }

    .detail-section {
        width: 100%;
    }

    .picture_holder {
        max-width: 800px;
    }

    .picture img {
        max-width: 800px;
    }

    .project-item {
        margin-bottom: 7rem;
    }
}

/* ============================================
   TYPOGRAPHY
============================================ */
.project-title {
    display: block;
    width: 100%;
    margin: 25px 0 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica', 'Arial', sans-serif;
    font-size: 32px;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.9);
    line-height: 1;
}

.project-subtitle {
    display: block;
    width: 100%;
    font-size: 10pt;
    font-weight: bold;
    color: #999;
    text-decoration: none;
    margin-bottom: 30px;
}

.caption-text,
.exhibit-text {
    color: #000;
    font-size: 14px;
    width: 100%;
    margin-bottom: 1em;
}

.media-title {
    color: #000;
    font-size: 14px;
    width: 100%;
    margin-bottom: 1em;
}

/* ============================================
   TABLET & DESKTOP ADJUSTMENTS
============================================ */
@media (min-width: 768px) {
    .mobile-header {
        display: none;
    }

    .sidebar {
        position: fixed;
        transform: translateX(0);
    }

    .sidebar-content {
        padding-top: 2rem;
    }

    .sidebar-title {
        display: block;
    }

    .main-content {
        padding-top: 0;
        margin-left: 320px;
        flex: 1;
    }
}

/* ============================================
   CUSTOM SCROLLBAR
============================================ */
.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.main-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ============================================
   PROJECT HEADER STYLING
============================================ */
.project-header {
    text-align: left;
    margin-bottom: 2rem;
    width: 100%;
}

.project-header h1 {
    display: block;
    width: 100%;
    margin: 25px 0 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica', 'Arial', sans-serif;
    font-weight: normal;
    font-size: 32px;
    color: rgba(0, 0, 0, 0.9);
    line-height: 1;
    text-align: left;
}

.project-meta {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: #999;
    margin-bottom: 30px;
    width: 100%;
    text-align: left;
}

/* Project Gallery */
.project-gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin-bottom: 0;
}

/* Project Video */
.project-video {
    margin-bottom: 4rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
    width: 100%;
    max-width: 800px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Target the *container* that holds the perception-veg video */
.video-container:has(video[src*="perception-veg"]) {
    /* Set max-width for the overall size */
    max-width: 420px;
    
    /* Update to match new video dimensions: 720 × 1280 (9:16 ratio) */
    aspect-ratio: 720 / 1280; 
    
    /* Remove the conflicting legacy properties */
    padding-bottom: unset; 
    height: auto; 
        margin: 0 auto;  /* Centers with auto margins */

}

/* Project Description */
.project-description {
    width: 100%;
    max-width: 800px;
    margin: -3rem auto 0;
    text-align: left;
    padding-bottom: 5rem;
}

.description-content {
    color: #000;
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
}

.description-content p {
    margin-bottom: 1em;
}

/* ============================================
   LIGHTBOX STYLING
============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    font-size: 2rem;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ccc;
}

#lightboxImage {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    margin-bottom: 1rem;
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    font-size: 0.875rem;
    max-width: 600px;
}

/* ============================================
   ABOUT PAGE STYLING
============================================ */
.about-content {
    width: 100%;
    max-width: 800px;
}

.about-text {
    color: #000;
    font-size: 16px;
    line-height: 1.6;
}

.about-text p {
    margin-bottom: 1.5em;
    text-align: justify;
}

.about-text h4 {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
}

.cv-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.cv-list li {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    white-space: nowrap;
}

.cv-list li strong {
    display: block;
    margin-top: 2.5em;
    font-size: 16px;
    color: #666;
}

.about-image {
    margin-top: 2rem;
}

.about-image img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   CONTACT PAGE STYLING
============================================ */
.contact-content {
    width: 100%;
    max-width: 800px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-block h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    color: #000;
}

.contact-block p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.contact-block a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-block a:hover {
    color: #666;
}

/* ============================================
   SIDEBAR LINKS STYLING
============================================ */
.sidebar-link {
    color: #000;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 300;
    transition: color 0.2s;
}

.sidebar-link:hover {
    color: #666;
}

.sidebar-link.active {
    color: #000;
    text-decoration: underline;
    font-weight: bold;
}

/* ============================================
   BACK BUTTON STYLING
============================================ */
.back-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: #666;
}

.back-button svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}