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

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.container {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
}

h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 1s ease-out;
}

.social-icons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeIn 1.2s ease-out;
}

.social-icons a {
    color: #666;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.social-icons a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 1px;
    background: #fff;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    color: #fff;
}

.social-icons a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeIn 1.4s ease-out;
}

.btn {
    padding: 0.875rem 2.5rem;
    background: transparent;
    color: #e0e0e0;
    border: 1px solid #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover {
    color: #0a0a0a;
    border-color: #fff;
}

.btn:hover::before {
    left: 0;
}

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

.back-nav {
    text-align: left;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-out;
}

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.back-link:hover {
    color: #fff;
}

.page-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    color: #fff;
    animation: fadeIn 1s ease-out;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 1.2s ease-out;
}

.project-item {
    border: 1px solid #222;
    padding: 2rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.project-item:hover {
    border-color: #444;
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(5px);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: #fff;
}

.project-desc {
    color: #888;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.8rem;
    color: #666;
    padding: 0.25rem 0.75rem;
    border: 1px solid #333;
    letter-spacing: 0.05em;
}

.project-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.project-link:hover {
    color: #fff;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    .nav-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .social-icons {
        gap: 1.5rem;
    }

    .project-item {
        padding: 1.5rem;
    }
}

/* Terminal Styles */
.terminal {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #333;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    z-index: 10000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.terminal.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    color: #888;
    font-size: 0.85rem;
    border-radius: 4px 4px 0 0;
}

.terminal-close {
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: #666;
    transition: color 0.2s ease;
}

.terminal-close:hover {
    color: rgb(255, 255, 255);
}

.terminal-output {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    color: #0f0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.terminal-output::-webkit-scrollbar {
    width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.terminal-command {
    color: rgb(255, 255, 255);
}

.terminal-result {
    color: #888;
    margin-left: 1rem;
}

.terminal-error {
    color: #f00;
    margin-left: 1rem;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid #333;
}

.terminal-prompt {
    color: rgb(255, 255, 255);
    margin-right: 0.5rem;
    font-weight: bold;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: rgb(255, 255, 255);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Shader Effects */
.shader-crt {
    animation: crt-flicker 0.1s infinite;
}

.shader-crt::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
}

.shader-crt::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 9999;
}

@keyframes crt-flicker {
    0% { opacity: 0.98; }
    50% { opacity: 1; }
    100% { opacity: 0.98; }
}

.shader-blood {
    animation: blood-pulse 2s infinite;
}

.shader-blood::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(139, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 9999;
    animation: blood-vignette 3s ease-in-out infinite;
}

@keyframes blood-pulse {
    0%, 100% { filter: hue-rotate(0deg) saturate(1); }
    50% { filter: hue-rotate(-10deg) saturate(1.3); }
}

@keyframes blood-vignette {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.shader-underwater {
    animation: underwater-wave 4s ease-in-out infinite;
}

.shader-underwater::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        0deg,
        rgba(0, 100, 150, 0.2) 0%,
        rgba(0, 50, 100, 0.3) 50%,
        rgba(0, 100, 150, 0.2) 100%
    );
    pointer-events: none;
    z-index: 9999;
    animation: underwater-flow 8s linear infinite;
}

.shader-underwater::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        60deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
    pointer-events: none;
    z-index: 9999;
    animation: underwater-caustics 10s linear infinite;
}

@keyframes underwater-wave {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(10deg); }
}

@keyframes underwater-flow {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

@keyframes underwater-caustics {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(360deg); }
}

.shader-matrix {
    animation: matrix-glitch 0.5s infinite;
}

.shader-matrix::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

@keyframes matrix-glitch {
    0% { filter: hue-rotate(0deg); }
    25% { filter: hue-rotate(90deg); }
    50% { filter: hue-rotate(180deg); }
    75% { filter: hue-rotate(270deg); }
    100% { filter: hue-rotate(360deg); }
}

.shader-glitch {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    20% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }
    40% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(180deg);
    }
    60% {
        transform: translate(2px, 2px);
        filter: hue-rotate(270deg);
    }
    80% {
        transform: translate(2px, -2px);
        filter: hue-rotate(360deg);
    }
    100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
}

.shader-vhs {
    animation: vhs-distort 0.2s infinite;
}

.shader-vhs::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        rgba(0, 0, 0, 0) 2px
    );
    pointer-events: none;
    z-index: 9999;
}

@keyframes vhs-distort {
    0% { transform: translateX(0); filter: saturate(0.8); }
    50% { transform: translateX(2px); filter: saturate(1.2); }
    100% { transform: translateX(0); filter: saturate(0.8); }
}

.shader-noir {
    filter: grayscale(100%) contrast(1.3) brightness(0.9);
}

.shader-noir::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 9999;
}
