/* Base styles */
body {
    background-color: #121212;
    color: #c8c8c8;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header styles */
header {
    padding: 30px 20px;
    background-color: #1d1d1d;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.8em;
    margin: 0;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

nav {
    margin-top: 20px;
    font-family: 'Press Start 2P', cursive;
}

nav a {
    margin: 0 15px;
    color: #00ff00;
    text-decoration: none;
    position: relative;
    font-size: 0.8em;
    padding: 5px 0;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff00ff;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ff00ff;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a.highlight {
    color: #ff00ff;
    border: 1px solid #ff00ff;
    padding: 5px 10px;
    border-radius: 3px;
}

nav a.highlight:hover {
    background-color: rgba(255, 0, 255, 0.2);
}

/* Main content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Section styles */
section {
    margin-bottom: 40px;
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
}

section h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.4em;
    color: #00ff00;
    margin: 0;
    padding: 15px 20px;
    background-color: #252525;
    border-bottom: 1px solid #333;
}

.section-content {
    padding: 20px;
}

/* About section */
.avatar {
    text-align: center;
    margin-bottom: 20px;
}

.pixel-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background-color: #333;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 2px #00ff00;
}

.pixel-avatar::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 40%;
    background-color: #00ff00;
    border-radius: 50%;
    top: 20%;
    left: 20%;
}

.pixel-avatar::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 30%;
    background-color: #00ff00;
    border-radius: 5px;
    bottom: 15%;
    left: 10%;
}

.text-content p {
    margin-bottom: 15px;
}

/* Projects section */
.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background-color: #252525;
    border-radius: 5px;
    padding: 20px;
    border: 1px solid #333;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1em;
    color: #00ff00;
    margin-top: 0;
    margin-bottom: 15px;
}

.project-card p {
    font-size: 0.9em;
    margin-bottom: 20px;
}

.project-link {
    display: inline-block;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7em;
    background-color: #1d1d1d;
    color: #00ff00;
    padding: 8px 15px;
    border-radius: 3px;
    text-decoration: none;
    border: 1px solid #00ff00;
    transition: background-color 0.3s, color 0.3s;
}

.project-link:hover {
    background-color: #00ff00;
    color: #121212;
}

/* Contact section */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    background-color: #252525;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: #c8c8c8;
    transition: transform 0.3s, background-color 0.3s;
    width: calc(50% - 15px);
    box-sizing: border-box;
}

.social-link:hover {
    transform: translateY(-3px);
    background-color: #333;
}

.social-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-color: #00ff00;
    border-radius: 3px;
}

.social-link span {
    font-size: 0.9em;
}

/* Footer styles */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1d1d1d;
    margin-top: 40px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7em;
    color: #888;
}

/* Links */
a {
    color: #00ccff;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ff00ff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav a {
        margin: 0 10px;
        font-size: 0.7em;
    }

    .project-cards {
        grid-template-columns: 1fr;
    }

    .social-link {
        width: 100%;
    }

    .section-content {
        padding: 15px;
    }
}

/* Animation for terminal-like cursor effect */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #00ff00;
    margin-left: 5px;
    animation: blink 1s infinite;
}