/* ===== Obsidian Graph Portfolio — Global Styles ===== */

/* Ensure custom font never blocks rendering */
@font-face {
    font-family: 'Trench Thin';
    font-display: swap;
}

/* Reset & Dark Canvas */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Trench Thin', 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6, .section-heading {
    line-height: 1.5;
    margin-bottom: 1rem;
}

.page-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.page-sub {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* ===== Graph Container ===== */
#graph-container {
    width: 100vw;
    height: 100vh;
    cursor: grab;
}

#graph-container:active {
    cursor: grabbing;
}

/* ===== Background Particle Canvas ===== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#graph-container {
    position: relative;
    z-index: 1;
}

/* ===== Loading Overlay ===== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--graph-bg);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.8s ease;
}

#loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

#loader .pulse-ring {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: pulse-ring 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

#loader .loader-text {
    margin-top: 20px;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    animation: text-flicker 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes text-flicker {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

/* ===== Node Styles — Glass Orb ===== */
.node circle.orb-base {
    stroke: var(--border);
    stroke-width: 1px;
    cursor: pointer;
    transition: filter 0.3s ease, stroke-width 0.3s ease;
}

.node circle.orb-base:hover {
    stroke: var(--border);
    stroke-width: 1.5px;
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--glow) 18%, transparent));
}

/* Spinning specular highlight */
.orb-shine {
    animation: orb-spin 6s linear infinite;
    transform-origin: 0 0;
}

@keyframes orb-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.node text {
    fill: var(--text);
    pointer-events: none;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s;
}

/* ===== Link Styles ===== */
.link {
    stroke: var(--border);
    stroke-width: 1px;
}

/* ===== Depth-based — text only, no circle fill override ===== */
/* Root */
.node.depth-0 text {
    font-size: 16px;
    font-weight: 600;
    fill: var(--text);
    letter-spacing: 0.5px;
}

/* Main Categories */
.node.depth-1 text {
    font-size: 13px;
    font-weight: 400;
    fill: var(--text);
}

/* Sub-items */
.node.depth-2 text {
    font-size: 11px;
    fill: var(--muted);
}

/* Leaf nodes */
.node.depth-3 text {
    font-size: 10px;
    fill: var(--muted);
}

/* ===== Root pulse glow ===== */
@keyframes root-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px color-mix(in srgb, var(--glow) 40%, transparent));
    }

    50% {
        filter: drop-shadow(0 0 24px color-mix(in srgb, var(--glow) 70%, transparent));
    }
}

.node.depth-0 circle.orb-base {
    animation: root-glow 3s ease-in-out infinite;
}
/* ===== Info Panel (DISABLED) ===== */
#info-panel {
    display: none !important;
}


/* ===== Footer Hint ===== */
#instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: color-mix(in srgb, var(--muted) 75%, transparent);
    font-size: 12px;
    letter-spacing: 1px;
    pointer-events: none;
}

/* ===== Navigable node cursor ===== */
.node.navigable circle.orb-base {
    cursor: pointer;
}

.node.navigable circle.orb-base:hover {
    filter: drop-shadow(0 0 16px color-mix(in srgb, var(--glow) 24%, transparent));
}

/* ===== Forces Control Panel ===== */
#forces-panel {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    backdrop-filter: blur(14px);
    z-index: 20;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.panel-section .section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
    border-bottom: 1px solid var(--border);
}

.panel-section .section-header:hover {
    color: var(--text);
}

.panel-section .chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.panel-section.open .chevron {
    transform: rotate(90deg);
}

.panel-section .section-body {
    max-height: 0;
    overflow-x: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
}

.panel-section.open .section-body {
    max-height: 400px;
    padding: 10px 16px 16px;
}

.panel-section .section-body label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.panel-section .section-body label:last-child {
    margin-bottom: 0;
}

/* Custom Range Slider */
.panel-section input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    margin-top: 8px;
    background: var(--surface);
    border-radius: 2px;
    outline: none;
    display: block;
}

.panel-section input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text);
    cursor: pointer;
    box-shadow: 0 0 6px color-mix(in srgb, var(--glow) 18%, transparent);
    transition: transform 0.15s, box-shadow 0.15s;
}

.panel-section input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 10px color-mix(in srgb, var(--glow) 30%, transparent);
}

.panel-section input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 6px color-mix(in srgb, var(--glow) 18%, transparent);
}

/* --- Bio Styles --- */

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Trench Thin', 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}


.content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: 100px 30px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Navigation */
.top-nav {
    position: sticky;
    top: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    z-index: 9999;
    padding: 0 20px;
    margin-bottom: 30px;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s, transform 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    font-weight: 700;
    transform: translateY(-2px);
    text-shadow: 0 0 10px color-mix(in srgb, var(--glow) 40%, transparent);
}

.dropdown-content a.active {
    background: color-mix(in srgb, var(--primary-bg) 15%, transparent);
    color: var(--primary);
    font-weight: 700;
}

/* Projects Layout Improvements */
.fc-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.fc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fc-btn.primary {
    background: var(--primary-bg);
    color: var(--on-primary);
}

.fc-btn.primary:hover {
    background: var(--text);
    box-shadow: 0 0 20px color-mix(in srgb, var(--glow) 40%, transparent);
}

.fc-btn.ghost {
    border: 1px solid var(--border);
    color: var(--text);
}

.fc-btn.ghost:hover {
    background: var(--surface);
    border-color: var(--primary);
}

.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.proj-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.proj-card:hover {
    background: var(--surface);
    border-color: var(--border);
    transform: translateY(-5px);
}

.pc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.pc-title {
    font-weight: 700;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.3;
}

.pc-git-link {
    color: var(--primary);
    transition: color 0.3s;
}

.pc-git-link:hover {
    color: var(--primary);
}

.pc-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Profile */
.profile-container {
    position: relative;
    margin-bottom: 32px;
    opacity: 0;
    transform: scale(0.8);
    animation: popIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.2s;
}

.profile-ring {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary-bg), color-mix(in srgb, var(--primary-bg) 20%, transparent));
    box-shadow: 0 0 40px color-mix(in srgb, var(--glow) 25%, transparent), 0 0 80px color-mix(in srgb, var(--glow) 10%, transparent);
}

.profile-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
    border: 3px solid var(--bg);
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-bg) 15%, transparent) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
    pointer-events: none;
}

/* Hero text */
.bio-name {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.6s ease forwards 0.5s;
}

.bio-roles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.6s ease forwards 0.6s;
}

.role-pill {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--card-shadow);
}

.bio-tagline {
    font-size: 1rem;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.6s ease forwards 0.65s;
}

.bio-tagline strong {
    color: var(--text);
}

.divider {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-bg), transparent);
    margin: 20px auto 28px;
    opacity: 0;
    animation: fadeUp 0.4s ease forwards 0.7s;
}

/* Intro */
.bio-intro {
    font-size: 1.05rem;
    line-height: 1.95;
    color: var(--muted);
    text-align: center;
    max-width: 620px;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.6s ease forwards 0.8s;
}

/* Metrics */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 680px;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeUp 0.5s ease forwards 0.9s;
}

.metric {
    text-align: center;
    padding: 22px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s;
    box-shadow: var(--card-shadow);
}

.metric:hover {
    background: color-mix(in srgb, var(--primary-bg) 13%, transparent);
    border-color: var(--border);
    transform: translateY(-3px);
}

.metric .val {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.metric .lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
}

/* CTA */
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 44px;
    opacity: 0;
    animation: fadeUp 0.5s ease forwards 1s;
}

.cta-btn {
    padding: 13px 28px;
    border-radius: 30px;
    font-family: 'Trench Thin', 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-primary {
    background: var(--primary-bg);
    color: var(--on-primary);
    border: none;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--glow) 40%, transparent);
}

.cta-primary:hover {
    box-shadow: 0 6px 28px color-mix(in srgb, var(--glow) 60%, transparent);
    transform: translateY(-2px);
}

.cta-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.cta-secondary:hover {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-2px);
}

/* Social */
.social-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.5s ease forwards 1.1s;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: var(--card-shadow);
}

.social-link:hover {
    background: color-mix(in srgb, var(--primary-bg) 18%, transparent);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.social-link { color: var(--muted); }
.social-link:hover { color: var(--primary); }
.social-link .ico { width: 24px; height: 24px; }

/* About sections */
.section-block {
    width: 100%;
    max-width: 680px;
    margin-top: 60px;
    opacity: 0;
    transform: translateY(20px);
}

.section-block.visible {
    animation: fadeUp 0.6s ease forwards;
}

.section-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--primary);
    margin-bottom: 18px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.section-text {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 20px;
}

/* Strengths grid */
.strengths {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 10px;
}

.strength-item {
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
    box-shadow: var(--card-shadow);
}

.strength-item:hover {
    background: var(--surface);
    border-color: var(--border);
}

.strength-item .si-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.strength-item .si-desc {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Languages */
.lang-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.lang-tag {
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: var(--card-shadow);
}

.lang-tag span {
    font-size: 0.65rem;
    color: color-mix(in srgb, var(--muted) 75%, transparent);
    margin-left: 6px;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .metrics {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .bio-name {
        font-size: 1.8rem;
    }

    .cta-row {
        flex-direction: column;
        align-items: center;
    }
}

/* Dropdown Navigation */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    outline: none;
}

.dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: var(--surface);
    border: 1px solid var(--border);
    min-width: 150px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 100;
    border: 1px solid var(--border);
    border-radius: 8px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 0;
    margin-top: 10px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* Grace period before closing */
    transition-delay: 0.1s;
}

/* Bridge to prevent dropdown from closing when moving mouse through the gap */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -25px;
    /* Larger bridge */
    left: 0;
    width: 100%;
    height: 25px;
}

.dropdown-content a {
    color: var(--muted);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.75rem;
    text-align: center;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-content a:hover,
.dropdown-content a.active {
    background-color: color-mix(in srgb, var(--primary-bg) 15%, transparent);
    color: var(--text);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    /* Reset delay on enter so it opens instantly */
    transition-delay: 0s;
}

/* ===== Shared Navigation Grid ===== */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.nav-grid-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.nav-grid-btn:hover {
    background: color-mix(in srgb, var(--primary-bg) 13%, transparent);
    border-color: var(--border);
    transform: translateY(-3px);
}

.nav-grid-btn .icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.nav-grid-btn .title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-grid-btn .desc {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 580px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- New Skills Page Styles (Accordion Focus) --- */
.accordion {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 60px;
}

.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
}

.accordion-item:hover {
    background: var(--surface);
    border-color: var(--border);
}

.accordion-header {
    width: 100%;
    padding: 22px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    user-select: none;
    border: none;
    outline: none;
    text-align: left;
}

.accordion-item.active .accordion-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0, 1, 0, 1);
    background: color-mix(in srgb, var(--bg) 60%, transparent);
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    transition: max-height 1s ease-in-out;
}

.skill-tags {
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    box-shadow: var(--card-shadow);
}

.skill-tag.highlight {
    background: color-mix(in srgb, var(--primary-bg) 16%, transparent);
    border-color: var(--primary);
    color: var(--text);
    box-shadow: 0 0 15px color-mix(in srgb, var(--glow) 15%, transparent);
}

.skill-tag:hover {
    background: color-mix(in srgb, var(--primary-bg) 25%, transparent);
    color: var(--text);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px color-mix(in srgb, var(--glow) 30%, transparent);
}

.chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform 0.4s;
    margin-right: 5px;
}

.accordion-item.active .chevron {
    transform: rotate(-135deg);
}

/* ===== Current Focus Page ===== */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 60px;
}

.focus-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(25px);
    box-shadow: var(--card-shadow);
}

.focus-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.focus-card:nth-child(1) {
    transition-delay: 0s;
}

.focus-card:nth-child(2) {
    transition-delay: 0.1s;
}

.focus-card:nth-child(3) {
    transition-delay: 0.2s;
}

.focus-card:nth-child(4) {
    transition-delay: 0.3s;
}

.focus-card:hover {
    background: var(--surface);
    border-color: var(--border);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px color-mix(in srgb, var(--glow) 20%, transparent);
}

.focus-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--glow) 30%, transparent));
}

.focus-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.focus-desc {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--muted);
}

/* Positioning / Final Statement */
.positioning {
    width: 100%;
    text-align: center;
    padding: 40px 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    margin-bottom: 50px;
    box-shadow: var(--card-shadow);
}

.positioning-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--primary);
    margin-bottom: 22px;
}

.positioning-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.pos-item {
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.82rem;
    letter-spacing: 0.8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary);
    transition: all 0.3s;
    box-shadow: var(--card-shadow);
}

.pos-item:hover {
    background: color-mix(in srgb, var(--primary-bg) 20%, transparent);
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--glow) 25%, transparent);
}

.positioning-tag {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--muted);
    font-style: italic;
    max-width: 560px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .focus-grid {
        grid-template-columns: 1fr;
    }

    .positioning-items {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== Education Page ===== */
.section-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 40px 0 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.edu-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: var(--card-shadow);
}

.edu-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.edu-card:hover {
    background: var(--surface);
    border-color: var(--border);
    transform: translateX(5px);
}

.edu-icon {
    font-size: 1.8rem;
    background: var(--surface);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.edu-degree {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.edu-school {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2px;
}

.edu-year {
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--muted) 75%, transparent);
    margin-bottom: 12px;
}

.edu-detail {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--muted);
}

/* Certifications */
.cert-card {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(15px);
    box-shadow: var(--card-shadow);
}

.cert-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.cert-badge {
    font-size: 1.4rem;
    color: var(--primary);
}

.cert-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.cert-body {
    font-size: 0.85rem;
    color: var(--muted);
}

/* ===== Experience Page ===== */
.timeline {
    position: relative;
    width: 100%;
    padding-left: 30px;
    border-left: 1px solid var(--border);
}

.job {
    position: relative;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
}

.job.visible {
    opacity: 1;
    transform: translateY(0);
}

.job::before {
    content: '';
    position: absolute;
    left: -35.5px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px color-mix(in srgb, var(--glow) 50%, transparent);
    z-index: 2;
}

.job-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.job-company {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.job-period {
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--muted) 75%, transparent);
    margin-top: 4px;
}

.job-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 18px;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    box-shadow: var(--card-shadow);
}

@media (max-width: 600px) {
    .edu-card {
        flex-direction: column;
        gap: 15px;
    }
}
/* ===== Navbar (theme-aware; moved out of navbar.html inline styles) ===== */
.nav-desktop { gap: 25px; }
.nav-burger {
    border: 0;
    padding: 8px;
    background: transparent;
    color: var(--text);
    box-shadow: none;
    outline: none;
}
.nav-burger:focus { box-shadow: none; }

.mobile-nav {
    background: var(--bg) !important;
    color: var(--text);
    border-left: 1px solid var(--border);
    z-index: 100000;
}
.mobile-nav .offcanvas-header { border-bottom: 1px solid var(--border); }
.mobile-nav-title {
    color: var(--text);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.mobile-nav-close { filter: none; }
:root[data-theme="dark"] .mobile-nav-close { filter: invert(1) grayscale(100%) brightness(200%); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .mobile-nav-close { filter: invert(1) grayscale(100%) brightness(200%); }
}
.mobile-nav-group {
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 1rem 0 0.5rem;
}
.mobile-nav-link {
    color: var(--muted);
    text-decoration: none;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
    font-weight: 700;
}
.mobile-nav-top {
    display: block;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* ===== Graph section at the bottom of each page ===== */
.graph-section-head {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 20px;
}
.graph-section-title {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 12px;
}
.back-to-top {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 8px 24px;
    border-radius: 30px;
    cursor: pointer;
    font: 0.75rem 'Inter', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
}
.back-to-top:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.graph-section-sub {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
}
.graph-section-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.graph-explore-btn {
    border: 0;
    background: var(--primary-bg);
    color: var(--on-primary);
    padding: 10px 26px;
    border-radius: 30px;
    cursor: pointer;
    font: 700 0.8rem 'Inter', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 0 18px color-mix(in srgb, var(--glow) 30%, transparent);
    transition: transform 0.3s, box-shadow 0.3s;
}
.graph-explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 26px color-mix(in srgb, var(--glow) 45%, transparent);
}

/* ===== Overlays on the full-screen graph (graph.html). The graph is dark in both
   themes, so these use fixed light-on-dark colours rather than the page tokens. ===== */
#instructions { color: #95A0AC; }
.graph-skip {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}
.graph-skip-label {
    font: 600 0.9rem 'Inter', sans-serif;
    color: #EEF2F6;
    margin-bottom: 12px;
    white-space: nowrap;
}
.graph-skip-btn {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--on-primary);
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font: 700 0.85rem 'Inter', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 0 20px rgba(181, 230, 85, 0.35);
    transition: transform 0.3s, box-shadow 0.3s;
}
.graph-skip-btn:hover {
    color: var(--on-primary);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 0 30px rgba(181, 230, 85, 0.55);
}
.graph-tip {
    display: none;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 31, 37, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid #2B323B;
    color: #EEF2F6;
    padding: 10px 20px;
    border-radius: 30px;
    font: 0.8rem 'Inter', sans-serif;
    z-index: 10000;
    animation: fadeInDown 0.5s ease-out;
    cursor: pointer;
}

/* ===== Pixel icons (portfolio/icons.py) =====
   One icon language for the whole site: Pixelarticons (filled 2-unit "pixels" on a 24 grid) in
   the lime text colour. Pixel art stays sharp only at whole multiples of its grid, so every icon
   renders at 24px (font-size: an icon is 1em square). They replace emoji, so the old emoji glow
   filters and emoji font sizes are reset here. */
.ico {
    display: block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}
/* .content prefix: beats the older single-class emoji rules in the page stylesheets, which load later */
.content .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    font-size: 24px;            /* icon size: keep at a multiple of 24 for crisp pixels */
    line-height: 1;
    color: var(--primary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    filter: none;
    box-shadow: none;
}
.fc-icon-box.icon-box,
.edu-icon.icon-box { width: 56px; height: 56px; border-radius: 14px; }
.focus-icon.icon-box { margin-bottom: 16px; }
.achieve-icon.icon-box { width: 44px; height: 44px; margin-bottom: 4px; }
.cert-badge.icon-box { width: 44px; height: 44px; }
.talk-icon.icon-box { min-width: 52px; width: 52px; height: 52px; align-self: flex-start; }
.content .focus-icon.icon-box,
.content .achieve-icon.icon-box,
.content .talk-icon.icon-box { filter: none; align-items: center; }

/* Stat rows on Blogs / Gallery: the icon stands where a number would */
.bs-icon,
.gs-icon { display: flex; justify-content: center; color: var(--primary); font-size: 24px; }

/* Strength cards: small icon before the title */
.si-title { display: flex; align-items: center; gap: 8px; }
.si-icon { color: var(--primary); font-size: 24px; display: inline-flex; }

/* "Explore more" grid on the bio / graph pages */
.nav-grid-btn .icon { display: flex; justify-content: center; color: var(--primary); font-size: 24px; }
.nav-burger .ico { width: 24px; height: 24px; }
