* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    font-family: 'Inter', sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #ffffff;
    color: #111827;
    overflow-x: clip;
}

.portfolio-app {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
    overflow-x: clip; /* clip does NOT break position:sticky unlike hidden */
    align-items: start;
}

/* ── SIDEBAR ─────────────────────────────── */
.sidebar {
    background: #fafafa;
    border-right: 1px solid #ebebeb;
    padding: 18px 10px 18px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}

.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }

.sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.sidebar-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #a58829;
    margin-bottom: 14px;
    padding: 0 8px;
    letter-spacing: -0.01em;
}

.sidebar-logo-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 8px 12px;
    margin-bottom: 6px;
    min-width: 0;
    border-bottom: 1px solid #efefef;
}

.sidebar-logo-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(165, 136, 41, 0.22);
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.sidebar-logo-name {
    font-size: 0.79rem;
    font-weight: 700;
    color: #a58829;
    letter-spacing: -0.01em;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
    min-width: 0;
}

.sidebar-group-label {
    font-size: 0.57rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #b4bac6;
    padding: 12px 10px 3px;
    margin: 0;
    font-weight: 600;
}

.sidebar-nav,
.secondary-nav,
.sidebar-social,
.sidebar-projects {
    display: flex;
    flex-direction: column;
    gap: 1px;
    position: relative;
    z-index: 1;
}

.sidebar-nav a,
.secondary-nav a,
.sidebar-projects a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    background: transparent;
    border: none;
    transition: background 0.13s ease, color 0.13s ease;
    font-size: 0.80rem;
    font-weight: 500;
}

.sidebar-nav a:not(.active):hover,
.secondary-nav a:hover,
.sidebar-projects a:not(.active):hover {
    background: #1f2937;
    color: #ffffff;
}

.sidebar-nav a:not(.active):hover .nav-icon,
.sidebar-projects a:not(.active):hover .nav-icon { color: #ffffff; }

.sidebar-nav a.active,
.sidebar-projects a.active {
    background: #111827;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 1px 5px rgba(17,24,39,0.15);
}

.sidebar-nav a.active .nav-icon,
.sidebar-projects a.active .nav-icon { color: #ffffff; }

.nav-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    flex-shrink: 0;
    transition: color 0.13s ease;
}

/* hover icon color handled in the combined :not(.active):hover rule above */

.nav-icon svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.project-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.project-icon.text-icon {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.project-label {
    font-size: 0.80rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-projects a.project-more {
    color: #b0b7c3;
    font-size: 0.77rem;
}

.sidebar-social a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    color: #1a73e8 !important;
    text-decoration: none;
    font-size: 0.80rem;
    font-weight: 500;
    background: transparent;
    justify-content: space-between;
    transition: background 0.13s ease, color 0.13s ease;
}

.sidebar-social a::after {
    content: '↗';
    color: #c4cad4;
    font-size: 0.78rem;
    flex-shrink: 0;
    margin-left: auto;
    transition: color 0.13s ease, transform 0.15s ease;
}

.sidebar-social a:hover {
    background: #eff6ff;
    color: #1558b0 !important;
}

.sidebar-social a:hover::after {
    color: #1a73e8;
    transform: translate(1px, -1px);
}

.sidebar-footer {
    color: #c8cdd7;
    font-size: 0.65rem;
    line-height: 1.55;
    padding: 10px 10px 0;
    margin-top: 8px;
    border-top: 1px solid #efefef;
    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: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-width: 100%;
    margin: 0;
}

.resume-sidebar {
    display: contents;
}

.resume-grid > section {
    display: contents;
}

.resume-section {
    background: #ffffff;
    border-radius: 0;
    padding: 40px 56px;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #f0f2f5;
}

.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 is already single column */
}

@media (max-width: 760px) {
    .resume-hero {
        padding: 28px 20px;
    }

    .resume-section {
        padding: 28px 20px;
    }
}

/* ── 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(245, 245, 187);}

.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.9rem;
    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: #fafafa;
    border-bottom: 1px solid #ebebeb;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px 0 14px;
    gap: 8px;
}

.mobile-topbar-title {
    font-size: 0.80rem;
    font-weight: 700;
    color: #a58829;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    padding-right: 6px;
}

.mobile-topbar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(165, 136, 41, 0.22);
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

.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;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.sidebar-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
    .mobile-topbar { display: flex; }

    .portfolio-app { grid-template-columns: 1fr; }

    /* Sidebar becomes a fixed drawer */
    .sidebar {
        position: fixed;
        top: 52px;
        left: 0;
        width: 256px;
        height: calc(100vh - 52px);
        z-index: 170;
        transform: translateX(-100%);
        transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.26s ease;
        box-shadow: none;
        padding-top: 8px;
        overflow-y: auto;
        overflow-x: hidden;
        border-right: none;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 6px 0 28px rgba(15, 23, 42, 0.13);
    }

    /* Hide logo row in sidebar on mobile — topbar already shows it */
    .sidebar .sidebar-logo-wrap { display: none; }

    .sidebar-overlay {
        display: block;
        top: 52px;
        height: calc(100vh - 52px);
    }

    /* Push main content down to clear topbar */
    .home-main,
    .hero,
    .resume-main,
    .course-main,
    .contact-main,
    .cv-main,
    .project-main {
        padding-top: 52px !important;
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 24px;
        min-height: calc(100vh - 52px);
    }

    .home-bio { padding: 28px 20px 0; }
    .home-section { padding: 28px 20px 0; }
    .home-divider { padding: 0 20px; }
    .home-copyright { padding: 16px 20px 40px; }
    .resume-hero { padding: 28px 20px; }
    .cv-main { padding-top: 52px; }
    .resume-section { padding: 24px 16px; }

    .home-main, .hero, .resume-main, .project-main, .course-main {
        overflow-x: hidden;
    }

    /* Sidebar nav links — bigger tap targets */
    .sidebar-nav a,
    .secondary-nav a,
    .sidebar-social a,
    .sidebar-projects a {
        padding: 10px 12px;
        font-size: 0.84rem;
    }

    .social-link-item { padding: 12px 0; }

    .home-bio-text,
    .home-bio-text2,
    .home-bio-text3 { text-align: left; }

    .skills-tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .skills-tab-nav::-webkit-scrollbar { display: none; }
    .skill-tab-btn { flex-shrink: 0; white-space: nowrap; }

    .map-wrapper iframe { height: 240px; }
    .home-bio-actions { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 480px) {
    .sidebar { width: 78vw; max-width: 272px; }
}
/* ═══════════════════════════════════════════════
   BRISKWALK PROJECT PAGE  (projects/project1.html)
   ═══════════════════════════════════════════════ */

/* ─── PROJECT PAGE OVERRIDES ─────────────────── */
.bw-page .hero { padding: 0; overflow: hidden; }

/* ─── HERO BANNER ────────────────────────────── */
.bw-hero {
    position: relative;
    width: 100%;
    min-height: 320px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 40%, #fde68a 70%, #fffbeb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 48px 40px 40px;
}

.bw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-conic-gradient(
        from 0deg at 50% 100%,
        rgba(255,255,255,0.18) 0deg 6deg,
        transparent 6deg 12deg
    );
}

.bw-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.bw-logo-text {
    font-family: 'Syne', sans-serif;
    font-size: clamp(52px, 8vw, 88px);
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: -2px;
    line-height: 1;
    text-shadow:
        3px 3px 0 rgba(255,255,255,0.6),
        -1px -1px 0 rgba(30,58,138,0.2);
}

.bw-tagline {
    font-size: 15px;
    font-weight: 500;
    color: #1e40af;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 8px;
}

.bw-meta-pills {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.bw-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 99px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #1e3a8a;
}

.bw-pill svg {
    width: 13px;
    height: 13px;
    stroke: #2563eb;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ─── LIVE BUTTON ────────────────────────────── */
.bw-live-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1e3a8a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 18px;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}

.bw-live-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.bw-live-btn svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bw-live-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    animation: bw-pulse 1.8s infinite;
}

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

/* ─── CONTENT AREA ───────────────────────────── */
.bw-content {
    padding: 40px 40px 60px;
    max-width: 860px;
}

/* ─── SECTION LABEL ──────────────────────────── */
.bw-section-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f59e0b;
    margin-bottom: 10px;
}

/* ─── OVERVIEW ───────────────────────────────── */
.bw-overview { margin-bottom: 40px; }

.bw-overview h2 {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 14px;
    line-height: 1.2;
}

.bw-overview p {
    font-size: 15px;
    line-height: 1.75;
    color: #4b5563;
    margin: 0 0 12px;
}

/* ─── STAT CARDS ─────────────────────────────── */
.bw-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.bw-stat-card {
    background: linear-gradient(135deg, #fef9c3, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 20px 18px;
    position: relative;
    overflow: hidden;
}

.bw-stat-card::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 60px;
    height: 60px;
    background: rgba(251,191,36,0.25);
    border-radius: 50%;
}

.bw-stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1;
}

.bw-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-top: 4px;
}

/* ─── DIVIDER ─────────────────────────────────── */
.bw-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #fde68a, transparent);
    margin: 32px 0;
}

/* ─── HIGHLIGHT BANNER ───────────────────────── */
.bw-highlight {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: #fff;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.bw-highlight::before {
    content: '🏃';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 64px;
    opacity: 0.12;
}

.bw-highlight h3 {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px;
}

.bw-highlight p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin: 0;
    max-width: 560px;
}

/* ─── ROLE GRID ──────────────────────────────── */
.bw-role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 40px;
}

.bw-role-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 20px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bw-role-card:hover {
    border-color: #fbbf24;
    box-shadow: 0 4px 16px rgba(251,191,36,0.15);
}

.bw-role-icon {
    width: 36px;
    height: 36px;
    background: #fef3c7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.bw-role-icon svg {
    width: 18px;
    height: 18px;
    stroke: #d97706;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bw-role-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 5px;
}

.bw-role-desc {
    font-size: 12.5px;
    line-height: 1.6;
    color: #6b7280;
}

/* ─── TECH TAGS ──────────────────────────────── */
.bw-tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.bw-tech-tag {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 5px 13px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

/* ─── TIMELINE ───────────────────────────────── */
.bw-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
}

.bw-timeline-item {
    display: flex;
    gap: 16px;
    position: relative;
}

.bw-timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #fbbf24, transparent);
}

.bw-timeline-dot {
    width: 30px;
    height: 30px;
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #d97706;
}

.bw-timeline-body { padding: 4px 0 28px; }

.bw-timeline-date {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}

.bw-timeline-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 3px;
}

.bw-timeline-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

/* ─── DESIGN GALLERY ─────────────────────────── */
.bw-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 40px;
}

.bw-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    position: relative;
    background: #f9fafb;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bw-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.bw-gallery-item.wide { grid-column: span 2; }

.bw-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bw-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 20px 12px 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.bw-gallery-item:hover .bw-gallery-caption { opacity: 1; }

/* ─── LIGHTBOX ───────────────────────────────── */
.bw-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bw-lightbox.open { display: flex; }

.bw-lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 10px;
    object-fit: contain;
}

.bw-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}

.bw-lightbox-close:hover { opacity: 1; }

/* ─── WEBSITE PREVIEW CARD ───────────────────── */
.bw-site-preview {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    background: #fff;
}

.bw-site-bar {
    background: #f3f4f6;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.bw-site-dots { display: flex; gap: 5px; }

.bw-site-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.bw-site-dots span:nth-child(1) { background: #f87171; }
.bw-site-dots span:nth-child(2) { background: #fbbf24; }
.bw-site-dots span:nth-child(3) { background: #4ade80; }

.bw-site-url {
    flex: 1;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-family: 'Space Mono', monospace;
    color: #6b7280;
}

.bw-site-screenshot { width: 100%; display: block; }

/* ─── BW RESPONSIVE ─────────────────────────── */
@media (max-width: 640px) {
    .bw-content { padding: 28px 20px 48px; }
    .bw-hero { padding: 40px 20px 32px; }
    .bw-stats { grid-template-columns: 1fr 1fr; }
    .bw-role-grid { grid-template-columns: 1fr; }
    .bw-gallery-grid { grid-template-columns: 1fr; }
    .bw-gallery-item.wide { grid-column: span 1; }
}

* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    font-family: 'Inter', sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #ffffff;
    color: #111827;
    overflow-x: clip;
}

.portfolio-app {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
    overflow-x: clip;
    align-items: start;
}

/* ── 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;
    min-width: 0;
    overflow: hidden;
}

.sidebar-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #a58829;
    margin-bottom: 14px;
    padding: 0 8px;
    letter-spacing: -0.01em;
}
.sidebar-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 10px;
    margin-bottom: 2px;
    min-width: 0;
}

.sidebar-logo-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(165, 136, 41, 0.3);
}

.sidebar-logo-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #a58829;
    letter-spacing: -0.01em;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
    min-width: 0;
}


.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;
    position: relative;
    z-index: 1;
}

.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.85rem;
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.15s ease;
    margin-left: auto;
}

.sidebar-nav a:not(.active):hover,
.secondary-nav a:hover,
.sidebar-projects a:not(.active):hover {
    background: #1f2937;
    color: #ffffff;
}

.sidebar-nav a:not(.active):hover .nav-icon,
.sidebar-projects a:not(.active):hover .nav-icon { color: #ffffff; }

.sidebar-nav a.active,
.sidebar-projects 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,
.sidebar-projects 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: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-width: 100%;
    margin: 0;
}

.resume-sidebar {
    display: contents;
}

.resume-grid > section {
    display: contents;
}

.resume-section {
    background: #ffffff;
    border-radius: 0;
    padding: 40px 56px;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #f0f2f5;
}

.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 is already single column */
}

@media (max-width: 760px) {
    .resume-hero {
        padding: 28px 20px;
    }

    .resume-section {
        padding: 28px 20px;
    }
}

/* ── 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(245, 245, 187);}

.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.9rem;
    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: #fafafa;
    border-bottom: 1px solid #ebebeb;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px 0 14px;
    gap: 8px;
}

.mobile-topbar-title {
    font-size: 0.80rem;
    font-weight: 700;
    color: #a58829;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    padding-right: 6px;
}

.mobile-topbar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(165, 136, 41, 0.22);
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

.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;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.sidebar-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
    .mobile-topbar { display: flex; }

    .portfolio-app { grid-template-columns: 1fr; }

    /* Sidebar becomes a fixed drawer */
    .sidebar {
        position: fixed;
        top: 52px;
        left: 0;
        width: 256px;
        height: calc(100vh - 52px);
        z-index: 170;
        transform: translateX(-100%);
        transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.26s ease;
        box-shadow: none;
        padding-top: 8px;
        overflow-y: auto;
        overflow-x: hidden;
        border-right: none;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 6px 0 28px rgba(15, 23, 42, 0.13);
    }

    /* Hide logo row in sidebar on mobile — topbar already shows it */
    .sidebar .sidebar-logo-wrap { display: none; }

    .sidebar-overlay {
        display: block;
        top: 52px;
        height: calc(100vh - 52px);
    }

    /* Push main content down to clear topbar */
    .home-main,
    .hero,
    .resume-main,
    .course-main,
    .contact-main,
    .cv-main,
    .project-main {
        padding-top: 52px !important;
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 24px;
        min-height: calc(100vh - 52px);
    }

    .home-bio { padding: 28px 20px 0; }
    .home-section { padding: 28px 20px 0; }
    .home-divider { padding: 0 20px; }
    .home-copyright { padding: 16px 20px 40px; }
    .resume-hero { padding: 28px 20px; }
    .cv-main { padding-top: 52px; }
    .resume-section { padding: 24px 16px; }

    .home-main, .hero, .resume-main, .project-main, .course-main {
        overflow-x: hidden;
    }

    /* Sidebar nav links — bigger tap targets */
    .sidebar-nav a,
    .secondary-nav a,
    .sidebar-social a,
    .sidebar-projects a {
        padding: 10px 12px;
        font-size: 0.84rem;
    }

    .social-link-item { padding: 12px 0; }

    .home-bio-text,
    .home-bio-text2,
    .home-bio-text3 { text-align: left; }

    .skills-tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .skills-tab-nav::-webkit-scrollbar { display: none; }
    .skill-tab-btn { flex-shrink: 0; white-space: nowrap; }

    .map-wrapper iframe { height: 240px; }
    .home-bio-actions { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 480px) {
    .sidebar { width: 78vw; max-width: 272px; }
}
/* ═══════════════════════════════════════════════
   BRISKWALK PROJECT PAGE  (projects/project1.html)
   ═══════════════════════════════════════════════ */

/* ─── PROJECT PAGE OVERRIDES ─────────────────── */
.bw-page .hero { padding: 0; overflow: hidden; }

/* ─── HERO BANNER ────────────────────────────── */
.bw-hero {
    position: relative;
    width: 100%;
    min-height: 320px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 40%, #fde68a 70%, #fffbeb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 48px 40px 40px;
}

.bw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-conic-gradient(
        from 0deg at 50% 100%,
        rgba(255,255,255,0.18) 0deg 6deg,
        transparent 6deg 12deg
    );
}

.bw-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.bw-logo-text {
    font-family: 'Syne', sans-serif;
    font-size: clamp(52px, 8vw, 88px);
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: -2px;
    line-height: 1;
    text-shadow:
        3px 3px 0 rgba(255,255,255,0.6),
        -1px -1px 0 rgba(30,58,138,0.2);
}

.bw-tagline {
    font-size: 15px;
    font-weight: 500;
    color: #1e40af;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 8px;
}

.bw-meta-pills {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.bw-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 99px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #1e3a8a;
}

.bw-pill svg {
    width: 13px;
    height: 13px;
    stroke: #2563eb;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ─── LIVE BUTTON ────────────────────────────── */
.bw-live-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1e3a8a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 18px;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}

.bw-live-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.bw-live-btn svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bw-live-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    animation: bw-pulse 1.8s infinite;
}

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

/* ─── CONTENT AREA ───────────────────────────── */
.bw-content {
    padding: 40px 40px 60px;
    max-width: 860px;
}

/* ─── SECTION LABEL ──────────────────────────── */
.bw-section-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f59e0b;
    margin-bottom: 10px;
}

/* ─── OVERVIEW ───────────────────────────────── */
.bw-overview { margin-bottom: 40px; }

.bw-overview h2 {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 14px;
    line-height: 1.2;
}

.bw-overview p {
    font-size: 15px;
    line-height: 1.75;
    color: #4b5563;
    margin: 0 0 12px;
}

/* ─── STAT CARDS ─────────────────────────────── */
.bw-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.bw-stat-card {
    background: linear-gradient(135deg, #fef9c3, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 20px 18px;
    position: relative;
    overflow: hidden;
}

.bw-stat-card::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 60px;
    height: 60px;
    background: rgba(251,191,36,0.25);
    border-radius: 50%;
}

.bw-stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1;
}

.bw-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-top: 4px;
}

/* ─── DIVIDER ─────────────────────────────────── */
.bw-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #fde68a, transparent);
    margin: 32px 0;
}

/* ─── HIGHLIGHT BANNER ───────────────────────── */
.bw-highlight {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: #fff;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.bw-highlight::before {
    content: '🏃';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 64px;
    opacity: 0.12;
}

.bw-highlight h3 {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px;
}

.bw-highlight p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin: 0;
    max-width: 560px;
}

/* ─── ROLE GRID ──────────────────────────────── */
.bw-role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 40px;
}

.bw-role-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 20px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bw-role-card:hover {
    border-color: #fbbf24;
    box-shadow: 0 4px 16px rgba(251,191,36,0.15);
}

.bw-role-icon {
    width: 36px;
    height: 36px;
    background: #fef3c7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.bw-role-icon svg {
    width: 18px;
    height: 18px;
    stroke: #d97706;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bw-role-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 5px;
}

.bw-role-desc {
    font-size: 12.5px;
    line-height: 1.6;
    color: #6b7280;
}

/* ─── TECH TAGS ──────────────────────────────── */
.bw-tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.bw-tech-tag {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 5px 13px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

/* ─── TIMELINE ───────────────────────────────── */
.bw-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
}

.bw-timeline-item {
    display: flex;
    gap: 16px;
    position: relative;
}

.bw-timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #fbbf24, transparent);
}

.bw-timeline-dot {
    width: 30px;
    height: 30px;
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #d97706;
}

.bw-timeline-body { padding: 4px 0 28px; }

.bw-timeline-date {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}

.bw-timeline-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 3px;
}

.bw-timeline-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

/* ─── DESIGN GALLERY ─────────────────────────── */
.bw-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 40px;
}

.bw-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    position: relative;
    background: #f9fafb;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bw-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.bw-gallery-item.wide { grid-column: span 2; }

.bw-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bw-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 20px 12px 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.bw-gallery-item:hover .bw-gallery-caption { opacity: 1; }

/* ─── LIGHTBOX ───────────────────────────────── */
.bw-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bw-lightbox.open { display: flex; }

.bw-lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 10px;
    object-fit: contain;
}

.bw-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}

.bw-lightbox-close:hover { opacity: 1; }

/* ─── WEBSITE PREVIEW CARD ───────────────────── */
.bw-site-preview {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    background: #fff;
}

.bw-site-bar {
    background: #f3f4f6;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.bw-site-dots { display: flex; gap: 5px; }

.bw-site-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.bw-site-dots span:nth-child(1) { background: #f87171; }
.bw-site-dots span:nth-child(2) { background: #fbbf24; }
.bw-site-dots span:nth-child(3) { background: #4ade80; }

.bw-site-url {
    flex: 1;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-family: 'Space Mono', monospace;
    color: #6b7280;
}

.bw-site-screenshot { width: 100%; display: block; }

/* ─── BW RESPONSIVE ─────────────────────────── */
@media (max-width: 640px) {
    .bw-content { padding: 28px 20px 48px; }
    .bw-hero { padding: 40px 20px 32px; }
    .bw-stats { grid-template-columns: 1fr 1fr; }
    .bw-role-grid { grid-template-columns: 1fr; }
    .bw-gallery-grid { grid-template-columns: 1fr; }
    .bw-gallery-item.wide { grid-column: span 1; }
}

/* ── RESUME STACKED LAYOUT ──────────────── */
.resume-section:nth-child(even) {
    background: #f8fafc;
}

/* CV-specific overrides */
        .cv-main {
            padding: 48px 40px 96px;
        }

        /* TOP BAR */
        .cv-topbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 52px;
            padding-bottom: 18px;
            border-bottom: 2px solid #111111;
        }
        .cv-last-updated {
            font-size: 11px;
            color: #888888;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }
        .cv-download-btn {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            background: #111111;
            color: #ffffff;
            text-decoration: none;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.04em;
            padding: 9px 18px;
            border-radius: 4px;
            transition: background 0.15s;
            cursor: pointer;
            border: none;
        }
        .cv-download-btn:hover { background: #333333; }
        .cv-download-btn svg {
            width: 13px; height: 13px;
            stroke: #ffffff; fill: none;
            stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
        }

        /* HEADER */
        .cv-header { margin-bottom: 52px; }
        .cv-name {
            font-family: 'EB Garamond', Georgia, serif;
            font-size: 44px;
            font-weight: 700;
            letter-spacing: -0.01em;
            line-height: 1.1;
            color: #111111;
            margin-bottom: 8px;
        }
        .cv-role {
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.20em;
            text-transform: uppercase;
            color: #666666;
            margin-bottom: 22px;
        }
        .cv-contacts {
            display: flex;
            flex-wrap: wrap;
            gap: 5px 0;
            font-size: 13px;
            color: #444444;
            align-items: center;
        }
        .cv-contacts a {
            color: #111111;
            text-decoration: none;
            border-bottom: 1px solid #cccccc;
            transition: border-color 0.15s;
        }
        .cv-contacts a:hover { border-color: #111111; }
        .cv-sep { margin: 0 10px; color: #dddddd; user-select: none; }
        .cv-address { font-size: 16px; color: #999999; margin-top: 10px; }

        /* SECTIONS */
        .cv-section { margin-bottom: 44px; }
        .cv-section-title {
            font-size: 20px;
            font-weight:  700;
            letter-spacing: 0.22em;
            text-transform: uppercase;
            color: #111111;
            margin-bottom: 20px;
            padding-bottom: 9px;
            border-bottom: 1px solid #dddddd;
        }

        /* ABOUT */
        .cv-about { font-size: 18px; color: #333333; line-height: 1.85; }
        .cv-about strong { font-weight: 600; color: #111111; }

        /* ENTRY */
        .cv-entry {
            display: grid;
            grid-template-columns: 1fr 130px;
            gap: 0 20px;
            margin-bottom: 30px;
            align-items: start;
        }
        .cv-entry:last-child { margin-bottom: 0; }
        .cv-entry-title { font-size: 20px; font-weight: 600; color: #111111; line-height: 1.35; }
        .cv-entry-org { font-size: 16px; color: #666666; margin-top: 3px; font-style: italic; }
        .cv-entry-desc { font-size: 18px; color: #444444; margin-top: 8px; line-height: 1.75; }
        .cv-entry-desc strong { color: #111111; font-weight: 600; }
        .cv-entry-date { font-size: 13.5px; color: #999999; text-align: right; margin-top: 2px; white-space: nowrap; }

        /* SKILLS */
        .cv-skill-row { font-size: 18px; color: #333333; line-height: 1.75; margin-bottom: 10px; }
        .cv-skill-row:last-child { margin-bottom: 0; }
        .cv-skill-cat { font-weight: 600; color: #111111; }

        /* LANGUAGES */
        .cv-lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 48px; }
        .cv-lang-name { font-size: 18px; font-weight: 600; color: #111111; }
        .cv-lang-badge {
            display: inline-block;
            font-size: 10.5px; font-weight: 600;
            background: #f2f2f2; color: #555555;
            border-radius: 3px; padding: 1px 7px; margin-left: 6px;
            letter-spacing: 0.02em; vertical-align: middle;
        }
        .cv-lang-level { font-size: 18px; color: #777777; margin-top: 2px; }

        /* CERTIFICATIONS */
        .cv-cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 48px; }
        .cv-cert-title { font-size: 20px; font-weight: 600; color: #111111; line-height: 1.4; }
        .cv-cert-sub { font-size: 18px; color: #888888; margin-top: 3px; }

        /* PROJECTS */
        .cv-project { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #eeeeee; }
        .cv-project:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
        .cv-project-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
        .cv-project-name { font-size: 20px; font-weight: 600; color: #111111; }
        .cv-project-name a { color: #111111; text-decoration: none; border-bottom: 1px solid #cccccc; }
        .cv-project-name a:hover { border-color: #111111; }
        .cv-project-stack { font-size: 18px; color: #888888; font-weight: 500; letter-spacing: 0.02em; }
        .cv-project-desc { font-size: 16px; color: #555555; line-height: 1.7; }

        /* FOOTER */
        .cv-footer {
            margin-top: 56px;
            padding-top: 18px;
            border-top: 1px solid #eeeeee;
            display: flex;
            justify-content: space-between;
            font-size: 11.5px;
            color: #bbbbbb;
        }

        /* PRINT */
        @media print {
            body { font-size: 12px; }
            .sidebar, .mobile-topbar, .sidebar-overlay, .floating-avatar { display: none !important; }
            .portfolio-app { display: block !important; }
            .cv-main { padding: 24px 0; max-width: 100%; }
            .cv-download-btn { display: none; }
        }

        /* MOBILE overrides for cv */
        @media (max-width: 580px) {
            .cv-main { padding: 28px 18px 72px; }
            .cv-topbar { flex-direction: column; gap: 14px; align-items: flex-start; }
            .cv-name { font-size: 32px; }
            .cv-entry { grid-template-columns: 1fr; }
            .cv-entry-date { text-align: left; margin-top: 4px; }
            .cv-cert-grid { grid-template-columns: 1fr; }
            .cv-lang-grid { grid-template-columns: 1fr; }
        }

        .entry-sub-link {
            color: inherit;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 3px;
            transition: opacity 0.2s ease;
        }
        .entry-sub-link::after {
            content: '';
            display: inline-block;
            width: 11px; height: 11px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='7 7 17 7 17 17'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-size: contain;
            opacity: 0.5;
            flex-shrink: 0;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }
        .entry-sub-link:hover { opacity: 0.8; }
        .entry-sub-link:hover::after { opacity: 0.9; transform: translate(2px, -2px); }

/* ── PROJECT PAGE FULL WIDTH ── */
.project-page {
    max-width: 1440px !important;
    width: min(100%, 1440px) !important;
    margin: 0 auto;
    padding: 48px 40px 80px;
}

.ap-page {
    max-width: 1440px !important;
    width: 95% !important;
    margin: 0 auto;
}

.proj-subtitle, .project-subtitle {
    max-width: 100% !important;
}

/* ─────────────────────────────────────────
   PAGE TRANSITION — soft fade + slight lift
   ───────────────────────────────────────── */

/* Page enter: fade in + float up */
@keyframes page-enter {
    from {
        opacity: 0;
        transform: translateY(14px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Page leave: fade out + float down */
@keyframes page-leave {
    from {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
        filter: blur(3px);
    }
}

/* Applied to main content wrappers */
.page-transition {
    animation: page-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.is-leaving .page-transition {
    animation: page-leave 0.28s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .page-transition { animation: none !important; }
    body.is-leaving .page-transition { animation: none !important; }
}