:root {
    --bg-color: #0f1115;
    --text-color: #e2e8f0;
    --accent-orange: #f97316; /* Soldering iron orange */
    --accent-olive: #657457; /* Tactical olive green */
    --card-bg: #1e2128;
    --border-color: #2d313a;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Subtle gritty noise effect */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Typography */
h1, h2, h3, h4 {
    color: #ffffff;
    font-weight: 600;
}

h3 {
    font-family: var(--font-mono);
    color: var(--accent-orange);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-bottom: 1.5rem;
    color: #a0aec0;
}

/* Header */
header {
    padding: 120px 0 80px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 60px;
}

h1.glitch {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--accent-olive);
    margin-bottom: 24px;
}

.loop-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #718096;
}

.highlight {
    color: var(--text-color);
}

/* Sections */
section {
    padding-bottom: 0px;
    margin-bottom: 120px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.section-header .line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--border-color);
    margin-left: 20px;
}

/* Grid Layout for Cards */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-layout > :last-child {
        grid-column: span 2;
    }
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 4px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

a:has(> .card), a.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-orange);
}

.card h4 {
    font-family: var(--font-mono);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Timeline */
.journey-intro {
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.timeline {
    list-style: none;
    margin-top: 40px;
    position: relative;
}

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

.timeline li {
    display: flex;
    margin-bottom: 48px;
    position: relative;
}

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

.timeline .date {
    width: 90px;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-olive);
    padding-top: 4px;
    text-align: right;
    padding-right: 24px;
    position: relative;
}

.timeline .date::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 8px;
    width: 10px;
    height: 10px;
    background-color: var(--bg-color);
    border: 2px solid var(--accent-orange);
    border-radius: 50%;
    z-index: 2;
}

.timeline .details {
    padding-left: 24px;
}

.timeline h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.timeline p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding-top: 100px;
    padding-bottom: 80px;
    margin-top: 100px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content h3 {
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 2rem;
    margin-bottom: 24px;
    text-transform: none;
    letter-spacing: normal;
}

.footer-content p {
    margin-bottom: 8px;
}

.links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-orange);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #e06512;
}

.btn.outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn.outline:hover {
    border-color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
    h1.glitch {
        font-size: 2.5rem;
    }
    
    .timeline::before {
        left: 8px;
    }
    
    .timeline .date {
        position: absolute;
        left: 24px;
        top: -24px;
        text-align: left;
        width: auto;
    }
    
    .timeline .date::after {
        left: -21px;
        top: 6px;
    }
    
    .timeline .details {
        padding-left: 24px;
        width: 100%;
    }
}
