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

:root {
    --black: #0a0a0a;
    --darker: #1a1a1a;
    --gray: #2a2a2a;
    --white: #e0e0e0;
    --lime: #d4ff00;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 4px 4px 0 rgba(212, 255, 0, 0.3);
    }
    25% {
        text-shadow: -4px 4px 0 rgba(212, 255, 0, 0.3);
    }
    50% {
        text-shadow: 4px -4px 0 rgba(212, 255, 0, 0.3);
    }
    75% {
        text-shadow: -4px -4px 0 rgba(212, 255, 0, 0.3);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

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

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

body {
    font-family: 'Comic Sans MS', sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.4;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.5' numOctaves='6' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
    animation: pulse 10s ease-in-out infinite;
}

.diagonal-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.02) 10px,
            rgba(255, 255, 255, 0.02) 20px
        ),
        radial-gradient(circle, rgba(212, 255, 0, 0.05) 1px, transparent 1px);
    background-size: auto, 30px 30px;
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.header {
    padding: 80px 0 40px;
    border-bottom: 8px solid var(--lime);
    background: var(--darker);
    margin: 0 -40px;
    padding-left: 40px;
    padding-right: 40px;
    position: relative;
    animation: slideIn 0.8s ease-out;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(212, 255, 0, 0.03) 2px,
            rgba(212, 255, 0, 0.03) 4px
        ),
        radial-gradient(circle at 20% 50%, transparent 0%, rgba(212, 255, 0, 0.03) 100%);
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.header::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 40px;
    width: 100px;
    height: 100px;
    background-image: 
        repeating-linear-gradient(
            90deg,
            var(--lime),
            var(--lime) 2px,
            transparent 2px,
            transparent 20px
        ),
        repeating-linear-gradient(
            0deg,
            var(--lime),
            var(--lime) 2px,
            transparent 2px,
            transparent 20px
        );
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

.name {
    font-size: clamp(60px, 12vw, 140px);
    font-weight: 700;
    letter-spacing: -4px;
    text-transform: uppercase;
    line-height: 0.9;
    position: relative;
    display: inline-block;
    text-shadow: 4px 4px 0 rgba(212, 255, 0, 0.3);
    animation: glitch 5s ease-in-out infinite;
}

.name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 12px;
    background: var(--lime);
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

.intro {
    padding: 60px 0 80px;
    background: var(--black);
    color: var(--lime);
    margin: 0 -40px;
    padding-left: 40px;
    padding-right: 40px;
    position: relative;
    border-bottom: 4px solid var(--gray);
    animation: slideIn 1s ease-out 0.2s both;
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(212, 255, 0, 0.05) 20px,
            rgba(212, 255, 0, 0.05) 40px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(212, 255, 0, 0.03) 20px,
            rgba(212, 255, 0, 0.03) 40px
        ),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.intro::after {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 50%;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(circle, var(--lime) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.1;
    transform: translateX(-50%);
    animation: rotate 30s linear infinite reverse;
}

.bio {
    font-size: clamp(24px, 4vw, 48px);
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    max-width: 800px;
}

.projects {
    padding: 80px 0 120px;
    background: var(--darker);
    margin: 0 -40px;
    padding-left: 40px;
    padding-right: 40px;
    position: relative;
    animation: slideIn 1.2s ease-out 0.4s both;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.02) 40px,
            rgba(255, 255, 255, 0.02) 80px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.02) 40px,
            rgba(255, 255, 255, 0.02) 80px
        );
    pointer-events: none;
}

.projects::after {
    content: '';
    position: absolute;
    top: 100px;
    right: 60px;
    width: 200px;
    height: 200px;
    background-image: 
        radial-gradient(circle, var(--lime) 1.5px, transparent 1.5px);
    background-size: 25px 25px;
    opacity: 0.05;
    animation: float 8s ease-in-out infinite;
}

.section-title {
    font-size: clamp(32px, 6vw, 72px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 60px;
    border-left: 20px solid var(--lime);
    padding-left: 20px;
    position: relative;
    animation: slideIn 0.6s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    width: 10px;
    height: 10px;
    background: var(--lime);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: pulse 2s ease-in-out infinite;
}

.project {
    border: 6px solid var(--lime);
    padding: 40px;
    margin-bottom: 40px;
    background: var(--black);
    position: relative;
    transition: all 0.3s ease;
    animation: slideIn 0.8s ease-out;
}

.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 8px,
            rgba(212, 255, 0, 0.05) 8px,
            rgba(212, 255, 0, 0.05) 16px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 8px,
            rgba(212, 255, 0, 0.03) 8px,
            rgba(212, 255, 0, 0.03) 16px
        ),
        radial-gradient(circle at 80% 20%, transparent 0%, rgba(212, 255, 0, 0.05) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 100%;
    height: 100%;
    border: 6px solid var(--lime);
    background: var(--gray);
    z-index: -1;
    transition: all 0.3s ease;
}

.project:hover {
    transform: translateX(-4px) translateY(-4px);
}

.project:hover::before {
    opacity: 1.5;
}

.project:hover::after {
    top: 16px;
    left: 16px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
}

.project-header::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    width: 40px;
    height: 40px;
    background-image: 
        repeating-linear-gradient(
            90deg,
            var(--lime),
            var(--lime) 1px,
            transparent 1px,
            transparent 10px
        ),
        repeating-linear-gradient(
            0deg,
            var(--lime),
            var(--lime) 1px,
            transparent 1px,
            transparent 10px
        );
    opacity: 0.2;
}

.project-name {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--lime);
    transition: letter-spacing 0.3s ease;
}

.project:hover .project-name {
    letter-spacing: 0px;
}

.project-status {
    font-size: 14px;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    background: var(--lime);
    color: var(--black);
    border: 3px solid var(--lime);
    animation: pulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.project-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

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

.project-desc {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 400;
    position: relative;
}

.project-tech {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}

.project-tech span {
    font-size: 14px;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 3px solid var(--lime);
    background: var(--black);
    color: var(--lime);
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.project-tech span::before {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    background: var(--lime);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-tech span:hover {
    background: var(--lime);
    color: var(--black);
    transform: translateY(-2px);
}

.project-tech span:hover::before {
    opacity: 1;
}

.footer {
    padding: 60px 0;
    border-top: 8px solid var(--lime);
    background: var(--black);
    color: var(--white);
    margin: 0 -40px;
    padding-left: 40px;
    padding-right: 40px;
    position: relative;
    animation: slideIn 1.4s ease-out 0.6s both;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 15px,
            rgba(212, 255, 0, 0.03) 15px,
            rgba(212, 255, 0, 0.03) 30px
        ),
        radial-gradient(circle at 50% 50%, transparent 0%, rgba(212, 255, 0, 0.05) 100%);
    pointer-events: none;
}

.footer::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background-image: 
        radial-gradient(circle, var(--lime) 1px, transparent 1px);
    background-size: 15px 15px;
    opacity: 0.1;
    animation: rotate 25s linear infinite;
}

.footer p {
    font-size: 16px;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .header {
        padding: 60px 0 30px;
        margin: 0 -24px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .header::after {
        width: 60px;
        height: 60px;
        right: 20px;
    }

    .intro,
    .projects,
    .footer {
        margin: 0 -24px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .intro {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .intro::after,
    .projects::after,
    .footer::after {
        width: 80px;
        height: 80px;
    }

    .projects {
        padding: 60px 0 80px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .project {
        padding: 24px;
    }

    .project::after {
        top: 8px;
        left: 8px;
    }

    .project:hover::after {
        top: 12px;
        left: 12px;
    }

    .section-title {
        border-left-width: 12px;
        padding-left: 16px;
    }
}

::selection {
    background: var(--lime);
    color: var(--black);
}
