@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&family=Kulim+Park:ital,wght@0,200;0,300;0,400;0,600;0,700;1,200;1,300;1,400;1,600;1,700&family=Silkscreen:wght@400;700&family=Ubuntu+Sans+Mono:ital,wght@0,400..700;1,400..700&display=swap');

:root {
    --bg-dark: #070709;
    --card-bg: rgba(13, 14, 20, 0.45);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 240, 255, 0.3);
    --neon-cyan: #00f0ff;
    --neon-cyan-glow: rgba(0, 240, 255, 0.15);
    --text-muted: #8e909a;
    --text-light: #f3f4f6;
}

body {
    background-color: var(--bg-dark) !important;
    background-image: radial-gradient(circle at 50% 30%, #0d1224 0%, #050508 100%) !important;
    color: var(--text-light);
    font-family: 'Kulim Park', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.back_cover {
    background-color: transparent !important;
    inset: 0;
    position: fixed;
    z-index: -2;
}

/* Nav header adjustment for cohesive dark mode */
.container {
    background-color: rgba(7, 7, 9, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    margin-bottom: 1rem !important;
}

/* Base structural layout */
.content_wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: transparent !important;
}

.content_container {
    width: 85% !important;
    max-width: 1200px;
    background-color: transparent !important;
    border: none !important;
    margin: 2rem auto 0 auto !important;
    padding: 1.5rem 1rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1.title {
    font-family: 'Silkscreen', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem) !important;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-transform: lowercase;
    position: relative;
    letter-spacing: -0.05em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

h1.title::after {
    content: "()";
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Section titles ("Published" and "Unpublished") */
.section_title_container {
    width: 85%;
    max-width: 1200px;
    margin: 3rem auto 1rem auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    height: auto !important;
}

.section_title_container .box {
    width: 80px !important;
    height: 1px !important;
    background-color: var(--neon-cyan) !important;
    box-shadow: 0 0 8px var(--neon-cyan);
    border-radius: 1px;
}

p.section_title {
    font-family: 'Silkscreen', sans-serif !important;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem) !important;
    color: var(--neon-cyan) !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    border-radius: 0 !important;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

/* Academic Dossier Dossier/Timeline Container */
.content_wrap_2 {
    width: 85% !important;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-left: 2.5rem; /* Space for the timeline line */
    box-sizing: border-box;
}

/* The vertical timeline spine */
.timeline_spine {
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.04);
}

.timeline_glow_line {
    position: absolute;
    left: 10px;
    top: 0;
    width: 2px;
    background-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    transform-origin: top;
    transform: scaleY(0); /* Driven by GSAP */
}

/* Timeline footnote and layout adjustments */
.footnote {
    font-family: 'Fira Code', monospace !important;
    color: var(--text-muted) !important;
    font-size: 0.75rem !important;
    align-self: flex-start;
    margin-top: 1.5rem;
    margin-left: 0;
    opacity: 0.7;
}

/* Research Dossier Card Layout */
.res_container {
    width: 100% !important;
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    margin-bottom: 2rem !important;
    position: relative;
    display: flex !important;
    align-items: stretch !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden !important;
}

.res_container::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 240, 255, 0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.4s ease;
}

.res_container:hover {
    border-color: var(--border-hover) !important;
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.05), 0 0 1px var(--neon-cyan);
    transform: translateX(5px);
}

.res_container:hover::before {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3) 0%, rgba(255, 255, 255, 0.02) 60%, rgba(0, 240, 255, 0.2) 100%);
}

/* Timeline bubble/node on the spine */
.timeline_node {
    position: absolute;
    left: -48px;
    top: 30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 2px solid rgba(255, 255, 255, 0.15);
    z-index: 5;
    transition: all 0.3s ease;
}

.res_container:hover .timeline_node {
    border-color: var(--neon-cyan);
    background-color: var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan);
    transform: scale(1.15);
}

/* Giant Outline Index Column */
.dossier_index_col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2.5rem;
    border-right: 1px solid var(--border-color);
    background-color: rgba(18, 20, 28, 0.2);
    user-select: none;
}

.dossier_index {
    font-family: 'Fira Code', 'Ubuntu Sans Mono', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.res_container:hover .dossier_index {
    -webkit-text-stroke: 1px var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
    color: rgba(0, 240, 255, 0.03);
}

/* Content Details Column */
.content_view {
    flex-grow: 1;
    padding: 2.25rem 2.5rem;
    margin: 0 !important;
}

p.content_title {
    font-family: 'Kulim Park', sans-serif !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
    margin: 0 0 0.75rem 0 !important;
    line-height: 1.4 !important;
}

p.content_info {
    font-family: 'Fira Code', monospace !important;
    font-weight: 400 !important;
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

p.content_info::before {
    content: "[journal]";
    color: var(--neon-cyan);
    font-size: 10px;
    letter-spacing: 0.02em;
    opacity: 0.85;
}

p.DOI {
    color: var(--neon-cyan) !important;
    font-family: 'Fira Code', monospace !important;
    font-size: 0.8rem !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.25rem !important;
    transition: all 0.2s ease;
}

p.DOI:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px var(--neon-cyan);
}

p.DOI::before {
    content: "doi";
    font-size: 9px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 4px;
    padding: 1px 4px;
    letter-spacing: 0.05em;
    color: var(--neon-cyan);
    font-weight: bold;
}

/* Author capsule chips */
.author_view {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: flex-start !important;
}

p.author_info {
    font-family: 'Kulim Park', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    padding: 0.25rem 0.75rem !important;
    margin: 0 !important;
    transition: all 0.3s ease;
}

p.author_info.main_author {
    color: var(--neon-cyan) !important;
    background-color: rgba(0, 240, 255, 0.03);
    border-color: rgba(0, 240, 255, 0.15);
    font-weight: 600 !important;
}

.res_container:hover p.author_info {
    border-color: rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.04);
}

.res_container:hover p.author_info.main_author {
    border-color: rgba(0, 240, 255, 0.3);
    background-color: rgba(0, 240, 255, 0.07);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.1);
}

/* Media Queries for Research Timeline */
@media screen and (max-width: 768px) {
    .content_wrap_2 {
        padding-left: 1.5rem;
    }
    
    .timeline_spine, .timeline_glow_line {
        left: 0px;
    }
    
    .timeline_node {
        left: -21px;
        top: 25px;
        width: 10px;
        height: 10px;
    }
    
    .res_container {
        flex-direction: column !important;
    }
    
    .dossier_index_col {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0.75rem 1.5rem;
        justify-content: flex-start;
    }
    
    .dossier_index {
        font-size: 2rem;
    }
    
    .content_view {
        padding: 1.5rem;
    }
}
