:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #161616;
    --text-primary: #e5e5e5;
    --text-secondary: #949494;
    --text-muted: #666666;
    --accent-primary: #00d166;
    --accent-secondary: #00b358;
    --accent-glow: rgba(0, 209, 102, 0.1);
    --border-color: #242424;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

/* Matrix Rain Canvas */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
    transition: opacity 2s ease;
}

body.loading #matrix-canvas {
    opacity: 0.45;
}

/* CRT Effects & Scanlines */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    z-index: 9999;
    animation: flicker 0.15s infinite;
    opacity: 0.6;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.2)
    );
    background-size: 100% 4px;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.3;
    animation: scanMove 40s linear infinite;
}

@keyframes scanMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 20px; }
}

/* Fast Random Burst Animation */
.scanlines.glitch-intense {
    animation: scanFast 0.1s steps(2) infinite;
    opacity: 1;
    filter: hue-rotate(180deg) contrast(3) brightness(1.5);
    mix-blend-mode: difference;
}

body.global-glitch-active {
    animation: jitter 0.05s infinite;
    filter: invert(0.05) contrast(1.1);
}

@keyframes jitter {
    0% { transform: translate(0,0); }
    20% { transform: translate(-5px, 3px) skew(2deg); }
    40% { transform: translate(5px, -2px) skew(-3deg); }
    60% { transform: translate(-3px, -5px) rotate(0.5deg); }
    80% { transform: translate(4px, 4px) skew(1deg); }
    100% { transform: translate(-1px, -1px); }
}

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

@keyframes flicker {
    0% { opacity: 0.55; }
    10% { opacity: 0.53; }
    20% { opacity: 0.55; }
    30% { opacity: 0.54; }
    50% { opacity: 0.55; }
    80% { opacity: 0.54; }
    100% { opacity: 0.55; }
}

/* Custom Cursor with Trail */
.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 20px var(--accent-glow);
    transition: transform 0.1s;
}

.cursor-dot {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-cursor {
    color: var(--accent-primary);
    margin-left: 2px;
    animation: logoBlink 1s step-end infinite;
}

@keyframes logoBlink {
    50% { opacity: 0; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-external {
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-external:hover {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    left: 0;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    top: 6px;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 6rem 2rem;
        transition: var(--transition);
        border-left: 1px solid var(--border-color);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
    }
}

/* Theme Toggle Easter Egg */
.theme-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    padding: 0.6rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(0, 209, 102, 0.2);
}

.theme-toggle svg {
    filter: drop-shadow(0 0 2px var(--accent-primary));
}

.theme-tooltip {
    position: absolute;
    top: 150%;
    right: 0;
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    pointer-events: none;
}

.theme-wrapper:hover .theme-tooltip {
    opacity: 1;
    visibility: visible;
    top: 130%;
}

@media (max-width: 768px) {
    .theme-wrapper {
        margin-top: 1.5rem;
        justify-content: center;
        width: 100%;
    }
    
    .theme-tooltip {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 120%;
        top: auto;
    }

    .theme-wrapper:hover .theme-tooltip {
        bottom: 140%;
        top: auto;
    }
}

.error-pulse {
    color: #ff0040 !important;
    border-color: #ff0040 !important;
    animation: errorShake 0.4s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

@media (max-width: 768px) {
    .theme-tooltip.error-pulse {
        animation: errorShakeMobile 0.4s ease-in-out;
    }
}

@keyframes errorShakeMobile {
    0%, 100% { transform: translateX(-50%); }
    20% { transform: translateX(-55%); }
    40% { transform: translateX(-45%); }
    60% { transform: translateX(-53%); }
    80% { transform: translateX(-47%); }
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem 2rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle ambient glow behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.04) 0%, transparent 70%);
    pointer-events: none;
    animation: ambientDrift 8s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 204, 106, 0.03) 0%, transparent 70%);
    pointer-events: none;
    animation: ambientDrift 10s ease-in-out infinite alternate-reverse;
}

@keyframes ambientDrift {
    from { transform: translate(0, 0); }
    to { transform: translate(30px, -20px); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: left;
}

/* Staggered entrance animation */
.anim-stagger {
    opacity: 0;
    transform: translateY(25px);
    animation: staggerIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--i) * 0.12s + 0.3s);
}

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

.hero-greeting {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    color: #ffffff;
    margin: 0;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
    font-weight: 700;
    position: relative;
    display: block;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    overflow: visible;
}

/* Advanced Digital Glitch - Hidden by default, only shown in bursts */
.hero-title::before,
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s;
}

.hero-title::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip-path: inset(45% 0 45% 0);
}

.hero-title::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
}

/* Burst State */
.hero-title.glitch-active::before {
    opacity: 1;
    animation: glitch-anim 0.15s infinite linear;
    transform: scale(1.1) skew(5deg);
}

.hero-title.glitch-active::after {
    opacity: 1;
    animation: glitch-anim2 0.1s infinite linear;
    transform: scale(0.9) skew(-5deg);
}

@keyframes glitch-anim {
    0% { clip-path: inset(80% 0 1% 0); }
    5% { clip-path: inset(10% 0 80% 0); }
    10% { clip-path: inset(30% 0 20% 0); }
    15% { clip-path: inset(55% 0 40% 0); }
    20% { clip-path: inset(15% 0 70% 0); }
    25% { clip-path: inset(90% 0 5% 0); }
    30% { clip-path: inset(40% 0 50% 0); }
    35% { clip-path: inset(60% 0 10% 0); }
    40% { clip-path: inset(5% 0 85% 0); }
    45% { clip-path: inset(70% 0 25% 0); }
    50% { clip-path: inset(20% 0 65% 0); }
    55% { clip-path: inset(85% 0 5% 0); }
    60% { clip-path: inset(10% 0 75% 0); }
    65% { clip-path: inset(45% 0 45% 0); }
    70% { clip-path: inset(25% 0 60% 0); }
    75% { clip-path: inset(65% 0 15% 0); }
    80% { clip-path: inset(5% 0 90% 0); }
    85% { clip-path: inset(55% 0 35% 0); }
    90% { clip-path: inset(15% 0 70% 0); }
    95% { clip-path: inset(80% 0 15% 0); }
    100% { clip-path: inset(40% 0 40% 0); }
}

@keyframes glitch-anim2 {
    0% { clip-path: inset(25% 0 58% 0); }
    20% { clip-path: inset(54% 0 7% 0); }
    40% { clip-path: inset(67% 0 26% 0); }
    60% { clip-path: inset(5% 0 89% 0); }
    80% { clip-path: inset(32% 0 41% 0); }
    100% { clip-path: inset(91% 0 2% 0); }
}

/* Realistic Digital "Slices" */
.hero-title.glitch-active {
    filter: url(#glitch-filter) brightness(1.5) contrast(1.2);
    animation: shake 0.1s cubic-bezier(.36,.07,.19,.97) infinite;
    transform: scale(1.05);
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
    min-height: 1.2em;
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.dud {
    color: var(--accent-primary);
    opacity: 0.7;
    filter: brightness(1.2);
}

.typed-role {
    color: var(--accent-primary);
}

.typed-cursor {
    color: var(--accent-primary);
    font-weight: 300;
    animation: cursorBlink 0.8s step-end infinite;
}

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

.highlight {
    color: var(--accent-primary);
}

.hero-description {
    font-size: 1.05rem;
    max-width: 520px;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Hero Image */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-container {
    position: relative;
    width: 360px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 209, 102, 0.4);
    position: relative;
    z-index: 2;
    filter: grayscale(20%) contrast(1.05);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.08);
}

.hero-image:hover {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 0 60px rgba(0, 209, 102, 0.2), 0 0 120px rgba(0, 209, 102, 0.05);
}

.hero-image-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(0, 255, 136, 0.12);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 15s linear infinite;
}

.hero-image-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-primary);
}

.hero-image-ring.ring-2 {
    width: 320px;
    height: 320px;
    border-color: rgba(0, 255, 136, 0.06);
    border-style: dashed;
    animation: ringRotate 25s linear infinite reverse;
}

.hero-image-ring.ring-2::before {
    width: 6px;
    height: 6px;
    background: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.hero-image-ring.ring-3 {
    width: 360px;
    height: 360px;
    border-color: rgba(0, 255, 136, 0.03);
    border-style: dotted;
    animation: ringRotate 35s linear infinite;
}

.hero-image-ring.ring-3::before {
    display: none;
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating orbit dots */
.orbit-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-primary);
    z-index: 5;
    animation: orbitPulse 2s ease-in-out infinite alternate, orbitFloat var(--speed) linear infinite;
    transform-origin: 0 0;
    --orbit-radius: 175px;
    opacity: 0;
    visibility: hidden;
}

@keyframes orbitPulse {
    from { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--orbit-radius)) scale(0.8); opacity: 0.6; }
    to { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--orbit-radius)) scale(1.2); opacity: 1; }
}

body:not(.loading) .orbit-dot {
    visibility: visible;
    opacity: 1;
    transition: opacity 1s ease;
    transition-delay: 2s;
}

@keyframes orbitFloat {
    from {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--orbit-radius));
    }
    to {
        transform: translate(-50%, -50%) rotate(calc(var(--angle) + 360deg)) translateX(var(--orbit-radius));
    }
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0, 209, 102, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
}

.hero-image-dots {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(rgba(0, 209, 102, 0.2) 1px, transparent 1px);
    background-size: 10px 10px;
    z-index: 0;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        order: 2;
    }

    .hero-image-wrapper {
        order: 1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-container {
        width: 280px;
        height: 280px;
    }

    .hero-image {
        width: 190px;
        height: 190px;
    }

    .hero-image-ring {
        width: 220px;
        height: 220px;
    }

    .hero-image-ring.ring-2 {
        width: 250px;
        height: 250px;
    }

    .hero-image-ring.ring-3 {
        width: 280px;
        height: 280px;
    }
}

.btn {
    padding: 1rem 2rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 4px 15px rgba(0, 209, 102, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-primary:hover::after {
    left: 140%;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: 0 6px 25px rgba(0, 209, 102, 0.3);
    transform: translateY(-2px);
    color: var(--bg-primary);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 209, 102, 0.05);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 30px;
    border: 2px solid var(--text-muted);
    border-radius: 10px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes scroll {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(10px);
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 3rem 0;
    scroll-margin-top: 80px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
    max-width: 300px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.about-lead {
    font-size: 1.25rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    margin-bottom: 2rem;
    line-height: 1.4;
    font-weight: 500;
}

.info-container {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(5, 5, 5, 0.95) 100%);
    padding: 2.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 209, 102, 0.1);
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.info-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0, 209, 102, 0.03) 1px,
        rgba(0, 209, 102, 0.03) 2px
    );
    pointer-events: none;
}

.info-container p {
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: var(--text-primary);
}

.terminal-window {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s;
}

.terminal-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.terminal-header {
    background: var(--bg-secondary);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-btn.close {
    background: #ff5f56;
}

.terminal-btn.minimize {
    background: #ffbd2e;
}

.terminal-btn.maximize {
    background: #27ca40;
}

.terminal-title {
    margin-left: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    height: 300px;
    overflow-y: auto;
    overscroll-behavior: contain;
    position: relative;
    background: var(--bg-secondary);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-tertiary);
}

.terminal-body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.terminal-body::-webkit-scrollbar-thumb {
    background-color: var(--accent-primary);
    border-radius: 10px;
}

.line {
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateX(-10px);
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.prompt {
    color: var(--accent-primary);
}

.command {
    color: var(--text-primary);
}

.output {
    color: var(--text-secondary);
    margin-left: 1.5rem;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: var(--accent-primary);
    animation: cursor 1s infinite;
    vertical-align: middle;
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-category::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 209, 102, 0.03),
        transparent
    );
    pointer-events: none;
    animation: scanLine 20s linear infinite;
}

@keyframes scanLine {
    0% { top: -100%; }
    100% { top: 100%; }
}

.skill-category:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.category-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.skill-category-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-tag:hover {
    color: var(--accent-primary);
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.project-card.featured {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(0, 209, 102, 0.03) 100%);
    border-color: rgba(0, 209, 102, 0.1);
}

.project-card.featured:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 209, 102, 0.05);
    border-color: var(--accent-primary);
}

.project-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 209, 102, 0.05);
}

.project-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.project-meta {
    display: flex;
    align-items: center;
    margin-bottom: 0.2rem;
}

.project-folder {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.status-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #70a1ff;
    background: rgba(112, 161, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 0.8rem;
    border: 1px solid rgba(112, 161, 255, 0.2);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-tag.stats {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    font-size: 0.75rem;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-tag.stats .icon-star {
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.6));
}

.status-tag.stats .icon-fork {
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.4));
}

.project-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.project-links a {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.project-links a:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: var(--accent-glow);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 209, 102, 0.1), inset 0 0 8px rgba(0, 209, 102, 0.05);
}

.project-links a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-links a:hover svg {
    transform: scale(1.1) rotate(-5deg);
}

.project-links a[aria-label="Live Demo"] {
    background: rgba(0, 209, 102, 0.05);
    border-color: rgba(0, 209, 102, 0.2);
    color: var(--accent-primary);
}

.project-links a[aria-label="Live Demo"]:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 209, 102, 0.3);
}

.project-links a::before,
.project-links a::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    opacity: 0;
    transition: var(--transition);
}

.project-links a::before {
    top: 0;
    left: 0;
    border-top: 1px solid var(--accent-primary);
    border-left: 1px solid var(--accent-primary);
}

.project-links a::after {
    bottom: 0;
    right: 0;
    border-bottom: 1px solid var(--accent-primary);
    border-right: 1px solid var(--accent-primary);
}

.project-links a:hover::before,
.project-links a:hover::after {
    opacity: 1;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #00ff00;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #00ff00;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.project-title {
    font-size: 1.4rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.project-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-features li {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.project-features li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: rgba(0, 209, 102, 0.03);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 209, 102, 0.1);
    transition: var(--transition);
}

.tech-tag:hover {
    color: var(--accent-primary);
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.project-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -4px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.timeline-title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-title a:hover {
    color: var(--accent-primary);
    background: var(--accent-glow);
    transform: translateY(-2px);
    padding: 2px 8px;
    border-radius: 4px;
    margin: -2px -8px;
}

.category-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0.8;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 209, 102, 0.05);
}

.submit-btn {
    width: auto;
    cursor: pointer;
    background: transparent;
    align-self: center;
    margin-top: 1rem;
}

.contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-btn svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-glow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-btn:hover svg {
    transform: translateY(-3px) rotate(5deg) scale(1.1);
}

.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .section-title::after {
        max-width: 150px;
    }
}
/* Glitch Reveal System */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10000;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.glitch-flash {
    animation: flashBreak 0.6s steps(3) forwards;
}

@keyframes flashBreak {
    0% { 
        background: rgba(0, 209, 102, 0.6); 
        clip-path: inset(0 0 0 0);
    }
    20% { 
        background: rgba(255, 0, 80, 0.4); 
        clip-path: inset(40% 0 45% 0);
    }
    40% { 
        background: rgba(0, 100, 255, 0.4); 
        clip-path: inset(10% 0 80% 0);
    }
    60% { 
        background: rgba(0, 255, 136, 0.2); 
        clip-path: inset(0 0 0 0);
    }
    80% { 
        background: rgba(255, 255, 255, 0.2); 
        backdrop-filter: invert(1);
    }
    100% { 
        background: transparent; 
        backdrop-filter: invert(0);
    }
}

.anim-stagger {
    opacity: 0;
    visibility: hidden;
}

body:not(.loading) .anim-stagger {
    visibility: visible;
    animation: revealGlitch 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: calc(var(--i) * 0.12s);
}

@keyframes revealGlitch {
    0% {
        opacity: 0;
        transform: translate(-30px, 20px) skewX(30deg) scale(1.1);
        filter: blur(15px) brightness(3) hue-rotate(90deg);
        clip-path: inset(50% 0 50% 0);
    }
    15% {
        opacity: 0.8;
        transform: translate(25px, -15px) skewX(-25deg);
        filter: blur(5px) contrast(3);
        clip-path: inset(20% 0 70% 0);
    }
    30% {
        transform: translate(-15px, 0px) skewX(15deg);
        clip-path: inset(70% 0 10% 0);
        filter: hue-rotate(-90deg);
    }
    45% {
        transform: translate(15px, 5px) skewX(-15deg);
        clip-path: inset(0 30% 0 50%);
        filter: brightness(2);
    }
    60% {
        opacity: 1;
        transform: translate(-5px, -5px) skewX(5deg);
        clip-path: inset(40% 0 30% 0);
        filter: contrast(1.5) invert(0.2);
    }
    80% {
        transform: translate(0px, 0px) skewX(0deg);
        clip-path: inset(0 0 0 0);
        filter: blur(0px) brightness(1.2);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) skewX(0);
        filter: brightness(1);
    }
}

@keyframes profileReveal {
    0% { opacity: 0; transform: scale(0.8) rotate(5deg) translateY(30px); filter: brightness(3) contrast(2); }
    50% { opacity: 0.5; filter: brightness(1.5) contrast(1.5) hue-rotate(90deg); }
    100% { opacity: 1; transform: scale(1) rotate(0) translateY(0); filter: brightness(1) contrast(1); }
}
/* Contact Form Status Messages */
.status-message {
    margin-top: 1.5rem;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border-radius: 4px;
    display: none;
    text-align: center;
    border: 1px solid transparent;
    animation: statusReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.status-message.success {
    display: block;
    background: rgba(0, 209, 102, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    position: relative;
    overflow: hidden;
}

.status-message.success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 209, 102, 0.2), transparent);
    animation: scanLine 2s linear infinite;
}

@keyframes scanLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.status-message.error {
    display: block;
    background: rgba(255, 0, 64, 0.1);
    color: #ff0040;
    border-color: #ff0040;
}

.contact-btn.loading {
    pointer-events: none;
    opacity: 0.9;
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    position: relative;
    overflow: hidden;
}

.contact-btn.loading .btn-text {
    animation: textPulse 1s ease-in-out infinite alternate;
}

@keyframes textPulse {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Transmitting Scanner Effect */
.contact-btn.loading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    animation: transmitProgress 2.5s ease-in-out infinite;
}

@keyframes transmitProgress {
    0% { width: 0%; left: 0; }
    40% { width: 70%; left: 0; }
    60% { width: 30%; left: 70%; }
    100% { width: 0%; left: 100%; }
}

.success-icon-wrapper {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    animation: iconGlitch 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes iconGlitch {
    0% { transform: scale(0) rotate(-45deg); filter: hue-rotate(90deg) blur(5px); }
    70% { transform: scale(1.2) rotate(10deg); filter: hue-rotate(-45deg) blur(0px); }
    100% { transform: scale(1) rotate(0deg); }
}
