:root {
    --bg: #080c12;
    --bg-alt: #0d1117;
    --accent: #4af626;
    --accent-dim: rgba(74, 246, 38, 0.08);
    --accent-glow: rgba(74, 246, 38, 0.3);
    --cyan: #00d4ff;
    --cyan-dim: rgba(0, 212, 255, 0.08);
    --orange: #ff6b35;
    --red: #ff4757;
    --fg: #c9d1d9;
    --fg-bright: #e6edf3;
    --dim: #484f58;
    --border: rgba(255, 255, 255, 0.06);
    --border-bright: rgba(255, 255, 255, 0.1);
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-h: 56px;
    --max-w: 840px;
    --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

body > * { position: relative; z-index: 1; }

::selection { background: var(--accent); color: var(--bg); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(74, 246, 38, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(74, 246, 38, 0.4); }

a { color: var(--cyan); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--fg-bright); }

pre {
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.5;
    color: var(--accent);
    margin: 0;
    white-space: pre;
}

.dim { color: var(--dim); }

.terminal-cursor {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(74, 246, 38, 0.6);
    animation: glowPulse 1s ease-in-out infinite;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(74, 246, 38, 0.4); }
    50% { box-shadow: 0 0 12px rgba(74, 246, 38, 0.8), 0 0 24px rgba(74, 246, 38, 0.3); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes typeIn {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* NAV */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 100;
    background: rgba(8, 12, 18, 0.6);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid transparent;
    transition: border-color var(--ease), background var(--ease);
}

#navbar.scrolled {
    border-bottom-color: var(--border-bright);
    background: rgba(8, 12, 18, 0.85);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 14px;
    color: var(--fg-bright);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color var(--ease);
}

.nav-logo:hover { color: var(--accent); text-decoration: none; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
}

.nav-links a {
    color: var(--dim);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    transition: color var(--ease), background var(--ease);
    text-transform: lowercase;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    text-decoration: none;
    background: var(--accent-dim);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--fg);
    border-radius: 1px;
    transition: var(--ease);
}

/* HEADER */

#top {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 2rem) 1.5rem 2rem;
    position: relative;
}

#top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
    z-index: 2;
}

.hero-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-ascii {
    position: relative;
}

.hero-ascii::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(74, 246, 38, 0.06), transparent 70%);
    border-radius: 16px;
    pointer-events: none;
}

.hero-ascii pre {
    font-size: 12px;
    opacity: 0.65;
    line-height: 1.6;
    text-shadow: 0 0 20px rgba(74, 246, 38, 0.15);
}

.hero-info h1 {
    font-family: var(--mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--fg-bright);
    margin-bottom: 0.35rem;
    letter-spacing: -0.03em;
    position: relative;
}

.tagline {
    color: var(--dim);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.hero-status {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.status-line {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--fg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

.hero-former {
    font-size: 0.8rem;
    color: var(--dim);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.hero-services {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--dim);
    flex-wrap: wrap;
}

.hero-services i {
    font-size: 1rem;
    color: var(--fg);
    transition: color var(--ease), transform var(--ease);
}

.hero-services i:hover {
    color: var(--cyan);
    transform: scale(1.15);
}

.svc-text {
    font-size: 0.8rem;
}

/* SECTIONS */

main section {
    padding: 5rem 0;
    position: relative;
}

main section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sec-head {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--dim);
    margin-bottom: 2.5rem;
    text-transform: lowercase;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sec-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.sec-head-sm {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--dim);
    margin-bottom: 0.75rem;
}

.subtext {
    color: var(--dim);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* GAMING ERAS */

.prose { max-width: 640px; }

.era {
    margin-bottom: 2.25rem;
    padding-left: 1.25rem;
    border-left: 2px solid var(--border);
    transition: border-color var(--ease);
}

.era:hover { border-left-color: var(--accent-glow); }
.era:last-child { margin-bottom: 0; }
.era.current { border-left-color: var(--accent); }
.era.current:hover { border-left-color: var(--accent); }

.era h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg-bright);
    margin-bottom: 0.4rem;
}

.era-label {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 0.5rem;
    border: 1px solid rgba(74, 246, 38, 0.15);
}

.era p {
    font-size: 0.9rem;
    color: var(--fg);
    line-height: 1.75;
}

.era em {
    color: var(--orange);
    font-style: normal;
}

.era a {
    color: var(--accent);
}

.inline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.inline-tags span {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(74, 246, 38, 0.1);
    transition: background var(--ease), border-color var(--ease);
}

.inline-tags span:hover {
    background: rgba(74, 246, 38, 0.15);
    border-color: rgba(74, 246, 38, 0.3);
}

/* NEOFETCH RIG */

.neofetch {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: start;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.neofetch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.ascii-rig {
    font-size: 11px;
    color: var(--cyan);
    opacity: 0.5;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.neofetch-specs dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1.5rem;
    font-size: 0.85rem;
}

.neofetch-specs dt {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 2px;
}

.neofetch-specs dd {
    color: var(--fg-bright);
}

/* NETWORK TABLE */

.net-table {
    width: 100%;
    max-width: 620px;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
}

.net-table th {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-bright);
    font-weight: 500;
}

.net-table td {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--fg);
    transition: background var(--ease);
}

.net-table tbody tr {
    transition: background var(--ease);
}

.net-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.net-table tr.primary td:first-child {
    color: var(--accent);
    font-weight: 600;
}

.net-table td:nth-child(2) {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--fg-bright);
}

.net-table td:nth-child(3) {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--dim);
}

.net-table td:last-child {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--dim);
}

.server-admin {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.admin-col {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    transition: border-color var(--ease), background var(--ease);
}

.admin-col:hover {
    border-color: var(--border-bright);
    background: rgba(255, 255, 255, 0.02);
}

.admin-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fg-bright);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-col h4 i { font-size: 1rem; }

.admin-col h4 .fa-linux { color: var(--accent); }
.admin-col h4 .fa-windows { color: var(--cyan); }

.admin-col ul {
    list-style: none;
    padding: 0;
}

.admin-col li {
    font-size: 0.85rem;
    color: var(--fg);
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1rem;
}

.admin-col li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--mono);
}

.admin-col li strong {
    color: var(--fg-bright);
    font-weight: 500;
}

.admin-col p {
    font-size: 0.85rem;
    color: var(--fg);
    line-height: 1.65;
}

@media (max-width: 480px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* PROJECTS */

.project-list {
    display: grid;
    gap: 0;
}

.project-list a {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-bright);
    text-decoration: none;
    transition: all var(--ease);
    border-radius: 8px;
    position: relative;
    margin-bottom: 2px;
}

.project-list a:last-child { border-bottom: none; }

.project-list a::before {
    content: '→';
    color: var(--accent);
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--ease);
    position: absolute;
    left: -0.25rem;
}

.project-list a:hover {
    color: var(--accent);
    text-decoration: none;
    background: var(--accent-dim);
    padding-left: 2rem;
    border-color: transparent;
}

.project-list a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.project-list a span {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 400;
    color: var(--dim);
    transition: color var(--ease);
}

.project-list a:hover span { color: var(--fg); }

/* BERUF */

.prose-text {
    font-size: 0.9rem;
    color: var(--fg);
    max-width: 500px;
    line-height: 1.75;
}

/* FOOTER */

footer {
    padding: 2rem 0;
}

.footer-inner {
    font-family: var(--mono);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(8, 12, 18, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 0.75rem;
        border-bottom: 1px solid var(--border-bright);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-ascii { display: none; }

    .neofetch {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }

    .net-table { font-size: 0.8rem; }

    main section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
    body { font-size: 14px; }
    .section-inner { padding: 0 1rem; }
    .hero-info h1 { font-size: 1.5rem; }
    .hero-ascii { display: none; }
    .neofetch-specs dl { font-size: 0.8rem; }
    .net-table td:nth-child(3) { display: none; }
}
