/* Window styles */
.main-window {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 94vw;
    height: 94vh;
    background: #f7f2d7;
    border: 0.125rem solid #0054e3;
    box-shadow: 0.3rem 0.3rem 1rem rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    transform: translate(-50%, -50%);
    z-index: 1000;

    overflow: auto;
}


.desktop {
    background: #3888e3 url('../assets/xp-bliss.jfif') no-repeat center center;
    background-size: cover;
    height: calc(100vh - 2.5rem);
    padding: 2vh;
    position: relative;
}

.title-bar {
    padding: 0.25rem 0.4rem;
    font-size: 0.9rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;

    position: sticky;
    top: 0;
    z-index: 2;                 /* stay above content */
}


.secondary-window {
    border-width: 0.125rem;
    box-shadow: 0.25rem 0.25rem 0.6rem rgba(0,0,0,0.3);
    max-width: 95vw;
    max-height: 90vh;
    min-width: 18rem;
    min-height: 12rem;
    position: absolute;
    display: none;

    overflow: hidden; 

}


.secondary-window.active {
    display: flex;
    flex-direction: column;
    background: #f7f2d7;
    z-index: 1100;
    box-shadow: 0.3rem 0.3rem 1rem rgba(0,0,0,0.4);
    
}


.title-bar-text {
    margin-left: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
}

.title-bar-controls button {
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.8rem;
    margin-left: 0.15rem;
}

.window-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: white;
    padding: 1rem;
}


/* Profile Section */
.profile-header {
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.profile-frame {
    padding: 0.5rem;
    border-width: 0.125rem;
    box-shadow: 0.2rem 0.2rem 0.4rem rgba(0,0,0,0.3);
    background: #d4d0c8;
    padding: 0.5rem;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    width: fit-content;
}

.profile-frame-inner {
    border-width: 0.125rem;
    padding: 0.2rem;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 18vw;
    max-width: 230px;
    height: auto;
    aspect-ratio: 5 / 5.5;
    object-fit: cover;
    display: block;
}
.profile-image-container {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.profile-name {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bolder;
    font-size: 2.1rem;
}

.profile-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    font-size: 1.4rem;
}

.profile-contact {
    gap: 0.5rem;
    font-size: 0.75rem;
}

.profile-contact div {
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
}

.profile-contact i {
    width: 1.2rem;
}

/* Content Sections */
.section {
    margin: 2rem 0;
}

.section-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.14rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    padding-bottom: 0.3rem;
}

.job-item {
    padding: 0.75rem;
    margin: 0.6rem 0;
    border-left-width: 0.25rem;
}

.job-header {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 650;
    font-size: 1rem;
}

.job-meta {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    font-style: italic;
}

.job-description {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
}

.job-description ul {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-left: 1.2rem;
}

.job-description li {
    margin: 0.2rem 0;
    list-style-type: square 
}

/* Mobile fullscreen window */
@media (max-width: 600px) {
    .secondary-window {
        width: 100vw !important;
        height: calc(100vh - 2.5rem) !important;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
    }

    .profile-image {
        width: 50vw;
    }
}

.menu-icon-img {
    width: 5vw;
    height: auto;
    margin-right: 2vw;
}

/* XP-style ACTIVE taskbar tab */
.taskbar-icon-tab {
    font-size: 0.8rem;
    width: 10rem;
    height: 2.4rem;
    border-radius: 0.2rem;

    /* XP active gradient */
    background: linear-gradient(
        to bottom,
        #3c7cf1 0%,
        #1f4fd8 50%,
        #163fa3 100%
    );

    border: 1px solid;
    border-color: #7aa2f7 #0b2f8f #0b2f8f #7aa2f7;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6),
        inset 0 -1px 2px rgba(0,0,0,0.4),
        0 1px 0 rgba(255,255,255,0.2);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 1; /* active tabs are solid */
}

/* Text next to icon */
.taskbar-title {
    font-size: 0.7rem;
    gap: 0.4rem;
    color: white;
}

/* Icon inside tab */
.taskbar-icon-tab img {
    width: 1.2rem;
    height: 1.2rem;
}
.project-body {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.project-image {
    width: 15vw;
    height: auto;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    background: #d4d0c8;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-image-container {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .profile-image {
        max-width: 10rem;
    }
}
@media (max-width: 480px) {
    .profile-image {
        max-width: 8rem;
    }
    
    .profile-frame {
        padding: 0.375rem;
    }
}