:root {
    --bg-color: #030303;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --accent: #00E5FF;
    --card-bg: #0A0A0A;
    --border-color: #1A1A1A;
    --grid-color: rgba(255, 255, 255, 0.03);
    
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: #000;
}

/* Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem 2rem;
}

/* Typography Helpers */
.highlight {
    color: var(--accent);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-main);
}

.inline-link {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--text-muted);
    transition: all 0.3s ease;
}

.inline-link:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.section-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0 6rem 0;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-main);
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.header-icon {
    width: 14px;
    height: 14px;
    border: 1px solid var(--text-main);
    margin-left: 1rem;
}

/* Hero Section */
.hero {
    margin-bottom: 5rem;
}

.hero h1 {
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero .subtitle {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.hero .bio {
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.hero .tagline {
    font-size: 0.8rem;
    font-style: italic;
    color: #666;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Projects Section */
.projects-section {
    margin-bottom: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    row-gap: 3rem;
}

.project h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project p {
    font-size: 0.85rem;
}

/* Layout Columns */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Lore Section (Timeline) */
.timeline {
    position: relative;
    padding-left: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1rem;
    top: 0.4rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--border-color);
    transform: translateX(-50%);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background-color: var(--accent);
    transform: translateX(-50%) scale(1.5);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.timeline-content {
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.timeline-content:hover {
    border-color: rgba(255,255,255,0.1);
}

.year {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.timeline-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-content li {
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.lore-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-style: italic;
    color: #666;
    line-height: 1.8;
}

/* Track Record Section */
.track-record {
    margin-bottom: 2rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-header .section-title {
    margin-bottom: 0;
}

.minimize-icon {
    color: var(--text-main);
    font-family: var(--font-mono);
}

.record-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.record-item {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.record-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.record-header h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.record-date {
    font-size: 0.75rem;
    color: #666;
    font-family: var(--font-mono);
}

.record-item p {
    font-size: 0.85rem;
}

/* Bottom Cards */
.bottom-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.small-card {
    display: flex;
    flex-direction: column;
}

.small-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.small-card li {
    font-size: 0.8rem;
    color: var(--text-main);
}

.small-card .highlight {
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
}

.footer-left {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* Responsive Design */
@media (max-width: 900px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .bottom-cards {
        grid-template-columns: 1fr;
    }
    
    footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Ping Page Specifics */
.ping-main {
    margin-top: 2rem;
}

.ping-hero {
    margin-bottom: 3rem;
}

.ping-hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
}

.ping-subtext {
    font-family: var(--font-mono);
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.8;
}

.ping-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.ping-contact-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
}

.contact-label {
    width: 150px;
    color: var(--text-main);
}

.contact-value {
    color: var(--text-main);
}

.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 1rem 0;
}

.bold {
    font-weight: 700;
}

.ping-status-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    color: var(--text-main);
    font-size: 0.85rem;
}

.status-active {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px var(--accent);
}

.loc-text {
    color: #444;
}

@media (max-width: 900px) {
    .ping-layout {
        grid-template-columns: 1fr;
    }
    .contact-label {
        width: 100px;
    }
    .ping-contact-card {
        padding: 2rem;
    }
}

/* Archive Page Specifics */
.archive-main {
    margin-top: 2rem;
}

.archive-hero {
    margin-bottom: 4rem;
}

.archive-hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
}

.archive-subtext {
    font-family: var(--font-mono);
    color: var(--text-main);
    font-size: 0.85rem;
    line-height: 1.8;
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
    max-width: 600px;
}

.archive-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.tab {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-bottom: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.tab:hover {
    color: var(--text-main);
}

.active-tab {
    color: var(--text-main);
    border-bottom: 2px solid var(--accent);
    margin-bottom: -1px;
}

.archive-card {
    max-width: 800px;
    padding: 3rem;
}

.archive-card-header {
    margin-bottom: 1.5rem;
}

.archive-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.archive-card-header h2 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 600;
}

.archive-text {
    font-family: var(--font-sans);
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .archive-card {
        padding: 2rem;
    }
}
