
:root {
    --bg:            #FAFAF6;
    --card:          #FFFFFF;
    --border:        #E8E5D9;
    --shadow-sm:     0 1px 3px rgba(20,20,15,0.05), 0 3px 12px rgba(20,20,15,0.05);
    --shadow-md:     0 14px 34px rgba(20,20,15,0.10);
    --ink:           #16160F;
    --muted:         #6E6D62;
    --soft:          #ACAB9E;
    --accent:        #FF4D1A;
    --accent-dark:   #D93D10;
    --accent-pale:   #FFF0E8;
    --accent-line:   #FFD0B8;
    --term-bg:       #121210;
    --term-chrome:   #1B1B18;
    --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --sans: 'Manrope', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--sans); }

body {
    background:
        radial-gradient(circle, rgba(20,20,15,0.055) 1px, transparent 1.2px) 0 0/22px 22px,
        var(--bg);
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

::selection { background: var(--accent); color: #fff; }

a:focus-visible, button:focus-visible, .skill-tag:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.prompt {
    color: var(--accent);
    font-family: var(--mono);
    font-weight: 700;
}

.tagline-slash { color: var(--accent-line); font-family: var(--mono); }

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s cubic-bezier(.25,.8,.25,1) forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }


.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 36px 16px 52px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* ── Profile card / hero ── */
.profile-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.term-chrome {
    background: var(--term-chrome);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.term-chrome-title {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: #6b6b62;
    letter-spacing: 0.02em;
}

.profile-card-body {
    padding: 40px 32px 36px;
    text-align: center;
}


.avatar-wrapper {
    position: relative;
    width: 200px; height: 200px;
    margin: 0 auto 22px;
    display: flex; align-items: center; justify-content: center;
}

.ring-spinner {
    width: 148px; height: 148px;
    border-radius: 50%;
    background: var(--accent);
    padding: 3px;
    box-shadow:
        0 0 0 7px var(--accent-pale),
        0 10px 26px rgba(255,77,26,0.22);
}

.ring-inner {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: #fff;
    overflow: hidden; position: relative;
}

.avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

.status-dot {
    position: absolute; bottom: 7px; right: 7px;
    width: 15px; height: 15px;
    background: #22c55e;
    border: 3px solid #fff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}


.float-label {
    position: absolute;
    background: var(--ink);
    border: 1px solid var(--ink);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.68rem; font-weight: 600;
    padding: 4px 12px; border-radius: 999px;
    pointer-events: none; white-space: nowrap; z-index: 10;
    box-shadow: 0 4px 14px rgba(20,20,15,0.22);
    transform: translate(-50%,-50%);
    animation: floatOut 4.2s ease-out forwards;
}
@keyframes floatOut {
    0%   { opacity: 0; translate: 0 0;                scale: .8; }
    18%  { opacity: 1; translate: 0 0;                scale: 1;  }
    75%  { opacity: 1; translate: var(--dx) var(--dy); scale: 1;  }
    100% { opacity: 0; translate: var(--dx) var(--dy); scale: .95;}
}

.eyebrow {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.profile-card h1 {
    font-family: var(--mono);
    font-size: 2.1rem; font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.tagline {
    font-family: var(--mono);
    color: var(--muted);
    font-size: 0.86rem;
    margin-bottom: 22px;
}

.badges {
    display: flex; justify-content: center; gap: 8px;
    flex-wrap: wrap; margin-bottom: 24px;
}
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px; padding: 6px 13px;
    font-family: var(--mono);
    font-size: 0.72rem; color: var(--ink);
    font-weight: 500;
}
.badge i { color: var(--soft); font-size: 0.7rem; }
.badge-live { border-color: var(--accent-line); background: var(--accent-pale); color: var(--accent-dark); }
.badge-live i { color: #22c55e; font-size: 0.45rem; }


.social-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.social-icon {
    color: var(--muted); font-size: 1rem;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; text-decoration: none;
}
.social-icon:hover {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(20,20,15,0.2);
}


/* ── Sections ── */
.section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}
.section:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-line);
}

.section-title {
    font-family: var(--mono);
    font-size: 0.92rem; font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 14px;
    display: flex; align-items: baseline; gap: 9px;
    color: var(--ink);
    letter-spacing: -0.01em;
    border-bottom: 1px dashed var(--border);
}

.title-sub { font-size: 0.7rem; color: var(--soft); font-weight: 400; margin-left: 2px; }
.about-text { color: var(--muted); font-size: 0.93rem; line-height: 1.85; }
.about-text strong { color: var(--ink); font-weight: 700; }
.about-text em { color: var(--accent-dark); font-style: normal; }


.terminal-card { padding: 24px 28px 28px; }

.term-window {
    border-radius: 10px;
    overflow-y: hidden;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.28);
    border: 1px solid #000;
}

.term-topbar {
    background: var(--term-chrome);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid #2a2a26;
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.red    { background: #ff5f57; }
.term-dot.yellow { background: #febc2e; }
.term-dot.green  { background: #28c840; }
.term-title {
    margin-left: auto;
    font-size: 0.71rem;
    color: #6b6b62;
    font-family: var(--mono);
    letter-spacing: 0.02em;
}

.term-body {
    background: var(--term-bg);
    padding: 18px 20px 22px;
    font-family: var(--mono);
    font-size: 0.83rem;
    line-height: 1.95;
}

.term-prompt {
    margin-bottom: 10px;
    font-size: 0.83rem;
    user-select: none;
    line-height: 1.7;
}
.t-zsh-top, .t-zsh-bot { display: block; }
.t-bracket { color: #75756c; }
.t-user    { color: var(--accent); font-weight: 700; }
.t-dir     { color: #e8e5d9; font-weight: 700; }
.t-arrow   { color: var(--accent); font-weight: 700; }
.t-cmd     { color: #e8e5d9; }

.term-code {
    margin: 0;
    white-space: pre;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    min-height: 165px;
    color: #e8e5d9;
    position: relative;
}

.term-cursor {
    display: inline-block;
    width: 8px; height: 1em;
    background: var(--accent);
    vertical-align: text-bottom;
    animation: blink 1s step-start infinite;
    margin-left: 1px;
}
@keyframes blink { 50% { opacity: 0; } }

/* Python syntax — ember palette on near-black terminal */
.py-cmt { color: #55554c; font-style: italic; }
.py-var { color: #ffb08a; }
.py-str { color: #8fdf9f; }
.py-num { color: #f5c977; }
.py-fn  { color: #7fb8e0; }
.py-br  { color: #9a9a8e; }
.py-out { color: #f2d98a; }
.py-hl  { color: var(--accent); font-weight: 700; }


.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 10px;
}
.info-item {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 20px 16px;
    border-radius: 12px;
    transition: all 0.22s ease;
    cursor: default;
}
.info-item:hover {
    border-color: var(--accent-line);
    background: var(--accent-pale);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,77,26,0.1);
}
.item-icon { font-size: 1.4rem; margin-bottom: 10px; }
.info-item h4 { font-family: var(--mono); font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.info-item p  { color: var(--muted); font-size: 0.79rem; line-height: 1.55; }


.skills-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 0.78rem; color: var(--muted);
    transition: all 0.2s ease; cursor: default;
    font-weight: 500;
}
.skill-tag:hover {
    background: var(--accent-pale);
    border-color: var(--accent-line);
    color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(255,77,26,0.12);
}
.skill-funny { position: relative; }
.skill-funny::after {
    content: attr(data-tip);
    position: absolute; bottom: calc(100% + 8px); left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--ink);
    color: #f2f1ea;
    font-family: var(--sans);
    font-size: 0.73rem; white-space: nowrap;
    padding: 6px 12px; border-radius: 8px;
    pointer-events: none; opacity: 0;
    transition: opacity 0.16s, transform 0.16s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2); z-index: 20;
}
.skill-funny::before {
    content: ''; position: absolute; bottom: calc(100% + 2px); left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--ink);
    pointer-events: none; opacity: 0;
    transition: opacity 0.16s; z-index: 20;
}
.skill-funny:hover::after  { opacity: 1; transform: translateX(-50%) scale(1); }
.skill-funny:hover::before { opacity: 1; }
.skill-note { margin-top: 12px; font-size: 0.74rem; color: var(--soft); text-align: center; }


.interests-list { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-chip {
    padding: 7px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem; color: var(--muted);
    transition: all 0.2s ease; cursor: default;
    font-weight: 500;
}
.interest-chip:hover {
    background: var(--accent-pale);
    border-color: var(--accent-line);
    color: var(--accent-dark);
    transform: translateY(-2px);
}


.tagline-cursor {
    display: inline-block;
    font-weight: 400;
    color: var(--accent);
    animation: blink-cursor 1s step-start infinite;
    margin-left: 1px;
}
@keyframes blink-cursor { 50% { opacity: 0; } }


.learning-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.learn-item {}
.learn-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 7px;
}
.learn-icon {
    width: 26px; height: 26px;
    background: var(--accent-pale);
    border: 1px solid var(--accent-line);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-dark);
    font-size: 0.76rem;
    flex-shrink: 0;
}
.learn-name {
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    flex: 1;
}
.learn-pct {
    font-family: var(--mono);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--accent-dark);
}
.learn-bar-bg {
    width: 100%;
    height: 6px;
    background: var(--bg);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.learn-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
    transition: width 1.1s cubic-bezier(.25,.8,.25,1);
}


.contact-section { text-align: center; }
.cta-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 30px;
    background: var(--ink);
    color: #fff; text-decoration: none; border-radius: 10px;
    font-family: var(--mono);
    font-size: 0.86rem; font-weight: 700;
    transition: all 0.22s ease;
    box-shadow: 0 6px 20px rgba(20,20,15,0.2);
    letter-spacing: 0.01em;
}
.cta-btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255,77,26,0.32);
}


footer {
    text-align: center; padding: 20px 0 6px;
    color: var(--soft); font-size: 0.78rem;
    font-family: var(--mono);
}


@media (min-width: 880px) {
    .container {
        max-width: 1180px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 22px;
        padding: 44px 40px 56px;
    }

    .profile-card {
        flex: 0 0 300px;
        position: sticky;
        top: 24px;
        border-radius: 16px;
    }
    .profile-card-body { padding: 36px 26px 32px; }

    .content-col {
        flex: 1 1 0%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .avatar-wrapper { width: 176px; height: 176px; }
    .ring-spinner   { width: 132px; height: 132px; }
    .profile-card h1 { font-size: 1.75rem; }

    .section { padding: 30px 32px; border-radius: 14px; }
    .terminal-card { padding: 26px 32px 30px; }
    .term-body { font-size: 0.85rem; padding: 18px 22px 22px; }

    .grid-layout { grid-template-columns: 1fr 1fr; }
    .section-title { font-size: 0.96rem; margin-bottom: 20px; }
    .skill-tag { padding: 8px 16px; font-size: 0.8rem; }
    .interest-chip { font-size: 0.84rem; padding: 8px 15px; }
}


@media (max-width: 600px) {
    .container { padding: 24px 12px 40px; gap: 12px; }
    .profile-card-body { padding: 32px 20px 28px; }
    .section { padding: 22px 18px; border-radius: 14px; }
    .profile-card h1 { font-size: 1.8rem; }
    .avatar-wrapper { width: 180px; height: 180px; }
    .ring-spinner { width: 132px; height: 132px; }
    .term-body { font-size: 0.76rem; padding: 14px 14px 16px; }
    .grid-layout { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
    .grid-layout { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .fade-up { opacity: 1; transform: none; }
}
