:root {
    --bg-color: #0a0a0a;
    --terminal-bg: #121212;
    --text-color: #e0e0e0;
    --primary-color: #CC5500; /* Burnt Orange */
    --secondary-color: #00FFFF; /* Electric Cyan */
    --accent-color: #6A0DAD; /* Deep Purple */
    --terminal-green: #0f0;
    --terminal-header: #1a1a1a;
    --card-bg: rgba(30, 30, 30, 0.7);
    --border-color: rgba(204, 85, 0, 0.5);
}

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

body {
    font-family: 'VT323', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 18px;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(204, 85, 0, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(106, 13, 173, 0.05) 0%, transparent 30%);
}

/* Terminal Container */
.terminal {
    width: 95%;
    max-width: 1200px;
    margin: 2rem auto;
    background-color: var(--terminal-bg);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(204, 85, 0, 0.3),
                0 0 40px rgba(0, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.terminal-buttons {
    display: flex;
    gap: 8px;
}

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

.close {
    background-color: #ff5f56;
}

.minimize {
    background-color: #ffbd2e;
}

.maximize {
    background-color: #27c93f;
}

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

.terminal-content {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.terminal-content::before {
    content: "";
    position: absolute;
    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: 1;
    opacity: 0.3;
}

/* Header & Navigation */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.ascii-art {
    color: var(--primary-color);
    font-family: monospace;
    font-size: 0.8rem;
    line-height: 1.2;
    text-shadow: 0 0 5px var(--primary-color);
    margin: 0;
}

.tagline {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    text-shadow: 0 0 5px var(--secondary-color);
}

nav {
    width: 100%;
    margin-top: 1.5rem;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-link:hover::before {
    width: 100%;
}

/* Hero Section */
#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.typing-container {
    width: 100%;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

.typing-text {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--text-color);
}

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

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2rem;
    background-color: var(--text-color);
    animation: blink 1s infinite;
}

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

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pixel-avatar {
    width: 150px;
    height: 150px;
    /* Change to logo.png if we don't figure this out. */
    background-image: url('images/pixel-avatar.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.hero-text {
    max-width: 600px;
}

.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.cta-button.secondary:hover {
    background-color: var(--secondary-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--secondary-color);
}

/* Section Styling */
section {
    margin-bottom: 4rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(18, 18, 18, 0.7);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(204, 85, 0, 0.3);
}

/* About Section */
.section-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1rem;
}

.core-pillars {
    flex: 1;
    min-width: 300px;
}

.core-pillars h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.pillar-list {
    list-style: none;
}

.pillar-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.pillar-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
    border-color: var(--secondary-color);
}

.project-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-align: center;
}

.project-card h3 {
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.project-card p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 255, 255, 0.1);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--secondary-color);
    transition: all 0.3s ease;
    text-align: center;
}

.project-link:hover {
    background-color: var(--secondary-color);
    color: var(--bg-color);
}

/* Games Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(106, 13, 173, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3);
    border-color: var(--accent-color);
}

.game-preview {
    width: 100%;
    height: 180px;
    background-color: var(--card-bg);
    border-radius: 4px 4px 0 0;
    margin-bottom: 1rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.game-card h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding: 1rem 1rem 0.5rem;
    color: var(--accent-color);
}

.game-card p {
    flex-grow: 1;
    margin-bottom: 1rem;
    padding: 0 1rem 1rem;
}

.game-link {
    display: block;
    padding: 0.7rem;
    background-color: rgba(106, 13, 173, 0.2);
    color: var(--accent-color);
    text-decoration: none;
    text-align: center;
    border-top: 1px solid rgba(106, 13, 173, 0.3);
    transition: all 0.3s ease;
    margin-top: auto;
}

.game-link:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

/* Add specific game preview classes */
.game-preview.zombie-apocalypse {
    background-image: url('images/zombie-apocalypse-preview.png');
}

.game-preview.neural-racer {
    background-image: url('images/neural-racer-preview.png');
    filter: brightness(0.7) grayscale(0.5);
}

.game-preview.hacker-defense {
    background-image: url('images/hacker-defense-preview.png');
    filter: brightness(0.7) grayscale(0.5);
}

/* Add a coming soon overlay for games that aren't released yet */
.coming-soon .game-preview::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.coming-soon-tag {
    display: block;
    padding: 0.7rem;
    background-color: rgba(106, 13, 173, 0.2);
    color: var(--accent-color);
    text-align: center;
    border-top: 1px solid rgba(106, 13, 173, 0.3);
    font-style: italic;
    margin-top: auto;
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.contact-text {
    text-align: center;
    max-width: 600px;
}

.email {
    margin-top: 1rem;
    font-size: 1.2rem;
}

.email a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.email a:hover {
    text-decoration: underline;
    text-shadow: 0 0 5px var(--secondary-color);
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background-color: rgba(30, 30, 30, 0.7);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link i {
    font-size: 1.2rem;
}

.social-link.discord:hover {
    background-color: #5865F2;
    color: white;
}

.social-link.twitter:hover {
    background-color: #1DA1F2;
    color: white;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.social-link.youtube:hover {
    background-color: #FF0000;
    color: white;
}

.social-link.reddit:hover {
    background-color: #FF4500;
    color: white;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(204, 85, 0, 0.3);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.terminal-line {
    font-family: monospace;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal {
        width: 95%;
        margin: 1rem auto;
    }
    
    .terminal-content {
        padding: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .section-content {
        flex-direction: column;
    }
    
    .projects-grid, .games-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 var(--primary-color), -0.05em -0.025em 0 var(--secondary-color),
            -0.025em 0.05em 0 var(--accent-color);
    }
    14% {
        text-shadow: 0.05em 0 0 var(--primary-color), -0.05em -0.025em 0 var(--secondary-color),
            -0.025em 0.05em 0 var(--accent-color);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 var(--primary-color), 0.025em 0.025em 0 var(--secondary-color),
            -0.05em -0.05em 0 var(--accent-color);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 var(--primary-color), 0.025em 0.025em 0 var(--secondary-color);
    }
    /* ... rest of the animation keyframes would go here ... */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(3px);
}

.modal-content {
    position: relative;
    background-color: var(--terminal-bg);
    margin: 10% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(204, 85, 0, 0.5),
                0 0 40px rgba(0, 255, 255, 0.2);
    animation: modalFadeIn 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    padding: 1rem;
    background-color: var(--terminal-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
}

.modal-body {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-modal {
    color: var(--text-color);
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--terminal-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 100;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(204, 85, 0, 0.1);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
}