body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    height: 100vh;
    cursor: auto;
}

a, button { cursor: pointer; }


header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; position: fixed; top: 0; width: 100%; box-sizing: border-box; z-index: 100;
}


.site-logo-img {
    height: 60px; width: auto; max-width: 150px;
}

.hero-section {
    display: flex; height: 100vh; align-items: center; justify-content: center; padding: 0 10%;
}
.info-container { flex: 1; z-index: 10; display: flex; justify-content: center;}
.model-container { flex: 1; display: flex; justify-content: center; align-items: center; }


#terminal-profile {
    width: 100%; max-width: 500px; text-align: left; font-family: 'Courier New', monospace;
}

.avatar-container { margin-bottom: 20px; animation: fadeIn 1s ease-out; }
.avatar-img {
    width: 100px; height: 100px; border-radius: 50%;
    filter: grayscale(100%); transition: filter 0.5s;
}
.avatar-img:hover { filter: grayscale(0%); }

.line-wrapper { margin-top: 15px; display: flex; align-items: center; font-size: 0.9rem;}
.prompt { color: #00ff00; margin-right: 10px; }
.command { font-weight: bold; color: #fff; }

.type-line {
    overflow: hidden; white-space: nowrap;
    border-right: 2px solid transparent; width: 0;
    margin: 5px 0 5px 20px; color: #ccc; font-size: 1.1rem;
}


.parallel-text {
    position: relative; color: #fff; font-size: 2.5rem; font-weight: 700;
    font-family: 'Poppins', sans-serif; margin: 10px 0 10px 20px;
}
.parallel-text::before, .parallel-text::after {
    content: attr(data-text); position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; background: #000; overflow: hidden; opacity: 0.7;
}
.parallel-text::before {
    text-shadow: -2px 0 #ff0000; z-index: -1;
    animation: dimension-drift 2.5s infinite linear alternate-reverse;
}
.parallel-text::after {
    text-shadow: 2px 0 #00ffff; z-index: -2;
    animation: dimension-drift 3s infinite linear alternate;
}

.line-1 { animation: typing-clean 0.8s steps(20, end) forwards; }
.delay-1 { opacity: 0; animation: reveal 0s 0.9s forwards; }
.line-2 { animation: typing-clean 1.0s steps(30, end) 0.9s forwards; }
.delay-2 { opacity: 0; animation: reveal 0s 2.0s forwards; }
.line-3 {
    animation: typing-keep-caret 0.8s steps(20, end) 2.0s forwards, blink-caret 0.75s step-end infinite;
}

.loader-text {
    font-size: 0.9rem; 
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #fff; 
}


.glitch-text {
    position: relative;
    display: inline-block;
    color: #fff;
}


.glitch-text::before, .glitch-text::after {
    content: attr(data-text); 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000; 
    opacity: 0.7;
}

.glitch-text::before {
    text-shadow: -2px 0 #ff0000; 
    z-index: -1;
    animation: dimension-drift 2.5s infinite linear alternate-reverse;
}

.glitch-text::after {
    text-shadow: 2px 0 #00ffff; 
    z-index: -2;
    animation: dimension-drift 3s infinite linear alternate;
}


.progress-bar-container {
    width: 100%;
    height: 6px; 
    background: transparent; 
    border: none;
  
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
    position: relative;
    margin-top: 5px; 
}


.progress-bar-fill {
    height: 100%;
    background: #ffffff; 
    width: 0; 
    animation: 
        loadProgress 1.5s ease-in-out 3.0s forwards, 
        bar-glitch 0.2s infinite;
    
    
    box-shadow: 2px 0 0 rgba(255, 0, 0, 0.7), -2px 0 0 rgba(0, 255, 255, 0.7);
}


@keyframes loadProgress {
    0% { width: 0; }
    100% { width: 100%; }
}


@keyframes bar-glitch {
    0% { box-shadow: 2px 0 0 red, -2px 0 0 cyan; opacity: 1; }
    25% { box-shadow: -2px 0 0 red, 0 0 0 cyan; opacity: 0.8; }
    50% { box-shadow: 0 0 0 red, 2px 0 0 cyan; opacity: 1; }
    75% { box-shadow: 2px 0 0 red, -2px 0 0 cyan; opacity: 0.9; }
    100% { box-shadow: -1px 0 0 red, 1px 0 0 cyan; opacity: 1; }
}

.icons-container {
    margin-top: 25px; display: flex; gap: 30px; opacity: 0;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 4.6s forwards;
}


.icon-btn {
    position: relative; 
    color: #fff; 
    font-size: 1.5rem; 
    text-decoration: none;
    display: flex; flex-direction: column; align-items: center; gap: 5px; 
    transition: color 0.2s;
}

.icon-label { font-size: 0.6rem; font-weight: bold; letter-spacing: 1px; font-family: 'Courier New';}


.icon-btn::after {
    content: '';
    position: absolute;
    bottom: -12px;   
    left: 50%;       
    width: 4px; 
    height: 4px;
    
    background-color: #ff0000; 
    border-radius: 50%;
    
    
    box-shadow: 
        0 0 2px 1px rgba(255, 50, 50, 0.8), 
        0 0 8px 2px rgba(255, 0, 0, 0.4);   
    
    opacity: 0;
    transform: translateX(-50%) scale(0.5); 
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}


.icon-btn:hover { 
    color: #fff; 
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}


.icon-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  
    animation: tactical-jitter 0.3s infinite alternate ease-in-out; 
}


.sketch-border {
    width: 400px; height: 400px;
    display: flex; align-items: center; justify-content: center;
}
#three-canvas { width: 100%; height: 100%; }


footer {
    position: fixed; bottom: 0; width: 100%;
    background: rgba(0, 0, 0, 0.9); border-top: 1px solid #333;
    padding: 10px 0; font-family: 'Courier New', monospace; font-size: 0.7rem; color: #666;
    z-index: 100;
}
.footer-content { display: flex; justify-content: center; gap: 15px; }
.blink { animation: blink-caret 1s step-end infinite; color: #0f0; }
#privacy-btn { background: none; border: none; color: #666; font-family: inherit; font-size: inherit; cursor: pointer; text-transform: uppercase; }
#privacy-btn:hover { color: #00ff00; text-decoration: underline; }


.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(5px); z-index: 10000;
}
.hidden { display: none; }
.modal-content {
    background: #000; border: 1px solid #0f0; padding: 20px; width: 300px;
    color: #fff; font-family: 'Courier New', monospace; box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}
.modal-content h3 { color: #0f0; border-bottom: 1px dashed #333; padding-bottom: 10px; margin-top: 0;}
.close-modal { background: #0f0; color: #000; border: none; width: 100%; padding: 10px; margin-top: 10px; font-weight: bold; cursor: pointer; }
.close-modal:hover { background: #fff; }


@keyframes typing-clean { from { width: 0; border-right-color: #00ff00; } to { width: 100%; border-right-color: transparent; } }
@keyframes typing-keep-caret { from { width: 0; border-right-color: #00ff00; } to { width: 100%; border-right-color: #00ff00; } }
@keyframes blink-caret { from, to { border-color: transparent; } 50% { border-color: #00ff00; } }
@keyframes reveal { to { opacity: 1; } }
@keyframes loadProgress { 0% { width: 0; } 100% { width: 100%; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.8) translateY(10px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes dimension-drift {
    0% { clip-path: inset(0 0 0 0); transform: translate(0, 0); }
    10% { clip-path: inset(10% 0 80% 0); transform: translate(-2px, 2px); }
    30% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
    100% { clip-path: inset(0 0 0 0); transform: translate(0, 0); }
}
@keyframes breatheBorder { 0%, 100% { border-color: rgba(0, 255, 0, 0.9); } 50% { border-color: rgba(0, 255, 0, 0.5); } }


@keyframes tactical-jitter {
    0%   { transform: translateX(-50%) translate(0, 0); }
    25%  { transform: translateX(-50%) translate(1px, -1px); }
    50%  { transform: translateX(-50%) translate(-1px, 1px); }
    75%  { transform: translateX(-50%) translate(1px, 1px); }
    100% { transform: translateX(-50%) translate(0, 0); }
}

@media (max-width: 768px) {
    .hero-section { flex-direction: column-reverse; padding-top: 80px; height: auto; padding-bottom: 50px;}
    .sketch-border { width: 280px; height: 280px; margin-bottom: 30px; }
    #terminal-profile { text-align: center; } 
    .line-wrapper { justify-content: center; }
    .type-line { margin: 5px auto; }
}

.contact-section {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
}


.terminal-container {
    width: 100%;
    max-width: 600px;
    background: rgba(0, 20, 0, 0.4); 
    border: 1px solid #113311;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.05);
}

.contact-desc {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 30px;
    margin-left: 20px;
}


.input-group {
    display: flex;
    flex-direction: column; 
    margin-bottom: 25px;
}

.input-group label {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #00ff00;
    margin-bottom: 5px;
}


.input-group input, 
.input-group textarea {
    width: 100%;
    background: transparent; 
    border: none;            
    outline: none;           
    
    color: #fff;             
    font-family: 'Courier New', monospace; 
    font-size: 1rem;
    padding: 5px 20px;       
    resize: none;            
}

.input-group input::placeholder, 
.input-group textarea::placeholder {
    color: #444;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-left: 2px solid #00ff00; 
    background: rgba(0, 255, 0, 0.03); 
}


.submit-btn {
    width: 100%;
    background: transparent;
    border: 1px dashed #00ff00;
    color: #00ff00;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.relative-group {
    position: relative;
}


.char-counter {
    position: absolute;
    bottom: 8px;           
    right: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #444;           
    transition: all 0.2s ease;
    pointer-events: none;  
    font-weight: bold;
    z-index: 10;              
}

.back-btn-container {
    text-align: center;
    margin-top: 25px;
}

.back-btn {
    position: relative;
    display: inline-block;
    color: #444; 
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: #00ff00; 
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}


.back-btn::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 4px; 
    height: 4px;
    background-color: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 2px 1px rgba(255, 50, 50, 0.8), 0 0 8px 2px rgba(255, 0, 0, 0.4);
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.back-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    animation: tactical-jitter 0.3s infinite alternate ease-in-out; 
}
.tour-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.tour-header {
    position: absolute;
    top: 100px;
    left: 40px;
    z-index: 10;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

#globe-container {
    width: 100%;
    height: 100%;
    cursor: grab; 
}
#globe-container:active {
    cursor: grabbing;
}


.marker-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    
    cursor: pointer; 
}


.tactical-dot {
    width: 12px;
    height: 12px;
    background-color: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff0000;
}
.tactical-dot::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid #ff0000;
    border-radius: 50%;
    top: -9px;
    left: -9px;
    animation: radar-ping 2s infinite ease-out;
}


.photo-card {
    position: absolute;
    bottom: 25px; 
    width: 200px;
    background: rgba(0, 15, 0, 0.85);
    border: 1px solid #00ff00;
    padding: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; 
    z-index: 100;
}

.photo-card img {
    width: 100%;
    height: auto;
    border: 1px solid #333;
    display: block;
    filter: grayscale(80%) contrast(1.2); 
    transition: filter 0.3s;
}

.photo-card p {
    margin: 8px 0 0 0;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    letter-spacing: 1px;
}

.photo-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tour-back-container {
    position: absolute;
    bottom: 50px; 
    left: 50%;
    transform: translateX(-50%); 
    z-index: 1000; 
}


@keyframes radar-ping {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.crew-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    
    justify-content: flex-start; 
    

    padding: 120px 5% 80px 5%; 
    
    background: #000;
}

.crew-header {
    text-align: center;
    margin-bottom: 40px;
    z-index: 10;
}

.roster-container {
    display: flex;
    flex-wrap: nowrap; 
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    z-index: 10;
    padding: 20px 0; 
}


.char-card {
    position: relative;
    width: 300px;
    background: rgba(0, 15, 0, 0.4);
    
    
    border: none; 
    
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    

    margin: 0 -80px; 
    z-index: 1; 
}


.char-card img {
    width: 100%;
    height: 350px; 
    object-fit: cover; 
    filter: grayscale(100%) brightness(0.7); 
    transition: filter 0.4s ease;
}


.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(0, 255, 0, 0.3);
    opacity: 0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    z-index: 5;
    pointer-events: none;
}


.char-info {
    padding: 20px;
    border-top: 1px solid #113311;
    background: #050505;
    transition: background 0.4s ease;
}

.char-name {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.char-class {
    margin: 0 0 15px 0;
    font-size: 0.8rem;
    color: #666;
    font-family: 'Courier New', monospace;
}


.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #888;
}

.stat-bar {
    width: 60%;
    height: 4px;
    background: #222; 
    border-radius: 2px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: #00ff00; 
    width: 0; 
    box-shadow: 0 0 5px #00ff00;
    
    transform: scaleX(0); 
    transform-origin: left;
    transition: transform 0.5s ease-out;
}


.char-card:hover {
    
    transform: translateY(-20px) scale(1.05); 
    
    
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);

    
    z-index: 100; 


    margin: 0 20px; 
}

.char-card:hover img {
    filter: grayscale(0%) brightness(1); 
}

.char-card:hover .char-info {
    background: rgba(0, 30, 0, 0.8); 
    border-top-color: #00ff00;
}

.char-card:hover .char-class {
    color: #00ff00; 
}

.char-card:hover .stat-row {
    color: #ddd; 
}


.char-card:hover .stat-fill {
    transform: scaleX(1); 
}


.char-card:hover .scanline {
    opacity: 1;
    animation: scan-down 1.5s linear infinite;
}

@keyframes scan-down {
    0% { top: -10px; opacity: 1; }
    100% { top: 350px; opacity: 0; }
}


@media (max-width: 768px) {
    .roster-container { gap: 20px; }
    .char-card { width: 100%; max-width: 350px; }
}

.char-info-wrapper {
    position: relative;
    z-index: 10; 
}


.info-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 120px 5% 80px 5%;
    background: #000;
}

.info-header {
    width: 100%;
    max-width: 900px;
    margin-bottom: 30px;
}


.dossier-container {
    display: flex;
    flex-direction: row;
    align-items: center; 
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    gap: 50px;
    background: transparent;
    border: none;
    padding: 20px 0;
}


.dossier-text-block {
    flex: 1; 
    display: flex;
    flex-direction: column;
}

.dossier-text-block h2 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.bio-content p {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify; 
}


.resume-download-zone {
    margin-top: 30px;
    display: flex;
    justify-content: flex-start; 
}

.dossier-photo-block {
    flex: 0 0 300px; 
}

.dossier-photo-block img {
    width: 100%;
    height: auto;
    display: block;
    
    border-radius: 4px; 
}


@media (max-width: 768px) {
    .dossier-container {
        flex-direction: column-reverse; 
        padding: 20px;
        gap: 30px;
    }
    .dossier-photo-block {
        flex: 0 0 auto;
        width: 100%;
        max-width: 250px;
    }
    .resume-download-zone {
        justify-content: center; 
    }
}

html.skip-intro .avatar-container {
    animation: none !important;
    opacity: 1 !important;
}


html.skip-intro .line-1,
html.skip-intro .line-2,
html.skip-intro .delay-1,
html.skip-intro .delay-2 {
    animation: none !important;
    width: 100% !important;
    opacity: 1 !important;
    border-right-color: transparent !important;
}


html.skip-intro .line-3 {
    animation: blink-caret 0.75s step-end infinite !important;
    width: 100% !important;
}


html.skip-intro .progress-bar-fill {
    animation: bar-glitch 0.2s infinite !important;
    width: 100% !important;
}


html.skip-intro .icons-container {
    animation: none !important;
    opacity: 1 !important;
    transform: scale(1) translateY(0) !important;
}

body {
    animation: warpIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
    opacity: 0; 
}

@keyframes warpIn {
    0% { 
        opacity: 0; 
        transform: scale(0.2) rotate(-15deg); 
        filter: blur(30px); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
        filter: blur(0); 
    }
}

body.leaving {
    animation: warpOut 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes warpOut {
    0% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
        filter: blur(0); 
    }
    100% { 
        opacity: 0; 
        transform: scale(0) rotate(15deg);
        filter: blur(20px); 
    }
}