
:root {
    --bg:           #f4f6fb;
    --card:         #ffffff;
    --border:       #e4e8f0;
    --shadow-sm:    0 1px 4px rgba(79,70,229,0.06), 0 2px 12px rgba(0,0,0,0.05);
    --shadow-md:    0 4px 20px rgba(79,70,229,0.1), 0 8px 32px rgba(0,0,0,0.07);
    --text:         #0f0e17;
    --muted:        #64748b;
    --soft:         #a0aec0;
    --indigo:       #4f46e5;
    --indigo-light: #6366f1;
    --indigo-pale:  #eef2ff;
    --indigo-border:#c7d2fe;
    --grad:         linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --grad-text:    linear-gradient(135deg, #4f46e5, #818cf8);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body {
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}


.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: 12px;
}


.profile-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 32px 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}


.profile-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--grad);
}


.profile-card::after {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 340px; height: 200px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.08) 0%, transparent 70%);
    pointer-events: none;
}


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

.ring-spinner {
    width: 158px; height: 158px;
    border-radius: 50%;
    background: var(--grad);
    padding: 3px;
    box-shadow:
        0 0 0 8px rgba(99,102,241,0.07),
        0 8px 28px rgba(79,70,229,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: #fff;
    border: 1px solid var(--indigo-border);
    color: var(--indigo);
    font-size: 0.7rem; font-weight: 700;
    padding: 4px 12px; border-radius: 999px;
    pointer-events: none; white-space: nowrap; z-index: 10;
    box-shadow: 0 2px 10px rgba(79,70,229,0.12);
    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;}
}


.profile-card h1 {
    font-size: 2.3rem; font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
    color: var(--text);
}
.profile-card h1 span {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }

.badges {
    display: flex; justify-content: center; gap: 8px;
    flex-wrap: wrap; margin-bottom: 22px;
}
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--indigo-pale);
    border: 1px solid var(--indigo-border);
    border-radius: 999px; padding: 5px 14px;
    font-size: 0.77rem; color: var(--indigo);
    font-weight: 500;
}


.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: 12px;
    background: #f8f9ff;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.22s ease; text-decoration: none;
}
.social-icon:hover {
    color: #fff;
    background: var(--grad);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(79,70,229,0.3);
}


.section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    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(--indigo-border);
}

.section-title {
    font-size: 0.95rem; font-weight: 700;
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.section-title i {
    width: 30px; height: 30px;
    background: var(--indigo-pale);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--indigo);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.title-sub { font-size: 0.74rem; color: var(--soft); font-weight: 400; }
.about-text { color: var(--muted); font-size: 0.92rem; line-height: 1.85; }
.about-text strong { color: var(--text); font-weight: 700; }
.about-text em { color: var(--indigo); font-style: italic; }


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

.term-window {
    border-radius: 12px;
    overflow-y: hidden;
    overflow-x: auto;
    box-shadow: 0 6px 30px rgba(0,0,0,0.25);
    border: 1px solid #1e1e2e;
}

.term-topbar {
    background: #1e1e2e;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid #2a2a3e;
}
.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: #4a4a6a;
    font-family: monospace;
    letter-spacing: 0.02em;
}

.term-body {
    background: #13131f;
    padding: 18px 20px 22px;
    font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
    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: #7c7cff; }
.t-user    { color: #818cf8; font-weight: 700; }
.t-dir     { color: #60a5fa; font-weight: 700; }
.t-arrow   { color: #a78bfa; font-weight: 700; }
.t-cmd     { color: #e2e8f0; }

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

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

/* Python syntax — indigo palette */
.py-cmt { color: #3b3b5a; font-style: italic; }
.py-var { color: #c4b5fd; }
.py-str { color: #86efac; }
.py-num { color: #fbbf24; }
.py-fn  { color: #60a5fa; }
.py-br  { color: #94a3b8; }
.py-out { color: #fde68a; }
.py-hl  { color: #818cf8; font-weight: 700; }


.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 10px;
}
.info-item {
    background: #f8f9ff;
    border: 1px solid var(--border);
    padding: 20px 16px;
    border-radius: 14px;
    transition: all 0.22s ease;
    cursor: default;
}
.info-item:hover {
    border-color: var(--indigo-border);
    background: var(--indigo-pale);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79,70,229,0.1);
}
.item-icon { font-size: 1.45rem; margin-bottom: 10px; }
.info-item h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.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: #f8f9ff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem; color: var(--muted);
    transition: all 0.2s ease; cursor: default;
    font-weight: 500;
}
.skill-tag:hover {
    background: var(--indigo-pale);
    border-color: var(--indigo-border);
    color: var(--indigo);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79,70,229,0.1);
}
.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: #0f0e17;
    color: #e2e8f0;
    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: #0f0e17;
    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: #f8f9ff;
    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(--indigo-pale);
    border-color: var(--indigo-border);
    color: var(--indigo);
    transform: translateY(-2px);
}


.tagline-cursor {
    display: inline-block;
    font-weight: 300;
    color: var(--indigo-light);
    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: 28px; height: 28px;
    background: var(--indigo-pale);
    border: 1px solid var(--indigo-border);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: var(--indigo);
    font-size: 0.8rem;
    flex-shrink: 0;
}
.learn-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}
.learn-pct {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--indigo);
}
.learn-bar-bg {
    width: 100%;
    height: 7px;
    background: var(--indigo-pale);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--indigo-border);
}
.learn-bar-fill {
    height: 100%;
    background: var(--grad);
    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(--grad);
    color: #fff; text-decoration: none; border-radius: 12px;
    font-size: 0.9rem; font-weight: 700;
    transition: all 0.22s ease;
    box-shadow: 0 4px 18px rgba(79,70,229,0.28);
    letter-spacing: 0.01em;
}
.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(79,70,229,0.38);
}


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


@media (min-width: 880px) {
    .container {
        max-width: 1180px;
        display: grid;
        grid-template-columns: 290px 1fr;
        gap: 20px;
        padding: 44px 40px 56px;
    }

    .profile-card {
        grid-column: 1;
        grid-row: 1 / 999;
        position: sticky;
        top: 24px;
        align-self: start;
        padding: 44px 26px 38px;
        border-radius: 22px;
    }

    .section, footer {
        grid-column: 2;
    }

    .avatar-wrapper { width: 190px; height: 190px; }
    .ring-spinner   { width: 142px; height: 142px; }
    .profile-card h1 { font-size: 1.9rem; }

    .section { padding: 30px 32px; border-radius: 18px; }
    .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: 1rem; margin-bottom: 18px; }
    .skill-tag { padding: 8px 16px; font-size: 0.82rem; }
    .interest-chip { font-size: 0.84rem; padding: 8px 15px; }
}


@media (max-width: 600px) {
    .container { padding: 24px 12px 40px; gap: 10px; }
    .profile-card { padding: 36px 20px 30px; border-radius: 20px; }
    .section { padding: 22px 18px; border-radius: 16px; }
    .profile-card h1 { font-size: 1.95rem; }
    .avatar-wrapper { width: 195px; height: 195px; }
    .ring-spinner { width: 142px; height: 142px; }
    .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; }
}
