html { transition: filter 0.6s cubic-bezier(0.23, 1, 0.32, 1); min-height: 100%; }
html.invert-site { filter: invert(100%); }
body { margin: 0; padding: 0; background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%); overflow: hidden; display: flex; justify-content: center; align-items: center; height: 100vh; font-family: 'Courier New', Courier, monospace; }
canvas { display: block; position: absolute; top: 0; left: 0; z-index: 5; }
#ui-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 15; pointer-events: none; }
#scene-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 12; opacity: 0; visibility: hidden; transition: opacity 0.8s ease; pointer-events: auto; }
#scene-container.visible { opacity: 1; visibility: visible; }
#labels-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 13; overflow: hidden; opacity: 0; transition: opacity 0.3s; }
#labels-container.visible { opacity: 1; }
#blackout-layer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; opacity: 0; pointer-events: none; z-index: 9999; transition: opacity 0.5s; display: flex; justify-content: center; align-items: center; color: #ff3333; font-size: 2rem; font-weight: bold; letter-spacing: 5px; text-transform: uppercase; }
#blackout-layer.active { opacity: 0.95; pointer-events: auto; }
.section-header { position: absolute; top: 10%; left: 0; width: 100%; text-align: center; color: #fff; pointer-events: none; opacity: 0; transition: opacity 1s; z-index: 5; }
.section-header.visible { opacity: 1; }
.section-title-text { font-size: 3rem; font-weight: 800; letter-spacing: 8px; margin: 0; text-transform: uppercase; text-shadow: 0 0 20px rgba(255,255,255,0.2); }
.section-desc-text { direction: ltr; font-size: 0.9rem; max-width: 600px; margin: 15px auto 0; line-height: 1.6; color: #aaa; background: rgba(0,0,0,0.4); padding: 10px 20px; border-radius: 8px; backdrop-filter: blur(5px); }
.astro-label { position: absolute; transform: translate3d(0,0,0); display: flex; flex-direction: column; align-items: flex-start; pointer-events: auto; cursor: pointer; }
.label-content { position: absolute; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: flex-start; transform: translate(10px, -10px); }
.label-text { color: #ffffff; font-family: 'Courier New', monospace; font-weight: bold; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; background: rgba(0, 0, 0, 0.6); padding: 3px 8px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 3px; white-space: nowrap; text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); margin-bottom: 0; }
.label-line { width: 1px; height: 30px; background: linear-gradient(to top, #ffffff, transparent); transform: skewX(-20deg); transform-origin: bottom; margin-left: 8px; opacity: 0.8; }
.label-circle { width: 6px; height: 6px; border: 1px solid #ffffff; border-radius: 50%; background: #000; box-shadow: 0 0 5px #ffffff; margin-left: 1px; }
#info-panel { position: absolute; top: 0; right: -600px; width: 450px; height: 100%; background: rgba(10, 10, 10, 0.95); border-left: 1px solid rgba(255,255,255,0.1); padding: 40px; color: #fff; z-index: 25; transition: right 0.8s cubic-bezier(0.19, 1, 0.22, 1); box-shadow: -20px 0 50px rgba(0,0,0,0.8); display: flex; flex-direction: column; gap: 20px; pointer-events: auto; text-align: left; overflow-y: auto; }
#info-panel.active { right: 0; }
.info-close-btn { position: absolute; top: 20px; right: 20px; width: 35px; height: 35px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; z-index: 10; }
.info-close-btn:hover { background: #fff; color: #000; transform: rotate(90deg); }
.info-header { display: flex; flex-direction: column; gap: 15px; border-bottom: 1px solid #333; padding-bottom: 20px; margin-top: 20px; }
.info-img-container { width: 100%; height: 250px; border-radius: 8px; overflow: hidden; border: 1px solid #00ff88; box-shadow: 0 0 20px rgba(0,255,136,0.15); background: #111; }
.info-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.info-name { font-size: 2rem; font-weight: 800; margin: 0; line-height: 1.1; letter-spacing: -1px; }
.info-role { direction: ltr;color: #00ff88; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin-top: 5px;}
.info-section-title { direction: ltr; font-size: 0.75rem; color: #666; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: bold; }
.info-text { direction: ltr;font-size: 0.95rem; line-height: 1.6; color: #ccc; }
.skill-tag { background: rgba(255,255,255,0.05); padding: 6px 12px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; color: #ddd; }
.orbit-link { position: absolute; transform: translate(-50%, -50%); color: #ffffff; font-size: 1.1rem; letter-spacing: 2px; cursor: pointer; pointer-events: auto; text-transform: uppercase; font-weight: 700; text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); padding: 15px 20px; transition: opacity 1s ease; opacity: 0; }
.orbit-link.faded { opacity: 0 !important; pointer-events: none; }
#back-button { position: fixed; top: 30px; left: 30px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.2); padding: 12px 24px; border-radius: 30px; color: #fff; font-size: 0.9rem; cursor: pointer; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.5s; }
#back-button.show { opacity: 1; pointer-events: auto; }
.menu-content { position: fixed; top: 15%; left: 50%; transform: translateX(-50%); color: #fff; font-size: 2.5rem; font-weight: bold; letter-spacing: 5px; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity 0.8s; z-index: 15; text-shadow: 0 0 20px rgba(255,255,255,0.2); }
.menu-content.show { opacity: 1; }
#notification { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(50px); background: rgba(255, 255, 255, 0.0); backdrop-filter: blur(2px); border: 1px solid rgba(255, 255, 255, 0.2); padding: 10px 20px; border-radius: 30px; color: #fff; font-size: 0.9rem; opacity: 0; transition: all 0.5s; z-index: 1000; pointer-events: none; }
#notification.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.subtitle-container { text-align: center; position: absolute; top: 85%; left: 50%; transform: translateX(-50%); width: 320px; height: 30px; perspective: 1000px; pointer-events: auto; cursor: default; transition: opacity 0.5s; z-index: 10; }
.subtitle-flipper { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1); transform-style: preserve-3d; }
.subtitle-container:hover .subtitle-flipper { transform: rotateX(90deg); }
.subtitle-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; justify-content: center; align-items: center; font-size: 1rem; letter-spacing: 3px; color: #888; white-space: nowrap; }
.front { transform: rotateX(0deg) translateZ(15px); }
.bottom { transform: rotateX(-90deg) translateZ(15px); color: #ccc; font-size: 0.8rem; letter-spacing: 2px;}
#terminal-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 400px; background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.1); border-top: 1px solid rgba(255, 255, 255, 0.2); border-left: 1px solid rgba(255, 255, 255, 0.2); border-radius: 16px; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255,255,255,0.02); z-index: 20; padding: 25px; font-family: 'Courier New', monospace; color: #e0e0e0; opacity: 0; pointer-events: none; display: flex; flex-direction: column; overflow: hidden; text-align: left; direction: ltr; transition: opacity 0.8s ease; }
#terminal-container::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%); pointer-events: none; animation: liquid 10s infinite linear; opacity: 0.5; z-index: -1; }
@keyframes liquid { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#terminal-container.active { opacity: 1; pointer-events: auto; }
.terminal-header { border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 10px; margin-bottom: 15px; color: rgba(255,255,255,0.6); font-size: 0.75rem; display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: 1px; }
.terminal-body { flex: 1; overflow-y: auto; font-size: 0.9rem; line-height: 1.6; text-shadow: 0 1px 2px rgba(0,0,0,0.5); position: relative; }
.terminal-line { margin-bottom: 6px; word-break: break-all; display: block; width: fit-content;}
.gravity-mode { position: absolute; transition: none; }
.terminal-input-area { display: flex; align-items: center; margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 10px; }
.prompt { color: #80d4ff; margin-right: 10px; font-weight: bold; text-shadow: 0 0 8px rgba(128, 212, 255, 0.4); }
#cmd-input { background: transparent; border: none; color: #fff; font-family: 'Courier New', monospace; font-size: 0.95rem; flex: 1; outline: none; caret-color: #80d4ff; text-shadow: 0 0 5px rgba(255,255,255,0.3); }
.output-msg { color: #ccc; margin-left: 0; }
.success-msg { color: #80d4ff; }
.error-msg { color: #ff8080; }
.system-msg { color: #e080ff; font-style: italic; }
.hidden-hint { color: rgba(255,255,255,0.3); font-style: italic; font-size: 0.75rem; margin-top: 15px; border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 5px; }
@keyframes shake { 0% { transform: translate(-50%, -50%) translate(1px, 1px) rotate(0deg); } 10% { transform: translate(-50%, -50%) translate(-1px, -2px) rotate(-1deg); } 20% { transform: translate(-50%, -50%) translate(-3px, 0px) rotate(1deg); } 30% { transform: translate(-50%, -50%) translate(3px, 2px) rotate(0deg); } 40% { transform: translate(-50%, -50%) translate(1px, -1px) rotate(1deg); } 50% { transform: translate(-50%, -50%) translate(-1px, 2px) rotate(-1deg); } 60% { transform: translate(-50%, -50%) translate(-3px, 1px) rotate(0deg); } 70% { transform: translate(-50%, -50%) translate(3px, 1px) rotate(-1deg); } 80% { transform: translate(-50%, -50%) translate(-1px, -1px) rotate(1deg); } 90% { transform: translate(-50%, -50%) translate(1px, 2px) rotate(0deg); } 100% { transform: translate(-50%, -50%) translate(1px, -2px) rotate(-1deg); } }
.shake-terminal { animation: shake 0.5s; animation-iteration-count: 1; }
#social-links { position: absolute; top: calc(50% + 240px); left: 50%; transform: translate(-50%, -50%); display: flex; gap: 30px; z-index: 25; opacity: 0; pointer-events: none; transition: opacity 0.8s; }
#social-links.active { opacity: 1; pointer-events: auto; }
.social-icon { width: 28px; height: 28px; fill: rgba(255,255,255,0.6); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; }
.social-icon:hover { fill: #4db8ff; transform: scale(1.2) translateY(-5px); filter: drop-shadow(0 0 8px #4db8ff); }
#projects-container { position: absolute; top: 0; direction: ltr; left: 0; width: 100%; height: 100%; perspective: 1000px; overflow: hidden; pointer-events: none; z-index: 1; opacity: 0; transition: opacity 0.8s ease; }
#projects-container.visible { opacity: 1; pointer-events: auto; z-index: 20; }
#timeline-track { position: absolute; top: 50%; left: 50%; transform-style: preserve-3d; transition: transform 0.1s linear; width: 0; height: 0; }
#timeline-line { position: absolute; top: 0; left: 0; width: 2px; height: 10000px; background: linear-gradient(to bottom, transparent, #4db8ff, transparent); transform: translateY(-5000px) rotateX(90deg); transform-origin: center top; opacity: 0.3; }
.project-card { position: absolute; width: 340px; height: 440px; background: rgba(15, 15, 20, 0.7); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; display: flex; flex-direction: column; padding: 0; cursor: pointer; transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1); transform-origin: center center; top: -220px; overflow: hidden; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none;  z-index: 1; }
.project-card.expanded { position: fixed; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) rotateY(360deg) scale(1) !important; width: 80vw; height: 80vh; z-index: 9999 !important; pointer-events: auto !important; background: #000; border: 1px solid #4db8ff; box-shadow: 0 0 50px rgba(77, 184, 255, 0.2); -webkit-box-reflect: unset; flex-direction: row; }
.project-card.expanded .project-img-wrapper { width: 0; height: 0; opacity: 0; transition: all 0.5s; }
.project-card.expanded .video-container { width: 70%; height: 100%; background: #000; display: flex; justify-content: center; align-items: center; position: relative; border-right: 1px solid rgba(255,255,255,0.1); }
.project-card.expanded .video-container iframe, .project-card.expanded .video-container video { width: 100%; height: 100%; object-fit: contain; border: none; }
.project-card.expanded .project-info { width: 30%; height: 100%; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.project-card.expanded .project-desc { font-size: 1rem; color: #ddd;; padding-top: 20px; }
.project-card.expanded .close-video-btn { position: absolute; top: 20px; right: 20px; color: #fff; font-size: 2rem; cursor: pointer; z-index: 100; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.1); transition: 0.3s; }
.project-card.expanded .close-video-btn:hover { background: #ff3333; transform: rotate(90deg); }
.video-placeholder { display: none; }
.project-card.left { left: -420px; }
.project-card.right { left: 80px; }
.project-connector { position: absolute; top: 50%; height: 1px; width: 80px; background: linear-gradient(90deg, transparent, rgba(77, 184, 255, 0.6), transparent); z-index: -1; }
.left .project-connector { right: -80px; }
.right .project-connector { left: -80px; }
.project-dot { position: absolute; top: 50%; width: 14px; height: 14px; background: #000; border: 2px solid #4db8ff; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 15px #4db8ff; transition: all 0.3s ease; }
.left .project-dot { right: -87px; }
.right .project-dot { left: -87px; }
.project-img-wrapper { width: 100%; height: 200px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.05); position: relative; transition: all 0.5s; }
.project-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.1); transition: filter 0.5s ease, transform 0.6s ease; }
.project-img-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8)); opacity: 0.6; pointer-events: none; }
.project-card:not(.expanded):hover { transform: scale(1.02); border-color: rgba(77, 184, 255, 0.4); box-shadow: 0 0 50px rgba(77, 184, 255, 0.15); background: rgba(20, 20, 30, 0.85); }
.project-card:not(.expanded):hover .project-img { filter: grayscale(0%) contrast(1); transform: scale(1.1); }
.project-card:hover ~ .project-dot, .project-card:hover .project-dot { background: #4db8ff; box-shadow: 0 0 25px #4db8ff; }
.project-info { padding: 25px; width: 100%; box-sizing: border-box; text-align: left; display: flex; flex-direction: column; height: 240px; transition: all 0.5s; }
.project-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.project-year { color: #4db8ff; font-size: 0.55rem; padding: 2px 8px; border: 1px solid rgba(77,184,255,0.3); border-radius: 12px; font-weight: bold; }
.project-title { color: #fff; font-size: 1.2rem; font-weight: 700; margin: 0 0 0 0; letter-spacing: 0.5px; }
.project-desc { color: #a0a0a0; font-size: 0.65rem; line-height: 1.2; flex-grow: 1; }
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 15px; margin-bottom: 15px;}
.project-tag { font-size: 0.7rem; color: #ccc; background: rgba(255,255,255,0.1); padding: 4px 8px; border-radius: 4px; }
.project-btn { align-self: flex-start; background: transparent; color: #4db8ff; border: none; font-family: 'Courier New', monospace; font-size: 0.8rem; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; padding: 0; transition: color 0.3s; }
.project-btn:hover { color: #fff; text-decoration: underline; }
#scroll-hint { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.5); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; animation: pulse 2s infinite; pointer-events: none; opacity: 0; transition: opacity 0.5s; z-index: 25; }
@keyframes pulse { 0% { opacity: 0.3; transform: translateX(-50%) translateY(0); } 50% { opacity: 0.8; transform: translateX(-50%) translateY(5px); } 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); } }
#scroll-hint.visible { opacity: 1; }
#jobs-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 20; opacity: 0; pointer-events: none; transition: opacity 0.8s ease; display: none; }
#jobs-container.active { opacity: 1; pointer-events: auto; display: block; }
#jobs-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.job-node { direction: ltr; position: absolute; color: #aaa; font-family: 'Courier New', monospace; cursor: pointer; z-index: 5; text-align: center; transition: all 0.4s ease; transform: translate(-50%, -50%); padding: 15px; border: 1px solid transparent; border-radius: 10px; width: 240px; height: 120px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(0,0,0,0.2); }
.job-node h2 { font-size: 1rem; margin: 0; font-weight: bold; letter-spacing: 2px; color: #fff; text-transform: uppercase; transition: all 0.3s; }
.job-node p { font-size: 0.7rem; margin: 5px 0 0 0; opacity: 1; height: 0; overflow: hidden; transition: all 0.3s; color: #4db8ff; }
.job-node:hover { background: rgba(0, 100, 255, 0.1); border-color: rgba(77, 184, 255, 0.5); width: 380px; height: 180px; box-shadow: 0 0 30px rgba(0, 100, 255, 0.3); }
.job-node:hover h2 { font-size: 1.4rem; color: #4db8ff; }
.job-node:hover p { opacity: 1; height: auto; }
#screen-warning {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #151515;
    z-index: 100000; 
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.warning-content {
    max-width: 500px;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid #636363;
    padding: 40px;
    border-radius: 12px;
}

.warning-icon {
    width: 60px;
    height: 60px;
    color: #c9c9c9;
    margin-bottom: 20px;
    
    animation: pulse-warning 2s infinite ;
}

#screen-warning h1 {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ff3333;
    letter-spacing: 2px;
}

#screen-warning p {
    font-family: sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
}

.warning-details {
    font-size: 0.8rem;
    color: #666;
    font-family: monospace;
    border-top: 1px solid #333;
    padding-top: 10px;
}

@keyframes pulse-warning {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@media screen and (max-width: 800px), screen and (max-height: 600px) {
    #screen-warning {
        display: flex !important; 
    }
    body > *:not(#screen-warning) {
        display: none !important;
    }
}

.notif-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mouse-icon {
    width: 24px;
    height: 24px;
    color: #4db8ff;
    animation: mouse-shake 1.5s infinite;
}

.middle-click-dot {
    animation: middle-click-pulse 1.5s infinite;
    transform-origin: center;
}

@keyframes mouse-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px) rotate(-5deg); }
    50% { transform: translateX(3px) rotate(5deg); }
    75% { transform: translateX(-2px) rotate(-3deg); }
}

@keyframes middle-click-pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.3; 
        transform: scale(1.5);
    }
}

.notif-text {
    font-family: 'Courier New', monospace;
}
