:root {
    --neon-green: #0f0;
    --dark-bg: #000;
    --accent: #0ff;
    --text-shadow: 0 0 5px var(--neon-green), 0 0 10px var(--neon-green);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background-color: var(--dark-bg);
    color: var(--neon-green);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--neon-green);
    margin-bottom: 40px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-shadow: var(--text-shadow);
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--neon-green);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav ul li a:hover {
    color: var(--accent);
    text-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 60px 0;
}

.hero-content {
    flex: 1;
}

.glitch-text {
    font-size: 64px;
    font-weight: bold;
    letter-spacing: 2px;
    position: relative;
    animation: glitch 3s infinite;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 24px;
    color: #fff;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.terminal {
    background-color: rgba(0, 30, 0, 0.8);
    border: 1px solid var(--neon-green);
    padding: 20px;
    width: 100%;
    max-width: 500px;
    height: 300px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.terminal-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.terminal-header span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.terminal-header span:nth-child(1) {
    background-color: #ff5f56;
}

.terminal-header span:nth-child(2) {
    background-color: #ffbd2e;
}

.terminal-header span:nth-child(3) {
    background-color: #27c93f;
}

.terminal-content {
    font-family: 'Courier New', monospace;
    color: var(--neon-green);
    height: calc(100% - 40px);
    overflow: hidden;
}

.terminal-line {
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(60, end);
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: var(--neon-green);
    animation: blink 1s infinite;
    vertical-align: middle;
}

.section-title {
    font-size: 36px;
    margin-bottom: 30px;
    text-shadow: var(--text-shadow);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--neon-green);
    box-shadow: var(--text-shadow);
}

.projects {
    margin: 100px 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: rgba(0, 30, 0, 0.8);
    border: 1px solid var(--neon-green);
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.2);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 95%, var(--neon-green) 95%);
    z-index: -1;
}

.project-image {
    width: 100%;
    height: 200px;
    background-color: #111;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--neon-green);
    font-size: 24px;
    text-align: center;
}

.project-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.project-description {
    font-size: 14px;
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.6;
}

.project-link {
    font-size: 14px;
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tag {
    background-color: rgba(0, 255, 0, 0.1);
    color: var(--neon-green);
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid var(--neon-green);
}

.about {
    margin: 100px 0;
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 1;
    height: 400px;
    background-color: #111;
    border: 1px solid var(--neon-green);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--neon-green);
    font-size: 24px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.about-content {
    flex: 1;
}

.about-text {
    line-height: 1.8;
    margin-bottom: 30px;
    color: #ccc;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.skill {
    background-color: rgba(0, 255, 0, 0.1);
    color: var(--neon-green);
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid var(--neon-green);
    position: relative;
    overflow: hidden;
}

.skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.2), transparent);
    animation: shine 3s infinite;
}

.contact {
    margin: 100px 0;
}

.contact-form {
    background-color: rgba(0, 30, 0, 0.8);
    border: 1px solid var(--neon-green);
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-green);
    color: #fff;
    font-family: 'Courier New', monospace;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-button {
    background-color: transparent;
    color: var(--neon-green);
    padding: 12px 25px;
    border: 1px solid var(--neon-green);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.form-button:hover {
    background-color: var(--neon-green);
    color: #000;
    box-shadow: 0 0 20px var(--neon-green);
}

footer {
    border-top: 1px solid var(--neon-green);
    padding: 20px 0;
    text-align: center;
    margin-top: 100px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link {
    color: var(--neon-green);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
    text-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent);
}

.copyright {
    color: #666;
    font-size: 14px;
}

/* Animations */
@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}