@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    src: url('nunito-regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    src: url('nunito-bold.woff2') format('woff2');
    font-display: swap;
}

:root {
    --bg-color: #0f1016;
    --text-color: #ffffff;
    --accent-color: #8f8f8f24; 
    --accent-hover: #e08dfc;
    --highlight: #d36bfb; 
    --card-bg: rgba(255, 255, 255, 0.05);
    --font-main: 'Nunito', sans-serif;
    --matrix-green: #0F0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; margin: 0; overflow: hidden; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none; 
    scrollbar-width: none;
    font-size: 16px;
    line-height: 1.5;
}
body::-webkit-scrollbar { display: none; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

section {
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

#enter-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #020202;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 1.5s ease, visibility 1.5s;
}

.enter-content { 
    text-align: center; 
    animation: fadeIn 2s ease-in;
    position: relative;
    z-index: 20;
    transition: opacity 2.5s ease-out, transform 2.5s ease-out, filter 2.5s ease-out;
}

.enter-content.content-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
    filter: blur(10px);
}

.enter-btn {
    padding: 15px 60px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-hover);
    background: transparent;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(211, 107, 251, 0.1);
    border-radius: 2px;
    cursor: pointer;
    letter-spacing: 8px;
    transition: 0.3s;
    font-family: var(--font-main);
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    animation: idle-glitch 4s infinite linear;
}

.enter-btn:hover {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    color: var(--matrix-green);
    border-color: var(--matrix-green);
    background: transparent;
    animation: none; 
}

@keyframes idle-glitch {
    0%, 90% { transform: translate(0); text-shadow: none; opacity: 1; }
    91% { transform: skew(3deg); text-shadow: -2px 0 red, 2px 0 blue; }
    92% { transform: skew(-3deg); text-shadow: 2px 0 red, -2px 0 blue; }
    93% { transform: translate(0); text-shadow: none; }
    94% { transform: skew(1deg); filter: blur(1px); }
    95% { transform: translate(0); filter: none; }
    100% { transform: translate(0); }
}

.mystic-text {
    font-size: 0.9rem;
    color: #999;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.7;
    animation: pulse 8s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
    100% { opacity: 0.4; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.video-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.05);
}

.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background-color: rgba(14, 10, 20, 0.65); 
    background-image: radial-gradient(rgba(0, 0, 0, 0.4) 1px, transparent 1px);
    background-size: 4px 4px;
    backdrop-filter: blur(3px);
    box-shadow: inset 0 0 150px rgba(0,0,0,0.9);
    pointer-events: none;
}

.container {
    width: min(90%, 1000px);
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#bio .container {
    width: min(95%, 1100px);
}

section.active .container {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #fff;
    opacity: 0.9;
    text-shadow: 0 0 20px rgba(211, 107, 251, 0.4);
}

.hero-title h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero-title h3 {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 300;
    opacity: 0.8;
    letter-spacing: 2px;
}

.text-content {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 2px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.05);
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.bio-content {
    text-align: left;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--matrix-green);
    padding: 25px;
    max-width: 650px;
    margin: 0 auto;
    font-size: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    visibility: hidden;
}

.bio-content.typing-active {
    visibility: visible;
}

.bio-content::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.terminal-line {
    margin-bottom: 15px;
    position: relative;
    z-index: 3;
}

.terminal-prompt {
    color: var(--matrix-green);
    font-weight: bold;
    margin-right: 8px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.bio-highlight {
    color: #fff;
    font-weight: 700;
    border-bottom: 1px dashed var(--accent-hover);
}

.terminal-list {
    padding-left: 20px;
    display: block;
    margin-top: 8px;
    color: #ccc;
    line-height: 1.6;
}

.terminal-status {
    color: var(--accent-hover); 
    font-weight: bold;
    letter-spacing: 1px;
}

.comment-line {
    opacity: 0.5;
    font-size: 0.85rem;
    margin-top: 25px;
    font-style: italic;
    color: #ddd;
}

.console-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--matrix-green);
    animation: blink 1s infinite;
    margin-left: 5px;
    vertical-align: middle;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.grid-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.link-card {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.4s;
    color: #fff;
    width: calc(33.33% - 10px);
    min-width: 110px;
    max-width: 150px;
}

.link-card:hover {
    transform: translateY(-5px);
    background: rgba(211, 107, 251, 0.2);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.link-card i {
    font-size: 26px;
    margin-bottom: 8px;
    color: #fff;
}

.link-card strong {
    display: block;
    font-size: 0.7rem;
    margin-bottom: 3px;
    font-weight: 700;
    letter-spacing: 1px;
}

.link-card span {
    font-size: 0.65rem;
    opacity: 0.6;
    letter-spacing: 0.5px;
}

.mail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 450px; 
}

.mail-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: default;
}

.mail-item:hover {
    background: rgba(211, 107, 251, 0.15);
    border-color: var(--accent-hover);
    transform: translateX(5px);
}

.mail-item > i {
    font-size: 28px;
    color: var(--accent-hover);
}

.mail-text {
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 700;
    color: #e0e0e0;
    display: flex;
    align-items: center;
}

.at-icon {
    font-size: 1.3em;
    color: var(--accent-hover);
    vertical-align: middle;
}

.scroll-down {
    margin-top: 40px;
    animation: bounce 3s infinite;
    cursor: pointer;
    font-size: 2rem;
    color: rgba(255,255,255,0.5);
    transition: 0.3s;
}

.scroll-down:hover { color: #fff; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#enter-screen.matrix-active #matrix-canvas {
    opacity: 1;
}

::selection {
    background: var(--matrix-green);
    color: #000;
    text-shadow: none;
}
::-moz-selection {
    background: var(--matrix-green);
    color: #000;
}

@media (max-width: 768px) {
    .container {
        width: 90%; 
    }

    #bio .container {
        width: 95%;
    }

    .bio-content { 
        padding: 15px; 
        font-size: 0.9rem; 
        width: 100%; 
        max-width: none;
    }

    .grid-links { 
        gap: 10px; 
    }

    .link-card { 
        width: calc(50% - 5px); 
        min-width: 0; 
        padding: 12px 5px; 
    } 

    section { padding: 15px; }
    h2 { font-size: 1.5rem; }
    .text-content { padding: 20px; font-size: 0.9rem; text-align: left;}
    .mail-text { font-size: 0.8rem; }
    .mail-item { padding: 15px; gap: 10px; }
}

.rabbit-stage {
    width: 300px;
    height: 60px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sprite_wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) scaleX(-1);
    z-index: 10;
    overflow: hidden;
    will-change: left, transform, opacity;
    animation: rabbit-patrol 8s linear infinite;
    transition: opacity 1s ease; 
}

.sprite_inner {
    display: flex;
}

.sprite_inner > svg {
    height: 100%;
    width: auto;
    display: block;
}

.scroll-arrow {
    font-size: 2rem;
    color: rgba(255,255,255,0.5);
    opacity: 0;
    transition: opacity 1s ease, color 0.3s;
    animation: bounce 3s infinite;
    z-index: 5;
}

.scroll-arrow:hover {
    color: #fff;
}

.rabbit-stage.show-arrow .sprite_wrapper {
    opacity: 0;
}

.rabbit-stage.show-arrow .scroll-arrow {
    opacity: 1;
}

@keyframes rabbit-patrol {
    0% { left: 0; transform: translateY(-50%) scaleX(-1); }
    45% { left: calc(100% - 45px); transform: translateY(-50%) scaleX(-1); }
    50% { left: calc(100% - 45px); transform: translateY(-50%) scaleX(1); }
    95% { left: 0; transform: translateY(-50%) scaleX(1); }
    100% { left: 0; transform: translateY(-50%) scaleX(-1); }
}

.scanner-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    padding: 25px;
    background: rgba(0, 15, 0, 0.9);
    border: 1px solid #0F0;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2), inset 0 0 20px rgba(0, 255, 0, 0.1);
    color: #0F0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: bold;
    z-index: 1000;
    display: none;     
    opacity: 0;        
    transition: opacity 1s ease; 
    text-align: center;
    backdrop-filter: blur(3px);
}

.blink {
    animation: blink-animation 1s steps(2, start) infinite;
}

@keyframes blink-animation {
    to { visibility: hidden; }
}
