:root {
    --bg: #050505;
    --card-bg: #0f0f0f;
    --accent: #81a7e3;
    --accent-low: #81a7e3;
    --text: #e0e0e0;
    --radius: 0px; 
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* --- BACKGROUND STYLE --- */
.moving-background {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200vw;
    height: 200vh;
    z-index: -1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0.35;
    line-height: 1.8;
    word-break: break-all;
    transform: rotate(-15deg);
    animation: scrollText 60s linear infinite;
    pointer-events: none;
    user-select: none;
    display: block;
    text-align: justify;
    transition: opacity 0.3s;
}

@keyframes scrollText {
    0% { transform: rotate(-15deg) translateY(0); }
    100% { transform: rotate(-15deg) translateY(-200px); }
}

.monolith {
    width: 90%;
    max-width: 800px;
    height: 80vh;
    background: var(--card-bg);
    border: 1px solid rgba(129, 167, 227, 0.3); 
    border-radius: var(--radius);
    display: grid;
    grid-template-rows: auto 1fr auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 20px rgba(129, 167, 227, 0.1);
    position: relative;
    z-index: 10;
}

header {
    padding: 30px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.brand h1 {
    font-size: 1.5rem;
    letter-spacing: 4px;
    color: var(--accent);
    font-weight: 800;
}

.status-dot {
    font-family: monospace;
    font-size: 0.7rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

main {
    padding: 40px;
    overflow-y: auto;
    transition: opacity 0.2s ease; 
}

.content-state {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #222;
}

.nav-item {
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #666;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-right: 1px solid #222;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-item:last-child { border-right: none; }

.nav-item:hover, .nav-item.active {
    background: #161616;
    color: var(--accent);
}

.big-text {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* --- MULTI-COLOR TEXT STYLE --- */
.multi-color {
    background: linear-gradient(90deg, #ff8a00, #e52e71, #9f3eff, #2e86de);
    background-size: 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    animation: shimmer 5s infinite linear;
}
.trans-color {
    background: linear-gradient(90deg, #5bcefa, #f5a9b8, #ffffff, #f5a9b8, #5bcefa);
    background-size: 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    animation: shimmer 5s infinite linear;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.skill-tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--accent-low);
    margin: 0 5px 10px 0;
    font-size: 0.8rem;
    border-radius: 0px; 
    color: var(--accent);
}

.social-link {
    display: inline-block;
    margin-right: 20px;
    color: var(--text);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--accent);
}

.corner-decoration {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--accent);
    pointer-events: none;
    z-index: 20;
    animation-duration: 4s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.top-left { top: 0; left: 0; border-right: none; border-bottom: none; animation-name: float-tl; }
.top-right { top: 0; right: 0; border-left: none; border-bottom: none; animation-name: float-tr; }
.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; animation-name: float-bl; }
.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; animation-name: float-br; }

@keyframes float-tl { 0%, 100% { transform: translate(-8px, -8px); } 50% { transform: translate(-16px, -16px); } }
@keyframes float-tr { 0%, 100% { transform: translate(8px, -8px); } 50% { transform: translate(16px, -16px); } }
@keyframes float-bl { 0%, 100% { transform: translate(-8px, 8px); } 50% { transform: translate(-16px, 16px); } }
@keyframes float-br { 0%, 100% { transform: translate(8px, 8px); } 50% { transform: translate(16px, 16px); } }

/* Media and styling adjustments for the blog */
.blog-post-item {
    border-bottom: 1px solid #1c1c1c;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.blog-post-item:last-child {
    border-bottom: none;
}
.media-container {
    margin-top: 15px;
}
.media-container img, .media-container video {
    max-width: 100%;
    border: 1px solid rgba(129, 167, 227, 0.2);
    margin-bottom: 10px;
}
.media-container audio {
    width: 100%;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .monolith { height: 95vh; width: 85%; }
    .big-text { font-size: 1.4rem; }
    .nav-grid { grid-template-columns: 1fr; }
    .nav-item { border-right: none; border-bottom: 1px solid #222; }
}