@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=VT323&family=Georgia:ital,wght@0,400;0,700;1,400&display=swap');

/* Keith Vaughan - Technical Blueprint Redesign */

:root {
    --bg-color: #f9f9f9;
    --text-primary: #111111;
    --text-secondary: #333333;
    --text-muted: #666666;
    
    /* Technical Blue */
    --accent-color: #0033cc; 
    --grid-color: #e0e0f0;
    
    --font-pixel: 'VT323', monospace;
    --font-mono: 'Space Mono', monospace;
    --font-serif: Georgia, 'Times New Roman', serif;
    
    --spacing-container: 40px;
    --grid-size: 20px;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    color: var(--text-primary);
    font-family: var(--font-serif);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-container);
    border-left: 1px dashed var(--accent-color);
    border-right: 1px dashed var(--accent-color);
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.8);
}

/* Header / Nav */
.site-header {
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 60px;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-name {
    font-family: var(--font-pixel);
    font-size: 32px;
    line-height: 1;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-role {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-family: var(--font-mono);
    font-size: 14px;
    text-transform: uppercase;
}

/* Hero Section */
.hero-section {
    padding: 60px 0 100px 50px; /* Added left padding for the label */
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: flex-start;
    position: relative;
}

/* Decorative FIG label for Hero */
.hero-section::before {
    content: "FIG_001 [OVERVIEW]";
    position: absolute;
    top: 65px; /* Aligned with text visually */
    left: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent-color);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.hero-headline {
    font-family: var(--font-pixel);
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.1;
    color: var(--accent-color);
    font-weight: 400;
    text-transform: uppercase;
    max-width: 90%;
}

.hero-headline em {
    font-style: normal;
    background: rgba(0, 51, 204, 0.1);
    padding: 0 10px;
    border: 1px dashed var(--accent-color);
}

/* Experience List (Right Side) */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--accent-color);
    background: #fff;
}

.experience-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--accent-color);
    font-family: var(--font-mono);
    font-size: 13px;
    align-items: center;
}

.experience-item:last-child {
    border-bottom: none;
}

.exp-year {
    color: var(--accent-color);
    font-weight: 700;
}

.exp-company {
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

.exp-role {
    text-align: right;
    color: var(--text-muted);
    font-style: italic;
}

/* Authority / Summary Section */
.authority-section {
    padding: 0 0 100px;
    position: relative;
}

.authority-label {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 30px;
    display: block;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}

.authority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    counter-reset: section-counter;
}

.authority-item {
    border: 1px solid #ddd;
    padding: 30px;
    background: #fff;
    position: relative;
    box-shadow: 4px 4px 0 rgba(0, 51, 204, 0.1);
}

.authority-item::before {
    counter-increment: section-counter;
    content: "0" counter(section-counter);
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: var(--font-mono);
    font-size: 40px;
    opacity: 0.1;
    color: var(--accent-color);
    font-weight: 700;
}

.authority-item h3 {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent-color);
    text-transform: uppercase;
}

.authority-item p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Selected Work / Impact Cards */
.work-section {
    padding: 0 0 120px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.work-card {
    display: block;
    position: relative;
    aspect-ratio: 16/10;
    border: 2px solid var(--accent-color);
    background: #fff;
    padding: 10px; /* Frame effect */
}

.work-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 var(--accent-color);
}

.work-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.3s ease;
    border: 1px solid #eee;
}

.work-card:hover .work-card-img {
    filter: grayscale(0%) contrast(1);
}

/* Overlay content for work cards - Technical Label style */
.card-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid var(--accent-color);
    padding: 15px;
    z-index: 2;
}

.card-title {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--accent-color);
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.card-desc {
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-serif);
    font-style: italic;
}

/* Footer */
.site-footer {
    padding: 60px 0;
    border-top: 2px solid var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
}

.footer-left {
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links {
    display: flex;
    gap: 32px;
    text-transform: uppercase;
}

.footer-links a {
    color: var(--accent-color);
    font-weight: 700;
}

.disambiguation {
    font-size: 10px;
    color: var(--text-muted);
    font-style: italic;
    font-family: var(--font-serif);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .experience-item {
        grid-template-columns: 60px 1fr;
    }
    
    .exp-role {
        text-align: left;
        grid-column: 2;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-container: 20px;
    }

    .site-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .hero-section {
        padding-left: 30px;
    }

    .authority-grid {
        grid-template-columns: 1fr;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-card {
        aspect-ratio: 4/3;
    }
    
    .site-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
    }
}
