:root {
    --matrix-green: #00ff41;
    --matrix-dark: #0d0208;
    --matrix-glow: #008f11;
    --crt-scanline: rgba(18, 16, 16, 0.1);
    --font-main: 'VT323', monospace;
}

body {
    background-color: black;
    color: var(--matrix-green);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* CRT Scanline Effect */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        to bottom,
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 100;
    pointer-events: none;
}

/* CRT Vignette */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: radial-gradient(
        circle,
        rgba(0, 0, 0, 0) 60%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 100;
    pointer-events: none;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.15; /* Subtle background */
}

.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h1 {
    font-size: 4rem;
    margin-bottom: 0.2em;
    text-shadow: 0 0 10px var(--matrix-glow), 0 0 20px var(--matrix-glow);
    letter-spacing: 2px;
    position: relative;
}

/* Glitch effect animation could go here, keeping it simple for now */

.profile-wrapper {
    position: relative;
    margin: 2rem 0;
    padding: 10px;
    border: 1px solid var(--matrix-green);
    box-shadow: 0 0 15px var(--matrix-glow), inset 0 0 15px var(--matrix-glow);
    background: rgba(0, 20, 0, 0.3);
}

.profile-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    filter: contrast(1.2) brightness(0.9) sepia(0.2) hue-rotate(50deg); /* Greenish tint */
    transition: filter 0.3s ease;
}

.profile-img:hover {
    filter: none; /* Reveal true colors on hover */
}

.content {
    font-size: 1.4rem;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

.section-header {
    font-size: 1.8rem;
    margin-top: 2em;
    margin-bottom: 1em;
    border-bottom: 1px solid var(--matrix-green);
    display: inline-block;
    padding-bottom: 5px;
    text-shadow: 0 0 5px var(--matrix-glow);
}

.project-list {
    text-align: left;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.project-link {
    margin: 1em 0;
    padding-left: 1em;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.project-link:hover {
    border-left: 2px solid var(--matrix-green);
    background: rgba(0, 255, 65, 0.05);
    padding-left: 1.5em;
}

a {
    color: var(--matrix-green);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 8px var(--matrix-green);
    letter-spacing: 1px;
}

.description {
    font-size: 0.9em;
    opacity: 0.8;
    color: #aaffaa;
    display: block;
    margin-top: 0.2em;
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 1em;
    background-color: var(--matrix-green);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 5px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    .content { font-size: 1.1rem; }
    .profile-wrapper { max-width: 100%; }
}
