:root {
    color-scheme: only dark;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-blue: #0096ff;
    --ok-green: #4ade80;
    --text-dim: rgba(255, 255, 255, 0.5);
    --bg-color: #0f172a;
    --bg-mesh: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
               radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
               radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    background-image: var(--bg-mesh);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.glass-card {
    width: 95vw;
    margin: 40px auto 0 auto;
    flex: 1; 
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    min-height: 0;
}

.header-box {
    padding: 25px 30px;
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    gap: 20px;
}
.profile-section {
    display: flex;
    align-items: center;
    gap: 25px;
}
.avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: 2.5px solid var(--glass-border);
    object-fit: cover;
}
.name-title h1 {
    margin: 0;
    font-size: clamp(1.4rem, 4vw, 2.2rem); 
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
}
.name-title p {
    margin: 5px 0 0 0;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
}

.status-area {
    margin-left: auto; 
    display: flex;
    align-items: center;
}
.status-badge {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    border: 1px solid var(--glass-border);
    letter-spacing: 1px;
    display: flex;
    flex-direction: column; 
    align-items: right;
    text-align: right;
}
.status-badge span { 
    color: var(--ok-green); 
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.tab-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}
.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    background: rgba(255, 255, 255, 0);
    border: none;
    cursor: pointer;
    color: var(--text-dim);
    position: relative;
    transition: background 0.15s ease-in-out, color 0.15s ease-in-out; 
}
.tab span {
    font-size: 1.1rem;
    font-family: 'JetBrains Mono',
    monospace;
    transition: all 0.2s;
}
.tab small {
    font-size: 0.7rem;
    margin-top: 6px;
    height: 14px;
    transition: all 0.2s;
    text-transform: lowercase;
}

.tab.active { 
    color: white; 
    background: rgba(255, 255, 255, 0.04); 
}
.tab.active span {
    font-weight: 800;
    color: var(--accent-blue);
}
.tab.active small {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 1;
}
.tab.active::after { 
    opacity: 1; 
    transform: scaleX(1); 
}

.tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue);
    opacity: 0;
    transform: scaleX(0.8);
    transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.content-pane {
    flex: 1;
    overflow-y: auto;
    padding: 50px 50px 20px 50px;
    scrollbar-gutter: stable;
    position: relative; 
}
.content-pane::-webkit-scrollbar {
    width: 6px;
}
.content-pane::-webkit-scrollbar-track {
    background: transparent;
}
.content-pane::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0); 
    border-radius: 10px;
    transition: background-color 0.3s ease;
}
.content-pane.is-scrolling::-webkit-scrollbar-thumb,
.content-pane:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2) !important;
}
.content-pane::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-blue) !important;
}

.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}

.root-box h3 {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.root-paragraph {
    margin: 15px 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.experience-box h2 {
    font-size: 1.1rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 5px;
    flex: 1;
    min-width: 0;
}
.experience-item {
    margin-bottom: 15px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}
.experience-item summary {
    padding: 22px 25px;
    cursor: pointer;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    align-items: center;
}
.experience-item summary span {
    display: block;
    width: 100%;
    min-width: 0; 
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}
.experience-item summary span:last-child {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
}
.experience-item summary .year {
    color: var(--accent-blue);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
}
.experience-item[open] {
    border-color: rgba(0, 150, 255, 0.4);
}
.experience-item:hover {
    background: rgba(0, 150, 255, 0.1);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.2);
    transform: translateY(-2px);
}
.experience-item summary::-webkit-details-marker {
    display: none;
}
.experience-item summary span:nth-child(2) {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}
.experience-item summary span:nth-child(3) {
    color: var(--text-dim);
    font-size: 0.85rem;
}
.year {
    color: var(--accent-blue);
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
}
.details-content {
    padding: 0 25px 25px 25px;
}
.details-content .bullet-list {
    padding-left: 5px;
}

.output-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.output-box h3 {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
    min-width: 0;
}
.download-btn {
    display: block;
    width: 100%;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-align: center;
}
.download-btn:hover {
    background: rgba(0, 150, 255, 0.1);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.2);
    transform: translateY(-2px);
}

.bullet-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}
.bullet-list li { 
    margin-bottom: 12px; 
    color: rgba(255, 255, 255, 0.8); 
    display: flex; 
    align-items: baseline;
    line-height: 1.5;
    margin-bottom: 12px;
}
.bullet-list li .label {
    font-weight: 600;
    margin-right: 5px;
    color: rgba(255, 255, 255, 0.95);
}
.bullet-list li::before {
    display: inline-block;
    width: 60px;
    margin-right: 10px;
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    top: 0;
    position: relative;
}
.bullet-list li::before {
    content: '[OK]';
    color: var(--ok-green);
}
.bullet-list li.todo::before {
    content: '[WAIT]'; /* Or [TODO] */
    color: #fbbf24;
}
.bullet-list li.not-ok::before {
    content: '[FAIL]'; /* Or [NOT OK] */
    color: #f43f5e;
}
.bullet-list li.todo, 
.bullet-list li.not-ok {
    color: rgba(255, 255, 255, 0.4);
}


.external-footer {
    padding: 15px 0;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 3px;
    flex-shrink: 0;
}
.external-footer span {
    color: var(--accent-blue) !important;
    font-weight: bold;
}

.contact-link {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}
.contact-link:hover {
    border-bottom: 1px solid var(--accent-blue);
    text-shadow: 0 0 8px var(--accent-blue);
}

.point-image-container {
    margin: 15px 0 20px 0;
    width: 100%;
    max-width: 400px;
}
.point-image-outer-container {
    display: flex;
    width: 100%;
    margin: 15px 0 20px 0;
}
.point-image-outer-container.left {
    justify-content: flex-start;
}
.point-image-outer-container.center {
    justify-content: center;
}
.point-image-outer-container.right {
    justify-content: flex-end;
}
.point-image-container {
    max-width: 400px;
    width: 100%;
}

.showcase-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    filter: brightness(0.9) contrast(1.1);
    transition: transform 0.3s ease;
}
.showcase-img:hover {
    transform: scale(1.02);
    border-color: var(--accent-blue);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
}
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.lightbox.active .lightbox-content {
    transform: scale(1);
}
.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.showcase-img {
    cursor: zoom-in;
}

@media (max-width: 600px) {
    .glass-card {
        width: 98vw;
        margin: 10px auto;
        border-radius: 12px;
    }
    .header-box {
        padding: 15px;
        flex-direction: row;
        justify-content: flex-start;
    }
    .status-area {
        width: auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    .profile-section {
        gap: 15px;
    }
    .avatar {
        width: 60px;
        height: 60px;
    }
    .tab {
        min-height: 70px;
    }
    .tab span { font-size: 0.9rem; }
    .tab small { font-size: 0.6rem; }
    .content-pane {
        padding: 20px 15px;
        scrollbar-width: auto;
    }
    .output-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .content-pane::-webkit-scrollbar {
        width: 4px;
    }
}
@media (max-width: 768px) {
    .output-grid {
        flex-direction: column;
    }
    .output-box {
        width: 100%;
    }

    .bullet-list li {
        word-break: break-all; 
        display: block;
    }
    .bullet-list .label {
        display: block;
        margin-bottom: 4px;
    }
    .content-pane {
        padding: 30px 30px 10px 30px;
    }
}
.two-col-summary {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px;
}

.two-col-summary .content-title {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}
.two-col-summary .year {
    color: var(--accent-blue);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
}
.hanging-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.item-text {
    flex: 1;
    word-break: break-word;
}