/* Template 60 - Digital Matrix / Code Terminal */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Fira+Code:wght@400;500;600&display=swap');

:root {
    --matrix-black: #0a0a0a;
    --matrix-dark: #0d1117;
    --matrix-panel: #161b22;
    --matrix-border: #30363d;
    --matrix-green: #00ff41;
    --matrix-green-dim: #00cc33;
    --matrix-cyan: #58a6ff;
    --matrix-yellow: #e3b341;
    --matrix-red: #f85149;
    --matrix-purple: #bc8cff;
    --text-primary: #c9d1d9;
    --text-muted: #8b949e;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Fira Code', monospace;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--matrix-black);
    font-weight: 400;
    font-size: 15px;
}

/* Matrix rain effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, transparent 0%, var(--matrix-black) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.03) 2px,
            rgba(0, 255, 65, 0.03) 4px
        );
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Header - Terminal Style */
.site-header {
    background: var(--matrix-panel);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--matrix-border);
}

.site-header::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--matrix-green), var(--matrix-cyan), var(--matrix-purple));
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--matrix-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo a::before {
    content: '>';
    color: var(--matrix-cyan);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    align-items: center;
}

.site-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.site-nav a::before {
    content: '$ ';
    color: var(--matrix-green-dim);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.site-nav a:hover {
    color: var(--matrix-green);
    background: rgba(0, 255, 65, 0.05);
    border-color: var(--matrix-border);
}

.site-nav a:hover::before {
    opacity: 1;
}

/* Hero Section */
.section.head {
    padding: 5rem 0;
    text-align: left;
    position: relative;
}

.section.head::before {
    content: '// SYSTEM.INIT';
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.section.head h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section.head h1 span {
    color: var(--matrix-green);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.section.head p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    padding: 1rem;
    background: var(--matrix-panel);
    border: 1px solid var(--matrix-border);
    border-left: 3px solid var(--matrix-cyan);
    border-radius: 4px;
}

.section.head p::before {
    content: '/* ';
    color: var(--text-muted);
}

.section.head p::after {
    content: ' */';
    color: var(--text-muted);
}

/* Section Styling */
.section {
    padding: 4rem 0;
}

.section header {
    margin-bottom: 3rem;
}

.section header h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section header h2::before {
    content: '#';
    color: var(--matrix-purple);
}

.section header p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 500px;
}

body:not(.faq) h3,
:not(section.faq) h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--matrix-cyan);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

body:not(.faq) h3::before,
:not(section.faq) h3::before {
    content: '## ';
    color: var(--matrix-yellow);
}

/* Footer */
.footer {
    background: var(--matrix-panel);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 1px solid var(--matrix-border);
    position: relative;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--matrix-green), transparent);
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-about {
    max-width: 350px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--matrix-border);
    border-radius: 3px;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--matrix-green);
    border-color: var(--matrix-green);
    background: rgba(0, 255, 65, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--matrix-border);
}

.footer-bottom::before {
    content: '// EOF';
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.copyright a {
    color: var(--text-muted);
    text-decoration: none;
}

/* Animations */
@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    opacity: 0;
    animation: typeIn 0.4s ease forwards;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}
