:root {
    --arc-blue: #00f7ff;
    --arc-blue-dim: #005a5e;
    --arc-amber: #ffb74d;
    --arc-amber-dim: #b07a1f;
    --arc-red: #ff5350;
    --iron-bg: #0b0f19;
    --glass-bg: rgba(11, 15, 25, 0.85);
    --glass-border: rgba(0, 247, 255, 0.3);
    --text-main: #e0f7fa;
    --transition-speed: 0.5s;
    --font-tech: 'Rajdhani', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--arc-amber);
    color: #000;
    padding: 12px 24px;
    font-family: var(--font-tech);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.3s;
}
.skip-link:focus { top: 10px; }

/* ============================================
   GLOBAL RESET
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--arc-amber); outline-offset: 4px; }

body {
    background-color: var(--iron-bg);
    color: var(--text-main);
    font-family: var(--font-tech);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a2236 0%, #000000 100%);
}

#global-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at center, #1a2236 0%, #000000 100%);
}

/* ============================================
   FLOATING NANITE PARTICLES
   ============================================ */
#particles-layer {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 5;
}
.particle {
    position: absolute;
    width: var(--ps, 2px);
    height: var(--ps, 2px);
    background: var(--pc, var(--arc-blue));
    border-radius: 50%;
    box-shadow: 0 0 calc(var(--ps, 2px) * 3) var(--pc, var(--arc-blue));
    animation: particle-float var(--pd, 8s) var(--pdl, 0s) linear infinite;
}
@keyframes particle-float {
    0%   { transform: translate(var(--px1, 0), var(--py1, 0)) scale(0); opacity: 0; }
    10%  { opacity: 0.8; }
    50%  { transform: translate(var(--px2, 0), var(--py2, 0)) scale(1); opacity: 0.6; }
    90%  { opacity: 0.2; }
    100% { transform: translate(var(--px3, 0), var(--py3, 0)) scale(0); opacity: 0; }
}

/* ============================================
   ACTIVATION SCREEN
   ============================================ */
#activation-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 102;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: opacity 1s ease-in-out, visibility 1s;
}

/* Activation status cluster — pinned to the bottom so the suit plates
   (which assemble around the true viewport centre) never cover it, and so
   the arc reactor is left as the only in-flow child → perfectly centred. */
.activation-status {
    position: fixed;
    left: 50%;
    bottom: 7vh;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: max-content;
    max-width: 90vw;
    text-align: center;
}
.activation-status #power-level-display { margin-top: 0; }
.activation-status #instruction-text { margin-top: 0; }
#activation-screen.hidden {
    opacity: 0; visibility: hidden; pointer-events: none;
}

.arc-reactor-container {
    position: relative;
    width: 200px; height: 200px;
    cursor: pointer;
    transition: transform 0.2s;
}
.arc-reactor-container:active { transform: scale(0.95); }

.arc-core {
    position: absolute;
    top: 50%; left: 50%;
    width: 60px; height: 60px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #fff 0%, var(--arc-blue) 60%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--arc-blue), 0 0 40px var(--arc-blue);
    z-index: 2;
    transition: box-shadow 0.3s;
    animation: pulse-idle 2s infinite ease-in-out;
}

@keyframes pulse-idle {
    0%   { box-shadow: 0 0 20px var(--arc-blue), 0 0 40px var(--arc-blue-dim); }
    50%  { box-shadow: 0 0 30px var(--arc-blue), 0 0 60px var(--arc-blue); }
    100% { box-shadow: 0 0 20px var(--arc-blue), 0 0 40px var(--arc-blue-dim); }
}

.arc-ring {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 8px solid var(--arc-blue-dim);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--arc-blue-dim), inset 0 0 10px var(--arc-blue-dim);
    display: flex;
    align-items: center;
    justify-content: center;
}
.arc-ring::after {
    content: '';
    position: absolute;
    width: 85%; height: 85%;
    border: 2px solid var(--arc-blue);
    border-radius: 50%;
    opacity: 0.6;
}

.loading-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 210px; height: 210px;
    border-radius: 50%;
    background: conic-gradient(var(--arc-blue) 0%, transparent 0%);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 0 10px var(--arc-blue-dim);
    mask: radial-gradient(transparent 65%, black 66%);
    -webkit-mask: radial-gradient(transparent 65%, black 66%);
}
.arc-reactor-container.charging .loading-ring {
    opacity: 1;
    animation: load-fill 2s linear forwards;
}
@keyframes load-fill {
    0%   { background: conic-gradient(var(--arc-blue) 0%, transparent 0%); }
    100% { background: conic-gradient(var(--arc-blue) 360deg, transparent 360deg); }
}

.start-coil {
    position: absolute;
    width: 100%; height: 100%;
    animation: rotate 10s linear infinite;
}
.coil {
    position: absolute;
    top: 10px; left: 50%;
    width: 20px; height: 30px;
    background: #111;
    border: 1px solid var(--arc-blue);
    transform-origin: 50% 90px;
    box-shadow: 0 0 5px var(--arc-blue);
}
.coil:nth-child(1) { transform: translateX(-50%) rotate(0deg); }
.coil:nth-child(2) { transform: translateX(-50%) rotate(45deg); }
.coil:nth-child(3) { transform: translateX(-50%) rotate(90deg); }
.coil:nth-child(4) { transform: translateX(-50%) rotate(135deg); }
.coil:nth-child(5) { transform: translateX(-50%) rotate(180deg); }
.coil:nth-child(6) { transform: translateX(-50%) rotate(225deg); }
.coil:nth-child(7) { transform: translateX(-50%) rotate(270deg); }
.coil:nth-child(8) { transform: translateX(-50%) rotate(315deg); }

.arc-reactor-container.charging .arc-core {
    box-shadow: 0 0 60px #fff, 0 0 100px var(--arc-blue);
    background: white;
}
.arc-reactor-container.charging .arc-ring {
    border-color: #fff;
    box-shadow: 0 0 30px var(--arc-blue), inset 0 0 30px var(--arc-blue);
}

#instruction-text {
    margin-top: 40px;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--arc-blue);
    opacity: 0.8;
    text-shadow: 0 0 5px var(--arc-blue);
    font-family: var(--font-mono);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ============================================
   DASHBOARD
   ============================================ */
#dashboard-container {
    width: 100%;
    height: 100vh;
    opacity: 0;
    transition: opacity 1.5s ease-out;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    perspective: 1200px;
    z-index: 200;
}
#dashboard-container.active {
    opacity: 1;
    display: flex;
}

/* ============================================
   SLIDER
   ============================================ */
.slider-track {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.card {
    position: absolute;
    width: 75vw;
    height: 80vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.15);
    border-radius: 15px;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    z-index: 0;
    backdrop-filter: blur(10px);
    will-change: transform, opacity;
}

/* ============================================
   WIREFRAME SCHEMATIC OVERLAY ON CARDS
   ============================================ */
.card-schematic {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
    overflow: hidden;
    border-radius: 15px;
}
.card.active .card-schematic { opacity: 0.12; }
.card-schematic::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px solid var(--arc-blue);
    box-shadow: 0 0 4px rgba(0, 247, 255, 0.2);
}
.card-schematic::after {
    content: '';
    position: absolute;
    top: 30%; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--arc-blue), transparent);
    box-shadow: 0 0 8px var(--arc-blue);
    animation: schematic-scan 3s ease-in-out infinite;
}
@keyframes schematic-scan {
    0%, 100% { top: 30%; opacity: 0.3; }
    50%      { top: 70%; opacity: 0.8; }
}

.card.active {
    transform: translateX(0) scale(1) rotateY(0deg);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 0 50px rgba(0, 247, 255, 0.3);
    animation: card-impact 0.55s ease-out;
}
@keyframes card-impact {
    0%   { filter: brightness(1.7); box-shadow: 0 0 100px rgba(0, 247, 255, 0.85), inset 0 0 40px rgba(0, 247, 255, 0.3); }
    40%  { filter: brightness(1.15); }
    100% { filter: brightness(1); box-shadow: 0 0 50px rgba(0, 247, 255, 0.3); }
}

.card::before,
.card::after {
    content: '';
    position: absolute;
    width: 28px; height: 28px;
    pointer-events: none;
    border: 2px solid var(--arc-blue);
    box-shadow: 0 0 8px rgba(0, 247, 255, 0.5);
    transition: border-color 0.4s, box-shadow 0.4s;
}
.card::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.card::after  { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.card.active::before,
.card.active::after {
    border-color: var(--arc-amber);
    box-shadow: 0 0 14px rgba(255, 183, 77, 0.6);
}
.card.prev::before, .card.prev::after,
.card.next::before, .card.next::after { opacity: 0.3; }

.card.prev {
    transform: translateX(-85%) scale(0.85) rotateY(25deg);
    opacity: 0.4; z-index: 5; pointer-events: none;
}
.card.next {
    transform: translateX(85%) scale(0.85) rotateY(-25deg);
    opacity: 0.4; z-index: 5; pointer-events: none;
}

/* ============================================
   CARD HEADER
   ============================================ */
.card-header { position: relative; }
.card-header h2 {
    color: var(--arc-blue);
    letter-spacing: 4px;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--arc-blue);
}

.mark-badge {
    position: absolute;
    top: 0; right: 0;
    display: inline-block;
    padding: 3px 12px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--arc-blue);
    background: rgba(0, 247, 255, 0.08);
    border: 1px solid var(--arc-blue);
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.3), inset 0 0 6px rgba(0, 247, 255, 0.15);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    animation: mark-pulse 2.4s ease-in-out infinite;
}
@keyframes mark-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 247, 255, 0.3); }
    50%      { box-shadow: 0 0 16px rgba(0, 247, 255, 0.7); }
}

.slide-count {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--arc-blue-dim);
    letter-spacing: 2px;
    margin-left: 12px;
    font-weight: 400;
    text-shadow: none;
    opacity: 0.7;
    vertical-align: middle;
}

.hud-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--arc-blue), transparent);
    margin-bottom: 2rem;
}

/* ============================================
   CARD CONTENT
   ============================================ */
.card-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
    scrollbar-width: thin;
    scrollbar-color: var(--arc-blue) rgba(0, 247, 255, 0.1);
}
.card-content::after {
    content: '';
    position: sticky;
    bottom: 0;
    display: block;
    width: 100%;
    height: 24px;
    background: linear-gradient(to bottom, transparent, var(--glass-bg));
    pointer-events: none;
    flex-shrink: 0;
}
.card-content::-webkit-scrollbar { width: 6px; }
.card-content::-webkit-scrollbar-track { background: rgba(0, 247, 255, 0.1); }
.card-content::-webkit-scrollbar-thumb { background: var(--arc-blue); border-radius: 3px; }

/* ============================================
   NAV ARROWS
   ============================================ */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 247, 255, 0.08);
    border: 2px solid var(--arc-blue);
    color: var(--arc-blue);
    font-family: var(--font-tech);
    font-size: 1.6rem;
    font-weight: 700;
    width: 56px; height: 72px;
    border-radius: 0;
    cursor: pointer;
    z-index: 20;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    text-shadow: 0 0 6px var(--arc-blue);
    box-shadow: 0 0 18px rgba(0, 247, 255, 0.25), inset 0 0 8px rgba(0, 247, 255, 0.2);
}
#nav-prev { clip-path: polygon(0 50%, 30% 0, 100% 0, 100% 100%, 30% 100%); left: 20px; }
#nav-next { clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%); right: 20px; }
.nav-arrow:hover {
    background: var(--arc-amber);
    color: #000;
    border-color: var(--arc-amber);
    box-shadow: 0 0 24px var(--arc-amber), inset 0 0 12px rgba(255, 183, 77, 0.4);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
    text-shadow: none;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 20;
    padding: 6px 14px;
    background: rgba(0, 247, 255, 0.05);
    border: 1px solid rgba(0, 247, 255, 0.15);
    border-radius: 20px;
}
.dot {
    width: 12px; height: 12px;
    border: 1px solid var(--arc-blue);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
}
.dot.active {
    background: var(--arc-blue);
    box-shadow: 0 0 10px var(--arc-blue);
}

/* ============================================
   CONTENT STYLES
   ============================================ */
.profile-section { margin-bottom: 2rem; }
.profile-section h3 {
    color: var(--arc-blue-dim);
    border-bottom: 1px solid var(--arc-blue-dim);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.profile-section h3::before {
    content: '// ';
    color: var(--arc-blue);
    font-weight: 700;
}

.skill-list { list-style: none; }
.skill-list li { margin-bottom: 1rem; }
.skill-list span { display: block; margin-bottom: 0.2rem; font-weight: bold; }

.bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 5px #000;
}
.fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--arc-blue-dim), var(--arc-blue));
    position: relative;
    box-shadow: 0 0 10px var(--arc-blue);
    transition: width 1.1s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.fill::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 2px; height: 100%;
    background: #fff;
    box-shadow: 0 0 8px #fff, 0 0 16px var(--arc-blue);
    opacity: 0;
}
.bar.animate .fill::after { animation: bar-tip-flash 1.2s ease-out; }
@keyframes bar-tip-flash {
    0%, 100% { opacity: 0; }
    60%      { opacity: 1; }
}
.skill-pct {
    float: right;
    font-style: normal;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--arc-blue);
    opacity: 0.85;
    letter-spacing: 1px;
}

/* ============================================
   HUD ATMOSPHERICS
   ============================================ */
#hud-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 150;
    opacity: 0;
    transition: opacity 1.2s ease-in 0.5s;
}
#hud-overlay.active { opacity: 1; }

.hud-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 247, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 247, 255, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.hud-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 247, 255, 0.04) 0px,
        rgba(0, 247, 255, 0.04) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: screen;
}

.hud-beam {
    position: absolute;
    left: 0; right: 0;
    height: 120px;
    top: -120px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(0, 247, 255, 0.08) 50%,
        rgba(0, 247, 255, 0.18) 90%,
        rgba(0, 247, 255, 0.4) 100%);
    box-shadow: 0 0 24px rgba(0, 247, 255, 0.35);
    animation: scan-beam 6s linear infinite;
}
@keyframes scan-beam {
    0%   { transform: translateY(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(120vh); opacity: 0; }
}

.hud-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ============================================
   CORNER MINI ARC REACTOR
   ============================================ */
#hud-corner-reactor {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 220;
    width: 48px; height: 48px;
    opacity: 0;
    transition: opacity 1s ease-in 0.6s;
    pointer-events: none;
}
#hud-corner-reactor.active { opacity: 1; }
.hud-corner-label { display: none; }
.pagination { display: none; }

.mini-ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--arc-blue);
    border-top-color: transparent;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.6), inset 0 0 8px rgba(0, 247, 255, 0.4);
    animation: spin-cw 4s linear infinite;
}
.mini-ring-2 {
    inset: 6px;
    border: 1px solid var(--arc-blue-dim);
    border-bottom-color: transparent;
    box-shadow: none;
    animation: spin-ccw 3s linear infinite;
}
.mini-core {
    position: absolute;
    top: 50%; left: 50%;
    width: 14px; height: 14px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #fff 0%, var(--arc-blue) 70%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--arc-blue);
    animation: pulse-idle 2s infinite ease-in-out;
}
#hud-corner-reactor.active .mini-core {
    animation: mini-repulsor-pulse 1.6s ease-in-out infinite;
}
@keyframes mini-repulsor-pulse {
    0%, 100% { box-shadow: 0 0 10px var(--arc-blue), 0 0 20px var(--arc-blue); transform: translate(-50%, -50%) scale(1); }
    50%      { box-shadow: 0 0 20px #fff, 0 0 40px var(--arc-blue), 0 0 60px var(--arc-blue); transform: translate(-50%, -50%) scale(1.3); }
}

.hud-corner-label {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--arc-blue);
    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    white-space: nowrap;
    text-shadow: 0 0 6px rgba(0, 247, 255, 0.6);
    opacity: 0.85;
}

@keyframes spin-cw  { to { transform: rotate(360deg); } }
@keyframes spin-ccw { to { transform: rotate(-360deg); } }

/* ============================================
   TELEMETRY
   ============================================ */
#hud-telemetry {
    position: fixed;
    top: 18px; right: 24px;
    z-index: 220;
    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    line-height: 1.5;
    color: var(--arc-blue);
    text-align: right;
    opacity: 0;
    transition: opacity 1s ease-in 0.8s;
    pointer-events: none;
    text-shadow: 0 0 6px rgba(0, 247, 255, 0.5);
}
#hud-telemetry.active { opacity: 0.85; }
.tel-row { display: flex; justify-content: flex-end; gap: 12px; }
.tel-key { color: var(--arc-blue-dim); min-width: 36px; text-align: left; }
.tel-val { min-width: 110px; text-align: right; }
.tel-val.tel-ok { color: #76ff9c; text-shadow: 0 0 6px rgba(118, 255, 156, 0.5); }

/* ============================================
   CARD HEADLINE GLOW
   ============================================ */
.card.active .card-header h2 {
    animation: headline-glow 3s ease-in-out infinite;
}
@keyframes headline-glow {
    0%, 100% { text-shadow: 0 0 8px var(--arc-blue), 0 0 18px rgba(0, 247, 255, 0.35); }
    50%      { text-shadow: 0 0 14px var(--arc-blue), 0 0 32px rgba(0, 247, 255, 0.6); }
}

/* ============================================
   PROJECTS
   ============================================ */
.project-item {
    position: relative;
    background: rgba(0, 90, 94, 0.2);
    border: 1px solid var(--arc-blue-dim);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    transition: transform 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}
.project-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 247, 255, 0.1);
    border-color: var(--arc-amber);
    box-shadow: 0 0 18px rgba(255, 183, 77, 0.25);
}
.project-item::before,
.project-item::after {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    border: 2px solid var(--arc-amber);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.project-item::before { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.project-item::after  { bottom: 6px; right: 6px; border-left: none; border-top: none; }
.project-item:hover::before,
.project-item:hover::after { opacity: 1; }

.project-item .scan-line {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--arc-amber), transparent);
    box-shadow: 0 0 8px var(--arc-amber);
    opacity: 0;
    pointer-events: none;
    top: 0;
}
.project-item:hover .scan-line {
    opacity: 0.85;
    animation: scan-line-sweep 1.6s linear infinite;
}
@keyframes scan-line-sweep {
    0%   { top: 0; }
    100% { top: 100%; }
}
.project-item h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 6px rgba(0, 247, 255, 0.4);
}
.status-tag {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 2px 8px;
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--arc-amber);
    border: 1px solid var(--arc-amber);
    background: rgba(255, 183, 77, 0.08);
    box-shadow: 0 0 8px rgba(255, 183, 77, 0.3);
    vertical-align: middle;
    animation: status-pulse 2.4s ease-in-out infinite;
}
@keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(255, 183, 77, 0.3); }
    50%      { box-shadow: 0 0 14px rgba(255, 183, 77, 0.7); }
}

.tech-stack {
    color: var(--arc-blue);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-family: monospace;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.tech-chip {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid var(--arc-blue-dim);
    background: rgba(0, 247, 255, 0.06);
    border-radius: 3px;
    font-size: 0.8rem;
    color: var(--arc-blue);
    letter-spacing: 1px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tech-chip:hover {
    background: rgba(0, 247, 255, 0.18);
    border-color: var(--arc-blue);
    color: #fff;
}
.tech-meta {
    color: var(--arc-amber);
    margin-left: auto;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.btn-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--arc-blue);
    color: var(--arc-blue);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s;
}
.btn-link:hover {
    background: var(--arc-blue);
    color: #000;
    box-shadow: 0 0 14px var(--arc-blue);
}
.btn-resume {
    border-color: var(--arc-amber);
    color: var(--arc-amber);
    letter-spacing: 2px;
    font-weight: 700;
    background: rgba(255, 183, 77, 0.05);
}
.btn-resume:hover {
    background: var(--arc-amber);
    color: #000;
    box-shadow: 0 0 18px var(--arc-amber);
}

/* ============================================
   REFERENCES
   ============================================ */
.reference-item {
    border-left: 3px solid var(--arc-blue);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}
.reference-item blockquote {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.15);
}
.reference-item cite {
    display: block;
    color: var(--arc-blue);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-style: normal;
}
.ref-title {
    color: var(--arc-amber);
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-top: 2px;
    opacity: 0.85;
}

.ref-contact { margin-top: 5px; font-size: 0.8rem; color: var(--arc-blue-dim); }
.ref-link { color: inherit; text-decoration: none; transition: color 0.3s; margin-right: 12px; }
.ref-link:hover { color: var(--arc-blue); }

.project-features { list-style: none; padding: 0; font-size: 0.9rem; opacity: 0.9; }
.project-features li { margin-bottom: 5px; }
.project-link { color: var(--arc-blue); }
.project-link:hover { color: var(--text-main); }
.contact-link { color: var(--text-main); text-decoration: none; transition: color 0.3s; }
.contact-link:hover { color: var(--arc-blue); }
.edu-list { list-style: none; padding-left: 0; opacity: 0.8; font-size: 0.9em; }
.bio-text { margin-top: 10px; }
.project-item.has-link { cursor: pointer; }
.project-item.has-link:focus-visible { outline: 2px solid var(--arc-amber); outline-offset: 4px; }

/* ============================================
   REPULSOR BLAST ON CLICK
   ============================================ */
.repulsor-blast {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    width: 0; height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--arc-blue) 0%, rgba(0, 247, 255, 0.4) 30%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: blast-ring 0.5s ease-out forwards;
}
@keyframes blast-ring {
    0%   { width: 0; height: 0; opacity: 1; }
    100% { width: 120px; height: 120px; opacity: 0; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .card { width: 90vw; padding: 1.5rem; }
    .card-header h2 { font-size: 1.5rem; letter-spacing: 3px; }
    .nav-arrow { width: 40px; height: 60px; font-size: 1.2rem; }
    #nav-prev { left: 6px; }
    #nav-next { right: 6px; }
    .hud-corner-label { display: none; }
    #hud-corner-reactor { width: 36px; height: 36px; bottom: 12px; left: 50%; transform: translateX(-50%); top: auto; }
    #hud-telemetry { font-size: 0.65rem; top: 12px; right: 12px; }
    #hud-telemetry .tel-row:nth-child(n+4) { display: none; }
    .tel-val { min-width: 80px; }
    .mark-badge { font-size: 0.55rem; padding: 2px 8px; letter-spacing: 2px; }
}
@media (max-width: 480px) {
    .card { width: 94vw; padding: 1rem; height: 78vh; }
    .card-header h2 { font-size: 1.25rem; letter-spacing: 2px; }
    .card-content { font-size: 0.95rem; }
    .nav-arrow { width: 32px; height: 48px; font-size: 1rem; }
    .project-item { padding: 1rem; }
    .pagination { bottom: 12px; padding: 4px 10px; gap: 10px; }
    .dot { width: 9px; height: 9px; }
    #hud-telemetry .tel-row:nth-child(n+3) { display: none; }
    #particles-layer { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hud-beam { display: none; }
    #particles-layer { display: none; }
}

/* ============================================
   PREMIUM IRONMAN POLISH ADDITIONS
   ============================================ */
:root { --iron-red:#b11226; --iron-red-deep:#5d0713; --iron-gold:#ffd166; }
body.reduced-motion *, body.reduced-motion *::before, body.reduced-motion *::after { animation-duration:0.01ms!important; animation-iteration-count:1!important; transition-duration:0.01ms!important; }
body.reduced-motion .hud-beam, body.reduced-motion #particles-layer { display:none!important; }
#skip-activation, #motion-toggle { font-family:var(--font-tech); text-transform:uppercase; letter-spacing:2px; color:var(--iron-gold); background:linear-gradient(135deg,rgba(177,18,38,.16),rgba(255,209,102,.06)); border:1px solid rgba(255,209,102,.75); clip-path:polygon(10px 0,100% 0,calc(100% - 10px) 100%,0 100%); box-shadow:0 0 14px rgba(255,209,102,.22), inset 0 0 10px rgba(177,18,38,.2); cursor:pointer; transition:transform .25s,background .25s,color .25s,box-shadow .25s; }
#skip-activation { margin-top:22px; padding:.55rem 1.2rem; font-size:.78rem; }
#motion-toggle { position:absolute; left:50%; top:22px; transform:translateX(-50%); z-index:230; padding:.45rem 1rem; font-size:.72rem; }
#skip-activation:hover, #motion-toggle:hover { background:var(--iron-gold); color:#13080a; box-shadow:0 0 24px rgba(255,209,102,.75); }
#motion-toggle:hover { transform:translateX(-50%) translateY(-1px); }
.hero-panel { position:relative; padding:1.4rem; margin-bottom:1.2rem; border:1px solid rgba(255,209,102,.38); background:linear-gradient(135deg,rgba(177,18,38,.22),transparent 42%),radial-gradient(circle at 82% 20%,rgba(255,209,102,.16),transparent 30%),rgba(0,247,255,.045); box-shadow:0 0 28px rgba(177,18,38,.16), inset 0 0 20px rgba(255,209,102,.05); overflow:hidden; }
.hero-panel::after { content:''; position:absolute; inset:0; background:linear-gradient(100deg,transparent 0%,rgba(255,255,255,.08) 45%,transparent 60%); transform:translateX(-120%); animation:armor-sheen 5s ease-in-out infinite; pointer-events:none; }
@keyframes armor-sheen { 0%,55%{transform:translateX(-120%)} 75%,100%{transform:translateX(120%)} }
.eyebrow { color:var(--iron-gold); font-family:var(--font-mono); font-size:.75rem; letter-spacing:2px; text-transform:uppercase; margin-bottom:.35rem; }
.hero-panel h1 { color:#fff; font-size:clamp(2.2rem,5vw,4.5rem); line-height:.95; letter-spacing:5px; text-transform:uppercase; text-shadow:0 0 14px rgba(0,247,255,.7),0 0 28px rgba(255,209,102,.32); }
.hero-role { color:var(--arc-blue); font-size:1.35rem; letter-spacing:2px; text-transform:uppercase; margin-top:.4rem; }
.hero-summary { max-width:760px; margin-top:.4rem; opacity:.9; }
.hero-actions { display:flex; flex-wrap:wrap; gap:.7rem; margin-top:.3rem; }
.core-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; margin-bottom:1.6rem; }
.core-stats div { padding:.8rem; border:1px solid rgba(0,247,255,.24); background:rgba(0,90,94,.14); box-shadow:inset 0 0 12px rgba(0,247,255,.05); }
.core-stats span, .core-stats strong { display:block; }
.core-stats span { color:var(--arc-blue-dim); font-family:var(--font-mono); font-size:.68rem; letter-spacing:2px; text-transform:uppercase; }
.core-stats strong { color:#fff; margin-top:.25rem; letter-spacing:1px; }
.achievement-badge { display:inline-block; margin-left:.45rem; padding:2px 8px; color:var(--iron-gold); border:1px solid rgba(255,209,102,.8); background:rgba(177,18,38,.18); font-family:var(--font-mono); font-size:.66rem; letter-spacing:1.5px; vertical-align:middle; box-shadow:0 0 10px rgba(255,209,102,.22); }
.achievement-badge.inline { margin-left:.2rem; font-size:.62rem; }
.card.active { border-color:rgba(255,209,102,.55); background:linear-gradient(135deg,rgba(177,18,38,.08),transparent 35%),var(--glass-bg); }
.card.active .card-content > * { animation:section-reveal .55s ease both; }
.card.active .card-content > *:nth-child(2){animation-delay:.08s}.card.active .card-content > *:nth-child(3){animation-delay:.16s}.card.active .card-content > *:nth-child(4){animation-delay:.24s}.card.active .card-content > *:nth-child(5){animation-delay:.32s}
@keyframes section-reveal { from{opacity:0;transform:translateY(14px);filter:blur(3px)} to{opacity:1;transform:translateY(0);filter:blur(0)} }
.card.active::before, .card.active::after { width:42px; height:42px; }
.btn-link { position:relative; overflow:hidden; }
.btn-link::after { content:''; position:absolute; left:50%; top:50%; width:0; height:0; background:radial-gradient(circle,rgba(255,255,255,.65),transparent 65%); transform:translate(-50%,-50%); transition:width .35s,height .35s,opacity .35s; opacity:0; }
.btn-link:hover::after { width:160px; height:160px; opacity:.25; }
@media (max-width:768px){ #motion-toggle{top:auto;bottom:58px;font-size:.62rem;padding:.35rem .7rem}.core-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-panel{padding:1rem}.hero-panel h1{letter-spacing:3px} }
@media (max-width:480px){ .core-stats{grid-template-columns:1fr}.hero-actions .btn-link{width:100%;text-align:center} }

/* Futuristic calm-motion pass: remove old horizontal scanning bars */
.hud-beam,
.card-schematic,
.project-item .scan-line,
.hud-line::after,
.hero-panel::after {
    display: none !important;
    animation: none !important;
}
.hud-scanlines {
    opacity: 0.08;
    background: none !important;
}
.card {
    transition:
        transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.42s ease-out,
        filter 0.42s ease-out,
        border-color 0.36s ease-out,
        box-shadow 0.36s ease-out;
}
.card.active .card-content > * {
    animation: section-reveal 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.btn-link,
.nav-arrow,
.dot,
.core-stats div,
.project-item,
.reference-item {
    transition:
        transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.24s ease-out,
        border-color 0.24s ease-out,
        box-shadow 0.24s ease-out,
        color 0.24s ease-out;
}

/* Single arc policy: suit plates cut around existing activation reactor */
#suit-assembly-overlay {
    -webkit-mask-image: radial-gradient(circle at center, transparent 128px, #000 131px);
    mask-image: radial-gradient(circle at center, transparent 128px, #000 131px);
}

/* Reactor iris handoff: cooler suit-up to dashboard transition */
.system-transition {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.22) 0 1%, rgba(0,212,255,0.18) 2% 8%, transparent 20%),
        radial-gradient(ellipse at center, rgba(0,212,255,0.1), rgba(1,4,10,0.86) 56%, rgba(1,4,10,0.98) 100%);
    clip-path: circle(0% at 50% 50%);
    transition:
        clip-path 0.72s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.28s ease-out;
}
.system-transition.active {
    opacity: 1;
    animation: iris-handoff 1.36s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.system-transition .iris-ring,
.system-transition .iris-core {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.system-transition .iris-ring {
    width: 220px;
    height: 220px;
    border: 1px solid rgba(0,212,255,0.8);
    box-shadow: 0 0 38px rgba(0,212,255,0.7), inset 0 0 34px rgba(0,212,255,0.22);
    animation: iris-ring-collapse 1.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.system-transition .iris-core {
    width: 64px;
    height: 64px;
    background: radial-gradient(circle, #fff 0 18%, #bdfaff 19% 42%, rgba(0,212,255,0.78) 43% 70%, transparent 72%);
    box-shadow: 0 0 28px #fff, 0 0 86px rgba(0,212,255,0.78);
    animation: iris-core-pop 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes iris-handoff {
    0% { clip-path: circle(0% at 50% 50%); opacity: 0; }
    18% { clip-path: circle(18% at 50% 50%); opacity: 1; }
    56% { clip-path: circle(142% at 50% 50%); opacity: 1; }
    100% { clip-path: circle(142% at 50% 50%); opacity: 0; }
}
@keyframes iris-ring-collapse {
    0% { transform: translate(-50%, -50%) scale(0.52) rotate(0deg); opacity: 0; }
    28% { transform: translate(-50%, -50%) scale(1) rotate(90deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(3.6) rotate(360deg); opacity: 0; }
}
@keyframes iris-core-pop {
    0% { transform: translate(-50%, -50%) scale(0.34); opacity: 0; }
    30% { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.08); opacity: 0; }
}
