/* styles.css */

/* Root colors */
:root {
    --bg-dark: #0a0a0a;
    --green-neon: #00ff41;
    --green-dark: #007f29;
    --text-light: #c8f2c8;
    --glitch-red: #f02a4b;
    --glitch-blue: #0af;
    --font-mono: 'Courier New', Courier, monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-mono);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    cursor: none; /* Hide default cursor */
}

.cursor-glow {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #00ff41;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41;
    animation: trailFade 1s ease-out forwards;
}

@keyframes trailFade {
    to {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Matrix background container */
#matrix-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(0,255,65,0.05) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgba(0,170,255,0.05) 0%, transparent 20%);
}

/* Matrix columns container */
#matrix {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    display: flex;
    font-size: 14px;
    letter-spacing: 0.1em;
    user-select: none;
}

.matrix-column {
    flex: 1 0 12px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: var(--green-neon);
    opacity: 0.15;
    text-shadow: 0 0 5px var(--green-neon);
    animation: flicker 3s infinite ease-in-out;
}

@keyframes flicker {
    0%, 100% {opacity: 0.15;}
    50% {opacity: 0.3;}
}

/* Glitch overlay */
#glitch-layer {
    pointer-events: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 10;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 2px,
        transparent 2px,
        transparent 4px
    );
    animation: glitchShift 3s infinite;
}

@keyframes glitchShift {
    0%, 100% {transform: translateX(0);}
    25% {transform: translateX(1px);}
    50% {transform: translateX(-1px);}
    75% {transform: translateX(0.5px);}
}

/* Scanline effect */
#scanline {
    pointer-events: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 11;
    background: linear-gradient(
        to bottom,
        rgba(0, 255, 65, 0.1) 0%,
        rgba(0, 255, 65, 0) 10%
    );
    background-size: 100% 8px;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% {background-position: 0 0;}
    100% {background-position: 0 100vh;}
}

/* Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    position: relative;
    z-index: 20;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

header h1 {
    font-size: 2rem;
    color: var(--green-neon);
    text-shadow: 0 0 8px var(--green-neon);
    user-select: none;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--green-neon);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-neon);
    transition: width 0.3s ease;
}

nav a:hover,
nav a:focus {
    color: var(--green-dark);
}

nav a:hover::after,
nav a:focus::after {
    width: 100%;
}

/* Hamburger menu for mobile */
#menu-toggle {
    display: none;
}

label[for="menu-toggle"] {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 30;
}

label[for="menu-toggle"] span,
label[for="menu-toggle"] span::before,
label[for="menu-toggle"] span::after {
    display: block;
    background: var(--green-neon);
    position: absolute;
    height: 3px;
    width: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

label[for="menu-toggle"] span {
    top: 50%;
    margin-top: -1.5px;
}

label[for="menu-toggle"] span::before {
    content: '';
    top: -8px;
}

label[for="menu-toggle"] span::after {
    content: '';
    top: 8px;
}

#menu-toggle:checked + nav {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.85);
    position: fixed;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
    border-left: 1px solid var(--green-neon);
    height: calc(100vh - 60px);
    z-index: 25;
}

#menu-toggle:checked + nav a {
    margin-bottom: 1rem;
}

/* Profile Section */
.profile {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.profile img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid var(--green-neon);
    box-shadow: 0 0 15px var(--green-neon);
    object-fit: cover;
    user-select: none;
}

.profile-info {
    flex: 1;
    min-width: 250px;
}

.profile-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--green-neon);
    text-shadow: 0 0 8px var(--green-neon);
}

.profile-info p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-light);
}

/* Blog Section */
.blog {
    margin-bottom: 4rem;
}

.blog article {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--green-dark);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
    transition: box-shadow 0.3s ease;
}

.blog article:hover {
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.5);
}

.blog article h3 {
    color: var(--green-neon);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    text-shadow: 0 0 6px var(--green-neon);
}

.blog article p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
}

.blog article img {
    max-width: 100%;
    margin-top: 1rem;
    border-radius: 4px;
    border: 1px solid var(--green-dark);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.15);
    user-select: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--green-dark);
    user-select: none;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        justify-content: space-between;
    }

    nav {
        display: none;
        flex-direction: column;
        gap: 1rem;
    }

    label[for="menu-toggle"] {
        display: block;
    }

    .profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-info {
        min-width: auto;
    }
}