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

:root {
    --neon-green: #00ff41;
    --neon-blue: #00d4ff;
    --neon-purple: #b300ff;
    --dark-bg: #0a0a0f;
    --card-bg: rgba(10, 15, 20, 0.85);
    --terminal-bg: rgba(0, 10, 20, 0.95);
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    min-height: 100vh;
    overflow-x: hidden;
    color: white;
    cursor: default;
}

/* ===== PCB BAKGRUNN ===== */
/* ===== PCB BAKGRUNN ===== */
.pcb-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

.pcb-svg {
    width: 100%;
    height: 100%;
}

/* PCB trace animasjon - pulserende lys i sporene */
.pcb-traces path {
    animation: tracePulse 4s ease-in-out infinite;
}

@keyframes tracePulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.pcb-traces path:nth-child(odd) {
    animation-delay: 2s;
}

/* Signal traces - raskere puls */
.pcb-signal-traces path {
    animation: signalPulse 2s ease-in-out infinite;
}

@keyframes signalPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Komponent hover effekt */
.smd-components rect:hover {
    filter: brightness(1.5);
    transition: filter 0.3s ease;
}

/* Pustende LED tekst */
.pcb-leds text {
    animation: ledLabelFade 3s ease-in-out infinite;
}

@keyframes ledLabelFade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.pcb-traces path {
    animation: traceFlow 4s ease-in-out infinite;
}

@keyframes traceFlow {
    0%, 100% { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
    50% { stroke-dasharray: 1000; stroke-dashoffset: 0; }
}

/* SMD komponent hover effekt */
.smd-components rect:hover {
    filter: brightness(1.5);
    transition: filter 0.3s ease;
}

/* Lysdioder - Ekstra glow effekt */
.pcb-leds circle:first-child {
    filter: blur(1px);
}

/* PCB silkscreen */
.pcb-silkscreen text {
    animation: silkscreenFade 5s ease-in-out infinite;
}

@keyframes silkscreenFade {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.35; }
}

/* Canvas bakgrunn */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Grid overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Data streams */
.data-streams {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.stream {
    position: absolute;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--neon-green), transparent);
    animation: streamFall linear infinite;
    opacity: 0;
}

.stream:nth-child(1) { left: 10%; animation-duration: 3s; animation-delay: 0s; }
.stream:nth-child(2) { left: 30%; animation-duration: 4s; animation-delay: 1s; }
.stream:nth-child(3) { left: 50%; animation-duration: 3.5s; animation-delay: 2s; }
.stream:nth-child(4) { left: 70%; animation-duration: 4.5s; animation-delay: 0.5s; }
.stream:nth-child(5) { left: 90%; animation-duration: 3.2s; animation-delay: 1.5s; }

@keyframes streamFall {
    0% { 
        height: 100px; 
        top: -100px; 
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        height: 200px; 
        top: 100vh; 
        opacity: 0;
    }
}

/* Hoved container */
.main-container {
    position: relative;
    z-index: 10;
    display: flex;
    min-height: 100vh;
    padding: 20px;
}

/* Side panels */
.side-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.side-panel.left { align-items: flex-end; padding-right: 30px; }
.side-panel.right { align-items: flex-start; padding-left: 30px; }

.vertical-text {
    writing-mode: vertical-lr;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    letter-spacing: 15px;
    color: var(--neon-green);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    opacity: 0.7;
    animation: textPulse 3s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.circuit-lines {
    margin-top: 30px;
    width: 100px;
    opacity: 0.4;
}

.circuit-path {
    fill: none;
    stroke: var(--neon-green);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawCircuit 5s ease-in-out infinite;
}

@keyframes drawCircuit {
    0% { stroke-dashoffset: 1000; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1000; }
}

.node {
    fill: var(--neon-green);
    animation: nodeGlow 2s ease-in-out infinite;
}

@keyframes nodeGlow {
    0%, 100% { opacity: 0.3; r: 3; }
    50% { opacity: 1; r: 5; }
}

/* Center content */
.center-content {
    flex: 0 0 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* ===== IC CHIP CONTAINER ===== */
.ic-chip-container {
    position: absolute;
    top: 20px;
    right: -60px;
    z-index: 5;
    animation: chipFloat 4s ease-in-out infinite;
}

@keyframes chipFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

.ic-chip {
    position: relative;
    width: 100px;
    height: 100px;
    transform: rotate(-15deg);
}

/* Chip kropp */
.chip-body {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0f 100%);
    border: 2px solid rgba(0, 255, 65, 0.4);
    border-radius: 5px;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.2),
        inset 0 0 20px rgba(0, 255, 65, 0.05);
    animation: chipBodyPulse 3s ease-in-out infinite;
    overflow: hidden;
}

@keyframes chipBodyPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 65, 0.2), inset 0 0 20px rgba(0, 255, 65, 0.05); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 65, 0.4), inset 0 0 30px rgba(0, 255, 65, 0.1); }
}

.chip-surface {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Chip label */
.chip-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    color: rgba(0, 255, 65, 0.6);
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

/* Chip kjerne */
.chip-core {
    position: relative;
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
}

.core-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 
        0 0 15px rgba(0, 255, 65, 0.8),
        0 0 30px rgba(0, 255, 65, 0.4),
        0 0 45px rgba(0, 255, 65, 0.2);
    animation: coreBeat 1.5s ease-in-out infinite;
}

@keyframes coreBeat {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 15px rgba(0, 255, 65, 0.8), 0 0 30px rgba(0, 255, 65, 0.4);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.3);
        box-shadow: 0 0 25px rgba(0, 255, 65, 1), 0 0 50px rgba(0, 255, 65, 0.6), 0 0 75px rgba(0, 255, 65, 0.3);
    }
}

.core-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 255, 65, 0.5);
    border-radius: 50%;
    animation: corePulseRing 1.5s ease-in-out infinite;
}

@keyframes corePulseRing {
    0% { 
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% { 
        width: 50px;
        height: 50px;
        opacity: 0;
    }
}

/* Data linjer på chip */
.data-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.data-line {
    position: absolute;
    background: rgba(0, 255, 65, 0.3);
    animation: dataLineFlow 2s ease-in-out infinite;
}

.data-line:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 80%;
    height: 1px;
    animation-delay: 0s;
}

.data-line:nth-child(2) {
    top: 50%;
    left: 10%;
    width: 60%;
    height: 1px;
    animation-delay: 0.7s;
}

.data-line:nth-child(3) {
    top: 70%;
    left: 15%;
    width: 70%;
    height: 1px;
    animation-delay: 1.4s;
}

@keyframes dataLineFlow {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.8; }
}

/* ===== PINS ===== */
.pins {
    position: absolute;
    display: flex;
    gap: 2px;
}

/* Venstre pins */
.left-pins {
    left: 7px;
    top: 25px;
    flex-direction: column;
}

.left-pins .pin {
    width: 12px;
    height: 3px;
    background: linear-gradient(90deg, #c0c0c0, #e0e0e0, #c0c0c0);
    border-radius: 1px;
    animation: pinGlow 2s ease-in-out infinite;
}

/* Høyre pins */
.right-pins {
    right: 7px;
    top: 25px;
    flex-direction: column;
}

.right-pins .pin {
    width: 12px;
    height: 3px;
    background: linear-gradient(90deg, #e0e0e0, #c0c0c0, #e0e0e0);
    border-radius: 1px;
    animation: pinGlow 2s ease-in-out infinite;
}

/* Topp pins */
.top-pins {
    top: 7px;
    left: 25px;
    flex-direction: row;
}

.top-pins .pin {
    width: 3px;
    height: 12px;
    background: linear-gradient(0deg, #e0e0e0, #c0c0c0, #e0e0e0);
    border-radius: 1px;
    animation: pinGlow 2s ease-in-out infinite;
}

/* Bunn pins */
.bottom-pins {
    bottom: 7px;
    left: 25px;
    flex-direction: row;
}

.bottom-pins .pin {
    width: 3px;
    height: 12px;
    background: linear-gradient(0deg, #c0c0c0, #e0e0e0, #c0c0c0);
    border-radius: 1px;
    animation: pinGlow 2s ease-in-out infinite;
}

/* Pin glød animasjon */
@keyframes pinGlow {
    0%, 100% { 
        box-shadow: 0 0 2px rgba(0, 255, 65, 0.2);
        background: linear-gradient(90deg, #c0c0c0, #e0e0e0, #c0c0c0);
    }
    50% { 
        box-shadow: 0 0 5px rgba(0, 255, 65, 0.6), 0 0 10px rgba(0, 255, 65, 0.3);
        background: linear-gradient(90deg, #e0ffe0, #ffffff, #e0ffe0);
    }
}

/* Individuelle pin forsinkelser */
.left-pins .pin:nth-child(1), .right-pins .pin:nth-child(1) { animation-delay: 0s; }
.left-pins .pin:nth-child(2), .right-pins .pin:nth-child(2) { animation-delay: 0.2s; }
.left-pins .pin:nth-child(3), .right-pins .pin:nth-child(3) { animation-delay: 0.4s; }
.left-pins .pin:nth-child(4), .right-pins .pin:nth-child(4) { animation-delay: 0.6s; }
.left-pins .pin:nth-child(5), .right-pins .pin:nth-child(5) { animation-delay: 0.8s; }
.left-pins .pin:nth-child(6), .right-pins .pin:nth-child(6) { animation-delay: 1.0s; }
.left-pins .pin:nth-child(7), .right-pins .pin:nth-child(7) { animation-delay: 1.2s; }
.left-pins .pin:nth-child(8), .right-pins .pin:nth-child(8) { animation-delay: 1.4s; }

.top-pins .pin:nth-child(1), .bottom-pins .pin:nth-child(1) { animation-delay: 0.3s; }
.top-pins .pin:nth-child(2), .bottom-pins .pin:nth-child(2) { animation-delay: 0.6s; }
.top-pins .pin:nth-child(3), .bottom-pins .pin:nth-child(3) { animation-delay: 0.9s; }
.top-pins .pin:nth-child(4), .bottom-pins .pin:nth-child(4) { animation-delay: 1.2s; }

/* Chip glow effekt */
.chip-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: chipGlowPulse 3s ease-in-out infinite;
}

@keyframes chipGlowPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.7;
    }
}

/* Svevende data bits */
.floating-bits {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-bits span {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: bold;
    color: var(--neon-green);
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
    animation: bitFloat 2s ease-in-out infinite;
}

.floating-bits span:nth-child(1) {
    top: -15px;
    left: 30%;
    animation-delay: 0s;
}

.floating-bits span:nth-child(2) {
    top: 40%;
    right: -15px;
    animation-delay: 0.5s;
}

.floating-bits span:nth-child(3) {
    bottom: -15px;
    left: 50%;
    animation-delay: 1s;
}

.floating-bits span:nth-child(4) {
    top: 20%;
    left: -15px;
    animation-delay: 1.5s;
}

.floating-bits span:nth-child(5) {
    bottom: 30%;
    right: 20%;
    animation-delay: 0.8s;
}

@keyframes bitFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 1;
    }
}

/* Holographic card */
.holo-card {
    width: 100%;
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    padding: 50px 40px;
    transform-style: preserve-3d;
    animation: cardFloat 6s ease-in-out infinite;
    box-shadow: 
        0 0 50px rgba(0, 255, 65, 0.1),
        inset 0 0 50px rgba(0, 255, 65, 0.05);
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotateX(2deg); }
    25% { transform: translateY(-5px) rotateX(0deg); }
    75% { transform: translateY(5px) rotateX(4deg); }
}

.holo-card-inner {
    position: relative;
    z-index: 1;
}

.holo-scan {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        0deg,
        transparent 0%,
        rgba(0, 255, 65, 0.05) 50%,
        transparent 100%
    );
    animation: hologramScan 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hologramScan {
    0%, 100% { transform: translateY(-100%); }
    50% { transform: translateY(100%); }
}

/* Profil ramme */
.profile-frame {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.rotating-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--neon-green);
    border-left-color: var(--neon-blue);
    animation: rotate 4s linear infinite;
}

.rotating-border.reverse {
    border-top-color: transparent;
    border-left-color: transparent;
    border-bottom-color: var(--neon-purple);
    border-right-color: var(--neon-green);
    animation: rotate 6s linear infinite reverse;
}

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

.profile-img {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #1a1a2e, #0a0a0f);
    border: 2px solid rgba(0, 255, 65, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar {
    position: relative;
    z-index: 2;
}

.avatar-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 72px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
}

.hex-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 65, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 70% 60%, rgba(0, 212, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(179, 0, 255, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particleShift 10s linear infinite;
}

@keyframes particleShift {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.5); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Navn */
.name-container {
    text-align: center;
    margin-bottom: 15px;
}

.glitch-name {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.name-3d {
    font-family: 'Rajdhani', sans-serif;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: white;
    text-shadow: 
        0 0 10px rgba(0, 255, 65, 0.5),
        0 0 20px rgba(0, 255, 65, 0.3),
        0 0 40px rgba(0, 255, 65, 0.2),
        2px 2px 0 var(--neon-green),
        -2px -2px 0 var(--neon-blue);
    animation: glitchMove 3s infinite;
}

@keyframes glitchMove {
    0%, 100% { transform: translate(0); }
    2% { transform: translate(-3px, 2px); }
    4% { transform: translate(3px, -2px); }
    6% { transform: translate(0); }
}

.name-underline {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    margin: 10px auto 0;
    animation: lineExpand 4s ease-in-out infinite;
}

@keyframes lineExpand {
    0%, 100% { width: 0; }
    50% { width: 80%; }
}

/* Velkommen tekst */
.welcome-text {
    text-align: center;
    margin: 20px 0 30px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    color: var(--neon-green);
    min-height: 30px;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Ferdighetskort */
.skills-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.skill-card {
    flex: 1;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
}

.skill-icon {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

/* CPU animasjon */
.cpu-animation {
    position: relative;
    width: 50px;
    height: 50px;
}

.cpu-core {
    width: 40px;
    height: 40px;
    border: 2px solid var(--neon-green);
    border-radius: 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: cpuPulse 2s ease-in-out infinite;
}

@keyframes cpuPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 65, 0.3); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 65, 0.8); }
}

.cpu-pin {
    position: absolute;
    width: 8px;
    height: 4px;
    background: var(--neon-green);
    animation: pinBlink 1s ease-in-out infinite;
}

.cpu-pin:nth-child(2) { top: 0; left: 10px; }
.cpu-pin:nth-child(3) { bottom: 0; left: 20px; animation-delay: 0.3s; }
.cpu-pin:nth-child(4) { top: 10px; right: 0; width: 4px; height: 8px; animation-delay: 0.6s; }
.cpu-pin:nth-child(5) { bottom: 10px; left: 0; width: 4px; height: 8px; animation-delay: 0.9s; }

@keyframes pinBlink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Circuit board */
.circuit-board {
    position: relative;
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 5px;
}

.trace {
    position: absolute;
    background: var(--neon-green);
    animation: traceGlow 2s ease-in-out infinite;
}

.trace:nth-child(1) {
    top: 25%;
    left: 10%;
    width: 30px;
    height: 1px;
}

.trace:nth-child(2) {
    top: 50%;
    left: 20%;
    width: 1px;
    height: 20px;
    animation-delay: 0.5s;
}

.trace:nth-child(3) {
    top: 60%;
    left: 10%;
    width: 25px;
    height: 1px;
    animation-delay: 1s;
}

@keyframes traceGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.led {
    position: absolute;
    bottom: 20%;
    right: 20%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    animation: ledBlink 1s step-end infinite;
}

@keyframes ledBlink {
    0%, 100% { box-shadow: 0 0 5px var(--neon-green); }
    50% { box-shadow: 0 0 15px var(--neon-green), 0 0 25px var(--neon-green); }
}

/* Code animasjon */
.code-animation {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    color: var(--neon-green);
    animation: codeFloat 3s ease-in-out infinite;
}

@keyframes codeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.skill-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.skill-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    border-radius: 2px;
    transition: width 1.5s ease-in-out;
}

.skill-card:hover .skill-fill {
    width: 95% !important;
}

/* Terminal vindu */
.terminal-window {
    background: var(--terminal-bg);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 10px;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
    background: rgba(0, 255, 65, 0.1);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.terminal-btn.close { background: #ff5f56; }
.terminal-btn.minimize { background: #ffbd2e; }
.terminal-btn.maximize { background: #27c93f; }

.terminal-title {
    margin-left: 15px;
    color: rgba(0, 255, 65, 0.5);
    font-size: 12px;
}

.terminal-content {
    padding: 20px;
    min-height: 150px;
}

.line {
    margin-bottom: 5px;
    font-size: 13px;
    opacity: 0;
    animation: lineAppear 0.5s ease forwards;
}

.line:nth-child(1) { animation-delay: 0.5s; }
.line:nth-child(2) { animation-delay: 1s; }
.line:nth-child(3) { animation-delay: 1.5s; }
.line:nth-child(4) { animation-delay: 2s; }
.line:nth-child(5) { animation-delay: 2.5s; }
.line:nth-child(6) { animation-delay: 3s; }
.line:nth-child(7) { animation-delay: 3.5s; }
.line:nth-child(8) { animation-delay: 4s; }
.line:nth-child(9) { animation-delay: 4.5s; }

@keyframes lineAppear {
    to { opacity: 1; }
}

.prompt {
    color: var(--neon-green);
    margin-right: 10px;
}

.command {
    color: white;
}

.output {
    margin-left: 25px;
}

.output span {
    color: rgba(255, 255, 255, 0.7);
}

.cursor {
    color: var(--neon-green);
    animation: blink 1s step-end infinite;
}

/* Hjørner */
.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--neon-green);
    border-style: solid;
    opacity: 0.6;
}

.corner.top-left {
    top: 10px;
    left: 10px;
    border-width: 2px 0 0 2px;
    border-radius: 10px 0 0 0;
}

.corner.top-right {
    top: 10px;
    right: 10px;
    border-width: 2px 2px 0 0;
    border-radius: 0 10px 0 0;
}

.corner.bottom-left {
    bottom: 10px;
    left: 10px;
    border-width: 0 0 2px 2px;
    border-radius: 0 0 0 10px;
}

.corner.bottom-right {
    bottom: 10px;
    right: 10px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 10px 0;
}

/* Flytende data */
.floating-data {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.floating-data span {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(0, 255, 65, 0.15);
    animation: dataFloat 15s linear infinite;
}

.floating-data span:nth-child(1) { top: 20%; left: 5%; animation-delay: 0s; }
.floating-data span:nth-child(2) { top: 50%; right: 10%; animation-delay: 5s; }
.floating-data span:nth-child(3) { bottom: 30%; left: 15%; animation-delay: 10s; }
.floating-data span:nth-child(4) { top: 10%; right: 20%; animation-delay: 7s; }
.floating-data span:nth-child(5) { bottom: 10%; left: 50%; animation-delay: 12s; }

@keyframes dataFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsiv design */
@media (max-width: 1200px) {
    .side-panel { display: none; }
    .center-content { flex: 1; padding: 10px; }
    
    .ic-chip-container {
        right: -20px;
        top: 10px;
    }
    
    .ic-chip {
        transform: rotate(-15deg) scale(0.7);
    }
}

@media (max-width: 768px) {
    .holo-card { padding: 30px 20px; }
    
    .name-3d { font-size: 36px; letter-spacing: 4px; }
    
    .skills-container { flex-direction: column; }
    
    .profile-frame {
        width: 150px;
        height: 150px;
    }
    
    .avatar-text { font-size: 54px; }
    
    .welcome-text { font-size: 14px; }
    
    .ic-chip-container {
        display: none;
    }
    
    .pcb-background {
        opacity: 0.5;
    }
}
/* ===== LENKEKNAPPER ===== */
.link-buttons-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.link-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 20px;
    background: rgba(0, 255, 65, 0.05);
    border: 2px solid rgba(0, 255, 65, 0.2);
    border-radius: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.15), transparent);
    transition: left 0.6s ease;
}

.link-button:hover::before {
    left: 100%;
}

.link-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 255, 65, 0.2);
}

/* BSK Button - Grønn */
.bsk-button {
    border-color: rgba(0, 255, 65, 0.3);
}

.bsk-button:hover {
    border-color: #00ff41;
    box-shadow: 0 15px 35px rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.1);
}

/* LEVEL Button - Blå */
.level-button {
    border-color: rgba(0, 180, 255, 0.3);
}

.level-button:hover {
    border-color: #00b4ff;
    box-shadow: 0 15px 35px rgba(0, 180, 255, 0.3);
    background: rgba(0, 180, 255, 0.1);
}

/* EVENT Button - Lilla */
.event-button {
    border-color: rgba(180, 0, 255, 0.3);
}

.event-button:hover {
    border-color: #b400ff;
    box-shadow: 0 15px 35px rgba(180, 0, 255, 0.3);
    background: rgba(180, 0, 255, 0.1);
}

/* Ikoner */
.link-button-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Server mini (BSK) */
.server-mini {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
}

.server-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff41;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
    animation: serverDotBlink 1.5s ease-in-out infinite;
}

.server-dot:nth-child(1) { animation-delay: 0s; }
.server-dot:nth-child(2) { animation-delay: 0.3s; }
.server-dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes serverDotBlink {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.bsk-button:hover .server-dot {
    animation-duration: 0.8s;
}

/* Level indikator */
.level-indicator {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 30px;
}

.level-bar {
    width: 5px;
    background: rgba(0, 180, 255, 0.3);
    border-radius: 2px;
    transition: all 0.4s ease;
    animation: levelGrow 2s ease-in-out infinite;
}

.level-bar:nth-child(1) { height: 10px; animation-delay: 0s; }
.level-bar:nth-child(2) { height: 17px; animation-delay: 0.2s; }
.level-bar:nth-child(3) { height: 24px; animation-delay: 0.4s; }
.level-bar:nth-child(4) { height: 30px; animation-delay: 0.6s; background: #00b4ff; box-shadow: 0 0 10px rgba(0, 180, 255, 0.5); }
.level-bar:nth-child(5) { height: 30px; animation-delay: 0.8s; background: #00b4ff; box-shadow: 0 0 10px rgba(0, 180, 255, 0.5); }

@keyframes levelGrow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
}

.level-button:hover .level-bar {
    animation-duration: 0.8s;
}

/* Event puls */
.event-pulse {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(180, 0, 255, 0.5);
    border-radius: 50%;
    animation: pulseRing 1.5s ease-out infinite;
}

.pulse-ring:nth-child(1) {
    animation-delay: 0s;
}

.pulse-dot {
    position: relative;
    z-index: 1;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b400ff;
    box-shadow: 0 0 15px rgba(180, 0, 255, 0.8);
    animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseRing {
    0% {
        width: 10px;
        height: 10px;
        opacity: 1;
    }
    100% {
        width: 35px;
        height: 35px;
        opacity: 0;
    }
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.event-button:hover .pulse-ring {
    animation-duration: 0.6s;
}

.event-button:hover .pulse-dot {
    animation-duration: 0.6s;
}

/* Tekst */
.link-button-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: white;
    transition: all 0.3s ease;
}

.link-arrow {
    font-size: 16px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: white;
}

.link-button:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

.link-button:hover .link-button-text {
    transform: translateX(-5px);
}

/* Hover farger for tekst */
.bsk-button:hover .link-button-text { color: #00ff41; text-shadow: 0 0 15px rgba(0, 255, 65, 0.5); }
.level-button:hover .link-button-text { color: #00b4ff; text-shadow: 0 0 15px rgba(0, 180, 255, 0.5); }
.event-button:hover .link-button-text { color: #b400ff; text-shadow: 0 0 15px rgba(180, 0, 255, 0.5); }

.bsk-button:hover .link-arrow { color: #00ff41; }
.level-button:hover .link-arrow { color: #00b4ff; }
.event-button:hover .link-arrow { color: #b400ff; }

/* Responsiv */
@media (max-width: 768px) {
    .link-buttons-container {
        flex-direction: column;
    }
    
    .link-button {
        padding: 15px 20px;
    }
}

.terminal-window {
    background: var(--terminal-bg);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 10px;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 30px; /* LEGG TIL DENNE LINJEN */
}
/* Klikk Button - Oransje */
.klikk-button {
    border-color: rgba(255, 100, 0, 0.3);
}

.klikk-button:hover {
    border-color: #ff6400;
    box-shadow: 0 15px 35px rgba(255, 100, 0, 0.3);
    background: rgba(255, 100, 0, 0.1);
}

.klikk-cursor {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor-arrow {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawCursor 1.5s ease forwards infinite;
}

@keyframes drawCursor {
    0% { stroke-dashoffset: 100; opacity: 0.5; }
    50% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0.5; }
}

.klikk-ring {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 100, 0, 0.6);
    border-radius: 50%;
    animation: klikkRingAnim 1.5s ease-out infinite;
}

.klikk-battel {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 100, 0, 0.6);
    border-radius: 50%;
    animation: klikkRingAnim 1.5s ease-out infinite;
}

@keyframes klikkRingAnim {
    0% {
        width: 10px;
        height: 10px;
        opacity: 1;
    }
    100% {
        width: 35px;
        height: 35px;
        opacity: 0;
    }
}

.klikk-button:hover .cursor-arrow {
    stroke: #ff6400;
    filter: drop-shadow(0 0 5px rgba(255, 100, 0, 0.8));
}

.klikk-button:hover .klikk-ring {
    animation-duration: 0.6s;
    border-color: #ff6400;
}

.klikk-button:hover .klikk-battel {
    animation-duration: 0.6s;
    border-color: #ff6400;
}

.klikk-button:hover .link-button-text { 
    color: #ff6400; 
    text-shadow: 0 0 15px rgba(255, 100, 0, 0.5); 
}

.klikk-button:hover .link-arrow { color: #ff6400; }

.name-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 450 120'%3E%3Crect width='450' height='120' fill='%23000' opacity='0'/%3E%3Cg stroke='%2300ff41' stroke-width='1.5' fill='none' opacity='0.6'%3E%3Cpath d='M0,20 L100,20 L120,40 L200,40 L220,20 L350,20 L370,40 L450,40'/%3E%3Cpath d='M0,60 L80,60 L100,80 L180,80 L200,60 L300,60 L320,80 L400,80 L420,60 L450,60'/%3E%3Cpath d='M0,100 L120,100 L140,80 L250,80 L270,100 L380,100 L400,80 L450,80'/%3E%3Cpath d='M50,0 L50,40 L70,60 L70,90 L50,120'/%3E%3Cpath d='M150,0 L150,30 L170,50 L170,80 L150,120'/%3E%3Cpath d='M250,0 L250,40 L270,60 L270,90 L250,120'/%3E%3Cpath d='M350,0 L350,30 L370,50 L370,80 L350,120'/%3E%3C/g%3E%3Cg fill='%2300ff41' opacity='0.4'%3E%3Ccircle cx='100' cy='20' r='3'/%3E%3Ccircle cx='200' cy='40' r='3'/%3E%3Ccircle cx='350' cy='20' r='3'/%3E%3Ccircle cx='80' cy='60' r='3'/%3E%3Ccircle cx='180' cy='80' r='3'/%3E%3Ccircle cx='300' cy='60' r='3'/%3E%3Ccircle cx='400' cy='80' r='3'/%3E%3Ccircle cx='120' cy='100' r='3'/%3E%3Ccircle cx='250' cy='80' r='3'/%3E%3Ccircle cx='380' cy='100' r='3'/%3E%3Ccircle cx='50' cy='40' r='2'/%3E%3Ccircle cx='150' cy='30' r='2'/%3E%3Ccircle cx='250' cy='40' r='2'/%3E%3Ccircle cx='350' cy='30' r='2'/%3E%3C/g%3E%3Cg fill='%2300ff41' opacity='0.5'%3E%3Crect x='95' y='17' width='10' height='6' rx='1'/%3E%3Crect x='195' y='37' width='10' height='6' rx='1'/%3E%3Crect x='345' y='17' width='10' height='6' rx='1'/%3E%3Crect x='75' y='57' width='10' height='6' rx='1'/%3E%3Crect x='175' y='77' width='10' height='6' rx='1'/%3E%3C/g%3E%3Ccircle cx='220' cy='60' r='4' fill='%2300ff41' opacity='0.8'%3E%3Canimate attributeName='opacity' values='0.3;1;0.3' dur='2s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='220' cy='60' r='8' fill='%2300ff41' opacity='0.2'%3E%3Canimate attributeName='opacity' values='0;0.3;0' dur='2s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    z-index: -1;
    pointer-events: none;
    animation: pcbGlow 3s ease-in-out infinite;
}

@keyframes pcbGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}