:root {
    --dark-magenta: #4c1b7b;
    --light-green: #c6ffec;
    --gh-green: #23ff94;
    --ultraviolet-glow: #6f40d6;
}

body {
    background: #070a10;
    color: #f2f3f7;
    font-family: 'Space Grotesk', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

header {
    background: #232749;
    padding: 0.6em 2em;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 16px rgba(32, 40, 90, 0.10);
}

nav a,
nav {
    font-family: 'IBM Plex Mono', 'Menlo', 'Consolas', monospace;
    color: #70bfff;
    text-decoration: none;
    margin-right: 1.3em;
    font-size: 1.05em;
}

nav a:hover {
    color: #e2cfff;
    text-shadow: 0 0 6px #79c3ff55;
}

main {
    flex: 1;
    padding: 2em max(10vw, 2em) 1.5em max(10vw, 2em);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

h1 {
    font-size: 2.1em;
    margin-bottom: 1.2em;
    letter-spacing: 0.02em;
}

/* ====================== PROJECT CARD (UPGRADED) ======================= */

.project {
    position: relative;
    background:
        radial-gradient(circle at 20% -10%, rgba(112, 191, 255, 0.18), transparent 60%),
        radial-gradient(circle at 110% 120%, rgba(35, 255, 148, 0.15), transparent 60%),
        rgba(32, 37, 80, 0.92);
    border-radius: 1.2em;
    padding: 1.4em 1.7em;
    margin-bottom: 1.7em;

    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow:
        0 9px 40px rgba(15, 23, 42, 0.5),
        0 0 22px rgba(15, 23, 42, 0.6);

    backdrop-filter: blur(6px);
    transition:
        transform 0.22s ease-out,
        box-shadow 0.22s ease-out,
        background 0.22s ease-out,
        border-color 0.22s ease-out;
}

.project:hover {
    transform: translateY(-4px);
    background:
        radial-gradient(circle at 10% -20%, rgba(129, 230, 217, 0.22), transparent 65%),
        radial-gradient(circle at 120% 140%, rgba(129, 140, 248, 0.22), transparent 65%),
        rgba(45, 60, 112, 0.95);
    border-color: rgba(170, 200, 255, 0.7);

    box-shadow:
        0 14px 52px rgba(20, 28, 55, 0.75),
        0 0 30px rgba(56, 189, 248, 0.40),
        0 0 20px rgba(35, 255, 148, 0.30);
}

/* --- TITLE (emoji icon + title text) --- */
.project h2 {
    display: flex;
    align-items: center;
    gap: 0.55em;
    margin: 0 0 0.75em 0;

    font-size: 1.27em;
    color: #e9ebff;
    font-weight: 600;
    letter-spacing: 0.01em;

    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
}

/* --- DESCRIPTION TEXT --- */
.project p {
    margin: 0.25em 0 0 0;
    color: #c8cbdf;
    font-size: 0.95em;
    line-height: 1.45;
}

/* --- STATUS CHIP + ARTIFACT BADGES + NOTE --- */
.status-chip {
    font-size: 0.55em;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.35em 0.9em;
    border-radius: 999px;
    vertical-align: middle;
    white-space: nowrap;
}

.status-chip.done {
    color: #80ffb9;
    border: 1px solid rgba(35, 255, 148, 0.45);
    background: rgba(35, 255, 148, 0.08);
}

.status-chip.in-progress {
    color: #ffd580;
    border: 1px solid rgba(255, 190, 80, 0.45);
    background: rgba(255, 190, 80, 0.08);
}

.project-note {
    margin-top: 0.8em !important;
    font-size: 0.82em !important;
    color: #9aa3c0 !important;
    font-style: italic;
}

.artifact-row {
    margin-top: 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
}

.artifact-badge {
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #9fd7ff;
    text-decoration: none;
    padding: 0.4em 1em;
    border-radius: 999px;
    border: 1px solid rgba(112, 191, 255, 0.4);
    background: rgba(112, 191, 255, 0.08);
    transition: all 0.2s ease;
}

.artifact-badge:hover {
    color: #e2f4ff;
    border-color: rgba(160, 220, 255, 0.9);
    background: rgba(112, 191, 255, 0.18);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

/* --- DETAILS / SUMMARY --- */

.project details {
    margin-top: 0.9em;
    font-size: 0.88em;
    color: #a9c9ff;
}

.project details summary {
    cursor: pointer;
    color: #80ffb9;
    font-weight: 600;
    margin-bottom: 0.3em;
    outline: none;
    letter-spacing: 0.01em;
}

.project details summary:hover {
    color: #b8ffd7;
    text-shadow: 0 0 6px rgba(128, 255, 185, 0.5);
}



#circuit-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.88;
}

main,
header,
footer {
    position: relative;
    z-index: 2;
}




/* papers page body styling inherits from above */

main {
    position: relative;
    z-index: 2;
    padding: 3rem 5vw 1rem 5vw;
}

#papers-list {
    max-width: 860px;
    margin: 0 auto;
    background: rgba(24, 28, 38, 0.82);
    border-radius: 18px;
    box-shadow: 0 3px 20px #0002;
    padding: 2rem 2.5rem;
}

.paper-card {
    margin-bottom: 2.5rem;
    padding: 1.2rem 1.5rem;
    background: rgba(38, 40, 52, 0.89);
    border-left: 4px solid #70e8ff;
    border-radius: 10px;
}

.paper-title {
    font-size: 1.28rem;
    font-weight: bold;
    color: #63fcf4;
}

.paper-authors,
.paper-journal {
    font-size: 1rem;
    color: #c0d2ff;
    margin-bottom: 0.2rem;
}

.paper-abstract {
    margin-top: 0.6rem;
    margin-bottom: 0.2rem;
    font-size: 1.07rem;
    color: #f3eaff;
}

@media (max-width: 600px) {
    main {
        padding: 1.2rem 0.5rem 1rem 0.5rem;
    }

    #papers-list {
        padding: 1rem 0.3rem;
    }

    .paper-card {
        padding: 0.5rem 0.7rem;
    }
}

#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}