:root {
    --bg-color: #f9f9f9;
    --text-color: #333;
    --accent-color: #000;
    --secondary-text: #666;
    --tag-bg: #e0e0e0;
    --cursor-color: rgba(0, 0, 0, 0.1);
    --selection-color: #b4d5fe;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --accent-color: #fff;
    --secondary-text: #a0a0a0;
    --tag-bg: #333;
    --cursor-color: rgba(255, 255, 255, 0.1);
    --selection-color: #264f78;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
    /* Custom cursor */
}

::selection {
    background: var(--selection-color);
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

.top-nav {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 1.5rem;
    z-index: 100;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-switch span {
    cursor: none;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.lang-switch span.active,
.lang-switch span:hover {
    opacity: 1;
}

.theme-switch {
    cursor: none;
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switch svg {
    position: absolute;
    width: 20px;
    height: 20px;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s;
}

.icon-moon {
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="dark"] .icon-sun {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .icon-moon {
    opacity: 1;
    transform: rotate(0);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 15vh 2rem 5rem;
}

.hero-section {
    margin-bottom: 5rem;
}

h1.greeting {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

h2.nickname {
    font-size: 2rem;
    font-weight: 400;
    color: var(--secondary-text);
}

.name-highlight {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.name-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--text-color);
    opacity: 0.1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.name-highlight:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.content-block {
    margin-bottom: 4rem;
}

h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--secondary-text);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.intro p {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.5;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: var(--tag-bg);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: transform 0.3s ease, background 0.3s;
}

.tag:hover {
    transform: translateY(-3px);
    background: var(--text-color);
    color: var(--bg-color);
}

.project-list {
    list-style: none;
}

.project-link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    transition: padding 0.3s ease;
}

.project-link:hover {
    padding-left: 1rem;
    border-color: var(--accent-color);
}

.project-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--secondary-text);
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-btn {
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.social-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* ... existing helper classes ... */

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: #fff;
    /* Solid white for difference mode to work best */
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), height 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    mix-blend-mode: difference;
}

.cursor-hover {
    width: 60px;
    height: 60px;
    mix-blend-mode: difference;
}

/* Magnetic Effect targets */
.magnetic {
    display: inline-block;
    cursor: none;
    /* Ensure system cursor is hidden */
}

/* Glitch/Scramble Effect Text */
.scramble-text {
    font-family: 'Courier New', monospace;
    /* Monospace font often looks improved for scramble */
    display: inline-block;
}

@media (max-width: 600px) {

    /* ... existing mobile styles ... */
    .cursor-follower {
        display: none;
    }
}