* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    font-family: 'Inter', sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #ffffff;
    color: #111827;
}

.portfolio-app {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
}

/* ── SIDEBAR ─────────────────────────────── */
.sidebar {
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 24px 12px 24px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.sidebar-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #a58829;
    margin-bottom: 14px;
    padding: 0 8px;
    letter-spacing: -0.01em;
}

.sidebar-group-label {
    font-size: 0.60rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9ca3af;
    padding: 10px 8px 4px;
    margin: 0;
}

.sidebar-nav,
.secondary-nav,
.sidebar-social,
.sidebar-projects {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sidebar-nav a,
.secondary-nav a,
.sidebar-social a,
.sidebar-projects a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    background: transparent;
    border: none;
    transition: background 0.15s ease, color 0.15s ease;
    font-size: 0.82rem;
    font-weight: 500;
}

.sidebar-social a {
    justify-content: space-between;
    padding: 10px 12px;
}

.sidebar-social a::after {
    content: '→';
    color: #9ca3af;
    font-size: 0.92rem;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.sidebar-nav a:hover,
.secondary-nav a:hover,
.sidebar-social a:hover,
.sidebar-projects a:hover {
    background: #f3f4f6;
    color: #111827;
}

.sidebar-social a:hover::after {
    color: #1a73e8;
}

.sidebar-nav a.active {
    background: #111827;
    color: #ffffff;
    font-weight: 600;
}

.nav-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-nav a.active .nav-icon {
    color: #ffffff;
}

.project-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.project-icon.text-icon {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.project-label {
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-projects a.project-more {
    color: #9ca3af;
    font-size: 0.78rem;
}

.sidebar-social a {
    color: #1a73e8 !important;
    font-weight: 500;
}

.sidebar-social a:hover {
    background: #eff6ff;
    color: #1558b0 !important;
}

.sidebar-footer {
    color: #d1d5db;
    font-size: 0.68rem;
    line-height: 1.5;
    padding: 12px 8px 0;
    margin-top: 8px;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
}

/* ── HERO (other pages) ─────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    min-height: 100vh;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    text-align: center;
    min-height: 100vh;
    padding: 40px 40px;
    max-width: 840px;
    margin: 0 auto;
}

.hero-headline {
    margin: 0 0 18px;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.hero-description {
    margin: 0;
    width: 100%;
    font-size: 1rem;
    line-height: 1.85;
    color: #4b5563;
}

.hero-description p {
    margin: 0 0 1.4rem;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

/* RESUME PAGE */
.resume-main {
    background: #f8fafc;
    min-height: 100vh;
}

.resume-hero {
    position: relative;
    background: #111827;
    color: #f9fafb;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
    padding: 40px 48px;
    overflow: hidden;
}

.resume-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.14), transparent 42%);
    pointer-events: none;
}

.resume-hero * {
    position: relative;
    z-index: 1;
}

.resume-avatar {
    width: 220px;
    min-width: 220px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    border: 3px solid rgba(255,255,255,0.18);
    box-shadow: 0 22px 60px rgba(15,23,42,0.22);
}

.resume-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.resume-intro {
    max-width: 640px;
}

.resume-intro h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: 0.05em;
}

.resume-intro p {
    margin: 12px 0 24px;
    color: #d1d5db;
    line-height: 1.65;
}

.resume-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.72rem;
    color: #93c5fd;
    margin-bottom: 14px;
}

.resume-contact-grid {
    display: grid;
    gap: 12px 24px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: start;
}

.resume-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #d1d5db;
    font-size: 0.92rem;
}

.resume-contact-card svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.resume-contact-card a {
    color: #d1d5db;
    text-decoration: none;
}

.resume-contact-card a:hover {
    color: #fff;
}

.resume-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    padding: 32px 48px 60px;
    max-width: 1220px;
    margin: 0 auto;
}

.resume-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.resume-section {
    background: #ffffff;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.05);
    border: 1px solid #e5e7eb;
}

.resume-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111827;
    margin-bottom: 16px;
    position: relative;
}

.resume-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 56px;
    height: 4px;
    background: #1a73e8;
    border-radius: 999px;
}

.resume-copy {
    color: #374151;
    line-height: 1.75;
}

.resume-entry {
    margin-bottom: 22px;
}

.resume-entry:last-child {
    margin-bottom: 0;
}

.resume-entry-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.resume-entry-sub {
    color: #6b7280;
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.resume-entry-desc {
    margin: 0;
    color: #4b5563;
    line-height: 1.75;
    font-size: 0.92rem;
}

.resume-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.resume-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #374151;
    font-size: 0.92rem;
    line-height: 1.7;
}

.resume-list li::before {
    content: '•';
    color: #1a73e8;
    margin-top: 4px;
}

.resume-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
}

.resume-certs {
    display: grid;
    gap: 12px;
}

.resume-cert-item {
    display: grid;
    gap: 4px;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.resume-cert-item-title {
    font-weight: 700;
    color: #111827;
}

.resume-cert-item-sub {
    color: #4b5563;
    font-size: 0.85rem;
}

.resume-projects {
    display: grid;
    gap: 16px;
}

.resume-project-item {
    display: grid;
    gap: 8px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
}

.resume-project-item a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
}

.resume-project-item a:hover {
    text-decoration: underline;
}

.resume-project-item p {
    margin: 0;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.7;
}

@media (max-width: 1040px) {
    .resume-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .resume-hero {
        padding: 28px 20px;
    }

    .resume-grid {
        padding: 20px 20px 52px;
    }
}

/* ── HOME PAGE ──────────────────────────── */
.home-main {
    background: #ffffff;
    min-height: 100vh;
}

/* HERO PHOTO + SPOTLIGHT */
.home-hero {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: 48px;
    min-height: 320px;
    overflow: hidden;
    position: relative;
}

.home-hero-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.home-hero-spotlight::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 340px;
    background: radial-gradient(ellipse at 50% 100%, #38bdf8 0%, #0ea5e9 30%, rgba(14,165,233,0) 75%);
    filter: blur(36px);
    opacity: 0.75;
    border-radius: 50%;
}

.home-hero-spotlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse at center bottom, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
}

.home-hero-img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255,255,255,0.35);
    box-shadow: 0 24px 60px rgba(15,23,42,0.14);
    background: transparent;
}

/* BIO */
.home-bio {
    max-width: 700px;
    margin: 0 auto;
    padding: 36px 48px 0;
}

.home-bio-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
}

.home-bio-text {
    font-size: 0.93rem;
    line-height: 1.85;
    color: #374151;
    margin: 0 0 18px;
    text-align: justify;
}

.home-bio-text a { 
    color: #1a73e8; 
    text-decoration: none; }
.home-bio-text strong { 
    font-weight: 600; 
    color: #111827; 
    background-color: rgb(255, 255, 154);}

.home-bio-text2 strong{
    font-size: 0.93rem;
    line-height: 1.85;
    color: #374151;
    margin: 0 0 18px;
    text-align: justify;
    background-color: #fef3c7;
}

.home-bio-text3 strong{
    font-size: 0.93rem;
    line-height: 1.85;
    color: #374151;
    margin: 0 0 18px;
    text-align: justify;
    background-color: rgb(230, 230, 253);
}

.home-bio-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.bio-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    color: #374151;
    background: #ffffff;
    transition: background 0.15s, border-color 0.15s;
}

.bio-btn:hover { background: #f9fafb; border-color: #d1d5db; }

.bio-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* SECTION WRAPPER */
.home-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 44px 48px 0;
}

.home-section:last-child { padding-bottom: 80px; }

.home-section-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 18px;
}

/* DIVIDER */
.home-divider {
    max-width: 700px;
    margin: 44px auto 0;
    padding: 0 48px;
    border: none;
    border-top: 1px solid #f3f4f6;
}

/* SOCIAL */
.social-links { display: flex; flex-direction: column; gap: 2px; }

.social-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.social-link-item::after {
    content: '→';
    color: #9ca3af;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.social-link-item:hover {
    color: #111827;
}

.social-link-item:hover::after {
    color: #1a73e8;
}

.social-link-item svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* MAP */
.map-wrapper {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin-top: 10px;
    position: relative;
}

.map-wrapper iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
    transition: opacity 0.4s ease;
}

.map-wrapper iframe.loading { opacity: 0.4; }

.map-current-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.map-current-badge svg {
    width: 12px;
    height: 12px;
    stroke: #374151;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* LOCATION SWITCHER */
.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* LOCATION TOGGLE SWITCH */
.loc-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.loc-toggle-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #9ca3af;
    transition: color 0.25s ease;
    min-width: 48px;
}

.loc-toggle-label:first-child { text-align: right; }
.loc-toggle-label:last-child  { text-align: left; }

.loc-toggle-wrap[data-active="kk13"] #loc-label-left,
.loc-toggle-wrap:not([data-active]) #loc-label-left {
    color: #111827;
}

.loc-toggle-wrap[data-active="pkb"] #loc-label-right {
    color: #111827;
}

.loc-toggle-track {
    position: relative;
    width: 48px;
    height: 26px;
    background: #111827;
    border-radius: 999px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.loc-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.loc-toggle-track.toggled .loc-toggle-thumb {
    transform: translateX(22px);
}

@keyframes locpulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
    50% { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

.map-label-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(17,24,39,0.85);
    color: #fff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.74rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 5px;
}

.map-label-pill svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ENTRY LIST (Education / Experience / Org) */
.entry-list { display: flex; flex-direction: column; gap: 26px; }

.entry-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
}

.entry-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}

.entry-logo img { width: 100%; height: 100%; object-fit: contain; }

.entry-logo-text {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #374151;
    flex-shrink: 0;
}

.entry-title { font-size: 0.93rem; font-weight: 700; color: #111827; margin: 0 0 2px; }
.entry-sub { font-size: 0.83rem; color: #6b7280; margin: 0 0 6px; }
.entry-desc { font-size: 0.87rem; line-height: 1.75; color: #374151; margin: 0; text-align: justify; }
.entry-desc a { color: #1a73e8; text-decoration: none; }

.entry-tag {
    display: inline;
    background: #fef9c3;
    color: #854d0e;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 0.83rem;
    font-weight: 600;
}

/* SKILLS TAB NAV */
.skills-tab-nav {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
}

.skill-tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.18s, border-color 0.18s;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.skill-tab-btn:hover { color: #374151; }

.skill-tab-btn.active {
    color: #111827;
    border-bottom-color: #111827;
}

.skill-tab-panel {
    display: none;
    padding: 18px 0 4px;
}

.skill-tab-panel.active { display: block; }

/* COPYRIGHT */
.home-copyright {
    max-width: 700px;
    margin: 32px auto 0;
    padding: 20px 48px 48px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.home-copyright p {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 0;
}

/* SKILLS */
.skill-section-block { margin-bottom: 32px; }
.skill-section-block:last-child { margin-bottom: 0; }
.skill-section-label { font-size: 0.93rem; font-weight: 700; color: #111827; margin: 0 0 14px; }

.skill-icons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-end;
}

.skill-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.skill-icon-item img { width: 52px; height: 52px; object-fit: contain; }
.skill-icon-label { font-size: 0.68rem; color: #6b7280; text-align: center; max-width: 64px; line-height: 1.3; }

/* FLOATING AVATAR */
.floating-avatar {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.14);
    border: 2px solid #ffffff;
    cursor: pointer;
    z-index: 100;
}

.floating-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── SKILLS TABS (other pages) ──────────── */
.skills-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 14px;
}

.skills-tab {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-size: 0.92rem;
    font-weight: 700;
}

.skills-tab:hover,
.skills-tab.active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.skills-categories { display: block; }

.skill-category {
    display: none;
    gap: 16px;
    padding: 24px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.skill-category.active { display: grid; }

/* SKILL CARDS */
.skill-card.python { background: linear-gradient(135deg, #306998 0%, #ffe873 100%); color: #102a43; }
.skill-card.java { background: linear-gradient(135deg, #f89820 0%, #ffffff 100%); color: #1f2937; }
.skill-card.php { background: linear-gradient(135deg, #8892be 0%, #eef2ff 100%); color: #1f2937; }
.skill-card.django { background: #0c4b33; color: #ffffff; }
.skill-card.mysql { background: linear-gradient(135deg, #00758f 0%, #ffffff 100%); color: #ffffff; }
.skill-card.sqlite { background: linear-gradient(135deg, #003b5c 0%, #e8f3ff 100%); color: #0c2a43; }
.skill-card.fastapi { background: #05c4ff; color: #0f172a; }
.skill-card.pytorch { background: #e43b2d; color: #ffffff; }
.skill-card.whisper { background: linear-gradient(135deg, #64b5f6 0%, #e3f2fd 100%); color: #0f172a; }
.skill-card.bootstrap { background: #7f3fbf; color: #ffffff; }
.skill-card.tailwind { background: #38bdf8; color: #0f172a; }
.skill-card.tensorflow { background: #ffcd00; color: #0f172a; }
.skill-card.keras { background: #ff6f61; color: #ffffff; }
.skill-card.ubuntu { background: #dd4814; color: #ffffff; }
.skill-card.vscode { background: #0078d4; color: #ffffff; }
.skill-card.github { background: #111827; color: #ffffff; }
.skill-card.figma { background: linear-gradient(135deg, #f24e1e 0%, #a259ff 100%); color: #ffffff; }
.skill-card.jupyter { background: linear-gradient(135deg, #f0b54d 0%, #ffffff 100%); color: #0f172a; }
.skill-card.canva { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: #ffffff; }

/* ── MOBILE TOPBAR & HAMBURGER ──────────── */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 52px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.mobile-topbar-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #a58829;
    letter-spacing: -0.01em;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.hamburger-btn:hover { background: #f3f4f6; }

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #111827;
    border-radius: 2px;
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
                opacity 0.25s ease;
    transform-origin: center;
}

/* X state when open */
.hamburger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Overlay backdrop */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(17, 24, 39, 0.35);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sidebar-overlay.visible {
    opacity: 1;
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
    .mobile-topbar { display: flex; }

    .portfolio-app {
        grid-template-columns: 1fr;
    }

    /* Sidebar becomes a fixed drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        height: 100vh;
        z-index: 160;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
        padding-top: 16px;
        overflow-y: auto;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: block;
    }

    /* Push main content down to clear topbar */
    .home-main,
    .hero,
    .resume-main {
        padding-top: 52px;
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 24px;
        min-height: calc(100vh - 52px);
    }

    .home-bio { padding: 28px 24px 0; }
    .home-section { padding: 32px 24px 0; }
    .home-divider { padding: 0 24px; }

    .resume-hero { padding: 28px 20px; }
    .resume-grid { padding: 20px 16px 52px; }
    .resume-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .sidebar { width: 80vw; max-width: 280px; }
}