/* ========================================
   GAME-THEMED PORTFOLIO CSS
   Retro Gaming Aesthetic
======================================== */

/* === ROOT VARIABLES === */
:root {
    --primary-color: #FFD700;
    --secondary-color: #FF6B6B;
    --accent-color: #4ECDC4;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --card-bg: #0f3460;
    --text-light: #eee;
    --text-dark: #222;
    --success: #00ff41;
    --danger: #ff0040;
    --pixel-font: 'Press Start 2P', cursive;
    --retro-font: 'VT323', monospace;
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--retro-font);
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
}

body.quest-active {
    overflow: hidden;
}

/* === START QUEST OVERLAY === */
.quest-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, #16213e 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.quest-overlay.hidden {
    animation: fadeOut 0.5s ease forwards;
    pointer-events: none;
}

.quest-screen {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
}

.quest-screen-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.quest-logo {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    animation: bounce 2s infinite, rotate 4s linear infinite;
}

.quest-title {
    font-family: var(--pixel-font);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 
        4px 4px 0 var(--secondary-color),
        8px 8px 0 rgba(0, 0, 0, 0.5);
    animation: glitchTitle 5s infinite;
}

.glitch-title {
    position: relative;
}

@keyframes glitchTitle {
    0%, 90%, 100% { 
        transform: translate(0);
        text-shadow: 
            4px 4px 0 var(--secondary-color),
            8px 8px 0 rgba(0, 0, 0, 0.5);
    }
    92% { 
        transform: translate(-3px, 3px);
        text-shadow: 
            4px 4px 0 var(--accent-color),
            8px 8px 0 rgba(0, 0, 0, 0.5);
    }
    94% { 
        transform: translate(3px, -3px);
        text-shadow: 
            4px 4px 0 var(--secondary-color),
            8px 8px 0 rgba(0, 0, 0, 0.5);
    }
}

.quest-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

.quest-form-container {
    margin-bottom: 2rem;
}

.quest-window {
    background: var(--card-bg);
    border: 4px solid var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.4),
        0 10px 40px rgba(0, 0, 0, 0.5);
    animation: floatWindow 3s ease-in-out infinite;
}

@keyframes floatWindow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.quest-window-header {
    background: var(--darker-bg);
    padding: 1rem;
    border-bottom: 3px solid var(--primary-color);
    font-family: var(--pixel-font);
    font-size: 0.9rem;
    color: var(--primary-color);
}

.quest-window-body {
    padding: 2.5rem;
}

.quest-input-group {
    margin-bottom: 2rem;
}

.quest-input-group label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-family: var(--pixel-font);
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quest-input-group label i {
    font-size: 1.2rem;
}

.quest-input {
    width: 100%;
    padding: 1.2rem;
    background: var(--darker-bg);
    border: 3px solid var(--accent-color);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--retro-font);
    font-size: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    outline: none;
}

.quest-input:focus {
    border-color: var(--primary-color);
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        inset 0 0 10px rgba(255, 215, 0, 0.1);
    transform: scale(1.02);
}

.quest-input::placeholder {
    color: rgba(238, 238, 238, 0.3);
}

.quest-start-btn {
    width: 100%;
    font-family: var(--pixel-font);
    font-size: 1rem;
    padding: 1.5rem 3rem;
    background: var(--primary-color);
    color: var(--text-dark);
    border: 4px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 6px 0 #b8960d;
    position: relative;
    top: 0;
}

.quest-start-btn:hover {
    background: #ffeb3b;
    border-color: #ffeb3b;
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #b8960d;
}

.quest-start-btn:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #b8960d;
}

.quest-start-btn i {
    animation: bounceRight 1s infinite;
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.quest-instructions {
    font-size: 1.1rem;
    color: var(--accent-color);
    animation: blink 2s infinite;
}

.quest-instructions i {
    margin-right: 0.5rem;
}

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

.quest-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: particleFloat 6s infinite;
    box-shadow: 0 0 10px var(--primary-color);
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 5s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 1s;
    animation-duration: 6s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 1.5s;
    animation-duration: 5.5s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 0.5s;
    animation-duration: 6.5s;
}

@keyframes particleFloat {
    0% {
        bottom: -20px;
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateY(-100px) rotate(360deg);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* === NAVIGATION === */
.game-nav {
    background: var(--darker-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--pixel-font);
    font-size: 1.2rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 0 var(--secondary-color);
}

.game-logo i {
    font-size: 1.5rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.game-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.game-menu a {
    font-family: var(--pixel-font);
    font-size: 0.7rem;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.game-menu a:hover,
.game-menu a.active {
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* === STATS BAR === */
.stats-bar {
    background: var(--card-bg);
    padding: 0.8rem 0;
    border-bottom: 2px solid var(--accent-color);
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--pixel-font);
    font-size: 0.7rem;
    color: var(--text-light);
}

.stat-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.stat-item span span {
    color: var(--primary-color);
    font-weight: bold;
}

#playerNameDisplay {
    color: var(--accent-color);
    text-transform: uppercase;
}

.level-progress-container {
    min-width: 150px;
}

.level-progress-bar {
    width: 150px;
    height: 20px;
    background: var(--darker-bg);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
    box-shadow: 0 0 10px var(--primary-color);
}

.level-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* === HERO SECTION === */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.pixel-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(255, 215, 0, 0.05) 25%, rgba(255, 215, 0, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 215, 0, 0.05) 75%, rgba(255, 215, 0, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(255, 215, 0, 0.05) 25%, rgba(255, 215, 0, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 215, 0, 0.05) 75%, rgba(255, 215, 0, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.game-window {
    background: var(--card-bg);
    border: 4px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.game-window-header {
    background: var(--darker-bg);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
}

.game-window-header span {
    font-family: var(--pixel-font);
    font-size: 0.8rem;
    color: var(--primary-color);
}

.window-controls {
    display: flex;
    gap: 10px;
    font-family: var(--pixel-font);
}

.window-controls span {
    color: var(--text-light);
    cursor: pointer;
}

.game-window-body {
    padding: 3rem;
    display: flex;
    gap: 3rem;
    align-items: center;
}

/* === PIXEL CHARACTER === */
.character-sprite {
    flex-shrink: 0;
}

.profile-container {
    width: 200px;
    height: 200px;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid var(--primary-color);
    box-shadow: 
        0 0 20px var(--primary-color),
        0 0 40px rgba(255, 215, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.profile-container:hover .profile-image {
    border-color: var(--secondary-color);
    box-shadow: 
        0 0 30px var(--secondary-color),
        0 0 60px rgba(255, 107, 107, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.profile-border {
    position: absolute;
    inset: -8px;
    border: 3px solid var(--accent-color);
    border-radius: 24px;
    z-index: 1;
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Old pixel character styles - kept for reference */
.pixel-character {
    width: 150px;
    height: 180px;
    position: relative;
    animation: float 3s ease-in-out infinite;
    display: none;
}

.char-head {
    width: 80px;
    height: 80px;
    background: #ffcc99;
    position: absolute;
    top: 0;
    left: 35px;
    border: 3px solid #000;
}

.char-body {
    width: 100px;
    height: 60px;
    background: var(--primary-color);
    position: absolute;
    top: 80px;
    left: 25px;
    border: 3px solid #000;
}

.char-arm-left,
.char-arm-right {
    width: 20px;
    height: 50px;
    background: #ffcc99;
    position: absolute;
    top: 80px;
    border: 3px solid #000;
}

.char-arm-left {
    left: 0;
}

.char-arm-right {
    right: 0;
}

.char-leg-left,
.char-leg-right {
    width: 35px;
    height: 50px;
    background: #4a5568;
    position: absolute;
    top: 135px;
    border: 3px solid #000;
}

.char-leg-left {
    left: 30px;
}

.char-leg-right {
    right: 30px;
}

/* === PLAYER INFO === */
.player-info {
    flex: 1;
}

.greeting-message {
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--darker-bg);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    animation: slideIn 0.5s ease;
}

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

.greeting-text {
    font-size: 1.3rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.greeting-text strong {
    color: var(--accent-color);
    font-family: var(--pixel-font);
    font-size: 1.1rem;
}

.pixel-text {
    font-family: var(--pixel-font);
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: 
        3px 3px 0 var(--secondary-color),
        6px 6px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.glitch {
    position: relative;
    animation: glitch 5s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
    96% { transform: translate(-2px, -2px); }
    98% { transform: translate(2px, 2px); }
}

.typing-effect {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    min-height: 40px;
}

.cursor {
    animation: blink 1s infinite;
}

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

.player-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-badge {
    background: var(--darker-bg);
    border: 2px solid var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.stat-badge i {
    color: var(--accent-color);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* === GAME BUTTONS === */
.game-btn {
    font-family: var(--pixel-font);
    font-size: 0.8rem;
    padding: 1rem 2rem;
    border: 3px solid var(--primary-color);
    background: var(--primary-color);
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 0 #b8960d;
    position: relative;
    top: 0;
}

.game-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 0 #b8960d;
    background: #ffeb3b;
    border-color: #ffeb3b;
}

.game-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #b8960d;
}

.btn-secondary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 0 #d84343;
}

.btn-secondary:hover {
    background: #ff8585;
    border-color: #ff8585;
    box-shadow: 0 7px 0 #d84343;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.7rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* === FLOATING ITEMS === */
.floating-items {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.power-up {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-color);
    animation: powerUpFloat 4s ease-in-out infinite;
}

@keyframes powerUpFloat {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* === SECTIONS === */
.about-section,
.quick-links-section,
.projects-section,
.skills-section,
.contact-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pixel-title {
    font-family: var(--pixel-font);
    font-size: 1.5rem;
    color: var(--primary-color);
    text-shadow: 3px 3px 0 var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.pixel-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* === GAME CARDS === */
.game-card {
    background: var(--card-bg);
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.card-header {
    background: var(--darker-bg);
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--pixel-font);
    font-size: 0.8rem;
    color: var(--primary-color);
}

.card-header i {
    font-size: 1.2rem;
}

.card-body {
    padding: 2rem;
}

.game-text {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 1.2rem;
    color: var(--text-light);
    text-align: justify;
}

.game-text:last-of-type {
    margin-bottom: 0;
}

/* === QUEST INFO === */
.quest-info-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.quest-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--darker-bg);
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.quest-item:hover {
    transform: translateX(5px);
    border-left-width: 6px;
    background: rgba(78, 205, 196, 0.1);
}

.quest-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.quest-item div {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.quest-item strong {
    font-family: var(--pixel-font);
    font-size: 0.7rem;
    color: var(--primary-color);
    text-transform: uppercase;
}

.quest-item span {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* === PROGRESS BARS === */
.progress-bar-game {
    margin-bottom: 1.8rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-family: var(--pixel-font);
    font-size: 0.7rem;
    color: var(--text-light);
}

.progress-value {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: bold;
}

.progress-track {
    height: 28px;
    background: var(--darker-bg);
    border: 3px solid var(--primary-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--primary-color));
    transition: width 1.5s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.progress-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* === QUICK LINKS === */
.link-card {
    background: var(--card-bg);
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    padding: 2rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.link-icon {
    width: 80px;
    height: 80px;
    background: var(--darker-bg);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-color);
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.link-card:hover .link-icon {
    transform: rotate(360deg);
    background: var(--accent-color);
    color: var(--text-dark);
}

.link-card h3 {
    font-family: var(--pixel-font);
    font-size: 1.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.link-card p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.link-arrow {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* === PROJECT CARDS === */
.project-card {
    background: var(--card-bg);
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project-btn {
    font-family: var(--pixel-font);
    font-size: 0.7rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-family: var(--pixel-font);
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: var(--darker-bg);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid var(--accent-color);
}

/* === SKILLS SECTION === */
.skills-inventory {
    background: var(--card-bg);
    border: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.inventory-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--pixel-font);
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-item {
    background: var(--darker-bg);
    border: 3px solid var(--accent-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.skill-name {
    font-family: var(--pixel-font);
    font-size: 0.6rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.skill-rarity {
    font-size: 0.7rem;
    color: var(--success);
    text-transform: uppercase;
}

/* === SKILL CATEGORIES === */
.skill-category-card {
    background: var(--card-bg);
    border: 3px solid var(--accent-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.skill-category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--darker-bg);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0 auto 1.5rem;
}

.skill-category-card h3 {
    font-family: var(--pixel-font);
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.category-list {
    list-style: none;
    text-align: left;
}

.category-list li {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    font-size: 1.1rem;
}

.category-list i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* === XP BARS === */
.level-up-section {
    margin-top: 3rem;
}

.xp-bar {
    margin-bottom: 1.5rem;
}

.xp-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-family: var(--pixel-font);
    font-size: 0.6rem;
    color: var(--text-light);
}

.xp-track {
    height: 30px;
    background: var(--darker-bg);
    border: 3px solid var(--primary-color);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transition: width 1.5s ease;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 20px var(--primary-color);
    }
}

.xp-sparkle {
    position: absolute;
    right: 0;
    top: 0;
    width: 10px;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    animation: sparkle 1s infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-20px);
    }
}

/* === CONTACT SECTION === */
.form-group-game {
    margin-bottom: 1.5rem;
}

.form-label-game {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--pixel-font);
    font-size: 0.7rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.form-input-game {
    width: 100%;
    padding: 1rem;
    background: var(--darker-bg);
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    color: var(--text-light);
    font-family: var(--retro-font);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-input-game:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.form-input-game::placeholder {
    color: rgba(238, 238, 238, 0.4);
}

/* === CONTACT LINKS === */
.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--darker-bg);
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    margin-bottom: 1rem;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
    background: var(--card-bg);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.contact-info h4 {
    font-family: var(--pixel-font);
    font-size: 0.7rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.contact-info p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--darker-bg);
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.info-box i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.2rem;
}

.info-box h4 {
    font-family: var(--pixel-font);
    font-size: 0.7rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.info-box p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

/* === FOOTER === */
.game-footer {
    background: var(--darker-bg);
    padding: 2rem 0;
    border-top: 4px solid var(--primary-color);
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text .pixel-text {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
}

.sub-text {
    font-size: 1rem;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .game-window-body {
        flex-direction: column;
        text-align: center;
    }

    .profile-container {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .pixel-text {
        font-size: 1.5rem;
    }

    .pixel-title {
        font-size: 1.2rem;
    }

    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .game-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--darker-bg);
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        padding: 2rem;
        transition: right 0.3s ease;
        border-left: 4px solid var(--primary-color);
        gap: 1rem;
    }

    .game-menu.active {
        right: 0;
    }

    .game-menu a {
        width: 100%;
        text-align: center;
    }

    .stats-content {
        gap: 1.5rem;
    }

    .stat-item {
        font-size: 0.6rem;
    }

    /* Quest Screen Mobile */
    .quest-screen {
        padding: 1rem;
    }

    .quest-title {
        font-size: 2rem;
    }

    .quest-subtitle {
        font-size: 1.2rem;
    }

    .quest-window-body {
        padding: 1.5rem;
    }

    .quest-input {
        font-size: 1.2rem;
        padding: 1rem;
    }

    .quest-start-btn {
        font-size: 0.8rem;
        padding: 1.2rem 2rem;
    }

    .pixel-text {
        font-size: 1.2rem;
    }

    .profile-container {
        width: 150px;
        height: 150px;
    }

    .typing-effect {
        font-size: 1rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .game-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .skill-item {
        padding: 1rem;
    }

    .skill-icon {
        font-size: 2rem;
    }

    .skill-name {
        font-size: 0.5rem;
    }
}

@media (max-width: 576px) {
    .pixel-title {
        font-size: 1rem;
        flex-direction: column;
    }

    .game-logo span {
        font-size: 0.8rem;
    }

    .stat-item {
        font-size: 0.5rem;
    }

    .stat-item i {
        font-size: 1rem;
    }

    .game-window-body {
        padding: 1.5rem;
    }

    .profile-container {
        width: 120px;
        height: 120px;
    }

    /* Quest Screen Small Mobile */
    .quest-logo {
        font-size: 3.5rem;
    }

    .quest-title {
        font-size: 1.5rem;
        text-shadow: 
            2px 2px 0 var(--secondary-color),
            4px 4px 0 rgba(0, 0, 0, 0.5);
    }

    .quest-subtitle {
        font-size: 1rem;
    }

    .quest-window-header {
        font-size: 0.7rem;
        padding: 0.8rem;
    }

    .quest-input-group label {
        font-size: 0.7rem;
    }

    .quest-start-btn {
        font-size: 0.7rem;
        padding: 1rem 1.5rem;
    }

    .quest-instructions {
        font-size: 0.9rem;
    }
}  

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-4 {
    margin-bottom: 2rem;
}
