/* ================================================
   HALLOBACH.COM — REDESIGN 2026
   Dark Editorial Theme
   Fonts: Cormorant Garamond (display) + DM Sans (UI)
   ================================================ */

:root {
    --bg:           #0d1117;
    --surface:      #161b22;
    --surface-2:    #1c2230;
    --accent:       #05998c;
    --accent-dim:   rgba(5, 153, 140, 0.10);
    --accent-border:rgba(5, 153, 140, 0.35);
    --text:         #e2ddd5;
    --text-muted:   #8b8fa8;
    --text-dim:     #4a4e60;
    --border:       rgba(255, 255, 255, 0.07);
    --font-display: 'Cormorant Garamond', serif;
    --font-sans:    'DM Sans', sans-serif;
    --radius:       6px;
    --nav-h:        60px;
    --max-w:        760px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(ellipse at 15% 0%, rgba(5,153,140,0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 100%, rgba(5,153,140,0.04) 0%, transparent 55%);
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}

/* ---- NAV ---- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(13, 17, 23, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.1em;
    user-select: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.75rem;
}

.nav-links a {
    font-size: 0.775rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-muted);
    transition: 0.2s;
    border-radius: 2px;
}

/* ---- HERO ---- */
.hero {
    padding: calc(var(--nav-h) + 88px) 0 88px;
    animation: heroIn 0.8s ease both;
}

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

.hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.hero-text { flex: 1; }

.hero-greeting {
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 8vw, 5rem);
    font-weight: 300;
    line-height: 1.02;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 22px;
}

.hero-rule {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 20px;
    border: none;
}

.hero-title {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.hero-typed {
    color: var(--accent);
    font-weight: 500;
}

.typed-cursor {
    color: var(--accent);
    font-weight: 300;
    animation: blink 0.7s infinite;
}

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

.hero-bio {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 32px;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8375rem;
    font-weight: 500;
    background: var(--surface);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-print { cursor: pointer; font-family: var(--font-sans); font-size: 0.8375rem; }

.btn-link:hover {
    border-color: var(--accent-border);
    color: var(--accent);
    background: var(--accent-dim);
}

.hero-avatar {
    flex-shrink: 0;
    animation: heroIn 0.8s ease 0.15s both;
}

.hero-avatar img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 2px solid var(--accent-border);
    object-fit: cover;
    display: block;
}

/* ---- SECTIONS ---- */
.section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 52px;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--accent);
}

/* ---- STATS BAR ---- */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 32px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    row-gap: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 80px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
    margin: 0 24px;
    flex-shrink: 0;
    align-self: center;
}

/* ---- CURRENTLY BUILDING ---- */
.building-callout {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 28px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    border-radius: var(--radius);
    flex-wrap: wrap;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}

.building-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.building-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.building-text a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--accent-border);
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.building-text a:hover { color: var(--accent); }

/* ---- TIMELINE ---- */
.timeline {
    display: flex;
    flex-direction: column;
}

.timeline-item {
    display: grid;
    grid-template-columns: 136px 1fr;
    gap: 20px;
    padding-bottom: 52px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-meta { padding-top: 6px; }

.timeline-year {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.4;
}

.timeline-body {
    border-left: 1px solid var(--border);
    padding-left: 28px;
    position: relative;
}

.timeline-body::before {
    content: '';
    position: absolute;
    left: -5px; top: 9px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 1px var(--accent-border);
}

.timeline-company {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.01em;
    margin-bottom: 2px;
    line-height: 1.2;
}

a.timeline-company:hover { color: var(--accent); }

.timeline-role {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.timeline-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.timeline-bullets li {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding-left: 18px;
    position: relative;
}

.timeline-bullets li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ---- PROJECTS ---- */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease,
                border-color 0.2s, background 0.2s;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    border-color: var(--accent-border);
    background: var(--surface-2);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.project-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
    flex: 1;
}

a.project-card-title:hover { color: var(--accent); }

.project-card-year {
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    white-space: nowrap;
    padding-top: 3px;
}

.project-card-desc {
    font-size: 0.855rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 14px;
    flex: 1;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
}

.project-card-tags p {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 3px;
    margin: 0;
    letter-spacing: 0.02em;
}

/* ---- SKILLS ---- */
.skills-list {
    display: flex;
    flex-direction: column;
}

.skill-row {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.skill-row:first-child { border-top: 1px solid var(--border); }

.skill-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-category {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent);
    min-width: 96px;
    padding-top: 5px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    font-size: 0.875rem;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: var(--radius);
    transition: border-color 0.2s, color 0.2s;
    cursor: default;
}

.tag:hover {
    border-color: var(--accent-border);
    color: var(--text);
}

/* ---- EDUCATION ---- */
.edu-list { display: flex; flex-direction: column; }

.edu-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.edu-item.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.edu-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    object-fit: contain;
    flex-shrink: 0;
    background: var(--surface);
    padding: 5px;
    border: 1px solid var(--border);
}

.edu-content { flex: 1; }

.edu-year {
    display: inline-block;
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.edu-degree {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 3px;
}

a.edu-degree:hover { color: var(--accent); }

.edu-school {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.edu-note {
    font-size: 0.76rem;
    color: var(--text-dim);
    font-family: monospace;
    letter-spacing: 0.03em;
}

/* ---- FOOTER ---- */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ---- PRINT ---- */
@media print {
    :root {
        --bg:           #ffffff;
        --surface:      #f5f5f5;
        --surface-2:    #eeeeee;
        --accent:       #05998c;
        --accent-dim:   transparent;
        --accent-border:rgba(5, 153, 140, 0.4);
        --text:         #111111;
        --text-muted:   #444444;
        --text-dim:     #777777;
        --border:       #dddddd;
    }

    body {
        background: #fff;
        background-image: none;
        font-size: 11pt;
    }

    .nav,
    .hero-links,
    .building-callout,
    .nav-toggle { display: none !important; }

    .hero {
        padding: 24pt 0 20pt;
        animation: none;
    }

    .hero-avatar img {
        width: 72pt;
        height: 72pt;
    }

    .section {
        padding: 20pt 0;
        page-break-inside: avoid;
    }

    .timeline-item,
    .project-card,
    .edu-item,
    .skill-row {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Only avoid breaks on small atomic elements */
    .project-card,
    .edu-item,
    .skill-row { page-break-inside: avoid; }

    /* Tighten spacing to fit ~2 pages */
    .container { padding: 0 12pt; }

    .hero { padding: 10pt 0 8pt; }
    .hero-greeting { display: none; }
    .hero-name { font-size: 28pt; margin-bottom: 6pt; }
    .hero-bio { font-size: 9.5pt; margin-bottom: 8pt; line-height: 1.5; }
    .hero-rule { margin-bottom: 8pt; }
    .hero-title { font-size: 9.5pt; margin-bottom: 8pt; }
    .hero-avatar img { width: 52pt; height: 52pt; }
    .hero-stats { margin-top: 8pt; padding: 8pt 0; }
    .stat-value { font-size: 16pt; }
    .stat-label { font-size: 7pt; }

    .section { padding: 10pt 0; }
    .section-title { font-size: 18pt; margin-bottom: 14pt; padding-bottom: 8pt; }

    .timeline-item { padding-bottom: 14pt; gap: 12pt; }
    .timeline-bullets li { font-size: 9pt; line-height: 1.5; margin-bottom: 2pt; }
    .timeline-company { font-size: 14pt; }
    .timeline-role { margin-bottom: 6pt; }

    .project-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8pt;
    }
    .project-card { padding: 10pt; }
    .project-card-title { font-size: 11pt; }
    .project-card-desc { font-size: 9pt; margin-bottom: 6pt; }
    /* Hide older projects to save space */
    .project-card:nth-child(n+9) { display: none; }

    .skill-row { padding: 8pt 0; gap: 16pt; }
    .tag { font-size: 9pt; padding: 2pt 8pt; }

    .edu-item { padding: 10pt 0; gap: 12pt; }
    .edu-logo { width: 36pt; height: 36pt; }
    .edu-degree { font-size: 11pt; }

    a { color: inherit; text-decoration: none; }
    .typed-cursor { display: none; }
    .btn-print { display: none; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        flex-direction: column;
        background: rgba(13, 17, 23, 0.98);
        border-bottom: 1px solid var(--border);
        padding: 16px 28px 20px;
        gap: 14px;
    }

    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }

    .hero-content { flex-direction: column-reverse; gap: 20px; }
    .hero-avatar img { width: 76px; height: 76px; }

    .hero-stats { gap: 0; row-gap: 14px; }
    .stat-divider { display: none; }
    .stat { min-width: calc(50% - 12px); flex: unset; }

    .building-callout { gap: 8px; }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .project-grid { grid-template-columns: 1fr; }

    .skill-row { flex-direction: column; gap: 10px; }
    .skill-category { min-width: unset; }

    .section-title { font-size: 1.85rem; }
}
