/* Design Portfolio Window */
#designPortfolio {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 58px; 
    width: auto;
    height: auto;
    min-width: 900px;
    min-height: 600px;
    background-color: #ffffff;
    display: none;
    flex-direction: column;
}

#designPortfolio .window-content {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

/* Fake Browser Chrome */
.browser-chrome {
    background: #e0e0e0;
    border-bottom: 1px solid #c0c0c0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fake-url-bar {
    flex: 1;
    background: white;
    border: 1px solid #c0c0c0;
    border-radius: 6px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 13px;
}

.url-icon {
    font-size: 10px;
}

.url-text {
    color: #333;
}

.browser-spacer {
    width: 60px;
}

/* Professional Intro */
.portfolio-intro {
    padding: 64px 48px 48px 48px;
    background: #f4f4f4;
    display: flex;
    gap: 50px; 
    align-items: center;
    flex-wrap: wrap;
}

.intro-left {
    flex: 0 0 400px;
    min-width: 500px;
}

.intro-right {
    flex: 1; 
    min-width: 250px; 
}

.intro-illustration {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.portfolio-intro h1 {
    font-size: 42px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #242522;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 20px;
    color: #eb5813;
    margin: 0 0 16px 0;
    font-weight: 900;
}

.bio {
    font-size: 16px;
    line-height: 1.2;
    color: #4a4a4a;
    max-width: 600px;
    margin: 0;
}

.resume-btn{
    background: #283995;
    border: 1px solid #283995;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #f4f4f4;
}

.resume-btn:hover {
    background: #3d50ba;
}

.resume-btn.active {
    background: #132275;
    border-color: #132275;
    color: white;
}

/* Sticky Filter Bar */
.filter-bar {
    position: sticky;
    top: 0;
    background: white;
    padding: 16px 48px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    z-index: 50;
}

.filter-btn {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4a4a4a;
}

.filter-btn:hover {
    background: #e0e0e0;
}

.filter-btn.active {
    background: #eb5813;
    border-color: #eb5813;
    color: white;
}

/* Portfolio Grid */
.portfolio-grid {
    padding: 32px 48px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.portfolio-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.portfolio-thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.portfolio-info {
    padding: 16px;
}

.portfolio-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #1a1a1a;
}

.portfolio-category {
    font-size: 13px;
    color: #eb5813;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-year {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    font-style: italic;
}

.modal-body .project-year {
    font-size: 14px;
    color: #999;
    font-style: italic;
    margin-top: -10px;
    margin-bottom: 20px;
}

.modal-content {
    background: white;
    max-width: 900px;
    width: 90%;
    margin: 40px auto;
    border-radius: 16px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-close {
    position: sticky;
    top: 16px;
    right: 16px;
    float: right;
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    margin: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f5f5f5;
}

.modal-body {
    padding: 0 32px 48px 32px;
    clear: both;
}

/* Modal Content Styling */
.modal-body h2 {
    font-size: 32px;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.modal-body .project-category {
    color: #eb5813;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    display: inline-block;
}

.modal-body h3 {
    font-size: 22px;
    margin: 32px 0 16px 0;
    color: #333;
}

.modal-body h4 {
    font-size: 18px;
    margin: 24px 0 12px 0;
    color: #555;
}

.modal-body p {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0 0 16px 0;
}

.modal-body img {
    width: 100%;
    height: auto;
    margin: 24px 0;
}

.modal-body video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

/* Two-column image layout option */
.modal-body .image-row {
    display: flex;
    gap: 20px;
    margin: 24px 0;
}

.modal-body .image-row img {
    flex: 1;
    margin: 0;
} 

/* Modal Container - Fills the entire screen */
.case-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* When modal is open, show it as flex */
.case-modal.open {
    display: flex;
}

/* Modal Content Box */
.case-modal .modal-content {
    background: white;
    max-width: 900px;
    width: 100%;
    margin: 20px auto;
    border-radius: 16px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

/* Modal Fade In Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Close Button */
.case-modal .modal-close {
    position: sticky;
    top: 16px;
    right: 16px;
    float: right;
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #f4f4f4;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    margin: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.case-modal .modal-close:hover {
    background: #f5f5f5;
    transform: scale(1.1);
}

/* Modal Body */
.case-modal .modal-body {
    padding: 0 32px 48px 32px;
    clear: both;
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .filter-bar {
        padding: 12px 20px;
    }
    
    .portfolio-intro {
        padding: 24px 20px;
    }
    
    .portfolio-intro h1 {
        font-size: 32px;
    }
    
    .modal-body {
        padding: 0 20px 32px 20px;
    }
    
    .modal-body .image-row {
        flex-direction: column;
    }
}