:root {
    --bg-color: #0a0a0a;
    --card-bg: #111111;
    --text-color: #e0e0e0;
    --accent-color: #00ff41;
    /* Cyberpunk Green */
    --accent-hover: #00cc33;
    --secondary-color: #888;
    --border-color: #333;
    --font-main: 'Fira Code', 'Courier New', Courier, monospace;
    --font-mono: 'Fira Code', 'Courier New', Courier, monospace;
}





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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* New Glowing Cursor - Smaller & Upright */
    cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><defs><filter id="glow" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="1.5" result="coloredBlur"/><feMerge><feMergeNode in="coloredBlur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><path d="M2 2 L5 19.9 L8.9 13.9 L16 13.5 Z" fill="%2300ff41" stroke="%2300ff41" stroke-width="1" filter="url(%23glow)"/><path d="M2 2 L5 19.9 L8.9 13.9 L16 13.5 Z" fill="black" stroke="none"/></svg>') 2 2, auto;
}

a,
button,
.writeup-card {
    /* Pointer Glowing Cursor - Smaller & Upright */
    cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><defs><filter id="glow" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="1.5" result="coloredBlur"/><feMerge><feMergeNode in="coloredBlur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><path d="M2 2 L5 19.9 L8.9 13.9 L16 13.5 Z" fill="%23ffffff" stroke="%23ffffff" stroke-width="1" filter="url(%23glow)"/><path d="M2 2 L5 19.9 L8.9 13.9 L16 13.5 Z" fill="black" stroke="none"/></svg>') 2 2, pointer;
}

/* Default Cursor Override */
body.default-cursor,
body.default-cursor a,
body.default-cursor button,
body.default-cursor .writeup-card {
    cursor: auto !important;
}

body.default-cursor a,
body.default-cursor button,
body.default-cursor .writeup-card {
    cursor: pointer !important;
}

/* Cursor Toggle Button */
#cursor-toggle {
    background: none;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-left: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#cursor-toggle:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--accent-color);
}

/* Header */
header {
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

nav {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: -0.5px;
    position: relative;
    text-shadow: 0 0 5px var(--accent-color);
    animation: flicker 2s infinite;
}

@keyframes flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        text-shadow: 0 0 5px var(--accent-color), 0 0 10px var(--accent-color);
        opacity: 1;
    }

    20%,
    24%,
    55% {
        text-shadow: none;
        opacity: 0.8;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

/* Main Content */
main {
    flex: 1;
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1rem;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Section */
.profile {
    text-align: center;
    margin: 6rem 0;
}

.profile-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.profile h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.profile .subtitle {
    color: var(--accent-color);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.profile p {
    color: var(--secondary-color);
    max-width: 500px;
    margin: 0 auto;
}

/* Social Links */
.social-links {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    gap: 3.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-links img {
    width: 32px;
    height: 32px;
    filter: invert(1) opacity(0.8);
    /* White and slightly transparent */
    transition: all 0.3s ease;
}



.social-links a:hover {
    transform: translateY(-5px);
}

.social-links a:hover img {
    filter: invert(1) opacity(1) drop-shadow(0 0 8px var(--accent-color));
    transform: scale(1.1);
}

/* Writeups List */
.writeup-list {
    list-style: none;
}

.writeup-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0;
    /* Removed padding from here */
    margin-bottom: 2.5rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.writeup-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 255, 65, 0.1);
}

.writeup-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 2rem;
    /* Added padding here */
}

.writeup-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}



.writeup-meta {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.writeup-excerpt {
    color: var(--secondary-color);
}

/* Markdown Content */
.content h1,
.content h2,
.content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    line-height: 1.3;
}

.content h1 {
    font-size: 2.2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.content h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.content h3 {
    font-size: 1.4rem;
}

.content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.content a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-color);
}

.content a:hover {
    border-bottom-style: solid;
}

.content pre {
    background-color: #161616;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    position: relative;
}

.content pre::before {
    content: "Code";
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--accent-color);
}

.content pre code {
    color: #e0e0e0;
    background: none;
    padding: 0;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--secondary-color);
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-mono);
}

.copy-button:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.content blockquote {
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    margin-left: 0;
    color: var(--secondary-color);
    font-style: italic;
}

.content ul,
.content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.content img {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin: 2rem 0;
    transition: transform 0.3s ease;
}

.content img:hover {
    transform: scale(1.02);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}