/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', monospace;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 50%, #0f0f23 100%);
    color: #00ff00;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 8px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOut 3s ease-in-out 2s forwards;
}

.loading-content {
    text-align: center;
    color: #00ff00;
}

.pixel-logo .logo-text {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px #004400;
    animation: glow 2s ease-in-out infinite alternate;
}

.loading-bar {
    width: 300px;
    height: 20px;
    background: #333;
    border: 3px solid #00ff00;
    margin: 20px auto;
    position: relative;
    image-rendering: pixelated;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #44ff44);
    width: 0%;
    animation: loadProgress 2s ease-in-out forwards;
}

.loading-text {
    font-size: 12px;
    margin-top: 20px;
    animation: blink 1s infinite;
}

/* Animations */
@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

@keyframes loadProgress {
    to { width: 100%; }
}

@keyframes glow {
    from { text-shadow: 2px 2px 0px #004400, 0 0 10px #00ff00; }
    to { text-shadow: 2px 2px 0px #004400, 0 0 20px #00ff00, 0 0 30px #00ff00; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Game Header */
.game-header {
    background: linear-gradient(90deg, #1a1a2e, #16213e, #1a1a2e);
    border-bottom: 4px solid #00ff00;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 255, 0, 0.3);
}

.header-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.health-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    color: #ff6b6b;
}

.health-container {
    width: 100px;
    height: 12px;
    background: #333;
    border: 2px solid #ff6b6b;
    position: relative;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ff4757);
    width: 100%;
    animation: pulse 2s ease-in-out infinite;
}

.score {
    font-size: 10px;
    color: #ffd700;
    text-shadow: 1px 1px 0px #cc6600;
}

.game-title {
    text-align: center;
}

.game-title h1 {
    font-size: 16px;
    color: #ffd700;
    text-shadow: 2px 2px 0px #cc6600;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 8px;
    color: #ff6b6b;
    text-shadow: 1px 1px 0px #cc0000;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pixel-btn {
    background: linear-gradient(135deg, #00ff00, #44ff44);
    border: 3px solid #00aa00;
    color: #000;
    padding: 8px 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    image-rendering: pixelated;
}

.pixel-btn:hover {
    background: linear-gradient(135deg, #44ff44, #66ff66);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 255, 0, 0.5);
}

.pixel-btn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 4px rgba(0, 255, 0, 0.3);
}

/* Game Screen */
.game-screen {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 40px;
}

.character-select {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: center;
}

.dialogue-box {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 4px solid #00ff00;
    padding: 20px;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 255, 0, 0.2);
}

.dialogue-box::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #00ff00;
}

.dialogue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00ff00;
}

.character-name {
    font-size: 12px;
    color: #ffd700;
    text-shadow: 1px 1px 0px #cc6600;
}

.level {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 8px;
}

.dialogue-text {
    margin-bottom: 20px;
    line-height: 1.8;
}

.typing-text {
    margin-bottom: 10px;
    font-size: 9px;
    animation: typing 2s steps(40) forwards;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #00ff00;
}

.download-hint {
    color: #ff6b6b;
    font-size: 8px;
    animation: blink 2s infinite;
    margin-top: 15px;
}

.dialogue-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dialogue-btn {
    background: linear-gradient(135deg, #333, #555);
    border: 2px solid #666;
    color: #fff;
    padding: 8px 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dialogue-btn:hover {
    background: linear-gradient(135deg, #555, #777);
    border-color: #00ff00;
    color: #00ff00;
}

.dialogue-btn.highlight {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    border-color: #ff4757;
    animation: pulse 2s ease-in-out infinite;
}

.character-sprite {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sprite-container {
    position: relative;
}

.pixel-character {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.pixel-avatar {
    width: 200px;
    height: auto;
    max-height: 250px;
    border: 4px solid #00ff00;
    border-radius: 8px;
    image-rendering: pixelated;
    box-shadow: 0 12px 24px rgba(0, 255, 0, 0.4);
    object-fit: contain;
}

.character-aura {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.2), transparent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icons .icon {
    position: absolute;
    font-size: 16px;
    animation: float 3s ease-in-out infinite;
}

.floating-icons .icon:nth-child(1) {
    top: 15px;
    right: -30px;
    animation-delay: 0s;
}

.floating-icons .icon:nth-child(2) {
    bottom: 30px;
    right: -25px;
    animation-delay: 1s;
}

.floating-icons .icon:nth-child(3) {
    top: 45px;
    left: -30px;
    animation-delay: 2s;
}

.floating-icons .icon:nth-child(4) {
    bottom: 15px;
    left: -25px;
    animation-delay: 3s;
}

.character-stats-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border: 2px solid #00ff00;
    border-radius: 4px;
}

.character-stats-mini .stat {
    font-size: 7px;
    color: #ffd700;
    text-align: center;
}

/* Window Frame Styling */
.window-frame {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 4px solid #00ff00;
    margin-bottom: 30px;
    box-shadow: 0 8px 16px rgba(0, 255, 0, 0.2);
}

.window-header {
    background: linear-gradient(90deg, #00ff00, #44ff44);
    color: #000;
    padding: 10px 15px;
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #00aa00;
}

.window-content {
    padding: 20px;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #333;
    padding: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
    transform: translateY(-2px);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 20px;
    background: linear-gradient(135deg, #333, #555);
    padding: 10px;
    border-radius: 4px;
    border: 2px solid #666;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 8px;
    color: #888;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 10px;
    color: #00ff00;
    margin-bottom: 10px;
}

.stat-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border: 1px solid #555;
    border-radius: 2px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #44ff44);
    transition: width 2s ease-in-out;
}

.stat-age { background: linear-gradient(90deg, #ff6b6b, #ff4757); }
.stat-region { background: linear-gradient(90deg, #74b9ff, #0984e3); }
.stat-languages { background: linear-gradient(90deg, #a29bfe, #6c5ce7); }
.stat-education { background: linear-gradient(90deg, #ffd700, #ffb400); }
.stat-experience { background: linear-gradient(90deg, #26de81, #20bf6b); }

/* Quest Section */
.quest-list {
    margin-bottom: 30px;
}

.quest-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    border-left: 4px solid;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quest-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.quest-item.legendary {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    border-left-color: #ffd700;
}

.quest-item.epic {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(75, 0, 130, 0.1));
    border-left-color: #8a2be2;
}

.quest-item.rare {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(30, 144, 255, 0.1));
    border-left-color: #00bfff;
}

.quest-item.uncommon {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.1), rgba(34, 139, 34, 0.1));
    border-left-color: #32cd32;
}

.quest-icon {
    font-size: 20px;
    width: 40px;
    text-align: center;
}

.quest-info {
    flex: 1;
}

.quest-title {
    font-size: 11px;
    color: #ffd700;
    margin-bottom: 3px;
}

.real-title {
    font-size: 8px;
    color: #888;
    margin-bottom: 5px;
    font-style: italic;
}

.quest-location {
    font-size: 8px;
    color: #00ff00;
    margin-bottom: 5px;
}

.quest-description {
    font-size: 7px;
    color: #ccc;
    margin-bottom: 8px;
    line-height: 1.4;
}

.quest-rewards {
    display: flex;
    gap: 10px;
    align-items: center;
}

.reward-tag {
    font-size: 6px;
    padding: 2px 6px;
    border-radius: 2px;
    text-transform: uppercase;
}

.quest-item.legendary .reward-tag {
    background: #ffd700;
    color: #000;
}

.quest-item.epic .reward-tag {
    background: #8a2be2;
    color: #fff;
}

.quest-item.rare .reward-tag {
    background: #00bfff;
    color: #000;
}

.quest-item.uncommon .reward-tag {
    background: #32cd32;
    color: #000;
}

.xp {
    font-size: 7px;
    color: #00ff00;
}

.quest-status {
    font-size: 16px;
    color: #32cd32;
}

.xp-counter {
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 3px;
    border: 1px solid #333;
}

/* Skills Section */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.skill-slot {
    aspect-ratio: 1;
    border: 3px solid;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(50, 50, 50, 0.8));
}

.skill-slot:hover {
    transform: scale(1.1);
    z-index: 10;
}

.skill-slot.legendary {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.skill-slot.epic {
    border-color: #8a2be2;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(75, 0, 130, 0.2));
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

.skill-slot.rare {
    border-color: #00bfff;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2), rgba(30, 144, 255, 0.2));
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
}

.skill-slot.uncommon {
    border-color: #32cd32;
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.2), rgba(34, 139, 34, 0.2));
    box-shadow: 0 0 15px rgba(50, 205, 50, 0.5);
}

.skill-icon {
    font-size: 24px;
}

.skill-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    border-radius: 4px;
    padding: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.skill-slot:hover .skill-tooltip {
    opacity: 1;
}

.skill-name {
    font-size: 7px;
    color: #fff;
    margin-bottom: 3px;
}

.skill-rarity {
    font-size: 6px;
    color: #00ff00;
}

/* Download Prompt Section */
.download-prompt-section {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed #666;
    border-radius: 4px;
}

.download-prompt-text {
    font-size: 9px;
    color: #888;
    margin-bottom: 15px;
    line-height: 1.4;
}

.download-cv-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    border: 3px solid #ee5a52;
    color: #fff;
    padding: 10px 20px;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s ease-in-out infinite;
}

.download-cv-btn:hover {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.5);
}

.download-cv-btn.large {
    padding: 15px 25px;
    font-size: 10px;
}

.download-icon {
    font-size: 12px;
}

.download-text {
    flex: 1;
}

.download-size {
    font-size: 6px;
    color: #ccc;
}

/* Contact Section */
.contact-section {
    margin-bottom: 30px;
}

.terminal-window {
    background: #000;
    border: 4px solid #00ff00;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 255, 0, 0.3);
}

.terminal-header {
    background: linear-gradient(90deg, #333, #555);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #00ff00;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #333;
}

.btn.red { background: #ff5f56; }
.btn.yellow { background: #ffbd2e; }
.btn.green { background: #27ca3f; }

.terminal-title {
    font-size: 18px;
    color: #00ff00;
    flex: 1;
    text-align: center;
}

.terminal-content {
    padding: 30px;
    font-family: 'VT323', monospace;
}

.terminal-line {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.6;
}

.prompt {
    color: #00ff00;
}

.command {
    color: #ffd700;
}

.output {
    color: #ccc;
}

.output.success {
    color: #32cd32;
}

.contact-options {
    margin: 30px 0;
    display: grid;
    gap: 22px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 20px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
    transform: translateX(10px);
}

.method-icon {
    font-size: 30px;
    width: 60px;
    text-align: center;
}

.method-info {
    flex: 1;
}

.method-name {
    font-size: 18px;
    color: #00ff00;
    margin-bottom: 10px;
}

.method-value {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 6px;
}

.download-prompt {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #333;
}

.download-area {
    margin-top: 20px;
    text-align: center;
}

/* Game Footer */
.game-footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-top: 4px solid #00ff00;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info-large {
    margin-bottom: 30px;
}

.contact-section-title {
    font-size: 14px;
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #cc6600;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.contact-detail {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #333;
    border-radius: 4px;
}

.contact-label {
    font-size: 8px;
    color: #888;
    margin-bottom: 8px;
}

.contact-value {
    font-size: 9px;
    color: #00ff00;
    margin-bottom: 3px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #333;
}

.game-credits {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 7px;
    color: #666;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-pixel {
    color: #00ff00;
    text-decoration: none;
    padding: 8px 12px;
    border: 2px solid #00ff00;
    border-radius: 4px;
    font-size: 7px;
    transition: all 0.3s ease;
}

.social-pixel:hover {
    background: #00ff00;
    color: #000;
    transform: translateY(-2px);
}

/* Notifications */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #00ff00;
    border-radius: 4px;
    padding: 15px;
    max-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 255, 0, 0.3);
    animation: slideInRight 0.5s ease-out;
}

.notification.success {
    border-color: #32cd32;
    box-shadow: 0 4px 8px rgba(50, 205, 50, 0.3);
}

.notification.error {
    border-color: #ff6b6b;
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 6px;
    }
    
    .header-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .character-select {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .dialogue-options {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .contact-details-grid {
        grid-template-columns: 1fr;
    }
    
    .terminal-content {
        padding: 20px;
    }
    
    .terminal-line {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .method-name {
        font-size: 16px;
    }
    
    .method-value {
        font-size: 14px;
    }
    
    .method-icon {
        font-size: 26px;
        width: 50px;
    }
    
    .contact-method {
        padding: 18px;
        gap: 18px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .game-screen {
        padding: 10px;
    }
    
    .window-content {
        padding: 15px;
    }
    
    .character-stats-mini {
        grid-template-columns: 1fr;
    }
    
    .terminal-line {
        font-size: 16px;
    }
    
    .method-name {
        font-size: 14px;
    }
    
    .method-value {
        font-size: 12px;
    }
    
    .method-icon {
        font-size: 22px;
        width: 45px;
    }
    
    .contact-method {
        padding: 15px;
        gap: 15px;
    }
} 