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

:root,
body.dark-theme {
    /* @drstudiooo Dark Mode & Elevation Design System */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-elevated: #21262d;
    --card-bg: #161b22;
    --card-hover-bg: #1c2128;
    --border-subtle: rgb(240 246 252 / 10%);
    --border-hover: rgb(240 246 252 / 22%);
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent-blue: #38bdf8;
    --accent-hover: #0284c7;
    --accent-green: #3fb950;
    --accent-glow: rgb(56 189 248 / 15%);
    --tag-bg: rgb(240 246 252 / 6%);
    --tag-color: #c9d1d9;
    --heatmap-bg: #161b22;
    --heatmap-cell: #21262d;
    --heatmap-l1: #0e4429;
    --heatmap-l2: #006d32;
    --heatmap-l3: #26a641;
    --heatmap-l4: #39d353;
}

body:not(.dark-theme),
body.light-theme {
    /* Clean Light Mode Architecture */
    --bg-primary: #f8fafc;
    --bg-secondary: #fff;
    --bg-elevated: #f1f5f9;
    --card-bg: #fff;
    --card-hover-bg: #f8fafc;
    --border-subtle: rgb(31 35 40 / 12%);
    --border-hover: rgb(31 35 40 / 24%);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-blue: #0284c7;
    --accent-hover: #0369a1;
    --accent-green: #16a34a;
    --accent-glow: rgb(2 132 199 / 15%);
    --tag-bg: rgb(15 23 42 / 5%);
    --tag-color: #334155;
    --heatmap-bg: #fff;
    --heatmap-cell: #ebedf0;
    --heatmap-l1: #9be9a8;
    --heatmap-l2: #40c463;
    --heatmap-l3: #30a14e;
    --heatmap-l4: #216e39;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.25s ease, color 0.25s ease;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Matrix Canvas Ambient */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 5%;
    transition: opacity 0.3s ease;
}

/* Minimal Header Navigation (@onlyrenbl style) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    background: rgb(13 17 23 / 80%);
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color 0.25s, border-color 0.25s;
}

body.light-theme .site-header {
    background: rgb(248 250 252 / 85%);
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-monogram {
    font-family: 'Space Grotesk', Inter, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.15s ease;
}

.brand-monogram:hover {
    opacity: 80%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-item {
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-divider {
    color: var(--border-subtle);
    font-size: 0.85rem;
    -webkit-user-select: none;
    user-select: none;
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 5px 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, color 0.15s;
}

.theme-toggle-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* Main Container Layout */
.main-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 52px 24px 90px;
    position: relative;
    z-index: 1;
}

/* Hero Section (@onlyrenbl signature layout) */
.hero-section {
    margin-bottom: 56px;
}

.hero-profile-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.avatar-flip-container {
    cursor: pointer;
}

.avatar-ring {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 2px solid var(--border-subtle);
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: 0 4px 16px rgb(0 0 0 / 20%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.avatar-ring:hover {
    transform: scale(1.06) rotate(3deg);
    border-color: var(--accent-blue);
}

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

.hero-identity {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.name-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-name {
    font-family: 'Space Grotesk', Inter, sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.verified-blue-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-social-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-icon-link {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.15s, transform 0.15s;
}

.hero-icon-link:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.hero-headline {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 20px;
}

.headline-muted {
    color: var(--text-secondary);
    font-weight: 400;
}

.hero-bio-paragraph {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* Inline Tech Pills Embedded Directly in Text */
.inline-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 1px 9px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    vertical-align: baseline;
    margin: 0 2px;
    transition: border-color 0.15s, background-color 0.15s;
}

.inline-pill:hover {
    border-color: var(--accent-blue);
    background: var(--bg-elevated);
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot-aws { background: #f90; }

.dot-k8s { background: #326ce5; }

.dot-terraform { background: #844fba; }

.dot-docker { background: #2496ed; }

.dot-python { background: #3776ab; }

.dot-node { background: #393; }

.dot-react { background: #61dafb; }

.dot-next { background: var(--text-primary); }

.dot-postgres { background: #336791; }

.dot-redis { background: #d82c20; }

.dot-prometheus { background: #e6522c; }

.dot-grafana { background: #f46800; }

.dot-linux { background: #fcc624; }

.dot-typescript { background: #3178c6; }

.dot-flutter { background: #02569b; }

.dot-minio { background: #c72c48; }

.dot-nginx { background: #009639; }

.dot-cicd { background: #fc6d26; }

.dot-rag { background: #8e75ff; }

/* Hero CTA Row */
.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
}

.hero-btn-primary:hover {
    opacity: 90%;
    transform: translateY(-1px);
}

.availability-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.pulsing-green-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%,
    100% {
        transform: scale(1);
        opacity: 100%;
    }

    50% {
        transform: scale(1.25);
        opacity: 70%;
    }
}

/* Sections Global */
.section-block {
    margin-bottom: 56px;
}

.section-header-clean {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.clean-section-title {
    font-family: 'Space Grotesk', Inter, sans-serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.header-action-link,
.text-arrow-link {
    font-size: 0.88rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.header-action-link:hover,
.text-arrow-link:hover {
    color: var(--accent-hover);
    transform: translateX(2px);
}

/* Featured Showcase Card (@onlyrenbl frame_02s & frame_15s) */
.featured-showcase-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
    align-items: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.featured-showcase-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 30px rgb(0 0 0 / 15%);
}

.featured-preview-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: #000;
}

.featured-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.featured-img:hover {
    transform: scale(1.02);
}

.preview-overlay-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgb(0 0 0 / 75%);
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgb(56 189 248 / 30%);
}

.featured-details-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kicker-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.featured-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.featured-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.featured-tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-tech-pill {
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--tag-bg);
    color: var(--tag-color);
    border: 1px solid var(--border-subtle);
}

/* Ref Projects Grid (2-Column Minimalist Cards matching frame_15s.png) */
.ref-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ref-project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.ref-project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}

.card-media-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}

.card-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-screenshot:hover {
    transform: scale(1.03);
}

.card-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-live {
    background: rgb(56 189 248 / 15%);
    color: #38bdf8;
    border: 1px solid rgb(56 189 248 / 30%);
}

.badge-prod {
    background: rgb(63 185 80 / 15%);
    color: #3fb950;
    border: 1px solid rgb(63 185 80 / 30%);
}

.badge-observability {
    background: rgb(245 158 11 / 15%);
    color: #f59e0b;
    border: 1px solid rgb(245 158 11 / 30%);
}

.badge-nda {
    background: rgb(168 85 247 / 15%);
    color: #c084fc;
    border: 1px solid rgb(168 85 247 / 30%);
}

.card-content-wrap {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-heading {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.project-summary {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
}

.project-icons-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.mini-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.card-links-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.ref-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.15s;
}

.ref-link:hover {
    color: var(--accent-blue);
}

.ref-link-secondary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.ref-link-secondary:hover {
    color: var(--text-primary);
}

.muted-link {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Technologies Pill Badges (frame_22s) */
.ref-tech-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--card-bg);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: transform 0.15s, border-color 0.15s;
}

.tech-pill-item:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

/* Two-Column Minimalist Timeline (Experience, Certifications, Education) */
.ref-timeline-container {
    display: flex;
    flex-direction: column;
}

.ref-timeline-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.ref-timeline-row:first-child {
    padding-top: 0;
}

.timeline-col-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    padding-top: 2px;
}

.timeline-col-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.role-title {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text-primary);
}

.role-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.role-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 4px;
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.mini-tag {
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--tag-bg);
    color: var(--tag-color);
    border: 1px solid var(--border-subtle);
}

.role-preview-trigger,
.cert-verify-action {
    margin-top: 10px;
}

.inline-preview-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent-blue);
    cursor: pointer;
    transition: all 0.15s;
}

.inline-preview-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-blue);
}

/* OUTSIDE THE IDE SECTION (Interactive Rotated Stacked Cards) */
.outside-ide-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: center;
}

.outside-story {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 14px 0 18px;
}

.outside-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.outside-pill {
    font-size: 0.82rem;
    padding: 4px 11px;
    border-radius: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.stacked-cards-wrapper {
    position: relative;
    width: 280px;
    height: 220px;
    margin: 16px auto;
    cursor: pointer;
    perspective: 1000px;
}

.stacked-card {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--card-bg);
    box-shadow: 0 10px 28px rgb(0 0 0 / 40%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, opacity 0.4s ease;
}

/* Physical overlapping angles */
.card-pos-1 {
    z-index: 4;
    transform: rotate(-2deg);
}

.card-pos-2 {
    z-index: 3;
    transform: rotate(3deg) translate(6px, 8px);
}

.card-pos-3 {
    z-index: 2;
    transform: rotate(-5deg) translate(-8px, 16px);
}

.card-pos-4 {
    z-index: 1;
    transform: rotate(6deg) translate(12px, 24px);
}

/* Fan-out on hover */
.stacked-cards-wrapper:hover .card-pos-1 { transform: rotate(-8deg) translate(-26px, -14px) scale(1.03); }

.stacked-cards-wrapper:hover .card-pos-2 { transform: rotate(1deg) translate(0, -4px) scale(1.03); }

.stacked-cards-wrapper:hover .card-pos-3 { transform: rotate(8deg) translate(28px, 6px) scale(1.03); }

.stacked-cards-wrapper:hover .card-pos-4 { transform: rotate(14deg) translate(48px, 16px) scale(1.03); }

.stacked-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stacked-card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgb(0 0 0 / 85%));
    color: #fff;
    font-size: 0.74rem;
    font-weight: 500;
}

.stack-hint {
    text-align: center;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 14px;
}

/* Visually Hidden Suite Container (Keeps 100% Jest compatibility without visual clutter) */
.visually-hidden-suite {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* GITHUB ACTIVITY HEATMAP CARD (@onlyrenbl frame_30s) */
.ref-github-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
}

.github-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.github-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.github-year-switcher {
    display: flex;
    gap: 6px;
}

.year-pill {
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.year-pill:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.year-pill.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    font-weight: 600;
}

.activity-total-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.heatmap-container {
    overflow-x: auto;
    padding-bottom: 8px;
}

.heatmap-body {
    display: flex;
    gap: 8px;
    min-width: 720px;
}

.heatmap-days-col {
    display: grid;
    grid-template-rows: repeat(7, 11px);
    gap: 3px;
    padding-top: 22px;
    font-size: 9px;
    color: var(--text-muted);
}

.day-label {
    line-height: 11px;
}

.heatmap-scrollable {
    flex: 1;
}

.heatmap-months-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 6px;
    padding-left: 2px;
}

.heatmap-grid {
    display: grid;
    grid-template-rows: repeat(7, 11px);
    grid-auto-flow: column;
    grid-auto-columns: 11px;
    gap: 3px;
}

.heatmap-cell {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    background: var(--heatmap-cell);
    transition: transform 0.1s ease;
}

.heatmap-cell:hover {
    transform: scale(1.3);
    outline: 1px solid var(--text-primary);
}

.heatmap-cell.level-0 { background: var(--heatmap-cell); }

.heatmap-cell.level-1 { background: var(--heatmap-l1); }

.heatmap-cell.level-2 { background: var(--heatmap-l2); }

.heatmap-cell.level-3 { background: var(--heatmap-l3); }

.heatmap-cell.level-4 { background: var(--heatmap-l4); }

.github-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.activity-contrib-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.cell-level {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}

/* CONTACT SECTION (@onlyrenbl frame_30s) */
.contact-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-lead-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-top: 12px;
}

.contact-cards-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ref-action-card {
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
}

.link-hoverable:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.action-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.action-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.action-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.action-card-val {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
}

.action-card-arrow {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color 0.15s, transform 0.15s;
}

.link-hoverable:hover .action-card-arrow {
    color: var(--accent-blue);
    transform: translate(2px, -2px);
}

.copy-pill-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.copy-pill-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* FOOTER (@onlyrenbl frame_35s signature style) */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0;
    margin-top: 70px;
    background: var(--bg-primary);
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-quote {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.footer-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.visitor-avatar-cluster {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    padding: 5px 14px 5px 8px;
}

.cluster-avatars {
    display: flex;
    align-items: center;
}

.cluster-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
    margin-left: -6px;
    display: inline-block;
    background-size: cover;
}

.cluster-avatar:first-child {
    margin-left: 0;
}

.av-1 { background-color: #38bdf8; }

.av-2 { background-color: #a855f7; }

.av-3 { background-color: #22c55e; }

.av-4 { background-color: #f97316; }

.visitor-count-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* OTHER PROJECTS MINI GRID */
.mini-grid {
    grid-template-columns: repeat(3, 1fr);
}

.mini-project-card {
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--card-bg);
    padding: 0;
}

.mini-project-card .card-content-wrap {
    padding: 20px;
}

.mini-project-card .project-heading {
    font-size: 1rem;
}

.mini-project-card .project-summary {
    font-size: 0.82rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* NO-MEDIA PROJECT CARDS (text-only, no screenshot) */
.no-media .card-content-wrap {
    padding: 24px;
}

.card-badge-inline {
    margin-bottom: 10px;
}

.card-badge-inline .card-status-badge {
    position: static;
    display: inline-block;
}

/* COMPANY LOGO IN EXPERIENCE */
.company-logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.company-logo {
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
}

.company-wordmark {
    height: 38px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    background: #0d1117;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 4px 10px;
}

.company-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: #0d1117;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 2px 8px rgb(0 0 0 / 35%);
}

.company-logo:hover {
    transform: scale(1.05);
    border-color: var(--accent-blue);
    box-shadow: 0 4px 14px rgb(56 189 248 / 25%);
}

/* EDUCATION LOGO (DNU) */
.edu-header-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.edu-univ-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 2px 10px rgb(0 0 0 / 25%);
    flex-shrink: 0;
    padding: 3px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
}

.edu-univ-logo:hover {
    transform: scale(1.06);
    border-color: var(--accent-blue);
    box-shadow: 0 4px 14px rgb(56 189 248 / 30%);
}

/* TECH PILL SVG ICONS */
.pill-icon {
    width: 15px;
    height: 15px;
    vertical-align: -2px;
    margin-right: 6px;
    flex-shrink: 0;
    display: inline-block;
}

.mini-tag .pill-icon {
    width: 13px;
    height: 13px;
    vertical-align: -2px;
    margin-right: 4px;
}

/* CERTIFICATIONS WITH LOGOS & THUMBNAILS */
.cert-item-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.cert-main-info {
    flex: 1;
    min-width: 0;
}

.cert-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.cert-issuer-svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.cert-actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.view-cert-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.view-cert-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* MINI CERTIFICATE PREVIEW THUMBNAIL */
.cert-thumb-box {
    position: relative;
    width: 140px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: #0d1117;
    cursor: pointer;
    box-shadow: 0 4px 12px rgb(0 0 0 / 35%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
}

.cert-thumb-box:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 22px rgb(0 0 0 / 50%), 0 0 12px rgb(56 189 248 / 20%);
}

.cert-mini-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.cert-thumb-box:hover .cert-mini-photo {
    transform: scale(1.05);
}

.cert-expand-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgb(13 17 23 / 85%);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #f0f6fc;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgb(255 255 255 / 15%);
    pointer-events: none;
    transition: background 0.2s, color 0.2s;
}

.cert-thumb-box:hover .cert-expand-badge {
    background: var(--accent-cyan);
    color: #000;
}

@media (width <= 640px) {
    .cert-item-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .cert-thumb-box {
        width: 100%;
        max-width: 220px;
        height: 120px;
        margin-top: 12px;
    }
}

/* FLOATING CHAT WIDGET (@onlyrenbl frame_40s) */
.floating-chat-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.chat-widget-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 9999px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgb(0 0 0 / 30%);
    transition: transform 0.2s, box-shadow 0.2s;
}

.chat-widget-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgb(0 0 0 / 40%);
}

.chat-drawer {
    position: absolute;
    bottom: 56px;
    right: 0;
    width: 360px;
    height: 480px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgb(0 0 0 / 50%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: drawer-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-drawer[hidden] {
    display: none !important;
}

@keyframes drawer-pop {
    from {
        opacity: 0%;
        transform: translateY(12px) scale(0.95);
    }

    to {
        opacity: 100%;
        transform: translateY(0) scale(1);
    }
}

.chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: visible;
}

.chat-avatar-mini {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--accent-blue);
    font-size: 0.72rem;
    font-weight: 700;
}

.chat-online-indicator {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-green);
    border: 2px solid var(--card-bg);
}

.chat-user-text {
    display: flex;
    flex-direction: column;
}

.chat-user-text strong {
    font-size: 0.88rem;
    color: var(--text-primary);
}

.chat-online-status {
    font-size: 0.68rem;
    color: var(--accent-green);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.chat-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s;
    line-height: 1;
    padding: 8px 12px;
    z-index: 10;
    position: relative;
}

.chat-close-btn:hover {
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    display: flex;
    gap: 8px;
    max-width: 88%;
}

.bot-msg {
    align-self: flex-start;
}

.user-msg {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--accent-blue);
    font-size: 0.65rem;
    font-weight: 700;
}

.msg-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.5;
}

.bot-msg .msg-bubble {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.user-msg .msg-bubble {
    background: var(--accent-blue);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-quick-chips {
    padding: 8px 12px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: var(--bg-secondary);
}

.quick-chip {
    font-size: 0.74rem;
    padding: 4px 9px;
    border-radius: 9999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.quick-chip:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.chat-input-bar {
    padding: 10px 12px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 8px;
    background: var(--card-bg);
}

.chat-input-bar input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.15s;
}

.chat-input-bar input:focus {
    border-color: var(--accent-blue);
}

.chat-send-btn {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    padding: 0 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
}

.chat-send-btn:hover {
    opacity: 90%;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal[hidden] {
    display: none;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 85%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.lightbox-dialog {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox-image-wrap {
    max-width: 100%;
    max-height: 80vh;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgb(0 0 0 / 60%);
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    object-fit: contain;
}

.lightbox-caption {
    color: #f0f6fc;
    font-size: 0.88rem;
    margin-top: 12px;
    text-align: center;
}

/* Copy Toast */
.copy-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #161b22;
    color: #f0f6fc;
    border: 1px solid var(--accent-blue);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: 0 8px 30px rgb(0 0 0 / 40%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toast-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.copy-toast[hidden] {
    display: none;
}

@keyframes toast-pop {
    from {
        opacity: 0%;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 100%;
        transform: translate(-50%, 0);
    }
}

.toast-check {
    color: var(--accent-green);
    font-weight: 700;
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
    transition: all 0.15s;
    z-index: 90;
}

#back-to-top.visible {
    display: flex;
}

#back-to-top:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* ── MOBILE MENU TOGGLE (Burger) ── */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, color 0.15s;
    z-index: 50;
}

.mobile-menu-toggle:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.mobile-menu-toggle .close-icon {
    display: none;
}

.mobile-menu-toggle.active .burger-icon {
    display: none;
}

.mobile-menu-toggle.active .close-icon {
    display: block;
}

/* Responsive Media Queries */

/* ── Tablet (≤820px) ── */
@media (width <= 820px) {
    .featured-showcase-card {
        grid-template-columns: 1fr;
    }

    .ref-projects-grid {
        grid-template-columns: 1fr;
    }

    .outside-ide-layout {
        grid-template-columns: 1fr;
    }

    .contact-two-col {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

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

/* ── Mobile Nav (≤768px) ── */
@media (width <= 768px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-subtle);
        padding: 16px 24px;
        gap: 0;
        box-shadow: 0 8px 24px rgb(0 0 0 / 25%);
        z-index: 99;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu .nav-item {
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-menu .nav-item:last-of-type {
        border-bottom: none;
    }

    .nav-menu .nav-divider {
        display: none;
    }

    .nav-menu .theme-toggle-btn {
        margin-top: 12px;
        align-self: flex-start;
    }

    body.light-theme .nav-menu {
        background: var(--bg-secondary);
    }
}

/* ── Small Mobile (≤600px) ── */
@media (width <= 600px) {
    .ref-timeline-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .header-inner {
        padding: 0 16px;
    }

    .main-wrapper {
        padding: 32px 16px 80px;
    }

    .hero-headline {
        font-size: 1.45rem;
    }

    .chat-drawer {
        width: calc(100vw - 32px);
        right: -8px;
    }

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

    .outside-ide-layout {
        gap: 24px;
    }
}

/* ── Narrow Phone (≤480px) ── */
@media (width <= 480px) {
    .hero-name {
        font-size: 1.5rem;
    }

    .hero-headline {
        font-size: 1.25rem;
    }

    .hero-bio-paragraph {
        font-size: 0.95rem;
    }

    .hero-profile-row {
        gap: 14px;
    }

    .avatar-ring {
        width: 60px;
        height: 60px;
    }

    .main-wrapper {
        padding: 24px 14px 80px;
    }

    .section-title {
        font-size: 1.15rem;
    }

    .featured-title {
        font-size: 1.15rem;
    }

    .featured-showcase-card {
        padding: 16px;
    }

    .ref-project-card .card-content-wrap {
        padding: 14px;
    }

    .project-heading {
        font-size: 0.95rem;
    }

    .cert-thumb-box {
        max-width: 100%;
    }

    .floating-chat-container {
        bottom: 16px;
        right: 16px;
    }

    .chat-widget-pill {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    #back-to-top {
        bottom: 70px;
        right: 16px;
        width: 36px;
        height: 36px;
    }

    .heatmap-container {
        margin: 0 -14px;
        padding: 0 14px;
    }

    .ref-projects-grid {
        gap: 16px;
    }

    .stacked-cards-wrapper {
        width: 240px;
        height: 190px;
    }

    .company-logo-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .clean-section-title {
        font-size: 1.3rem;
    }

    .role-title {
        font-size: 0.95rem;
    }

    .role-summary {
        font-size: 0.85rem;
    }

    .inline-pill {
        font-size: 0.8rem;
        padding: 1px 7px;
    }
}

/* ── Tiny Phone (≤375px) ── */
@media (width <= 375px) {
    .hero-name {
        font-size: 1.3rem;
    }

    .hero-headline {
        font-size: 1.1rem;
    }

    .hero-bio-paragraph {
        font-size: 0.88rem;
        line-height: 1.65;
    }

    .hero-social-row {
        gap: 10px;
    }

    .hero-cta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .hero-btn-primary {
        font-size: 0.85rem;
        padding: 9px 16px;
    }

    .availability-status-pill {
        font-size: 0.8rem;
    }

    .main-wrapper {
        padding: 20px 12px 72px;
    }

    .header-inner {
        padding: 0 16px;
    }

    .avatar-ring {
        width: 52px;
        height: 52px;
    }

    .inline-pill {
        font-size: 0.76rem;
        padding: 0 6px;
        gap: 4px;
    }

    .pill-dot {
        width: 5px;
        height: 5px;
    }

    .ref-github-card {
        padding: 16px;
    }

    .tech-pill-item {
        font-size: 0.78rem;
        padding: 5px 10px;
    }

    .mini-tag {
        font-size: 0.72rem;
        padding: 2px 6px;
    }

    .stacked-cards-wrapper {
        width: 220px;
        height: 170px;
    }

    .outside-story {
        font-size: 0.88rem;
    }

    .outside-pill {
        font-size: 0.76rem;
        padding: 3px 8px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.88rem;
    }
}
