:root {
    --bg0: #282828;      
    --bg1: #3c3836;
    --fg0: #ebdbb2; 
    --gray: #928374;     
    --red: #cc241d;      
    --green: #98971a;    
    --yellow: #d79921;  
    --blue: #458588;   
    --aqua: #689d6a;   
}

/* Base Setup */
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg0);
    color: var(--fg0);
    font-family: 'Courier New', 'JetBrains Mono', monospace;
    line-height: 1.6;
    margin: 0;
    padding: 20px; /* Reduced for mobile */
}

/* The Dossier Container */
.container {
    max-width: 850px;
    margin: 20px auto;
    border: 1px solid var(--bg1);
    padding: 20px;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.4);
}

/* Header & Status Bar */
header { margin-bottom: 30px; border-bottom: 2px solid var(--bg1); }
.status-bar {
    background: var(--bg1);
    color: var(--gray);
    padding: 5px 15px;
    font-size: 0.7rem;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap; 
    gap: 15px;
}
nav a {
    color: var(--green);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}
nav a::before { content: "./"; color: var(--gray); }

.profile-header {
    display: flex;
    flex-direction: row; 
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 1px dashed var(--bg1);
    padding-bottom: 20px;
    align-items: flex-start; 
    width: 100%;
}


.subject-identity-wrapper {
    position: relative;
    display: inline-block; 
    flex-shrink: 0; 
    flex: 0 0 auto;
    margin-top: 10px;
}

.profile-img {
    width: 170px; 
    height: 230px;
    object-fit: cover;
    border: 2px solid var(--red);
    display: block; 
}

.subject-identity-wrapper::after {
    content: "MSc";
    position: absolute;
    
    bottom: -5px; 
    right: -10px;
    
    font-family: 'Rubik Mono One', monospace;
    font-weight: 900;
    color: var(--red);
    border: 5px solid var(--red);
    box-shadow: 3px 3px 0px rgba(0,0,0,0.4);
    text-shadow: 3px 3px 0px rgba(0,0,0,0.7);
    padding: 0px 8px;
    font-size: 1.4rem;
    opacity: 1;
    
    transform: rotate(20deg); 
    z-index: 5; 
    pointer-events: none;
}

@media (max-width: 600px) {
    .subject-identity-wrapper {
        margin-bottom: 25px;
    }
    html {
        font-size: 14px; 
    }

    h1 {
        font-size: 1.5rem !important;
        letter-spacing: 1px;
    }

    h2 {
        font-size: 1.2rem !important;
    }

    .sub-label {
        display: block;
        font-size: 0.75rem;
        margin-top: 4px;
    }
}

.data-table {
    width: 100%;
    font-size: 0.95rem;
    border-collapse: collapse;
}
.data-table td { padding: 4px 4px; vertical-align: top; }
.label { color: var(--yellow); width: 100px; font-weight: bold; }

.hl-blue { color: var(--blue); }
.hl-red { color: var(--red); font-weight: bold; }
.hl-aqua { color: var(--aqua); }
.hl-yellow { color: var(--yellow); }
.hl-gray { color: var(--gray); font-weight: normal; }

section { margin-top: 40px; }

h1, h2 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

h1 {
    color: var(--green);
    border-bottom: 2px solid var(--green);
    font-size: 1.5rem;
}

h2 {
    color: var(--green); 
    border-bottom: 1px solid var(--bg1);
    font-size: 1.2rem;
    margin-top: 40px;
}

.sub-label {
    color: var(--gray);
    font-size: 0.75rem;
    font-weight: normal;
    text-transform: lowercase;
    font-family: 'Courier New', 'JetBrains Mono', monospace;
    letter-spacing: 0px;
}

@media (max-width: 600px) {
    h1, h2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

.log-entry {
    border-left: 2px solid var(--bg1);
    padding-left: 15px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .container { padding: 15px; margin: 10px auto; }
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .data-table {
        width: 100%;
        margin-left: 0; /* Ensures the table itself isn't centered */
        margin-right: auto;
    }
    .data-table td {
        display: block; 
        width: 100% !important;
        text-align: left !important; /* Forces left alignment */
        padding: 5px 0;
        border: none; /* Removes any grid lines for a cleaner log look */
    }
    .data-table tr td:last-child {
        padding-left: 15px;
    }
    .label { width: 100%; margin-bottom: 2px; }
    nav ul { justify-content: center; }
}

a {
    color: var(--aqua); 
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: all 0.2s ease;
    font-weight: bold;
}

a:hover {
    color: var(--blue);
    border-bottom: 1px dashed var(--blue);
    background-color: rgba(104, 157, 106, 0.1);
}

nav a {
    color: var(--green);
}

nav a::before {
    content: "./"; 
    color: var(--gray);
    font-weight: normal;
}

nav a:hover {
    color: var(--fg0);
    background-color: var(--green);
}

.log-entry a {
    font-family: 'Courier New', 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* The Log-Table Container */
.log-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem; /* Slightly smaller for 'log' feel */
    margin-top: 15px;
    background: rgba(40, 40, 40, 0.3); /* Subtle dark backing */
    padding: 10px;
}

/* Individual Log Rows */
.log-table tr {
    border-bottom: 1px solid rgba(60, 56, 54, 0.5); /* Very faint divider */
    transition: background 0.2s;
}

/* Column 1: Timestamps/Labels */
.log-table td:first-child {
    color: var(--yellow);
    width: 150px;
    padding: 8px 15px;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: bold;
}

/* Column 2: The Data/Event */
.log-table td:last-child {
    color: var(--fg);
    padding: 8px 15px;
    border-left: 2px solid var(--bg1); /* Vertical 'log' separator */
}

.center {
    text-align: center;
}

@media (max-width: 600px) {
    .log-table {
        font-size: 0.8rem;
    }
    .log-table td:first-child {
        width: 80px;
        padding: 8px 5px;
    }
    .log-table td .hl-gray {
        display: block; 
        margin-top: 2px;
    }
}

footer { margin-top: 60px; word-wrap: break-word; text-align: center; border-top: 2px solid var(--bg1); padding-top: 20px; padding-right: 15px; padding-left: 15px; color: var(--gray); font-size: 0.75rem; }
footer div {
    white-space: normal;
    display: block; 
    font-size: 0.65rem;
}
