:root {
    --bg-color: #050505;
    --text-main: #a0a0a0;
    --text-quote: #888888;
    --text-dim: #444444;
    --accent: #666666;
}

* {
    box-sizing: border-box;
}

html { 
    background-color: #000000; 
    height: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0; padding: 0;
    width: 100%; 
    max-width: 100vw;
    min-height: 100vh;
    
    
    opacity: 0; 
    
    transition: opacity 0.5s ease-in-out;
    
    background-color: transparent;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: crosshair;
}

body.loaded {
	opacity: 1;
}


#video-container {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; z-index: -3;
    filter: grayscale(40%) brightness(55%) contrast(80%);
}
video { width: 100%; height: 100%; object-fit: cover; }

.vignette {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 10%, rgba(0,0,0,0.95) 100%);
    z-index: -1; pointer-events: none;
}


#quote-overlay {
    position: absolute; top: 6%; width: 100%;
    text-align: center; font-family: 'Playfair Display', serif;
    font-style: italic; font-size: 1.15rem;
    color: var(--text-quote);
    text-shadow: 0px 2px 4px rgba(0,0,0,0.8);
    opacity: 0; padding: 0 30px;
    letter-spacing: 0.05rem; pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}


#observer-root {
    text-align: center; z-index: 10;
    max-width: 700px;
    padding: 40px;
    transition: transform 0.4s cubic-bezier(0.1, 0, 0.2, 1);
    width: 100%;
    padding-top: 120px;
}

h1 {
    font-size: 0.9rem; 
    letter-spacing: 1.3rem;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 4rem; 
    font-weight: 300; opacity: 0.8;
    max-width: 100%;
    overflow-wrap: break-word;
}

.hero-text {
    font-size: 1.2rem; 
    line-height: 2.2; 
    margin-bottom: 6rem; 
    font-weight: 300;
}

nav { 
    display: flex; 
    justify-content: center; 
    gap: 4rem; 
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
nav a {
    color: var(--text-dim); text-decoration: none;
    font-size: 0.85rem; transition: all 0.8s ease;
    text-transform: lowercase; letter-spacing: 0.1rem;
}
nav a:hover { color: #ffffff; letter-spacing: 0.2rem; }


.system-glitch {
    animation: global-shake 0.15s cubic-bezier(.36,.07,.19,.97) both;
    filter: invert(1) contrast(3) brightness(0.5) !important;
}
@keyframes global-shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}
@keyframes fadeInOut {
    0% { opacity: 0; filter: blur(5px); }
    15%, 85% { opacity: 0.85; filter: blur(0px); }
    100% { opacity: 0; filter: blur(5px); }
}
.animate-quote { animation: fadeInOut 12s infinite ease-in-out; }




nav a.active {
    color: #fff;
    text-decoration: line-through;
    opacity: 1;
}


.content-block {
    text-align: center;
}
.content-block p {
    font-size: 1rem; line-height: 1.8;
    color: var(--text-main); margin-bottom: 1.5rem;
    max-width: 600px; margin-left: auto; margin-right: auto;
}
.signature { color: var(--accent); font-size: 0.8rem; margin-top: 3rem; }


.contact-wrapper {
    text-align: center;
}
.contact-wrapper p {
    color: var(--text-main);
    margin-bottom: 1.5rem;
}
.mail-link {
    display: block; font-size: 1.5rem; color: #fff;
    text-decoration: none; margin: 2rem 0;
    font-family: 'Playfair Display', serif; font-style: italic;
    transition: all 0.3s ease;
}
.mail-link:hover { letter-spacing: 2px; text-shadow: 0 0 8px rgba(255,255,255,0.5); }
.socials { display: flex; gap: 2rem; justify-content: center; margin-top: 1rem; margin-bottom: 4rem; }
.socials a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; }
.socials a:hover { color: var(--text-main); }


.project-list {
    list-style: none; padding: 0; margin-bottom: 4rem;
    text-align: left; max-width: 500px; margin-left: auto; margin-right: auto;
}
.project-list li {
    display: flex; justify-content: space-between; align-items: baseline;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0; transition: border-color 0.3s;
}
.project-list li:hover { border-bottom: 1px solid rgba(255,255,255,0.3); }

.glitch-link {
    font-size: 1.2rem; color: #fff; text-decoration: none;
    position: relative; transition: color 0.2s;
}
.glitch-link.dead { color: var(--text-dim); cursor: not-allowed; text-decoration: line-through; }
.status { font-size: 0.7rem; color: var(--accent); font-family: monospace; }


.glitch-link:not(.dead):hover {
    color: transparent;
    text-shadow: 2px 0 #ff004c, -2px 0 #00d8ff;
}
.glitch-link:not(.dead):hover::before {
    content: attr(data-text); position: absolute; left: 2px; top: 0;
    color: #fff; overflow: hidden; clip: rect(0, 900px, 0, 0);
    animation: noise-anim 2s infinite linear alternate-reverse;
}

@keyframes noise-anim {
    0% { clip: rect(2px, 9999px, 10px, 0); transform: skew(0.8deg); }
    5% { clip: rect(12px, 9999px, 15px, 0); transform: skew(-0.8deg); }
    10% { clip: rect(44px, 9999px, 5px, 0); transform: skew(0.2deg); }
    15% { clip: rect(4px, 9999px, 84px, 0); transform: skew(0.6deg); }
    100% { clip: rect(62px, 9999px, 20px, 0); transform: skew(0.1deg); }
}

#safety-gate {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #000000;
    z-index: 9999;
    display: none; justify-content: center; align-items: center;
    text-align: center;
}


#safety-gate.visible { display: flex; }

.gate-content {
    max-width: 600px; padding: 2rem;
    border: 1px solid #333;
}

.warning-title {
    color: #ff3333; 
    font-size: 1.2rem; letter-spacing: 0.2rem;
    margin-bottom: 2rem; text-transform: uppercase;
    animation: pulse-warning 2s infinite;
}

.gate-content p {
    color: #ccc; margin-bottom: 2rem; font-size: 0.9rem;
}

.gate-btn {
    background: transparent; border: 1px solid #666;
    color: #fff; padding: 1rem 2rem;
    font-family: 'Inter', sans-serif; cursor: pointer;
    font-size: 0.8rem; letter-spacing: 0.1rem;
    transition: all 0.3s ease; margin-right: 1rem;
}

.gate-btn:hover { background: #fff; color: #000; }

.gate-link {
    color: #666; font-size: 0.8rem; text-decoration: none;
    margin-left: 1rem;
}
.gate-link:hover { color: #888; text-decoration: underline; }

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 2rem auto 3rem;
}

.form-input,
.form-textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.8rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--text-main);
    padding: 0.8rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-transform: uppercase;
}

.form-submit:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

.form-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

.form-message.success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #0f0;
}

.form-message.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #f00;
}




@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
    
    #observer-root {
        padding: 120px 20px 40px 20px;
    }
    
    #observer-root.about-page {
        padding-top: 160px;
    }
    
    #quote-overlay {
        top: 8%;
        font-size: 1rem;
        padding: 0 20px;
    }
    
    h1 {
        font-size: 0.95rem;
        letter-spacing: 0.8rem;
        margin-bottom: 4rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
        line-height: 2;
        margin-bottom: 4rem;
    }
    
    nav {
        flex-direction: column;
        gap: 2rem;
        background: rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.03);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        padding: 1rem 1.5rem;
        border-radius: 8px;
    }
    
    nav a {
        font-size: 1.1rem;
        padding: 0.5rem;
    }
    
    
    .content-block p {
        font-size: 1rem;
        line-height: 1.9;
    }
    
    
    .project-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .glitch-link {
        font-size: 1.1rem;
    }
    
    
    .contact-form {
        max-width: 100%;
    }
}


@media (max-width: 480px) {
    #observer-root {
        padding: 120px 30px 40px 30px;
        max-width: 100%;
    }
    
    #quote-overlay {
        padding: 0 25px;
    }
    
    h1 {
        letter-spacing: 0.5rem;
        font-size: 0.85rem;
    }
    
    .hero-text {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    nav {
        gap: 1.5rem;
        padding: 1rem 1.2rem;
    }
    
    .content-block p {
        padding: 0 10px;
    }
    
    .project-list {
        padding: 0 10px;
    }
    
    .contact-form {
        padding: 0 10px;
    }
}


.view-toggle {
    margin: 2rem 0 3rem;
    text-align: center;
}

.toggle-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--text-main);
    padding: 0.8rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 4px;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
    letter-spacing: 0.2rem;
}

.toggle-btn:active {
    transform: scale(0.98);
}

.content-block {
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

.content-block.fading {
    opacity: 0;
}
