/* --- Core Reset & Theme Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

:root {
    /* High contrast, old-school raw palettes */
    --bg-color: #000000;            /* Pure abyss black for absolute contrast */
    --window-bg: #0d0211;           /* Deep, bruised midnight purple */
    --warning-yellow: #ffee00;      /* Bright, piercing classic HTML yellow */
    --blood-red: #ff0033;           /* Violent, high-contrast crimson */
    --vile-purple: #9d00ff;         /* Aggressive, sharp neon-adjacent purple */
    --text-color: #ffffff;          /* Crisp white for maximum legibility */
    --border-style: 2px solid var(--blood-red);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    padding: 20px;
}

/* --- Old School Tiled Static Grid --- */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Harsh, tiny digital grid grid that textures the pitch black background */
    background-image: 
        linear-gradient(rgba(157, 0, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(157, 0, 255, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
}

/* --- Layout Container --- */
.container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- Early Web Occult Window Effect --- */
.y2k-window {
    background: var(--window-bg);
    border: var(--border-style);
    /* Hard, sharp, solid offset shadow — feels early web but dangerous */
    box-shadow: 10px 10px 0px var(--vile-purple);
}

.window-bar {
    background: var(--blood-red);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--blood-red);
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #ffffff; /* Punchy white text against red bar */
}

.window-buttons span {
    background: #000;
    padding: 1px 6px;
    margin-left: 4px;
    border: 1px solid #fff;
    color: #fff;
    cursor: pointer;
    font-size: 0.7rem;
}

.window-content {
    padding: 25px;
}

/* --- Navigation --- */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    justify-content: center;
}

.nav-btn {
    color: var(--warning-yellow);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--warning-yellow);
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.1s ease;
}

.nav-btn:hover {
    background: var(--warning-yellow);
    color: #000;
}

/* --- Landing Section --- */
.center-content {
    text-align: center;
    padding: 40px 10px;
}

.glitch-text {
    font-size: 3rem;
    color: var(--warning-yellow);
    font-weight: 900;
    /* Harsh, flat under-shadow that screams old internet */
    text-shadow: 4px 4px 0px var(--blood-red);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.subtitle {
    color: var(--vile-purple);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.marquee-container {
    background: #000;
    border: 2px solid var(--vile-purple);
    padding: 8px;
    color: var(--warning-yellow);
    font-weight: bold;
}

/* --- About Section --- */
.biography {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- Absolute Retro Frame Force Rules --- */
.profile-pic-frame {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #000000 !important;
    border: 3px dashed var(--warning-yellow) !important; /* Jarring hazard-line style */
    padding: 12px !important;
    width: 170px !important;
    height: auto !important;
    box-shadow: 6px 6px 0px var(--blood-red);
}

/* --- Avatar Visual Fix --- */
.profile-avatar {
    width: 140px !important;
    height: 140px !important;
    object-fit: cover !important;
    border: 2px solid var(--blood-red) !important;
    display: block !important;
    /* High-contrast, deeply uncomfortable crunch style instead of simple gray */
    filter: contrast(150%) saturate(80%);
}

.frame-label {
    font-size: 0.8rem;
    color: var(--warning-yellow);
    margin-top: 8px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Desktop Upgrade */
@media (min-width: 650px) {
    .biography {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
}

/* --- Photo Grid --- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.grid-item {
    border: 2px solid var(--vile-purple);
    background: #000;
    padding: 8px;
    text-align: center;
}

.grid-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #111;
    border: 1px solid var(--blood-red);
    filter: saturate(130%) contrast(120%);
}

.img-caption {
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: bold;
    color: var(--warning-yellow);
}

/* --- Retro Link Directory Styling --- */
.link-directory {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 25px auto 0 auto;
}

.directory-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #000;
    border: 2px solid var(--vile-purple);
    text-decoration: none;
    color: var(--text-color);
    /* Snappy frame-by-frame early web transition */
    transition: all 0.1s steps(2);
}

.card-icon {
    font-size: 2.5rem;
    line-height: 1;
    user-select: none;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-label {
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--warning-yellow); /* Instantly readable */
}

.card-desc {
    font-size: 0.9rem;
    color: #e5e7eb; /* High contrast gray-white */
}

/* --- Aggressive HTML Hover Overlays --- */
.directory-card:hover {
    border-color: var(--blood-red);
    background: #1a0005;
    box-shadow: 6px 6px 0px var(--warning-yellow);
}
.directory-card:hover .card-label { 
    color: #ffffff; 
}

/* --- Old-School Aggressive Chaos Blink --- */
.blinking-text {
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--blood-red);
    animation: vintage-blink 0.8s infinite steps(1);
}

@keyframes vintage-blink {
    0%, 100% { color: var(--blood-red); text-shadow: none; }
    50% { color: var(--warning-yellow); text-shadow: 0px 0px 8px var(--warning-yellow); }
}

/* --- Footer --- */
.footer-credit {
    text-align: center;
    margin-top: 40px;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--vile-purple);
}