/* Import modern font */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

:root {
    --background-color: #000000;
    --text-color: #EAEAEA;
    --accent-color: #00FF41; /* Neon Green */
    --glow-color: rgba(0, 255, 65, 0.75);
    --user-accent-color: #00FFFF; /* Cyan for user */
    --classified-red: #FF0000;
    --warning-color: #FFD700; /* Gold/Yellow for warning */
}

* {
    box-sizing: border-box;
    /* Hide default cursor */
    cursor: none !important;
}

/* Custom Cursor Styles */
.custom-cursor-dot,
.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%); /* Center the cursor */
    transition: opacity 0.1s ease;
}

.custom-cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-color), 0 0 10px var(--glow-color);
}

.custom-cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent-color);
    background-color: rgba(0, 255, 65, 0.1);
    transition: transform 0.15s ease-out, width 0.15s ease-out, height 0.15s ease-out, opacity 0.1s ease;
}

/* Cursor states */
.custom-cursor-follower.active {
    transform: translate(-50%, -50%) scale(0.8);
    background-color: rgba(0, 255, 65, 0.2);
}

.custom-cursor-follower.hover {
    width: 40px;
    height: 40px;
    border-color: var(--user-accent-color);
    background-color: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px var(--user-accent-color);
}

body {
    font-family: 'Roboto Mono', monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* CRT Scanline Effect */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#page-content {
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

header {
    padding: 40px 20px 30px;
    text-align: center;
    border-bottom: 1px solid var(--accent-color);
    box-shadow: 0 0 20px var(--glow-color);
    position: relative;
}

header h1 { font-size: 2.5em; font-weight: 700; margin: 0 0 20px 0; color: var(--accent-color); letter-spacing: 2px; text-shadow: 0 0 5px var(--accent-color), 0 0 15px var(--glow-color), 0 0 25px var(--glow-color); }
header p { font-size: 1.1em; color: var(--text-color); margin-top: 0; margin-bottom: 20px; line-height: 1.5; }

nav { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
nav a { color: var(--text-color); text-decoration: none; padding: 5px 10px; border: 1px solid transparent; transition: color 0.2s, border-color 0.2s, text-shadow 0.2s; text-align: center; }
nav a:hover, nav a.active { color: var(--accent-color); border-color: var(--accent-color); text-shadow: 0 0 5px var(--glow-color); }

.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; padding: 40px 20px; max-width: 1200px; margin: 0 auto; }
.tweet-card { display: block; width: 350px; padding: 20px; border: 1px solid var(--accent-color); background: rgba(0, 255, 65, 0.05); text-decoration: none; color: var(--text-color); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.tweet-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 0 15px var(--glow-color); }
.tweet-header { font-weight: 700; color: var(--accent-color); margin-bottom: 15px; }
.tweet-body { margin: 0 0 20px 0; line-height: 1.6; }
.tweet-footer { text-align: right; font-weight: 700; color: var(--accent-color); }

/* Interview Page */
.interview-content { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.qa-item { margin-bottom: 30px; border-left: 2px solid var(--accent-color); padding-left: 15px; }
.qa-item p { margin: 5px 0; line-height: 1.6; }
.qa-item .prefix { color: var(--accent-color); }
.qa-item .prefix.user { color: var(--user-accent-color); }

/* Achievements Page */
.achievements-gallery { gap: 40px; }
.achievement-card { width: 400px; padding: 25px; border: 1px solid var(--user-accent-color); background: rgba(0, 255, 255, 0.05); text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.achievement-card:hover { transform: translateY(-5px); box-shadow: 0 0 15px rgba(0, 255, 255, 0.75); }
.ach-title { font-size: 1.5em; font-weight: 700; color: var(--user-accent-color); text-shadow: 0 0 10px var(--user-accent-color); margin-bottom: 15px; }
.ach-desc { margin: 0 0 20px 0; line-height: 1.6; }
.ach-footer { color: var(--user-accent-color); opacity: 0.7; }

/* Research Page */
.classified-stamp { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-15deg); font-size: 10vw; color: rgba(255, 0, 0, 0.15); font-weight: 700; z-index: 0; letter-spacing: 10px; border: 5px solid rgba(255, 0, 0, 0.15); padding: 10px 20px; pointer-events: none; }
.research-content { max-width: 900px; margin: 40px auto; padding: 0 20px; }
.researcher-profile, .lab-notes-section { border: 1px solid var(--accent-color); padding: 20px; margin-bottom: 40px; background: rgba(0, 255, 65, 0.05); }
.researcher-profile h2, .lab-notes-section h2 { color: var(--accent-color); margin: 0 0 20px 0; text-shadow: 0 0 5px var(--glow-color); }
.profile-stats { list-style: none; padding: 0; margin: 0; }
.profile-stats li { margin-bottom: 10px; line-height: 1.6; }
.profile-stats .stat-label { font-weight: 700; color: var(--user-accent-color); }
.lab-note { margin-bottom: 20px; border-left: 2px solid var(--user-accent-color); padding-left: 15px; }
.lab-note:last-child { margin-bottom: 0; }
.lab-note-header { font-weight: 700; color: var(--user-accent-color); margin-bottom: 10px; }
.lab-note-body { margin: 5px 0 0 0; line-height: 1.6; }

/* Records Page */
.records-gallery { gap: 40px; }
.record-card {
    width: 400px;
    padding: 25px;
    border: 1px solid var(--classified-red);
    background: rgba(255, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}
.record-card:hover { transform: translateY(-5px); box-shadow: 0 0 15px rgba(255, 0, 0, 0.75); }
.record-warning {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--classified-red);
    color: white;
    padding: 5px 10px;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 10;
}
.record-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Style for records without an image */
.record-card.no-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 250px; /* Ensure consistent height */
}
.record-card.no-image .record-image { display: none; }
.record-placeholder {
    font-size: 1.5em;
    color: var(--warning-color);
    margin: 20px 0;
    text-shadow: 0 0 10px var(--warning-color);
}
.record-description { margin: 0; line-height: 1.6; }

footer { text-align: center; padding: 40px 20px; margin-top: 40px; border-top: 1px solid var(--accent-color); box-shadow: 0 0 20px var(--glow-color); color: var(--accent-color); text-shadow: 0 0 10px var(--glow-color); }

/* --- Animation Keyframes --- */
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Initial state for animated items */
.tweet-card, .qa-item, .achievement-card, .profile-stats li, .lab-note, .record-card {
    opacity: 0;
}

/* JP Text Style */
.jp-text {
    display: block;
    font-size: 0.8em;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 5px;
}
