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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial Narrow', Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: black;
    overflow-x: hidden;
}

.a {
    color: #ff0000;
}

a:hover { 
    color: rgba(0, 255, 0, 0.8); 
}

.courier-prime-regular {
    font-family: "Courier Prime", monospace;
    font-weight: 400;
    font-style: normal;
  }
  
  .courier-prime-bold {
    font-family: "Courier Prime", monospace;
    font-weight: 700;
    font-style: normal;
  }
  
  .courier-prime-regular-italic {
    font-family: "Courier Prime", monospace;
    font-weight: 400;
    font-style: italic;
  }
  
  .courier-prime-bold-italic {
    font-family: "Courier Prime", monospace;
    font-weight: 700;
    font-style: italic;
  }
  

/* Opening Statement */
.opening-statement {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    cursor: pointer;
}

.opening-statement.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.statement-content {
    text-align: center;
    max-width: 600px;
    padding: 0 20px;
}

.statement-content p {
    font-size: 1rem;
    color: #000;
    line-height: 1.2;
}

/* Main Content */
.main-content {
    display: flex;
    height: 100vh;
}

.main-content.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Blog Section (Left) */
.blog-section {
    flex: 1;
    border-right: 2px solid black;
    display: flex;
    flex-direction: column;
    background-color: lightyellow;
    max-width: 50%;
}

/* Works Section (Right) */
.works-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: lightcyan;
    max-width: 50%;
}

/* Section Content */
.section-content {
    flex: 1;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}



/* Works Navigation */
.works-navigation {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    flex-shrink: 0;
}

.nav-button {
    background: none;
    border: none;
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 1rem;
    color: #000;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 0 yellow;
}

.nav-button:hover {
    color: lime;
}

.nav-button.active {
    font-style: underline;
    text-decoration: underline;
}

/* Gallery Styles */
.gallery-view {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
    flex: 1;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.gallery-item {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    cursor: pointer;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

.gallery-item-indent {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    cursor: pointer;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin-left: 50px;
}

.gallery-image {
    width: 100px;
    max-width: 100px;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.gallery-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-shadow: 1px 1px 0 yellow;
}

.gallery-item-title {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 1rem;
    font-weight: normal;
    font-style: italic;
    color: #000;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-item-year {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 0.9rem;
    color: #000;
    font-weight: normal;
    line-height: 1.2;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
    pointer-events: none;
    position: relative;
}

.gallery-image-indent {
    width: 50px;
    max-width: 50px;
    height: auto;
    max-height: none;
    object-fit: contain;
    transition: transform 0.2s ease;
    box-shadow: 1px 1px 0 yellow;
}

.gallery-item-indent-title {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: normal;
    font-style: normal;
    color: #000;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Work Detail View Styles */
.work-detail-view {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: #fff;
    position: relative;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

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

.work-detail-view .work-content {
    flex: 1;
}

.about-view,
.cv-view {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: #fff;
    position: relative;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.about-view.hidden,
.cv-view.hidden {
    display: none;
}

.about-view .work-content,
.cv-view .work-content {
    flex: 1;
}

.close-button {
    background: none;
    border: none;
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 1rem;
    color: #000;
    cursor: pointer;
    position: absolute;
    top: 0.25rem;
    right: 2rem;
    padding: 0;
    transition: color 0.3s ease;
}

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


.work-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1200px;
}

.work-left-column {
    display: flex;
    flex-direction: column;
}

.work-title-section {
    margin-bottom: 1.5rem;
}

.work-title {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    font-style: italic;
    color: #000;
    margin-bottom: 0;
    line-height: 1.2;
}

.work-collaborators {
    margin-top: 0.5rem;
    line-height: 1.2;
}

.work-metadata {
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.work-images-label {
    margin-top: 2rem;
    margin-bottom: 1rem;
    max-width: 1200px;
}

.medium-italic {
    font-style: italic;
}

.metadata-item {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    line-height: 1.2;
}

.metadata-label {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 0.9rem;
    color: #000;
    font-weight: normal;
}

.metadata-value {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 0.9rem;
    color: #000;
    font-weight: normal;
}

.metadata-value a {
    color: #000;
    text-decoration: underline;
    margin-right: 1rem;
}

.metadata-value a:last-child {
    margin-right: 0;
}

#work-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
}

#work-links a {
    margin-right: 0;
}

.metadata-value a:hover {
    color: rgba(0, 255, 0, 0.8);
}

.work-right-column {
    display: flex;
    flex-direction: column;
}

.work-description {
    line-height: 1.2;
}

.work-description p {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 0.9rem;
    color: #000;
    margin-bottom: 1.5rem;
    text-align: left;
}

.work-description #work-description-text p {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 0.9rem;
    color: #000;
    margin-bottom: 1.5rem;
    text-align: left;
}

.work-description #work-description-text p:last-child {
    margin-bottom: 0;
}

.work-images {
    display: flex;
    max-width: 50%;
    flex-direction: column;
    gap: 1rem;
}

.work-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border: 1px solid #f0f0f0;
}

.work-image-caption {
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Section Content */
.section-content {
    flex: 1;
    overflow: hidden;
}

.scrollable-content {
    height: 100%;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: lightcyan;
    font-family: 'Courier Prime', monospace;
    font-weight: 400;
    font-style: normal;
    text-shadow: 1px 1px 0 yellow;

}

/* Blog Post Styles - Terminal-like */
.blog-post {
    margin-bottom: 3rem;
    padding: 0;
    font-family: 'Courier Prime', monospace;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    color: black;
}

.blog-post:last-child {
    margin-bottom: 0;
}

.post-content {
    margin-bottom: 0.5rem;
}

.blog-image {
    max-width: 200px;
    height: auto;
    margin: 0.5rem 0;
    display: block;
    border: 1px solid #ccc;
}

/* Portfolio Item Styles */
.portfolio-item {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.portfolio-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.project-image {
    margin-bottom: 1.5rem;
    height: 200px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    color: #666;
    font-size: 1.5rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info h3 {
    font-size: 1.4rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: #000;
    letter-spacing: 0.5px;
}

.project-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #000;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background-color: #f0f0f0;
    color: #000;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #e0e0e0;
}


/* Scrollbar Styling */
.scrollable-content::-webkit-scrollbar {
    width: 6px;
}

.scrollable-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: row;
    }
    
    .blog-section {
        border-right: 2px solid black;
        border-bottom: none;
    }
    .blog-post {
        margin-bottom: 2rem;
        padding: 0;
        font-family: 'Courier Prime', monospace;
        font-size: 0.5rem;
        font-weight: 400;
        line-height: 1.4;
        color: black;
    }
    
    .blog-image {
        max-width: 100px;
        height: auto;
        margin: 0.5rem 0;
        display: block;
        border: 1px solid #ccc;
    }

    .statement-content p {
        font-size: 1rem;
    }
    
    .scrollable-content {
        padding: 1rem;
    }
    
    .gallery-grid {
        gap: 2rem;
        padding: 1rem;
    }
    
    .gallery-item {
        flex-direction: column;
        gap: 1rem;

    }
    
    .gallery-image {
        width: 100%;
        max-width: 100%;
    }
    
    
    .work-detail-view {
        padding: 1rem;
    }
    
    .work-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .work-title {
        font-size: 1rem;
        margin-top: 2rem;
    }

    .work-metadata {
        line-height: 1.2;
    }
    .metadata-item {
        line-height: 1.2;
    }
    
    .close-button {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.75rem;
    }
    .project-info h3 {
        font-size: 0.5rem;
    }
    .project-description {
        font-size: 0.75rem;
    }

    .nav-button {
        font-size: 0.75rem;
    }
    
    .work-images {
        display: flex;
        max-width: 100%;
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .statement-content p {
        font-size: 0.75rem;
    }
    .blog-post {
        margin-bottom: 2rem;
        padding: 0;
        font-family: 'Courier Prime', monospace;
        font-size: 0.75rem;
        font-weight: 400;
        line-height: 1.4;
        color: black;
    }

    .blog-image {
        max-width: 100px;
        height: auto;
        margin: 0.5rem 0;
        display: block;
        border: 1px solid #ccc;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .project-info h3 {
        font-size: 0.75rem;
    }
    
    .gallery-grid {
        gap: 1.5rem;
        padding: 0.75rem;
    }
    
    .gallery-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .gallery-image {
        width: 100%;
        max-width: 100%;
    }
    
    .gallery-item-title {
        font-size: 1rem;
    }
    
    .gallery-item-year {
        font-size: 0.75rem;
    }
    
    
    .work-detail-view {
        padding: 0.75rem;
    }
    
    .work-content {
        gap: 1.5rem;
    }
    
    .work-title {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .work-metadata {
        line-height: 1.2;
    }
    .metadata-item {
        line-height: 1.2;
    }

    .work-description p {
        font-size: 0.75rem;
    }
    
    .close-button {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.75rem;
    }
   
    .nav-button {
        font-size: 0.75rem;
    }
   
    .work-images {
        display: flex;
        max-width: 100%;
        flex-direction: column;
        gap: 1rem;
    }
}