@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,700;1,400&display=swap');

:root {
    --bg-primary: #0A0506;
    --bg-secondary: #12090A;
    --bg-card: #1A0D0E;
    --accent-crimson: #FF003C;
    /* Correct Crimson */
    --accent-amber: #FFB830;
    /* Correct Yellow */
    --accent-green: #00F5A0;
    /* Correct Green */
    --accent-ice: #FFF0F2;
    --text-primary: #FFF0F2;
    --text-muted: #BFA7A9;
    --border-glow: rgba(255, 0, 60, 0.3);
    --nav-width: 80px;
    --transition-speed: 0.5s;
}

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

body.custom-cursor-active,
body.custom-cursor-active * {
    cursor: none !important;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    /* Total Monospaced Theme */
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    display: flex;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
}

/* Background Noise Texture */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.04;
    pointer-events: none;
    z-index: 10000;
    filter: contrast(150%) brightness(100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
}

.accent-font,
.tech-pill,
.project-status,
.metric-value,
.metric-label,
.timeline-date {
    font-family: 'JetBrains Mono', monospace;
}

/* Ambient Effects */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    z-index: 999;
    pointer-events: none;
    opacity: 0.03;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(4px);
    }
}

/* Custom Cursor */
#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--accent-crimson);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2147483647;
    will-change: transform;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.2s ease, height 0.2s ease;
}

#cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-crimson);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2147483646;
    will-change: transform;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}


/* Layout */
#app {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
}

/* Floating Bubble Nav */
nav {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 5, 6, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 0, 60, 0.3);
    border-radius: 40px;
    padding: 1.5rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 1000;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9),
        inset 0 0 10px rgba(255, 0, 60, 0.1);
    width: auto;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.85;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    border-radius: 50%;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0.5;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

.nav-item[data-target="timeline"] svg,
.nav-item[data-target="contact"] svg {
    fill: none;
    stroke-width: 2;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--accent-ice);
    opacity: 1;
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px var(--accent-ice));
}

.nav-item.active {
    background: rgba(255, 0, 60, 0.35);
    color: var(--accent-crimson);
    opacity: 1;
    box-shadow: 0 0 25px rgba(255, 0, 60, 0.5);
    filter: drop-shadow(0 0 8px var(--accent-crimson));
}

#nav-indicator {
    display: none;
}

/* Tooltip Labels for Nav Items */
.nav-item::after {
    content: attr(title);
    position: absolute;
    left: 65px;
    background: rgba(26, 13, 14, 0.95);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-15px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
    border: 1px solid rgba(255, 0, 60, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Main Canvas */
main {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4rem 12rem 4rem 12rem;
    transition: overflow-y 0.3s ease;
}

@media (min-width: 769px) {
    body.page-state-timeline main {
        overflow-y: hidden;
    }
}

main::-webkit-scrollbar {
    width: 6px;
}

main::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

main::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
    border-radius: 3px;
}

/* Page Transitions */
.page {
    display: none;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100%;
    opacity: 0;
    will-change: transform, opacity;
}

.page.active {
    display: block;
    animation: betterFadeIn 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.page.active .animate-in {
    opacity: 1;
    transform: translateY(0);
}

.page.fade-out {
    display: block;
    animation: betterFadeOut 0.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes betterFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes betterFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px) scale(1.02);
        filter: blur(10px);
    }
}

/* Typography */
.section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2.5rem, 8vw, 5rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 4rem;
    color: var(--accent-ice);
    position: relative;
    display: inline-block;
    font-weight: 900;
    line-height: 0.9;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-crimson);
    box-shadow: 0 0 20px var(--accent-crimson), 0 0 40px var(--accent-crimson);
}

/* --- Page: Projects --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.project-card {
    background: rgba(18, 9, 10, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 42, 77, 0.15);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow: inset 0 0 0 transparent, 0 5px 15px rgba(0, 0, 0, 0.5);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 42, 77, 0.08),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-crimson);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
}

.project-card:hover {
    border-color: var(--accent-crimson);
    box-shadow: inset 0 0 20px rgba(255, 0, 60, 0.1), 0 10px 30px rgba(0, 0, 0, 0.7);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover::after {
    transform: scaleY(1);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transform: translateZ(30px);
}

.project-metric {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    transform: translateZ(20px);
}

.metric-value {
    font-size: 2.5rem;
    color: var(--accent-amber);
    font-weight: bold;
    transition: color 0.5s ease, text-shadow 0.5s ease;
}

.project-card:hover .metric-value {
    text-shadow: 0 0 20px currentColor;
}

.metric-value.good {
    color: var(--accent-green);
}

.metric-value.warn {
    color: var(--accent-amber);
}

.metric-value.bad {
    color: var(--accent-crimson);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transform: translateZ(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-crimson);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 42, 77, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 42, 77, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 42, 77, 0);
    }
}

.status-stable {
    color: var(--accent-green);
}

.status-stable .status-dot {
    background-color: var(--accent-green);
}

.status-live {
    color: var(--accent-green);
}

.status-live .status-dot {
    background-color: var(--accent-green);
}

.status-dev {
    color: var(--accent-amber);
}

.status-dev .status-dot {
    background-color: var(--accent-amber);
}

.status-standby {
    color: var(--accent-amber);
}

.status-standby .status-dot {
    background-color: var(--accent-amber);
}

.status-acquire {
    color: var(--accent-amber);
}

.status-acquire .status-dot {
    background-color: var(--accent-amber);
}

.status-improvement {
    color: var(--accent-crimson);
}

.status-improvement .status-dot {
    background-color: var(--accent-crimson);
}

.project-tag {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateZ(15px);
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    transform: translateZ(12px);
}

.tech-pill {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tech-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-amber);
    color: var(--text-color);
}

/* --- Project Gallery --- */
.project-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    margin-top: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-amber) transparent;
}

.project-gallery::-webkit-scrollbar {
    height: 4px;
}

.project-gallery::-webkit-scrollbar-thumb {
    background: var(--accent-amber);
    border-radius: 10px;
}

.gallery-img {
    height: 300px;
    width: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.gallery-img:hover {
    transform: scale(1.02);
    border-color: var(--accent-amber);
}

/* --- Glitch Hover Effect for Avatar --- */
.glitch-hover {
    position: relative;
    overflow: hidden;
}

.glitch-hover:hover img {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
        filter: hue-rotate(180deg);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

#lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-amber);
}

/* --- Page: Skills (Orbital Wheel) --- */
.skills-orbit-scene {
    position: relative;
    width: 100%;
    height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
    perspective-origin: 50% 50%;
    margin-top: -1rem;
}

/* Central hub */
.orbit-hub {
    display: none;
}

.hub-pulse {
    position: absolute;
    border: 1.5px solid var(--accent-crimson);
    border-radius: 50%;
    animation: hubRipple 2.4s ease-out infinite;
    opacity: 0;
}

.hub-p1 {
    width: 100px;
    height: 100px;
    animation-delay: 0s;
}

.hub-p2 {
    width: 100px;
    height: 100px;
    animation-delay: 1.2s;
}

@keyframes hubRipple {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

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

.hub-core {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 40% 40%, rgba(255, 0, 60, 0.25), rgba(10, 5, 6, 0.98));
    border: 1.5px solid var(--accent-crimson);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-crimson);
    box-shadow: 0 0 30px var(--accent-crimson), inset 0 0 20px rgba(255, 0, 60, 0.15);
    z-index: 1;
    animation: coreBreath 3s ease-in-out infinite;
}

@keyframes coreBreath {

    0%,
    100% {
        box-shadow: 0 0 25px var(--accent-crimson), inset 0 0 15px rgba(255, 0, 60, 0.15);
    }

    50% {
        box-shadow: 0 0 55px var(--accent-crimson), inset 0 0 28px rgba(255, 0, 60, 0.3);
    }
}

/* Decorative ellipse track */
.orbit-track-ellipse {
    position: absolute;
    width: 990px;
    height: 340px;
    border: 1px solid rgba(255, 0, 60, 0.1);
    border-radius: 50%;
    pointer-events: none;
    transform: rotateX(72deg);
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.04);
}

/* 3D Stage — zero-size origin point */
.orbit-stage {
    position: relative;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
}

/* Each skill node */
.orbit-node {
    position: absolute;
    width: 160px;
    height: 160px;
    left: -80px;
    top: -80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    will-change: transform, opacity;
    transition: filter 0.3s ease;
}

.orbit-node.is-front {
    filter: drop-shadow(0 0 22px rgba(255, 0, 60, 0.65)) !important;
}

/* SVG arc ring */
.node-arc {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.arc-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 5;
}

.arc-fill {
    fill: none;
    stroke: var(--accent-crimson);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 263.9;
    stroke-dashoffset: 263.9;
    filter: drop-shadow(0 0 6px var(--accent-crimson));
    transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Node inner content */
.node-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    background: rgba(10, 5, 6, 0.86);
    width: 112px;
    height: 112px;
    border-radius: 50%;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(255, 0, 60, 0.12);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.orbit-node.is-front .node-inner {
    background: rgba(22, 8, 10, 0.98);
    border-color: rgba(255, 0, 60, 0.45);
}

.node-pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-crimson);
    text-shadow: 0 0 10px var(--accent-crimson);
    line-height: 1;
}

.node-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Active label strip at bottom of scene */
.orbit-label-strip {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(18, 9, 10, 0.8);
    border: 1px solid rgba(255, 0, 60, 0.2);
    border-radius: 40px;
    padding: 0.6rem 2rem;
    backdrop-filter: blur(12px);
    white-space: nowrap;
}

.strip-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--accent-crimson);
    letter-spacing: 0.15em;
    opacity: 0.7;
}

.strip-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.strip-pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-crimson);
    text-shadow: 0 0 10px var(--accent-crimson);
}


.skill-module {
    background: rgba(18, 9, 10, 0.7);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 0, 60, 0.12);
    padding: 2rem 2.2rem;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.skill-module::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at top left, rgba(255, 0, 60, 0.07) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.skill-module::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-crimson), transparent);
    border-radius: 2px;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.skill-module:hover {
    border-color: rgba(255, 0, 60, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(255, 0, 60, 0.15), 0 12px 35px rgba(0, 0, 0, 0.6);
}

.skill-module:hover::before {
    opacity: 1;
}

.skill-module:hover::after,
.skill-module.revealed::after {
    transform: scaleY(1);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.skill-pct {
    color: var(--accent-crimson);
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease, text-shadow 0.4s ease;
    transform: translateX(14px);
}

.skill-module:hover .skill-pct,
.skill-module.revealed .skill-pct {
    opacity: 1;
    transform: translateX(0);
    text-shadow: 0 0 12px var(--accent-crimson);
}

.skill-bar-bg {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-crimson) 0%, #ff607a 100%);
    width: 0%;
    border-radius: 10px;
    transition: width 1.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px var(--accent-crimson);
    position: relative;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 9px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px #fff, 0 0 14px var(--accent-crimson);
    opacity: 0;
    transition: opacity 0.3s 0.9s;
}

.skill-module.revealed .skill-bar-fill::after,
.skill-module:hover .skill-bar-fill::after {
    opacity: 1;
}

/* --- Page: Journey (Horizontal Timeline) --- */
.timeline-h-track {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    padding: 6rem 2rem 10rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    scroll-behavior: smooth;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.timeline-h-track::-webkit-scrollbar {
    display: none;
}

.timeline-h-track:active {
    cursor: grabbing;
}

.timeline-h-track::-webkit-scrollbar-thumb {
    background: var(--accent-crimson);
    border-radius: 10px;
}

.timeline-h-line {
    position: absolute;
    top: calc(6rem + 7px);
    left: 0;
    width: 200%;
    /* Extra width for scrolling */
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--accent-crimson) 10%,
            var(--accent-crimson) 90%,
            transparent 100%);
    box-shadow: 0 0 15px var(--accent-crimson);
    z-index: 1;
}

.timeline-h-entry {
    flex: 0 0 380px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.timeline-h-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-h-dot {
    width: 16px;
    height: 16px;
    background: var(--accent-crimson);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    z-index: 3;
    margin-bottom: 2.5rem;
    box-shadow: 0 0 15px var(--accent-crimson), 0 0 30px rgba(255, 0, 60, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-h-dot.is-current {
    background: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6), 0 0 30px rgba(0, 255, 136, 0.3);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 255, 136, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

.timeline-h-entry:hover .timeline-h-dot {
    transform: scale(1.4);
    box-shadow: 0 0 25px var(--accent-crimson), 0 0 50px rgba(255, 0, 60, 0.6);
}

.timeline-h-card {
    background: rgba(18, 9, 10, 0.75);
    backdrop-filter: blur(14px);
    padding: 2rem;
    border: 1px solid rgba(255, 0, 60, 0.15);
    border-radius: 16px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.timeline-h-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--accent-ice);
}

.timeline-h-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.tl-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.timeline-h-card:hover .tl-pills {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.timeline-h-card:hover {
    border-color: rgba(255, 0, 60, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 0, 60, 0.1);
    transform: translateY(-5px);
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 100;
}

body.page-state-timeline .scroll-hint {
    opacity: 0.6;
}

.scroll-hint span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
}

.mouse-icon {
    width: 18px;
    height: 28px;
    border: 1px solid var(--text-dim);
    border-radius: 10px;
    position: relative;
}

.mouse-icon .wheel {
    width: 2px;
    height: 6px;
    background: var(--accent-crimson);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll-wheel 1.6s infinite;
}

@keyframes scroll-wheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

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

.timeline-date {
    display: inline-block;
    color: var(--accent-amber);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

/* --- Page: About --- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-visual {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.avatar-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 3px solid var(--accent-crimson);
    border-radius: 50%;
    animation: pulseGlow 4s linear infinite;
    box-shadow: 0 0 50px var(--accent-crimson), inset 0 0 30px var(--accent-crimson);
    z-index: 1;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

.avatar-core {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-core img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    display: block;
}

.stat-badge {
    position: absolute;
    background: rgba(18, 9, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-crimson);
    padding: 0.7rem 1.1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.35);
    min-width: 120px;
}

/* Badge 1 (Senior Year) — top-right, close to circle edge */
.stat-badge:nth-child(3) {
    top: -10px;
    right: -60px;
    animation-delay: 0s;
}

/* Badge 2 (Main Projects) — bottom-left, close to circle edge */
.stat-badge:nth-child(4) {
    bottom: -10px;
    left: -60px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.about-text h3 {
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.about-text p strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* --- Page: Contact --- */
#page-contact {
    display: none;
    align-items: center;
    justify-content: center;
}

#page-contact.active {
    display: flex;
}

.contact-card {
    background: rgba(14, 7, 8, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 0, 60, 0.18);
    padding: 3.5rem;
    border-radius: 28px;
    text-align: center;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 0 60px rgba(255, 0, 60, 0.07), 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.contact-card:hover {
    border-color: rgba(255, 0, 60, 0.35);
    box-shadow: 0 0 80px rgba(255, 0, 60, 0.12), 0 25px 60px rgba(0, 0, 0, 0.6);
}

.contact-label {
    color: var(--accent-crimson);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.72rem;
    margin-bottom: 1.2rem;
    display: block;
    font-family: 'JetBrains Mono', monospace;
}

.contact-title {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 60%, rgba(255, 0, 60, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.3rem 1.6rem;
    background: rgba(255, 0, 60, 0.04);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255, 0, 60, 0.1);
}

.contact-item:hover {
    background: rgba(255, 0, 60, 0.10);
    border-color: rgba(255, 0, 60, 0.35);
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(255, 0, 60, 0.1);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--accent-crimson);
}

.contact-info h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-info p {
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }

    #cursor-dot,
    #cursor-ring {
        display: none;
    }

    nav {
        left: 50%;
        bottom: 2rem;
        top: auto;
        transform: translateX(-50%);
        flex-direction: row;
        width: 90%;
        max-width: 400px;
        padding: 0.8rem 1.5rem;
        border-radius: 30px;
        justify-content: space-between;
    }

    main {
        padding: 2rem 2rem 8rem 2rem;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .avatar-core {
        width: 160px;
        height: 160px;
    }

    .stat-badge:nth-child(3) {
        top: 0;
        right: 0;
        position: relative;
        margin-bottom: 1rem;
    }

    .stat-badge:nth-child(4) {
        bottom: 0;
        left: 0;
        position: relative;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    #bg-canvas,
    .scanlines {
        display: none;
    }

    .page {
        transition: opacity 0.5s;
        transform: none;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 5, 6, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    padding: 3rem 3rem 6rem 3rem;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.close-btn:hover {
    color: var(--accent-crimson);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.modal-text strong {
    color: var(--text-primary);
}

#modal-repo,
#modal-website {
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    background: rgba(255, 0, 60, 0.1);
    border: 1px solid var(--accent-crimson);
    color: var(--accent-crimson);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

#modal-repo::before {
    content: '';
    width: 18px;
    height: 18px;
    background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
}

#modal-website::before {
    content: '';
    width: 18px;
    height: 18px;
    background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='2' y1='12' x2='22' y2='12'%3E%3C/line%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='2' y1='12' x2='22' y2='12'%3E%3C/line%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
}

#modal-repo.is-flippa::before {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 470 469'%3E%3Cpath d='m85 385.6v-5.4c0-5.9 0.5-9.3 0.5-9.3l4.4-0.5c17.6-1.9 28.4-31.8 28.4-75.3v-132.1c0-43.5-10.8-73.4-28.4-75.3l-4.4-0.5c0 0-0.5-3.5-0.5-9.3v-5.4h277.6c1.4 27.4 2.9 54.8 3.9 82.2-3.5 0-5.9-0.5-5.9-0.5l-4.9-9.3c-17.1-32.8-63.1-52.8-115.5-52.8h-44.6v129.1c45.6-2.4 82.3-12.2 95.5-28.9l3.9-4.8c0 0 5.9-0.5 11.8-0.5v93.9c-5.9 0-11.8-0.5-11.8-0.5l-3.9-5.9c-14.2-17.1-49.9-29.3-95.5-32.7v53.3c0 43.5 12.8 73.4 32.3 75.3l5.4 0.5c0 0 0.5 3.4 0.5 9.3v5.4z'/%3E%3Cpath d='m367.2 307.8c23 0 37.7 15.2 37.7 39.1 0 24-14.7 39.2-37.7 39.2-23.5 0-38.2-15.2-38.2-39.2 0-23.9 14.7-39.1 38.2-39.1z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 470 469'%3E%3Cpath d='m85 385.6v-5.4c0-5.9 0.5-9.3 0.5-9.3l4.4-0.5c17.6-1.9 28.4-31.8 28.4-75.3v-132.1c0-43.5-10.8-73.4-28.4-75.3l-4.4-0.5c0 0-0.5-3.5-0.5-9.3v-5.4h277.6c1.4 27.4 2.9 54.8 3.9 82.2-3.5 0-5.9-0.5-5.9-0.5l-4.9-9.3c-17.1-32.8-63.1-52.8-115.5-52.8h-44.6v129.1c45.6-2.4 82.3-12.2 95.5-28.9l3.9-4.8c0 0 5.9-0.5 11.8-0.5v93.9c-5.9 0-11.8-0.5-11.8-0.5l-3.9-5.9c-14.2-17.1-49.9-29.3-95.5-32.7v53.3c0 43.5 12.8 73.4 32.3 75.3l5.4 0.5c0 0 0.5 3.4 0.5 9.3v5.4z'/%3E%3Cpath d='m367.2 307.8c23 0 37.7 15.2 37.7 39.1 0 24-14.7 39.2-37.7 39.2-23.5 0-38.2-15.2-38.2-39.2 0-23.9 14.7-39.1 38.2-39.1z'/%3E%3C/svg%3E") no-repeat center;
}

#modal-repo:hover,
#modal-website:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 0, 60, 0.4), 0 0 50px rgba(255, 0, 60, 0.2);
    background: #ff1a4d;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════
   MOBILE RESPONSIVE  (≤ 768px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* GLOBAL MOBILE RESET */
    * {
        cursor: auto !important;
    }

    #cursor-dot,
    #cursor-ring {
        display: none !important;
    }

    body {
        position: fixed !important;
        width: 100% !important;
        height: 100dvh !important;
        overflow: hidden !important;
        overscroll-behavior: none !important;
    }

    .main-content {
        height: 100dvh !important;
        width: 100% !important;
        overflow-y: auto !important;
        padding: 1rem 1.2rem 140px !important;
        -webkit-overflow-scrolling: touch;
    }

    /* SCROLL LOCK FOR DASHBOARD PAGES */
    body.page-state-about .main-content,
    body.page-state-skills .main-content,
    body.page-state-contact .main-content {
        overflow: hidden !important;
        touch-action: none !important;
        overscroll-behavior: none !important;
    }

    /* NAVIGATION BUBBLE */
    nav,
    .nav-sidebar {
        position: fixed !important;
        bottom: 1.5rem !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(0) !important;
        width: 90% !important;
        max-width: 400px;
        height: 65px !important;
        flex-direction: row !important;
        background: rgba(10, 5, 6, 0.9) !important;
        backdrop-filter: blur(20px) !important;
        border-radius: 35px !important;
        z-index: 9999 !important;
        transition: transform 0.4s ease, opacity 0.4s ease !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 0 15px !important;
        border: 1px solid rgba(255, 0, 60, 0.2) !important;
    }

    nav.nav-hidden {
        transform: translateX(-50%) translateY(120%) !important;
        opacity: 0 !important;
    }

    .nav-item {
        flex: 1;
        background: none !important;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .nav-item .label,
    #nav-indicator,
    .nav-item::before,
    .nav-item::after {
        display: none !important;
    }

    .nav-item.active::before {
        content: '';
        position: absolute;
        width: 45px;
        height: 45px;
        background: rgba(255, 0, 60, 0.25);
        border-radius: 50%;
        z-index: -1;
        box-shadow: 0 0 20px rgba(255, 0, 60, 0.3);
        display: block !important;
    }

    /* PAGE TRANSITIONS & VISIBILITY */
    .page {
        height: 100dvh !important;
        padding: 0 !important;
        display: none;
        opacity: 0;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .page.active {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* PAGE: ABOUT (PROFILE) */
    #page-about {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100dvh;
        padding: 0 1.5rem !important;
    }

    .about-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        transform: scale(0.9);
        transform-origin: center;
    }

    .about-visual {
        position: relative;
        width: 240px !important;
        height: 240px !important;
        margin-bottom: 2rem !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .avatar-core {
        width: 180px !important;
        height: 180px !important;
        border-radius: 50%;
        object-fit: cover;
    }

    .stat-badge {
        position: absolute !important;
        width: 85px !important;
        height: 85px !important;
        padding: 0.5rem !important;
        background: rgba(26, 13, 14, 0.95) !important;
        z-index: 10;
        transform: none !important;
        border: 1px solid rgba(255, 0, 60, 0.2);
    }

    .stat-badge:nth-child(3) {
        top: -10px;
        right: -30px;
    }

    .stat-badge:nth-child(4) {
        bottom: -20px;
        left: -30px;
    }

    .about-text h3 {
        font-size: 1.8rem !important;
        margin-bottom: 0.8rem !important;
        color: var(--accent-ice);
    }

    .about-text p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        color: var(--text-muted);
        display: -webkit-box;
        -webkit-line-clamp: 7;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* PAGE: ARSENAL (SKILLS) - Grid Version */
    body.page-state-skills .main-content,
    body.page-state-about .main-content,
    body.page-state-contact .main-content {
        overflow: hidden !important;
        touch-action: none !important;
    }

    .skills-orbit-scene {
        height: 100dvh !important;
        overflow: hidden !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0 7rem !important;
    }

    .orbit-stage {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        justify-items: center;
    }

    .orbit-node {
        position: relative !important;
        width: 130px !important;
        height: 130px !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .node-inner {
        width: 100px !important;
        height: 100px !important;
        background: rgba(10, 5, 6, 0.9) !important;
    }

    .node-pct {
        font-size: 1.2rem !important;
    }

    .node-name {
        font-size: 0.55rem !important;
    }

    .orbit-label-strip {
        position: absolute !important;
        bottom: 2rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 85% !important;
        padding: 0.7rem 1.2rem !important;
        z-index: 100;
        background: rgba(18, 9, 10, 0.95) !important;
        border-radius: 40px !important;
    }

    /* PAGE: PROJECTS */
    #page-projects {
        padding-bottom: 12rem !important;
    }

    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .project-card {
        padding: 1.8rem !important;
        margin-bottom: 0 !important;
        transform: none !important;
        transform-style: flat !important;
    }

    .project-card * {
        transform: none !important;
    }

    /* PAGE: CONTACT */
    #page-contact {
        height: 100dvh;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 !important;
    }

    .contact-card {
        width: 90% !important;
        max-width: 320px !important;
        padding: 2.2rem 1.5rem !important;
        background: rgba(18, 9, 10, 0.95) !important;
        border-radius: 20px !important;
        margin: auto !important;
    }

    .contact-item {
        padding: 1rem !important;
        gap: 0.6rem !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    .contact-info h4 {
        margin-bottom: 0.2rem !important;
    }

    /* JOURNEY (HORIZONTAL ON MOBILE) */
    .timeline-h-track {
        flex-direction: row !important;
        padding: 2rem 1.5rem 6rem !important;
        gap: 2rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent) !important;
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent) !important;
    }

    .timeline-h-entry {
        flex: 0 0 280px !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* MODAL FIX: ENSURE 'X' IS VISIBLE AND CONTENT FITS */
    .modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: none;
        justify-content: center;
        align-items: center;
        padding: 1.5rem !important;
        z-index: 6000 !important;
        background: rgba(0, 0, 0, 0.9) !important;
        backdrop-filter: blur(10px);
    }

    .modal.active {
        display: flex !important;
    }

    .modal-content {
        width: 100% !important;
        max-width: 450px !important;
        max-height: 80vh !important;
        padding: 2.5rem 1.5rem !important;
        overflow-y: auto !important;
        border-radius: 20px !important;
        position: relative !important;
        background: var(--bg-deep) !important;
        border: 1px solid rgba(255, 0, 60, 0.3) !important;
    }

    .close-btn {
        position: fixed !important;
        /* Fixed to top of modal viewport */
        top: 1rem !important;
        right: 1rem !important;
        width: 44px !important;
        height: 44px !important;
        background: rgba(255, 0, 60, 0.2) !important;
        border-radius: 50% !important;
        z-index: 6100 !important;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid var(--accent-crimson) !important;
    }

    .modal-header h2 {
        font-size: 1.8rem !important;
        margin-top: 1rem !important;
    }

    .modal-footer {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 2rem !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
        width: 100% !important;
    }

    #modal-repo,
    #modal-website {
        width: 100% !important;
        min-height: 44px !important;
        text-align: center;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 1rem !important;
        background: rgba(255, 0, 60, 0.1) !important;
        border: 1px solid var(--accent-crimson) !important;
    }

    /* NAVBAR TOOLTIP HIDE */
    .nav-item[title]::after {
        display: none !important;
    }
}