/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Design tokens */
:root {
    --color-bg: #2c3e50;
    --color-surface: #ecf0f1;
    --color-primary: #e74c3c;
    --color-primary-dark: #c0392b;
    --color-text: #ffffff;
    --color-muted: #7f8c8d;

    --border-strong: 3px solid #000;
    --shadow-1: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-2: 0 20px 40px rgba(0, 0, 0, 0.4);

    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Keep pixel font for key headings/UI labels */
.section-title,
.pokedex-title,
.pokedex-subtitle,
.trainer-name-pokemon,
.section-title-pokemon,
.logo-text,
.nav-btn,
.advanced-btn,
.view-bio-btn,
.type-badge {
    font-family: 'Press Start 2P', cursive;
}

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



/* Navigation */
.nav-bar {
    background: var(--color-primary);
    border-bottom: 4px solid var(--color-primary-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* SVG Pokeball animation */
.pokeball-icon { display: inline-block; animation: spin 2s linear infinite; }

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

.logo-text {
    font-size: clamp(12px, 1.8vw, 14px);
    color: var(--color-text);
    text-shadow: 2px 2px 0 #000;
}

.nav-menu {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: #fff;
    border: 3px solid var(--color-primary-dark);
    color: var(--color-primary);
    padding: 10px 15px;
    font-size: clamp(9px, 1.6vw, 10px);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 var(--color-primary-dark);
}

.nav-btn:hover {
    background: #ecf0f1;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #c0392b;
}

.nav-btn.active {
    background: var(--color-primary);
    color: #fff;
    box-shadow: inset 3px 3px 0 var(--color-primary-dark);
}

/* Advanced Settings Toggle */
.advanced-toggle {
    position: absolute;
    top: 15px;
    left: 20px;
}

/* Prevent overlap with logo on small screens */
@media (max-width: 768px) {
    .advanced-toggle {
        position: static;
        margin: 10px 0 0 0;
        order: 3;
        align-self: flex-start;
    }

    .nav-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-logo {
        align-self: center;
        margin-top: 6px;
    }
}

.advanced-btn {
    background: #2c3e50;
    border: 2px solid #fff;
    color: var(--color-text);
    padding: 8px 12px;
    font-size: clamp(8px, 1.4vw, 9px);
    cursor: pointer;
    border-radius: 6px;
    box-shadow: 2px 2px 0 #000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.advanced-btn:hover {
    background: #34495e;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #000;
}

.advanced-btn:active {
    transform: translate(0, 0);
    box-shadow: 1px 1px 0 #000;
}

.advanced-btn.active {
    background: var(--color-primary);
    box-shadow: inset 2px 2px 0 var(--color-primary-dark);
}

/* Advanced Settings Panel */
.advanced-panel {
    position: fixed;
    top: 80px;
    left: 20px;
    background: #2c3e50;
    border: 3px solid var(--color-primary);
    border-radius: 10px;
    padding: 15px;
    color: var(--color-text);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
    min-width: 250px;
}

.advanced-panel.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.advanced-content h3 {
    font-size: 12px;
    margin-bottom: 10px;
    color: #e74c3c;
    text-shadow: 1px 1px 0 #000;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 5px;
}

.advanced-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #34495e;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 9px;
    color: #bdc3c7;
}

.stat-value {
    font-size: 9px;
    color: #e74c3c;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

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

.section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

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

.section-title {
    text-align: center;
    font-size: clamp(20px, 3vw, 24px);
    margin-bottom: 30px;
    text-shadow: 3px 3px 0 #000;
    color: var(--color-primary);
}

/* Trainer Card Container */
.trainer-card-container {
    max-width: 500px;
    margin: 0 auto;
}

/* Pokédex Device */
.pokedex-device {
    background: var(--color-primary);
    border: 8px solid #000;
    border-radius: 20px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    box-shadow: var(--shadow-2);
    overflow: hidden;
}

/* Pokédex Top Section */
.pokedex-top {
    background: var(--color-primary);
    padding: 20px;
    border-bottom: 4px solid #000;
}

.pokedex-screen {
    background: #fff;
    border: 6px solid #000;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.screen-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.trainer-photo {
    flex-shrink: 0;
}

.photo-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: 3px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    box-shadow: 3px 3px 0 #000;
}

.trainer-info {
    flex: 1;
}

.trainer-name {
    font-size: 16px;
    margin-bottom: 8px;
    color: #e74c3c;
    text-shadow: 1px 1px 0 #000;
    letter-spacing: 1px;
}

.trainer-title {
    font-size: 12px;
    margin-bottom: 15px;
    color: #7f8c8d;
    letter-spacing: 1px;
}

/* View Bio Button */
.view-bio-btn {
    background: #e74c3c;
    border: 3px solid #000;
    color: #fff;
    padding: 8px 12px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    cursor: pointer;
    border-radius: 6px;
    box-shadow: 3px 3px 0 #000;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-bio-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000;
}

.view-bio-btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 #000;
}

/* Pokédex Buttons */
.pokedex-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.button {
    width: 20px;
    height: 20px;
    border: 2px solid #000;
    border-radius: 50%;
    box-shadow: 2px 2px 0 #000;
}

.blue-button {
    background: #3498db;
    width: 30px;
    height: 30px;
}

.yellow-light {
    background: #f1c40f;
}

.green-light {
    background: #2ecc71;
}

.red-light {
    background: #e74c3c;
}

/* Pokédex Screen Content */
.pokedex-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 3px solid #000;
    padding-bottom: 15px;
}

.pokedex-title {
    font-size: clamp(16px, 2.4vw, 18px);
    color: var(--color-primary);
    text-shadow: 2px 2px 0 #000;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.pokedex-subtitle {
    font-size: clamp(9px, 1.6vw, 10px);
    color: var(--color-muted);
    letter-spacing: 1px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.project-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 10px;
    background: #ecf0f1;
    border: 3px solid #000;
    box-shadow: 3px 3px 0 #000;
}

.project-circle:hover {
    transform: scale(1.05);
    box-shadow: 4px 4px 0 #000;
}

.project-sprite {
    font-size: 40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: 3px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 0 #000;
}

.project-name {
    font-size: clamp(9px, 1.6vw, 10px);
    color: #2c3e50;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
}

.pokedex-instruction {
    text-align: center;
    font-size: 10px;
    color: #7f8c8d;
    font-style: italic;
    border-top: 2px solid #000;
    padding-top: 10px;
}

/* Pokédex Bottom Section */
.pokedex-bottom {
    background: #e74c3c;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.contact-info h3,
.skills-section h3 {
    font-size: 12px;
    margin-bottom: 10px;
    color: #e74c3c;
    text-shadow: 1px 1px 0 #000;
    letter-spacing: 1px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 6px;
    background: #fff;
    border-radius: 4px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    font-size: 9px;
    color: #2c3e50;
}

.contact-item i {
    font-size: 10px;
    color: #e74c3c;
}

.skill-types {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-type {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: #fff;
    border-radius: 4px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #000;
    font-size: 9px;
}

/* Pokédex Controls */
.pokedex-controls {
    grid-column: 1 / -1;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.control-button {
    width: 25px;
    height: 25px;
    border: 2px solid #000;
    border-radius: 50%;
    box-shadow: 2px 2px 0 #000;
}

.gray-button {
    background: #95a5a6;
}

.green-button {
    background: #2ecc71;
}

.control-button.small {
    width: 15px;
    height: 15px;
}

/* D-Pad */
.d-pad {
    position: relative;
    width: 60px;
    height: 60px;
}

.d-pad-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #000;
    border-radius: 50%;
}

.d-pad-up,
.d-pad-down,
.d-pad-left,
.d-pad-right {
    position: absolute;
    background: #000;
    border-radius: 4px;
}

.d-pad-up,
.d-pad-down {
    width: 20px;
    height: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.d-pad-left,
.d-pad-right {
    width: 8px;
    height: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.d-pad-up {
    top: 0;
}

.d-pad-down {
    bottom: 0;
}

.d-pad-left {
    left: 0;
}

.d-pad-right {
    right: 0;
}

/* Trainer Card Sections */
.contact-section,
.skills-section-pokemon {
    margin-bottom: 20px;
}

.section-title-pokemon {
    font-size: clamp(12px, 2vw, 14px);
    margin-bottom: 10px;
    color: var(--color-primary);
    text-shadow: 1px 1px 0 #000;
    letter-spacing: 1px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 5px;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item-pokemon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #ecf0f1;
    border-radius: 6px;
    border: 2px solid #e74c3c;
    box-shadow: 2px 2px 0 #c0392b;
    font-size: 11px;
    color: #2c3e50;
}

.contact-item-pokemon i {
    font-size: 12px;
    color: #e74c3c;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.skill-item-pokemon {
    display: flex;
    justify-content: center;
}

/* Trainer Bio Modal - Pokémon Trainer Card Style */
.trainer-bio-modal {
    max-width: 500px;
    max-height: 80vh;
    background: #fff;
    border: 8px solid #e74c3c;
    border-radius: 20px;
    color: #2c3e50;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
}

.trainer-bio-modal .trainer-card-pokemon {
    max-height: 70vh;
    overflow-y: auto;
}

.trainer-card-pokemon {
    padding: 25px;
    background: linear-gradient(145deg, #fff, #f8f9fa);
    border-radius: 12px;
}

/* Trainer Card Header */
.card-header-pokemon {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: center;
    border-bottom: 4px solid #e74c3c;
    padding-bottom: 20px;
}

.trainer-photo-pokemon {
    flex-shrink: 0;
}

.photo-placeholder-pokemon {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: 4px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    box-shadow: 4px 4px 0 #000;
    overflow: hidden; /* ensure inner content stays circular */
    position: relative;
}

/* Ensure trainer image is circular and contained */
.photo-placeholder-pokemon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.trainer-info-pokemon {
    flex: 1;
}

.trainer-name-pokemon {
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 5px;
    color: var(--color-primary);
    text-shadow: 2px 2px 0 #000;
    letter-spacing: 2px;
}

.trainer-id {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.trainer-title-pokemon {
    font-size: 14px;
    color: #2c3e50;
    letter-spacing: 1px;
    font-weight: bold;
}

/* Trainer Stats */
.trainer-stats-pokemon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--color-surface);
    border-radius: 10px;
    border: 3px solid var(--color-primary);
    box-shadow: 3px 3px 0 var(--color-primary-dark);
    min-height: 120px;
    max-width: 100%;
    box-sizing: border-box;
}

.stat-row-pokemon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #bdc3c7;
    min-width: 0;
}

.stat-row-pokemon:last-child {
    border-bottom: none;
}

.stat-label-pokemon {
    font-size: 9px;
    color: var(--color-muted);
    font-weight: bold;
    flex: 1;
    margin-right: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    max-width: 50%;
}

.stat-value-pokemon {
    font-size: 9px;
    color: var(--color-primary);
    font-weight: bold;
    text-align: right;
    min-width: 45px;
    max-width: 50%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-shrink: 0;
}

/* Trainer Bio */
.trainer-bio-pokemon {
    margin-bottom: 20px;
}

.bio-title-pokemon {
    font-size: 16px;
    margin-bottom: 10px;
    color: #e74c3c;
    text-shadow: 1px 1px 0 #000;
    letter-spacing: 1px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 5px;
}

.bio-text-pokemon {
    font-size: 12px;
    line-height: 1.5;
    color: #2c3e50;
    margin-bottom: 15px;
}

.interests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.interest-item {
    background: #fff;
    border: 2px solid #e74c3c;
    border-radius: 6px;
    padding: 8px;
    font-size: 11px;
    text-align: center;
    color: #2c3e50;
    box-shadow: 2px 2px 0 #c0392b;
}

/* Trainer Badge */
.trainer-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    border: 3px solid #000;
    border-radius: 15px;
    padding: 12px;
    box-shadow: 3px 3px 0 #000;
}

.badge-icon {
    font-size: 24px;
}

.badge-text {
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
    letter-spacing: 1px;
}

/* View Bio Button */
.view-bio-btn {
    background: #e74c3c;
    border: 3px solid #000;
    color: #fff;
    padding: 10px 15px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 3px 3px 0 #000;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.view-bio-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000;
    background: #c0392b;
}

.view-bio-btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 #000;
}

/* Responsive for trainer card */
@media (max-width: 768px) {
    .card-header-pokemon {
        flex-direction: column;
        text-align: center;
    }

    .trainer-stats-pokemon {
        grid-template-columns: 1fr;
    }

    .interests-grid {
        grid-template-columns: 1fr;
    }
}

/* Removed old trainer card styles - now using Pokédex device */

.contact-info h3,
.skills-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #e74c3c;
    text-shadow: 2px 2px 0 #000;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #ecf0f1;
    border-radius: 8px;
    border: 2px solid #e74c3c;
    box-shadow: 2px 2px 0 #c0392b;
}

.contact-item i {
    font-size: 16px;
    color: #e74c3c;
}

.skill-types {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-type {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #ecf0f1;
    border-radius: 8px;
    border: 2px solid #e74c3c;
    box-shadow: 2px 2px 0 #c0392b;
}

/* Type Badges - Programming Language Colors */
.type-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
    border: 2px solid #fff;
}

.type-badge.javascript {
    background: linear-gradient(45deg, #f7df1e, #f0db4f);
    color: #000;
}

.type-badge.python {
    background: linear-gradient(45deg, #3776ab, #306998);
    color: #fff;
}

.type-badge.react {
    background: linear-gradient(45deg, #61dafb, #00d8ff);
    color: #000;
}

.type-badge.nodejs {
    background: linear-gradient(45deg, #339933, #68a063);
    color: #fff;
}

.type-badge.html {
    background: linear-gradient(45deg, #e34f26, #f06529);
    color: #fff;
}

.type-badge.css {
    background: linear-gradient(45deg, #1572b6, #33a9dc);
    color: #fff;
}

.type-badge.java {
    background: linear-gradient(45deg, #007396, #ed8b00);
    color: #fff;
}

.type-badge.csharp {
    background: linear-gradient(45deg, #68217a, #512bd4);
    color: #fff;
}

.type-badge.cpp {
    background: linear-gradient(45deg, #00599c, #004482);
    color: #fff;
}

.type-badge.php {
    background: linear-gradient(45deg, #777bb4, #4f5d95);
    color: #fff;
}

.type-badge.ruby {
    background: linear-gradient(45deg, #cc342d, #a91401);
    color: #fff;
}

.type-badge.swift {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #fff;
}

.type-badge.go {
    background: linear-gradient(45deg, #00add8, #007d9c);
    color: #fff;
}

.type-badge.rust {
    background: linear-gradient(45deg, #ce422b, #b7410e);
    color: #fff;
}

.type-badge.typescript {
    background: linear-gradient(45deg, #3178c6, #235a97);
    color: #fff;
}

.type-badge.vue {
    background: linear-gradient(45deg, #4fc08d, #42b883);
    color: #fff;
}

.type-badge.angular {
    background: linear-gradient(45deg, #dd0031, #c3002f);
    color: #fff;
}

.type-badge.docker {
    background: linear-gradient(45deg, #2496ed, #0db7ed);
    color: #fff;
}

.type-badge.kubernetes {
    background: linear-gradient(45deg, #326ce5, #4c8bf5);
    color: #fff;
}

.type-badge.mongodb {
    background: linear-gradient(45deg, #47a248, #4db33d);
    color: #fff;
}

.type-badge.postgresql {
    background: linear-gradient(45deg, #336791, #2d5a8b);
    color: #fff;
}

.type-badge.mysql {
    background: linear-gradient(45deg, #00758f, #f29111);
    color: #fff;
}

/* Pokédex */
.pokedex-container {
    max-width: 1000px;
    margin: 0 auto;
}

.pokedex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.pokemon-card {
    background: #fff;
    border: 4px solid #e74c3c;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #2c3e50;
}

.pokemon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: #c0392b;
}

.pokemon-sprite {
    text-align: center;
    margin-bottom: 15px;
}

.sprite-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: 3px solid #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 40px;
}

.pokemon-name {
    font-size: 16px;
    text-align: center;
    margin-bottom: 10px;
    color: #e74c3c;
    text-shadow: 2px 2px 0 #000;
}

.pokemon-types {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.pokemon-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
}

.stat-fill {
    background: linear-gradient(90deg, #00b894, #00cec9);
    height: 15px;
    border-radius: 8px;
    border: 1px solid #fff;
    position: relative;
    overflow: hidden;
}

.stat-fill::after {
    content: attr(style);
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    color: #fff;
    text-shadow: 1px 1px 0 #000;
}

/* Map */
.map-container {
    max-width: 1000px;
    margin: 0 auto;
}

.region-map {
    background: #fff;
    border: 6px solid #e74c3c;
    border-radius: 15px;
    padding: 40px;
    position: relative;
    min-height: 400px;
    color: #2c3e50;
}

.map-location {
    position: relative;
    margin-bottom: 30px;
    padding-left: 60px;
}

.map-location::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 40px;
    bottom: -30px;
    width: 2px;
    background: var(--color-primary);
}

.map-location:last-child::before {
    display: none;
}

.location-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: 3px solid #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.location-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.location-marker.current {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Accessible focus styles */
.nav-btn:focus-visible,
.project-circle:focus-visible,
.encounter-btn:focus-visible,
.location-marker:focus-visible,
.advanced-btn:focus-visible,
.view-bio-btn:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
a:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

.location-info h4 {
    font-size: 18px;
    color: #e74c3c;
    margin-bottom: 5px;
    text-shadow: 2px 2px 0 #000;
}

.location-info p {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.year {
    font-size: 12px;
    color: #7f8c8d;
    background: #ecf0f1;
    padding: 3px 8px;
    border-radius: 10px;
    border: 2px solid #e74c3c;
    box-shadow: 2px 2px 0 #c0392b;
}

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

.modal-content {
    background: linear-gradient(145deg, #2c3e50, #34495e);
    margin: 5% auto;
    padding: 30px;
    border: 4px solid #fff;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #ff6b6b;
}

.pokemon-detail {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.detail-sprite {
    flex-shrink: 0;
}

.detail-sprite-img {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: 4px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.detail-name {
    font-size: clamp(18px, 2.5vw, 24px);
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 #000;
}

.detail-types {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-stats {
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}

.detail-moves h4 {
    font-size: 16px;
    color: #ffd700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 #000;
}

.detail-moves ul {
    list-style: none;
    padding: 0;
}

.detail-moves li {
    padding: 5px 0;
    font-size: 12px;
    color: #bdc3c7;
}

.detail-description {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid #fff;
}

.detail-description p {
    font-size: 12px;
    line-height: 1.6;
    color: #bdc3c7;
}

/* Wild Encounter */
.wild-encounter {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.encounter-content {
    background: linear-gradient(145deg, #2c3e50, #34495e);
    margin: 20% auto;
    padding: 30px;
    border: 4px solid #ffd700;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: encounterAppear 0.5s ease;
}

@keyframes encounterAppear {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.encounter-sprite {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.encounter-text h3 {
    font-size: 18px;
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 #000;
}

.encounter-text p {
    font-size: 12px;
    color: #bdc3c7;
    margin-bottom: 20px;
    line-height: 1.6;
}

.encounter-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: 3px solid #fff;
    color: #fff;
    padding: 12px 25px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 #000;
}

.encounter-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000;
}

/* Responsive Design */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 9px;
    }

    .main-content {
        padding: 15px;
    }

    .pokedex-device {
        max-width: 100%;
        margin: 0;
        border-radius: 15px;
    }

    .pokedex-top {
        padding: 15px;
    }

    .pokedex-screen {
        padding: 15px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project-circle {
        padding: 15px;
    }

    .project-sprite {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }

    .project-name {
        font-size: 9px;
    }

    .trainer-card-pokemon {
        padding: 20px;
    }

    .card-header-pokemon {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .photo-placeholder-pokemon {
        width: 80px;
        height: 80px;
        font-size: 30px;
    }

    .trainer-name-pokemon {
        font-size: 18px;
    }

    .trainer-stats-pokemon {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .contact-grid {
        gap: 6px;
    }

    .contact-item-pokemon {
        padding: 6px;
        font-size: 10px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .type-badge {
        padding: 4px 8px;
        font-size: 9px;
    }

    .map-location {
        padding-left: 50px;
        margin-bottom: 25px;
    }

    .location-marker {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .location-info h4 {
        font-size: 14px;
    }

    .location-info p {
        font-size: 12px;
    }

    .modal-content {
        margin: 5% auto;
        padding: 20px;
        width: 95%;
    }

    .pokemon-detail {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .detail-sprite-img {
        width: 100px;
        height: 100px;
        font-size: 50px;
    }

    .detail-name {
        font-size: 18px;
    }

    .detail-types {
        justify-content: center;
        flex-wrap: wrap;
    }

    .detail-stats {
        margin-bottom: 15px;
    }

    .detail-moves ul {
        text-align: left;
    }

    .encounter-content {
        margin: 15% auto;
        padding: 20px;
        width: 95%;
    }

    .encounter-sprite {
        font-size: 50px;
    }

    .encounter-text h3 {
        font-size: 16px;
    }

    .encounter-text p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 8px 10px;
    }

    .nav-btn {
        padding: 6px 10px;
        font-size: 8px;
    }

    .main-content {
        padding: 10px;
    }

    .trainer-card-pokemon {
        padding: 15px;
    }

    .trainer-name-pokemon {
        font-size: 16px;
    }

    .section-title-pokemon {
        font-size: 12px;
    }

    .pokedex-title {
        font-size: 14px;
    }

    .pokedex-subtitle {
        font-size: 8px;
    }

    .project-sprite {
        width: 40px;
        height: 40px;
        font-size: 25px;
    }

    .project-name {
        font-size: 8px;
    }

    .photo-placeholder-pokemon {
        width: 60px;
        height: 60px;
        font-size: 25px;
    }

    .contact-item-pokemon {
        font-size: 9px;
        padding: 5px;
    }

    .type-badge {
        padding: 3px 6px;
        font-size: 8px;
    }

    .location-marker {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .location-info h4 {
        font-size: 12px;
    }

    .location-info p {
        font-size: 10px;
    }

    .modal-content {
        margin: 2% auto;
        padding: 15px;
    }

    .detail-sprite-img {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }

    .detail-name {
        font-size: 16px;
    }

    .detail-moves h4 {
        font-size: 14px;
    }

    .detail-moves li {
        font-size: 11px;
    }

    .encounter-content {
        margin: 10% auto;
        padding: 15px;
    }

    .encounter-sprite {
        font-size: 40px;
    }

    .encounter-text h3 {
        font-size: 14px;
    }

    .encounter-text p {
        font-size: 10px;
    }

    .encounter-btn {
        padding: 10px 20px;
        font-size: 10px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .nav-btn,
    .project-circle,
    .location-marker,
    .encounter-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-btn {
        padding: 12px 16px;
    }

    .project-circle {
        padding: 20px;
    }

    .location-marker {
        width: 50px;
        height: 50px;
    }

    .encounter-btn {
        padding: 15px 30px;
    }

    /* Improve touch feedback */
    .nav-btn:active,
    .project-circle:active,
    .location-marker:active,
    .encounter-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }

    /* Add visual feedback for touch interactions */
    .project-circle {
        transition: all 0.2s ease;
    }

    .project-circle:active {
        background: #f8f9fa;
        box-shadow: 2px 2px 0 #000;
    }

    /* Improve modal touch targets */
    .close,
    .close-bio {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for mobile */
    .pokedex-device {
        margin: 10px;
    }

    .trainer-card-container {
        margin: 10px;
    }

    .map-container {
        margin: 10px;
    }
}
