/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700&family=Courier+Prime:wght@400;700&display=swap');

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #ffffff;
    color: #2c2c2c;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    margin-bottom: 50px;
}

.header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.name-display {
    font-family: 'Courier Prime', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-style: normal;
    transform: none;
    display: inline-block;
}

.home-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-link:hover {
    color: #666;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Navigation */
.navigation {
    margin-bottom: 0;
}

.nav-board {
    display: flex;
    justify-content: flex-end;
    gap: 40px;
    align-items: center;
}

.nav-item {
    color: #1a1a1a;
    text-decoration: none;
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0;
    transition: color 0.2s ease;
    position: relative;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-item:hover {
    color: #666;
}

.destination {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.track {
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Hide editorial layout styles when not in use */


/* Tech Stack Page Styles */
.tech-philosophy {
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 40px 0 16px 0;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.philosophy-content h3:first-child {
    margin-top: 0;
}

.philosophy-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stack-item-detailed {
    background: #f8f8f8;
    padding: 20px;
    border: 1px solid #e5e5e5;
}

.stack-item-detailed strong {
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

.stack-item-detailed p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.philosophy-list {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.philosophy-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.philosophy-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #666;
    font-family: 'Courier Prime', monospace;
    font-weight: 700;
}

.philosophy-list li strong {
    color: #1a1a1a;
    font-weight: 600;
}

.performance-stats {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e5e5e5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.stat-item {
    text-align: center;
    background: #f5f5f5;
    padding: 20px 15px;
    border: 1px solid #ddd;
}

.stat-item strong {
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

.stat-item span {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
}

/* Performance Comparison Table */
.comparison-table {
    border: 1px solid #ddd;
    margin: 30px 0;
    font-size: 0.9rem;
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    border-bottom: 1px solid #eee;
}

.comparison-header {
    background: #f8f8f8;
    font-weight: 700;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-header > div,
.comparison-row > div {
    padding: 12px 8px;
    border-right: 1px solid #eee;
    text-align: center;
}

.comparison-header > div:last-child,
.comparison-row > div:last-child {
    border-right: none;
}

.metric {
    text-align: left !important;
    font-weight: 600;
}

.this-site {
    background: #f0f8f0;
}

.winner {
    font-weight: 700;
    color: #2d5a2d;
}

.improvement {
    font-size: 0.75rem;
    color: #1a5f1a;
    font-weight: 600;
    font-style: italic;
    display: block;
    margin-top: 2px;
}

.wordpress {
    background: #f8f8f8;
}

.squarespace {
    background: #fafafa;
}

.wix {
    background: #f5f5f5;
}

.performance-note {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 3px solid #ccc;
}

.performance-note p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.performance-note strong {
    color: #444;
    font-weight: 600;
}

@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .comparison-header > div,
    .comparison-row > div {
        padding: 8px 4px;
    }
}

@media (max-width: 480px) {
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
    }
    
    .comparison-header > div,
    .comparison-row > div {
        border-right: none;
        border-bottom: 1px solid #eee;
        text-align: left !important;
    }
    
    .comparison-header > div:first-child,
    .comparison-row > div:first-child {
        background: #f0f0f0;
        font-weight: 700;
    }
}

/* CFI Summary Section */
.cfi-summary {
    margin-bottom: 50px;
}

.summary-content {
    max-width: 800px;
    margin: 0 auto;
}

.summary-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.summary-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    margin: 50px 0;
}

.faq-container {
    max-width: 800px;
    margin: 30px auto 0;
}

.faq-item {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background: #f8f8f8;
}

.faq-question:hover {
    background: #f0f0f0;
}

.faq-question h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.faq-toggle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #666;
    font-family: 'Courier Prime', monospace;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #ffffff;
}

.answer-content {
    padding: 20px 25px;
    border-top: 1px solid #eee;
}

.answer-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 12px;
}

.answer-content p:last-child {
    margin-bottom: 0;
}

.answer-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

@media (max-width: 768px) {
    .faq-question,
    .answer-content {
        padding: 15px 20px;
    }
    
    .faq-question h3 {
        font-size: 0.9rem;
    }
}

/* Labs Page Styles */
.labs-content {
    max-width: 800px;
    margin: 0 auto;
}

.stealth-notice {
    text-align: center;
}

.stealth-notice h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stealth-notice p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 30px;
}

.project-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
    text-align: left;
}

.category-item {
    background: #f8f8f8;
    padding: 25px;
    border: 1px solid #e5e5e5;
}

.category-item strong {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
    margin-bottom: 8px;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.featured-project {
    background: #f0f8f0;
    padding: 30px;
    border: 2px solid #d5e5d5;
    margin: 40px 0;
    text-align: left;
}

.featured-project h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-project p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.project-links a {
    color: #2d5a2d;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #2d5a2d;
    padding-bottom: 2px;
    transition: color 0.2s ease;
    font-family: 'Courier Prime', monospace;
}

.project-links a:hover {
    color: #1a4a1a;
    border-bottom-color: #1a4a1a;
}

.status-note {
    margin-top: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-left: 3px solid #ccc;
    text-align: left;
}

.status-note p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .project-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-item,
    .featured-project {
        padding: 20px;
    }
}

/* Aviation Background Section */
.aviation-background {
    margin: 60px 0;
}

.background-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.background-tile {
    background: #f8f8f8;
    padding: 30px;
    border: 1px solid #e5e5e5;
    transition: background-color 0.2s ease;
}

.background-tile:hover {
    background: #f5f5f5;
}

.background-tile h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.background-tile .tile-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.background-tile .tile-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

.highlight-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stat {
    background: #e8e8e8;
    color: #555;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Courier Prime', monospace;
}

@media (max-width: 768px) {
    .background-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .background-tile {
        padding: 25px;
    }
    
    .aviation-background {
        margin: 50px 0;
    }
}

/* Credentials and Aircraft Sections */
.credentials-section,
.aircraft-section {
    margin: 60px 0;
}

.credentials-container,
.aircraft-container {
    background: #f8f8f8;
    padding: 30px;
    border: 1px solid #e5e5e5;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.cred-item {
    background: #ffffff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.cred-name {
    font-family: 'Courier Prime', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.cred-desc {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aircraft-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.aircraft-category {
    background: #ffffff;
    padding: 25px;
    border: 1px solid #e0e0e0;
}

.category-header {
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.aircraft-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aircraft-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.aircraft-type {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Courier Prime', monospace;
}

.aircraft-role {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .credentials-container,
    .aircraft-container {
        padding: 20px;
    }
    
    .aircraft-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .credentials-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .cred-item,
    .aircraft-category {
        padding: 15px;
    }
}

/* Footer */
.footer {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    color: #999;
    font-weight: 400;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Courier Prime', monospace;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #1a1a1a;
}

/* Portfolio Sections */
.portfolio-section {
    margin-bottom: 60px;
}

.portfolio-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 8px;
    display: inline-block;
}

/* Portfolio Grid Layout */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.portfolio-tile {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    padding: 30px;
    transition: background-color 0.2s ease;
}

.portfolio-tile:hover {
    background: #f5f5f5;
}

.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.tile-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tile-status {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f0f0f0;
    padding: 4px 8px;
}


.tile-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 16px;
}

.tile-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.tile-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #ccc;
    padding-bottom: 2px;
    transition: color 0.2s ease;
}

.tile-links a:hover {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.credentials-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.cred-badge {
    background: #e8e8e8;
    color: #555;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aircraft-categories {
    margin-top: 12px;
}

.aircraft-cat {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #444;
}

.aircraft-cat strong {
    color: #1a1a1a;
    font-weight: 600;
}

.activity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.activity-tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hide editorial layout */
.editorial-layout,
.primary-article,
.sidebar,
.secondary-articles,
.info-board,
.announcement {
    display: none;
}

/* Remove all animations */
.flicker {
    animation: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 50px 60px;
    }
    
    .editorial-layout {
        gap: 50px 60px;
    }
    
    .sidebar {
        padding-left: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 40px 30px;
    }
    
    .portfolio-section {
        margin-bottom: 50px;
    }
    
    .cfi-summary {
        margin-bottom: 40px;
    }
    
    .faq-section {
        margin: 40px 0;
    }
    
    .credentials-section,
    .aircraft-section {
        margin: 40px 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .portfolio-tile {
        padding: 25px;
    }
    
    .nav-board {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }
    
    .name-display {
        font-size: 1.8rem;
    }
    
    .nav-board {
        gap: 30px;
    }
    
    .portfolio-section {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }
    
    .portfolio-grid {
        gap: 25px;
    }
    
    .portfolio-tile {
        padding: 20px;
    }
    
    .tile-header h3 {
        font-size: 1rem;
    }
}