
/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 4px solid #00ffff;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.pixel-logo .pixel-text {
    font-size: 14px; /* Increased from 12px */
    color: #00ffff;
    text-shadow: 2px 2px 0px #ff00ff;
    animation: glow 2s ease-in-out infinite alternate;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
}

.pixel-btn {
    color: #fff;
    text-decoration: none;
    font-size: 10px; /* Increased from 8px */
    padding: 10px 16px; /* Increased padding */
    border: 2px solid #00ffff;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}



/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .pixel-logo .pixel-text {
        font-size: 13px;
    }
    
    .pixel-btn {
        font-size: 9px;
        padding: 8px 14px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .pixel-logo .pixel-text {
        font-size: 12px;
    }
    
    .nav-menu {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .pixel-btn {
        font-size: 8px;
        padding: 8px 12px;
    }
    
    .game-ui {
        flex-direction: column;
        gap: 10px;
        top: 10px;
        left: 10px;
    }
    
    .pixel-title {
        font-size: 18px; /* Increased from 16px */
    }
    
    .pixel-subtitle {
        font-size: 11px; /* Increased from 10px */
    }
    
    .game-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .pixel-grid {
        grid-template-columns: 1fr;
    }
    
    .pixel-portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .pixel-about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pixel-contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pixel-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .character-sprite {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem;
    }
    
    .pixel-logo .pixel-text {
        font-size: 10px;
    }
    
    .nav-menu {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pixel-btn {
        font-size: 7px;
        padding: 6px 10px;
    }
    
    .pixel-title {
        font-size: 14px; /* Increased from 12px */
    }
    
    .pixel-section-title {
        font-size: 13px; /* Increased from 12px */
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .pixel-button {
        font-size: 9px; /* Increased from 8px */
        padding: 12px 18px; /* Increased padding */
    }
    
    .game-ui {
        top: 5px;
        left: 5px;
        gap: 5px;
    }
}

@media (max-width: 320px) {
    .nav-container {
        padding: 0.3rem;
    }
    
    .pixel-logo .pixel-text {
        font-size: 9px;
    }
    
    .pixel-btn {
        font-size: 6px;
        padding: 5px 8px;
    }
    
    .nav-menu {
        gap: 0.3rem;
    }
}/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', monospace;
    line-height: 1.6;
    color: #fff;
    background: #0a0a0a;
    overflow-x: hidden;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Pixel Art Utilities */
.pixel-text {
    font-family: 'Press Start 2P', monospace;
    text-rendering: optimizeSpeed;
    image-rendering: pixelated;
}

.pixel-text-small {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    line-height: 1.4;
}

/* Game UI Overlay */
.game-ui {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    gap: 20px;
    align-items: center;
}

.health-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.health-bar .label,
.score .label {
    font-size: 8px;
    color: #00ff00;
}

.bar {
    width: 100px;
    height: 12px;
    background: #333;
    border: 2px solid #00ff00;
    position: relative;
}

.bar .fill {
    width: 85%;
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #ffff00, #ff0000);
    animation: pulse 2s infinite;
}

.score {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score .value {
    font-size: 10px;
    color: #ffff00;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 4px solid #00ffff;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.pixel-logo .pixel-text {
    font-size: 14px; /* Increased from 12px */
    color: #00ffff;
    text-shadow: 2px 2px 0px #ff00ff;
    animation: glow 2s ease-in-out infinite alternate;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
}

.pixel-btn {
    color: #fff;
    text-decoration: none;
    font-size: 10px; /* Increased from 8px */
    padding: 10px 16px; /* Increased padding */
    border: 2px solid #00ffff;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.pixel-btn:hover {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

.pixel-btn:active {
    transform: translateY(0);
}

/* Hero Section */
.pixel-hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

.pixel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #00ffff, transparent),
        radial-gradient(2px 2px at 40px 70px, #ff00ff, transparent),
        radial-gradient(1px 1px at 90px 40px, #ffff00, transparent),
        radial-gradient(1px 1px at 130px 80px, #00ff00, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: pixelMove 20s linear infinite;
}

.pixel-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 25px 25px, white, transparent),
        radial-gradient(1px 1px at 75px 75px, white, transparent),
        radial-gradient(1px 1px at 125px 125px, white, transparent);
    background-size: 150px 150px;
    animation: pixelMove 30s linear infinite reverse;
}

@keyframes pixelMove {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-50px) translateY(-25px); }
    50% { transform: translateX(-100px) translateY(-50px); }
    75% { transform: translateX(-150px) translateY(-25px); }
    100% { transform: translateX(-200px) translateY(0); }
}

.pixel-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
}

.pixel-title {
    font-size: 24px;
    color: #00ffff;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0px #ff00ff, 8px 8px 0px #ffff00;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translateX(0);
        filter: hue-rotate(0deg);
    }
    10% {
        transform: translateX(-2px);
        filter: hue-rotate(90deg);
    }
    20% {
        transform: translateX(2px);
        filter: hue-rotate(180deg);
    }
    30% {
        transform: translateX(-2px);
        filter: hue-rotate(270deg);
    }
    40% {
        transform: translateX(2px);
        filter: hue-rotate(360deg);
    }
}

.pixel-subtitle {
    font-size: 12px;
    color: #ffff00;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px #ff00ff;
}

.pixel-divider {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #ffff00);
    margin: 1rem auto;
    animation: pulse 2s infinite;
}

.pixel-description {
    font-size: 8px;
    color: #00ff00;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 0px #000;
}

.game-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pixel-button {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    padding: 12px 20px;
    border: 3px solid #00ffff;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.pixel-button:hover {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transform: translateY(-3px);
}

.pixel-button:active {
    transform: translateY(0);
}

.start-btn {
    border-color: #00ff00;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

.pixel-character {
    position: absolute;
    bottom: 50px;
    right: 100px;
    z-index: 5;
}

.character-sprite {
    width: 64px;
    height: 64px;
    background: linear-gradient(45deg, #00ffff 0%, #ff00ff 50%, #ffff00 100%);
    border: 2px solid #fff;
    animation: bounce 2s infinite, rotate 4s linear infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Titles */
.pixel-section-title {
    font-size: 16px;
    text-align: center;
    margin-bottom: 3rem;
    color: #00ffff;
    text-shadow: 3px 3px 0px #ff00ff;
    position: relative;
    text-transform: uppercase;
}

.pixel-section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #ffff00, #00ff00);
    animation: pulse 2s infinite;
}

/* Services Section */
.pixel-services {
    padding: 5rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
    position: relative;
}

.pixel-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 98%, #00ffff 100%),
        linear-gradient(0deg, transparent 98%, #ff00ff 100%);
    background-size: 50px 50px;
    opacity: 0.1;
    animation: gridMove 10s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.pixel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pixel-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #00ffff;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pixel-card:hover {
    transform: translateY(-10px);
    border-color: #ff00ff;
    box-shadow: 0 20px 40px rgba(255, 0, 255, 0.3);
}

.pixel-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00, #00ff00);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pixel-card:hover::before {
    opacity: 1;
}

.pixel-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border: 2px solid #00ffff;
    position: relative;
}

.concept-icon {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
}

.modeling-icon {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
}

.animation-icon {
    background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
}

.ui-icon {
    background: linear-gradient(45deg, #43e97b 0%, #38f9d7 100%);
}

.pixel-card-title {
    font-size: 10px;
    margin-bottom: 1rem;
    color: #ffff00;
    text-shadow: 2px 2px 0px #000;
}

.pixel-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 6px;
    color: #00ff00;
}

/* Portfolio Section */
.pixel-portfolio {
    padding: 5rem 0;
    background: linear-gradient(45deg, #1a1a2e 0%, #16213e 50%, #0a0a0a 100%);
    position: relative;
}

.pixel-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pixel-level {
    position: relative;
    border: 3px solid #00ffff;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #000;
}

.pixel-level:hover {
    transform: scale(1.05);
    border-color: #ff00ff;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
}

.level-preview {
    position: relative;
    height: 200px;
}

.pixel-artwork {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    image-rendering: pixelated;
}

.concept-pixel {
    background: 
        linear-gradient(45deg, #667eea 0%, #764ba2 100%),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.1) 2px, rgba(255,255,255,0.1) 4px);
}

.model-pixel {
    background: 
        linear-gradient(45deg, #f093fb 0%, #f5576c 100%),
        repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(255,255,255,0.1) 3px, rgba(255,255,255,0.1) 6px);
}

.animation-pixel {
    background: 
        linear-gradient(45deg, #4facfe 0%, #00f2fe 100%),
        repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(255,255,255,0.1) 4px, rgba(255,255,255,0.1) 8px);
}

.ui-pixel {
    background: 
        linear-gradient(45deg, #43e97b 0%, #38f9d7 100%),
        repeating-linear-gradient(135deg, transparent, transparent 2px, rgba(255,255,255,0.1) 2px, rgba(255,255,255,0.1) 4px);
}

.level-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.pixel-level:hover .level-overlay {
    transform: translateY(0);
}

.level-title {
    font-size: 12px;
    margin-bottom: 0.5rem;
    color: #00ffff;
    text-shadow: 2px 2px 0px #000;
}

.level-type {
    font-size: 8px;
    color: #ffff00;
    margin-bottom: 1rem;
}

.level-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 6px;
}

.level-stats span:first-child {
    color: #ffff00;
}

.level-stats span:last-child {
    color: #00ff00;
}

/* About Section */
.pixel-about {
    padding: 5rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
}

.pixel-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.character-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #00ffff;
    padding: 2rem;
    position: relative;
}

.character-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    border: 3px solid #fff;
    margin: 0 auto 1rem;
    animation: pulse 2s infinite;
}

.character-name {
    font-size: 12px;
    color: #00ffff;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0px #ff00ff;
}

.character-class {
    font-size: 8px;
    color: #ffff00;
    text-align: center;
    margin-bottom: 1rem;
}

.character-description {
    font-size: 8px;
    line-height: 1.6;
    color: #ccc;
}

.character-stats {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    border: 3px solid #ff00ff;
    padding: 2rem;
}

.stats-title {
    font-size: 12px;
    color: #ff00ff;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 2px 2px 0px #000;
}

.stat-bar {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.stat-label {
    font-size: 8px;
    color: #00ffff;
    min-width: 80px;
}

.stat-meter {
    flex: 1;
    height: 12px;
    background: #333;
    border: 2px solid #00ffff;
    position: relative;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #ffff00, #ff0000);
    transition: width 2s ease;
    animation: statFill 3s ease-in-out;
}

@keyframes statFill {
    0% { width: 0%; }
    100% { width: var(--stat-width, 0%); }
}

.stat-value {
    font-size: 8px;
    color: #ffff00;
    min-width: 50px;
    text-align: right;
}

.achievements {
    margin-top: 2rem;
}

.achievements-title {
    font-size: 10px;
    color: #00ff00;
    margin-bottom: 1rem;
    text-align: center;
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.achievement {
    font-size: 8px;
    color: #ffff00;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #ffff00;
    background: rgba(255, 255, 0, 0.1);
}

/* Contact Section */
.pixel-contact {
    padding: 5rem 0;
    background: linear-gradient(45deg, #1a1a2e 0%, #16213e 50%, #0a0a0a 100%);
    position: relative;
}

.pixel-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 40px 60px, #00ffff, transparent),
        radial-gradient(2px 2px at 80px 20px, #ff00ff, transparent);
    background-size: 120px 80px;
    animation: pixelMove 15s linear infinite;
    opacity: 0.3;
}

.pixel-contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.contact-title {
    font-size: 14px;
    color: #00ffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px #ff00ff;
}

.contact-description {
    font-size: 8px;
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.pixel-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pixel-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #00ffff;
    transition: all 0.3s ease;
}

.pixel-contact-item:hover {
    border-color: #ff00ff;
    transform: translateX(10px);
}

.contact-icon {
    font-size: 16px;
}

.contact-text {
    font-size: 8px;
    color: #fff;
}

.pixel-form {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    border: 3px solid #ff00ff;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.pixel-label {
    display: block;
    font-size: 8px;
    color: #00ffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.pixel-input,
.pixel-select,
.pixel-textarea {
    width: 100%;
    padding: 0.8rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    background: #000;
    border: 2px solid #00ffff;
    color: #fff;
    transition: all 0.3s ease;
}

.pixel-input:focus,
.pixel-select:focus,
.pixel-textarea:focus {
    outline: none;
    border-color: #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

.pixel-input::placeholder,
.pixel-textarea::placeholder {
    color: #666;
    font-family: 'Press Start 2P', monospace;
    font-size: 6px;
}

.submit-quest {
    width: 100%;
    border-color: #00ff00;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
}

.submit-quest:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.5);
}

/* Footer */
.pixel-footer {
    background: #000;
    border-top: 4px solid #00ffff;
    padding: 3rem 0 1rem;
}

.pixel-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pixel-logo-text {
    font-size: 14px;
    color: #00ffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px #ff00ff;
}

.pixel-tagline {
    font-size: 6px;
    color: #ffff00;
}

.footer-title {
    font-size: 10px;
    color: #ff00ff;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link,
.social-link {
    font-size: 8px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.footer-link:hover,
.social-link:hover {
    color: #00ffff;
}

.pixel-social {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pixel-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #333;
}

.copyright {
    font-size: 6px;
    color: #666;
    text-transform: uppercase;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { text-shadow: 2px 2px 0px #ff00ff, 0 0 10px #00ffff; }
    50% { text-shadow: 2px 2px 0px #ff00ff, 0 0 20px #00ffff, 0 0 30px #00ffff; }
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .pixel-logo .pixel-text {
        font-size: 13px;
    }
    
    .pixel-btn {
        font-size: 9px;
        padding: 8px 14px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .pixel-logo .pixel-text {
        font-size: 12px;
    }
    
    .nav-menu {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .pixel-btn {
        font-size: 8px;
        padding: 8px 12px;
    }
    
    .game-ui {
        flex-direction: column;
        gap: 10px;
        top: 10px;
        left: 10px;
    }
    
    .pixel-title {
        font-size: 18px; /* Increased from 16px */
    }
    
    .pixel-subtitle {
        font-size: 11px; /* Increased from 10px */
    }
    
    .game-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .pixel-grid {
        grid-template-columns: 1fr;
    }
    
    .pixel-portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .pixel-about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pixel-contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pixel-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .character-sprite {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem;
    }
    
    .pixel-logo .pixel-text {
        font-size: 10px;
    }
    
    .nav-menu {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pixel-btn {
        font-size: 7px;
        padding: 6px 10px;
    }
    
    .pixel-title {
        font-size: 14px; /* Increased from 12px */
    }
    
    .pixel-section-title {
        font-size: 13px; /* Increased from 12px */
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .pixel-button {
        font-size: 9px; /* Increased from 8px */
        padding: 12px 18px; /* Increased padding */
    }
    
    .game-ui {
        top: 5px;
        left: 5px;
        gap: 5px;
    }
}

@media (max-width: 320px) {
    .nav-container {
        padding: 0.3rem;
    }
    
    .pixel-logo .pixel-text {
        font-size: 9px;
    }
    
    .pixel-btn {
        font-size: 6px;
        padding: 5px 8px;
    }
    
    .nav-menu {
        gap: 0.3rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #000;
    border: 1px solid #00ffff;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffff, #ff00ff);
    border: 1px solid #fff;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff00ff, #ffff00);
}