/* Portfolio Styles */

/* Catull Font Import */
@import url('https://fonts.cdnfonts.com/css/catull');

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

body {
    font-family: Verdana, Arial, Tahoma, sans-serif;
    font-size: 13px;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.4;
    position: relative;
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 11px;
}

/* Footer */
.footer {
    text-align: center;
    font-size: 11px;
    color: #666666;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #DCDCDC;
}

.footer a {
    color: #0000CC;
    text-decoration: none;
}

.footer a:visited {
    color: #551A8B;
}

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

/* Project Page Specific Styles */
.project-header {
    margin: 30px 0;
}

.project-title {
    font-size: 24px;
    color: #000000;
    font-weight: normal;
    margin-bottom: 5px;
}

.project-url {
    font-size: 12px;
    color: #669933;
    margin-bottom: 20px;
}

.project-content {
    font-size: 13px;
    line-height: 1.6;
    margin: 20px 0;
}

.project-content h2 {
    font-size: 16px;
    font-weight: bold;
    margin: 20px 0 10px 0;
}

.project-content p {
    margin-bottom: 15px;
}

.back-link {
    color: #0000CC;
    text-decoration: none;
    font-size: 13px;
    margin-top: 30px;
    display: inline-block;
}

.back-link:visited {
    color: #551A8B;
}

.back-link:hover {
    text-decoration: underline;
}

.project-meta {
    background-color: #F9F9F9;
    border: 1px solid #DCDCDC;
    padding: 15px;
    margin: 20px 0;
    font-size: 12px;
}

.project-meta strong {
    color: #000000;
}

.project-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.project-grid-image {
    width: 100%;
    height: auto;
    border: 1px solid #DCDCDC;
    display: block;
}


/* About Section */
.about-section {
    margin: 40px auto;
    max-width: 600px;
    padding: 20px;
    border-top: 1px solid #DCDCDC;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
}

.section-content {
    font-size: 13px;
    line-height: 1.6;
    color: #000000;
}

.section-content p {
    margin-bottom: 15px;
}

/* Contact Section */
.contact-section {
    margin: 40px auto;
    max-width: 600px;
    padding: 20px;
    border-top: 1px solid #DCDCDC;
}

/* Things/Ideas Section */
.things-ideas-section {
    margin: 40px auto;
    max-width: 600px;
    padding: 20px;
    border-top: 1px solid #DCDCDC;
}

/* View Styles */
.view-container {
    font-family: 'Times New Roman', Times, serif;
    background-color: #ffffff;
    max-width: 1200px;
    padding: 20px 40px;
    margin: 20px auto;
    box-sizing: border-box;
    border: 2px solid #000000;
    line-height: 1.6;
}

.about-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px 40px;
    margin: 40px 0;
    padding: 0;
}

.about-layout,
.contact-layout {
    display: flex;
    flex-direction: row;
    gap: 40px;
    min-width: 0;
}

.contact-layout{
    margin-left: 40px;
}

.contact-layout > * {
    flex: 1;
    min-width: 0;
}

.excited-about {
    grid-column: 1 / -1;
    min-width: 0;
}

.about-section,
.contact-section,
.things-ideas-section,
.excited-about-section {
    margin: 0;
    padding: 0;
    border: none;
}

.about-section .section-title,
.contact-section .section-title,
.things-ideas-section .section-title,
.excited-about-section .section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #000000;
    text-transform: none;
}

.about-section .section-content,
.contact-section .section-content,
.things-ideas-section .section-content,
.excited-about-section .section-content {
    font-size: 15px;
    line-height: 1.7;
    color: #000000;
}

.about-section .section-content h1 {
    font-size: 25px;
    font-weight: 700;
    margin: -20px 0 6px 0;
    color: #000000;
}

.about-section .section-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0 6px 0;
    color: #000000;
}

.about-section .section-content p {
    margin: 4px 0;
}

.about-section .section-content ul,
.contact-section .section-content ul,
.things-ideas-section .section-content ul,
.excited-about-section .section-content ul {
    margin: 6px 0;
    padding-left: 20px;
    list-style-type: disc;
}

.about-section .section-content li,
.contact-section .section-content li,
.things-ideas-section .section-content li,
.excited-about-section .section-content li {
    margin: 2px 0;
    color: #000000;
}

.things-ideas {
    margin: 0;
}

.projects-section {
    margin: 50px 0;
}

.projects-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.projects-list-container {
    flex: 0 0 500px;
    min-width: 0;
}

#project-details {
    flex: 1;
    min-width: 0;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.section-title-view {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000000;
    text-transform: none;
}

.projects-list {
    display: block;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.project-details-panel {
    flex: 1;
    border: none;
    padding: 0;
    background-color: #ffffff;
    min-height: 400px;
    overflow-y: auto;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.project-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.project-details-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    color: #000000;
    flex: 1;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    color: #666666;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s;
}

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

.project-details-content {
    color: #000000;
}

.project-images-grid-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.project-grid-image-view {
    width: 100%;
    height: auto;
    border: none;
    display: block;
}

.project-card {
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    background-color: #ffffff;
    cursor: pointer;
    margin-bottom: 0;
    transition: opacity 0.2s;
}

.project-card:hover {
    opacity: 0.7;
}

.project-card.selected {
    opacity: 1;
}

.project-title-view {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #000000;
}

.project-meta-view {
    font-size: 13px;
    color: #666666;
    margin-bottom: 8px;
    font-weight: normal;
    display: flex;
    gap: 8px;
    align-items: center;
}

.project-tool-tag {
    font-size: 13px;
    color: #666666;
    font-weight: normal;
    text-transform: lowercase;
}

.project-year {
    font-size: 13px;
    color: #666666;
    font-weight: normal;
}

.project-description-view {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    color: #000000;
}


.project-section-view {
    margin-bottom: 24px;
}

.project-section-heading {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000000;
}

.project-section-content {
    font-size: 14px;
    line-height: 1.7;
    color: #000000;
}

.project-section-content a {
    color: #000000;
    text-decoration: underline;
}

.project-section-content a:visited {
    color: #666666;
}

.project-section-content a:hover {
    color: #000000;
    text-decoration: none;
}

.contact-links {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-links a {
    color: #000000;
    text-decoration: none;
    display: block;
}

.contact-links a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .view-container {
        padding: 40px 20px;
    }
    
    .about-contact {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Reorder sections on mobile: about, excited-about, contact */
    .about-layout {
        order: 1;
    }
    
    .excited-about {
        order: 2;
        grid-column: 1;
    }
    
    .contact-layout {
        order: 3;
        flex-direction: column;
        gap: 30px;
        margin-left: 0;
    }
    
    .projects-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .projects-list-container {
        flex: 1;
        width: 100%;
    }
    
    #project-details {
        max-height: none;
        overflow: visible;
    }

    .project-details-panel {
        position: static;
        max-height: none;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: 48px;
    }

    .search-box {
        width: 100%;
    }

    .search-input-wrapper {
        flex-direction: column;
        gap: 5px;
    }

    .top-nav {
        flex-direction: column;
        gap: 10px;
    }

    .about-contact {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Reorder sections on mobile: about, excited-about, contact */
    .about-layout {
        order: 1;
    }
    
    .excited-about {
        order: 2;
        grid-column: 1;
    }
    
    .contact-layout {
        order: 3;
        flex-direction: column;
        gap: 20px;
        margin-left: 0;
    }
}
