@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap');

:root {
    --bg: #0d0d0d;
    --text: #d4d4d4;
    --text-bright: #f0f0f0;
    --text-dim: #777;
    --border: #2a2a2a;
    --font-mono: 'Fira Code', 'SF Mono', 'JetBrains Mono', 'Cascadia Code', 'Courier New', monospace;
    --max-width: 600px;
    --section-gap: 32px;
}

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

body {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 0 24px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    width: 100%;
    padding: 60px 0 40px;
}

/* ── Header / Hero ── */

.hero {
    margin-bottom: 16px;
}

.typed-name {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.3;
    min-height: 1.3em;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 0.9em;
    background: var(--text-bright);
    margin-left: 6px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

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

.location {
    color: var(--text-dim);
    font-size: 0.9em;
    margin-top: 4px;
}

/* ── Sections ── */

.section {
    margin-bottom: var(--section-gap);
}

.section-title {
    font-size: 1em;
    font-weight: 700;
    color: var(--text-bright);
    text-transform: lowercase;
    margin-bottom: 12px;
}

/* ── Experience ── */

.exp-entry {
    margin-bottom: 16px;
}

.exp-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.exp-logo {
    height: 28px;
    width: auto;
    border-radius: 3px;
}

.exp-company {
    font-weight: 400;
    color: var(--text-bright);
}

.exp-role {
    color: var(--text-dim);
}

.exp-date {
    color: var(--text-dim);
    margin-left: auto;
}

.exp-location {
    color: var(--text-dim);
    font-size: 0.85em;
    white-space: nowrap;
}

.exp-focus-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-top: 4px;
}

.exp-focus-row .exp-focus {
    margin-top: 0;
}

.exp-sep {
    color: var(--text-dim);
}

.exp-tech {
    color: var(--text-dim);
    font-size: 0.85em;
}

.exp-focus {
    color: var(--text-dim);
    font-size: 0.85em;
    margin-top: 4px;
}

.exp-summary {
    color: var(--text-bright);
    font-size: 0.9em;
    margin-top: 4px;
    line-height: 1.6;
}

/* ── Interests ── */

.interest-list {
    list-style: none;
}

.interest-list li {
    color: var(--text-bright);
    padding: 2px 0;
}

.interest-list li:first-child {
    margin-top: -4px;
}

.interest-list li::before {
    content: '– ';
    color: #555;
}

/* ── Projects ── */

.project-entry {
    margin-bottom: 12px;
    line-height: 1.6;
}

.project-name {
    font-weight: 400;
    color: var(--text-bright);
}

.project-tag {
    display: inline-block;
    font-size: 0.75em;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 6px;
    text-decoration: none;
    vertical-align: middle;
}

.tag-url {
    border: 1px solid var(--text-dim);
    color: var(--text-dim);
    transition: border-color 0.2s, color 0.2s;
}

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

.tag-wip {
    border: 1px solid #555;
    color: #555;
}

.project-desc {
    color: var(--text-dim);
    font-size: 0.9em;
}

/* ── Hobbies ── */

.hobby-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hobby-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px;
    color: var(--text-bright);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
    cursor: default;
}

.hobby-card:hover {
    border-color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.hobby-icon {
    font-size: 1.1em;
    line-height: 1;
}

/* ── Photos ── */

.country-name {
    font-size: 1em;
    color: var(--text-bright);
    font-weight: 700;
    margin-bottom: 8px;
}

.city-list {
    list-style: none;
}

.city-link {
    color: var(--text-dim);
    cursor: pointer;
    padding: 3px 0;
    transition: color 0.2s;
    display: block;
}

.city-link:hover {
    color: var(--text-bright);
}

.city-link::before {
    content: '> ';
    color: #555;
}

/* ── Photo Modal ── */

.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.photo-modal.active {
    display: block;
}

.photo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 24px;
    max-width: 900px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1001;
}

.photo-modal-title {
    font-family: var(--font-mono);
    color: var(--text-bright);
    font-size: 1.2em;
    font-weight: 700;
}

.photo-modal-close {
    color: var(--text-dim);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.photo-modal-close:hover {
    color: var(--text-bright);
}

.photo-modal-grid {
    column-count: 3;
    column-gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.photo-modal-grid img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
    border-radius: 4px;
    break-inside: avoid;
}

/* ── Contact ── */

.contact-email {
    color: var(--text-bright);
}

.contact-email-text {
    color: var(--text-bright);
    user-select: all;
    cursor: text;
    text-decoration: none;
    -webkit-text-decoration: none;
    pointer-events: none;
}

/* ── Footer / Social Links ── */

.footer {
    margin-top: -30px;
}

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

.signature {
    height: 100px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-right: 20px;
    margin-top: -10px;
}

.social-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
    overflow: hidden;
}

.social-link:hover {
    color: var(--text-bright);
}

.social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
}

.social-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.85em;
    transition: max-width 0.4s ease, opacity 0.3s ease, margin-left 0.3s ease;
    margin-left: 0;
}

.social-link:hover .social-label {
    max-width: 200px;
    opacity: 1;
    margin-left: 8px;
}

.resume-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-mono);
    outline: none;
}

.resume-btn:focus {
    outline: none;
}

.resume-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.resume-modal.open {
    display: flex;
}

.resume-modal-inner {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 90vh;
    background: #1a1a1a;
    border: 1px solid var(--border);
}

@media (max-width: 600px) {
    .resume-modal-inner {
        width: 100%;
        height: 100%;
        border: none;
    }
}

.resume-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    border-bottom: 1px solid var(--border);
    background: #1a1a1a;
}

.resume-modal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    font-family: var(--font-mono);
}

.resume-modal-close:hover {
    color: var(--text-bright);
}

.resume-download-link {
    font-family: var(--font-mono);
    font-size: 0.8em;
    color: var(--text-dim);
    text-decoration: none;
}

.resume-download-link:hover {
    color: var(--text-bright);
}

.resume-iframe {
    display: block;
}

@media (max-width: 600px) {
    .resume-download-link {
        font-size: 0.9em;
    }
}

.resume-iframe {
    width: 100%;
    height: calc(100% - 41px);
    border: none;
}

/* ── Responsive ── */

@media (max-width: 520px) {
    body {
        font-size: 13px;
        padding: 0 16px;
    }

    .container {
        padding: 32px 0 20px;
    }

    .typed-name {
        font-size: 1.5em;
    }

    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .exp-date {
        margin-left: 0;
    }

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

    .signature {
        margin-right: -20px;
    }

    .photo-modal-grid {
        column-count: 2;
    }
}
