/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

:root {
    --pokedex-red: #e3350d;
    --pokedex-dark-red: #c22e28;
    --pokedex-blue: #30a7d7;
    --pokedex-dark-blue: #1b53ba;
    --pokedex-yellow: #f7d02c;
    --pokedex-black: #313131;
    --pokedex-white: #f5f5f5;
    --pokedex-gray: #a4a4a4;
    --pokedex-light-gray: #e0e0e0;
    --pokedex-gold: #ffd700;
    --pokedex-silver: #c0c0c0;
    --pokedex-bronze: #cd7f32;
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-green: #39ff14;
    --neon-yellow: #ffff00;
}

/* Loading state styles */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Focus styles for better accessibility */
*:focus-visible {
    outline: 3px solid var(--pokedex-yellow);
    outline-offset: 2px;
}

/* Improve button and link focus states */
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--pokedex-yellow);
    outline-offset: 2px;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: var(--pokedex-black);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating particles background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Pokédex Container with 3D effect */
.pokedex-container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: var(--pokedex-red);
    border-radius: 15px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 0 4px #333,
        0 0 0 8px #e3350d,
        0 0 20px rgba(227, 53, 13, 0.7),
        0 0 40px rgba(227, 53, 13, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 90vh;
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.pokedex-container:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 0 0 4px #333,
        0 0 0 8px #e3350d,
        0 0 30px rgba(227, 53, 13, 0.9),
        0 0 60px rgba(227, 53, 13, 0.5);
}

.pokedex-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1542779283-429940ce8336?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
}

/* Header Styles with enhanced effects */
.pokedex-header {
    background: linear-gradient(to bottom, var(--pokedex-dark-red), #8b0000);
    padding: 20px;
    text-align: center;
    border-bottom: 5px solid var(--pokedex-black);
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.pokedex-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0) 50%,
            rgba(255, 255, 255, 0.1) 100%);
    transform: rotate(30deg);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(30deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }
}

.trainer-title {
    color: var(--pokedex-white);
    font-size: 2.8rem;
    text-shadow:
        2px 2px 0 var(--pokedex-black),
        4px 4px 8px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    animation: titleGlow 2s infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow:
            2px 2px 0 var(--pokedex-black),
            4px 4px 8px rgba(0, 0, 0, 0.5),
            0 0 10px rgba(255, 255, 255, 0.5);
    }

    100% {
        text-shadow:
            2px 2px 0 var(--pokedex-black),
            4px 4px 8px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 30px rgba(255, 255, 255, 0.6);
    }
}

.pokedex-lights {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.light {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--pokedex-gray);
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.light:hover {
    transform: scale(1.2);
}

.light.red {
    background-color: #ff0000;
    animation: blink 2s infinite;
    box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
}

.light.yellow {
    background-color: var(--pokedex-yellow);
    animation: blink 2s infinite 0.5s;
    box-shadow: 0 0 10px var(--pokedex-yellow), 0 0 20px var(--pokedex-yellow);
}

.light.green {
    background-color: #4caf50;
    animation: blink 2s infinite 1s;
    box-shadow: 0 0 10px #4caf50, 0 0 20px #4caf50;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
    }

    50% {
        opacity: 0.3;
        box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
    }
}

/* Enhanced Navigation Styles */
.pokedex-nav {
    background: linear-gradient(to right, #222, #444, #222);
    padding: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 3px solid #111;
    position: relative;
    overflow: hidden;
}

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

.pokedex-nav:hover::before {
    left: 100%;
}

.nav-btn {
    background: linear-gradient(to bottom, var(--pokedex-blue), var(--pokedex-dark-blue));
    color: var(--pokedex-white);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 #1a3d7c, 0 6px 8px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: translateY(0);
}

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

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: linear-gradient(to bottom, var(--pokedex-dark-blue), #0f2c6d);
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1a3d7c, 0 4px 6px rgba(0, 0, 0, 0.3);
}

.nav-btn.active {
    background: linear-gradient(to bottom, var(--pokedex-yellow), #d4b41c);
    color: var(--pokedex-black);
    box-shadow: 0 4px 0 #b8940f, 0 6px 8px rgba(0, 0, 0, 0.3);
    animation: activePulse 2s infinite;
}

@keyframes activePulse {
    0% {
        box-shadow: 0 4px 0 #b8940f, 0 6px 8px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 4px 0 #b8940f, 0 6px 15px rgba(255, 215, 0, 0.5);
    }

    100% {
        box-shadow: 0 4px 0 #b8940f, 0 6px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Main Content Area with enhanced effects */
.pokedex-main {
    display: flex;
    flex: 1;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(253, 187, 45, 0.1) 0%, rgba(34, 193, 195, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.pokedex-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1542779283-429940ce8336?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.pokedex-screen {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

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

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Trainer Card Styles */
.trainer-card-enhanced {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95));
    border-radius: 20px;
    padding: 30px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(48, 167, 215, 0.3);
    border: 3px solid var(--pokedex-red);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trainer-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(48, 167, 215, 0.5);
}

.trainer-card-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.trainer-card-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.pokeball-design {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    position: relative;
    animation: floatPokeball 3s ease-in-out infinite;
}

@keyframes floatPokeball {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.pokeball-top {
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, #ff6b6b, #e74c3c);
    border-radius: 30px 30px 0 0;
    border: 3px solid #2c3e50;
}

.pokeball-bottom {
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, #ecf0f1, #bdc3c7);
    border-radius: 0 0 30px 30px;
    border: 3px solid #2c3e50;
    border-top: none;
}

.pokeball-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #2c3e50;
    border-radius: 50%;
    border: 4px solid #ecf0f1;
}

.pokeball-button {
    width: 8px;
    height: 8px;
    background: #3498db;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blinkButton 2s infinite;
}

@keyframes blinkButton {

    0%,
    100% {
        background: #3498db;
    }

    50% {
        background: #1d6fa5;
    }
}

.trainer-card-title {
    font-size: 2rem;
    color: var(--pokedex-red);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.trainer-card-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .trainer-card-body {
        grid-template-columns: 1fr;
    }
}

.trainer-avatar-section {
    text-align: center;
}

.trainer-avatar-frame {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.avatar-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: conic-gradient(from 0deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ff6b6b);
    border-radius: 50%;
    animation: rotate 4s linear infinite;
    opacity: 0.4;
    filter: blur(15px);
}

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

    to {
        transform: rotate(360deg);
    }
}

.trainer-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    opacity: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.trainer-avatar-img:hover {
    transform: scale(1.05);
}

.trainer-basic-info {
    margin-top: 10px;
}

.trainer-name-enhanced {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--pokedex-black);
    font-weight: bold;
}

.trainer-title-enhanced {
    font-size: 1.2rem;
    color: var(--pokedex-blue);
    margin-bottom: 15px;
}

.trainer-level-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--pokedex-yellow), #f1c40f);
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid var(--pokedex-red);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.trainer-level-badge:hover {
    transform: scale(1.05);
}

.level-text {
    font-size: 0.9rem;
    margin-right: 8px;
    font-weight: bold;
}

.level-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--pokedex-red);
}

/* Social Links Styling */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--pokedex-red), var(--pokedex-dark-red));
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--pokedex-dark-red), #8b0000);
}

.social-link i {
    pointer-events: none;
}

.trainer-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--pokedex-light-gray);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--pokedex-blue), var(--pokedex-dark-blue));
    transition: width 0.3s ease;
}

.stat-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 1.5rem;
    z-index: 1;
}

.stat-content {
    flex: 1;
    z-index: 1;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--pokedex-red);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--pokedex-gray);
}

.trainer-specialty {
    margin-bottom: 25px;
}

.specialty-title {
    font-size: 1.2rem;
    color: var(--pokedex-black);
    margin-bottom: 12px;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialty-tag {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.specialty-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.specialty-tag.react {
    background: linear-gradient(135deg, #61dafb, #21a8c4);
}

.specialty-tag.node {
    background: linear-gradient(135deg, #68a063, #4f7942);
}

.specialty-tag.mongo {
    background: linear-gradient(135deg, #4db33d, #3e8e2e);
}

.specialty-tag.express {
    background: linear-gradient(135deg, #404040, #262626);
}

.trainer-bio-enhanced {
    background: rgba(52, 152, 219, 0.1);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--pokedex-blue);
    transition: transform 0.3s ease;
}

.trainer-bio-enhanced:hover {
    transform: translateX(5px);
}

.bio-title {
    font-size: 1.2rem;
    color: var(--pokedex-black);
    margin-bottom: 10px;
}

.bio-text {
    line-height: 1.6;
    color: var(--pokedex-gray);
}

.trainer-card-footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 12px;
    border: 2px dashed var(--pokedex-red);
    animation: pulseBorder 2s infinite;
}

@keyframes pulseBorder {

    0%,
    100% {
        border-color: var(--pokedex-red);
    }

    50% {
        border-color: var(--pokedex-yellow);
    }
}

.navigation-hint {
    margin: 0;
    font-size: 1.1rem;
    color: var(--pokedex-red);
    font-weight: bold;
}

/* Enhanced Projects Section Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.project-card.fire-theme::before {
    background-image: url('https://images.unsplash.com/photo-1519070994522-88c6b756330e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
}

.project-card.water-theme::before {
    background-image: url('https://images.unsplash.com/photo-1559827260-dc66d52bef19?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
}

.project-card.grass-theme::before {
    background-image: url('https://images.unsplash.com/photo-1501004318641-b39e6451bec6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
}

.project-card.electric-theme::before {
    background-image: url('https://images.unsplash.com/photo-1578662996442-48f60103fc96?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
}

.project-card.psychic-theme::before {
    background-image: url('https://images.unsplash.com/photo-1534447677768-be436bb09401?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
}

.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project-card>* {
    position: relative;
    z-index: 1;
}

.project-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--pokedex-dark-blue);
    margin-bottom: 10px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.project-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--pokedex-black);
}

.project-image {
    width: 100%;
    height: 150px;
    background-color: var(--pokedex-gray);
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pokedex-white);
    font-weight: bold;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Smooth image loading */
    transition: opacity 0.3s ease;
}

/* Image loading state */
img:not([src]),
img[src=""] {
    opacity: 0;
}

/* Improve image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.project-types {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.type-tag {
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.type-tag:hover {
    transform: scale(1.1);
}

.type-fire {
    background: linear-gradient(to bottom, #ee8130, #c2610f);
}

.type-water {
    background: linear-gradient(to bottom, #6390f0, #3a5fc1);
}

.type-grass {
    background: linear-gradient(to bottom, #7ac74c, #5a9e2d);
}

.type-electric {
    background: linear-gradient(to bottom, #f7d02c, #d4b41c);
    color: var(--pokedex-black);
}

.type-psychic {
    background: linear-gradient(to bottom, #f95587, #d63a6a);
}

.type-dark {
    background: linear-gradient(to bottom, #705746, #4f3e30);
}

.type-fairy {
    background: linear-gradient(to bottom, #d685ad, #b86b94);
}

.type-fighting {
    background: linear-gradient(to bottom, #c22e28, #8f1f1a);
}

.type-ice {
    background: linear-gradient(to bottom, #96d9d6, #6bb3b0);
    color: var(--pokedex-black);
}

.type-rock {
    background: linear-gradient(to bottom, #b6a136, #8c7d1f);
}

.type-ground {
    background: linear-gradient(to bottom, #e2bf65, #c9a63c);
    color: var(--pokedex-black);
}

.type-flying {
    background: linear-gradient(to bottom, #a98ff3, #8367d4);
}

.type-bug {
    background: linear-gradient(to bottom, #a6b91a, #7d8f0b);
}

.type-poison {
    background: linear-gradient(to bottom, #a33ea1, #7a2e78);
}

.type-steel {
    background: linear-gradient(to bottom, #b7b7ce, #8f8fa9);
}

.type-dragon {
    background: linear-gradient(to bottom, #6f35fc, #4f1fc4);
}

.type-ghost {
    background: linear-gradient(to bottom, #735797, #554073);
}

.project-abilities {
    margin-bottom: 10px;
}

.ability-tag {
    display: inline-block;
    background: linear-gradient(to bottom, var(--pokedex-blue), var(--pokedex-dark-blue));
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.ability-tag:hover {
    transform: scale(1.1);
}

.project-stats {
    margin-bottom: 15px;
    flex-grow: 1;
}

.stat {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.stat-name {
    width: 100px;
    font-size: 0.9rem;
}

.stat-bar {
    flex: 1;
    height: 10px;
    background-color: var(--pokedex-gray);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.stat-fill {
    height: 100%;
    background: linear-gradient(to right, var(--pokedex-blue), var(--pokedex-dark-blue));
    border-radius: 5px;
    width: 0;
    transition: width 1s ease;
    box-shadow: 0 0 5px rgba(48, 167, 215, 0.5);
}

.project-links {
    display: flex;
    gap: 10px;
    margin-top: auto;
    justify-content: center;
}

.project-link {
    flex: 1;
    max-width: 200px;
    text-align: center;
    padding: 8px;
    background: linear-gradient(to bottom, var(--pokedex-red), var(--pokedex-dark-red));
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.project-link:hover {
    background: linear-gradient(to bottom, var(--pokedex-dark-red), #8b0000);
    transform: translateY(-2px);
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.3);
}

/* Enhanced Badges Section Styles */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.badge {
    background: linear-gradient(135deg, var(--pokedex-light-gray), #c5c5c5);
    border-radius: 50%;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--pokedex-yellow);
    position: relative;
    overflow: hidden;
    /* Make badges keyboard accessible */
    outline: none;
}

.badge:focus-visible {
    outline: 3px solid var(--pokedex-yellow);
    outline-offset: 5px;
}

.badge::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: conic-gradient(from 0deg, #f7d02c, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #f7d02c);
    z-index: -1;
    filter: blur(20px);
    opacity: 0.7;
}

.badge:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.badge-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.badge-name {
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced Skills Section Styles */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.skill-category-title {
    font-size: 1.3rem;
    color: var(--pokedex-red);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pokedex-gray);
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.skill-category-title i {
    font-size: 1.5rem;
}

.skill-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.skill-item:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: bold;
}

.skill-bar {
    height: 12px;
    background-color: var(--pokedex-gray);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.skill-progress {
    height: 100%;
    border-radius: 10px;
    width: 0;
    transition: width 1s ease;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.skill-progress.frontend {
    background: linear-gradient(90deg, #ee8130, #f7d02c);
}

.skill-progress.backend {
    background: linear-gradient(90deg, #6390f0, #7ac74c);
}

.skill-progress.other {
    background: linear-gradient(90deg, #a33ea1, #a98ff3);
}

/* Enhanced Moves List Section Styles */
.moves-list {
    margin-top: 20px;
}

.moves-category {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.moves-category:hover {
    transform: translateY(-5px);
}

.moves-category-title {
    font-size: 1.5rem;
    color: var(--pokedex-red);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--pokedex-gray);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.moves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.move-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.move-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

.move-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--pokedex-dark-blue);
}

.move-description {
    font-size: 0.9rem;
    color: var(--pokedex-black);
}

/* Enhanced Resume Section Styles */
.resume-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .resume-container {
        grid-template-columns: 1fr;
    }
}

.resume-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.resume-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

.resume-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.resume-title {
    font-size: 1.5rem;
    color: var(--pokedex-red);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pokedex-gray);
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.resume-title i {
    font-size: 1.3rem;
}

.education-item,
.experience-item,
.project-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.education-item:hover,
.experience-item:hover,
.project-item:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.item-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--pokedex-dark-blue);
}

.item-subtitle {
    font-style: italic;
    margin-bottom: 5px;
    color: var(--pokedex-dark-blue);
}

.item-date {
    color: var(--pokedex-gray);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.item-description {
    margin-bottom: 10px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: linear-gradient(to bottom, var(--pokedex-blue), var(--pokedex-dark-blue));
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.skill-tag:hover {
    background: linear-gradient(to bottom, var(--pokedex-dark-blue), #0f2c6d);
    transform: scale(1.05);
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.3);
}

.download-resume {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: linear-gradient(to bottom, var(--pokedex-red), var(--pokedex-dark-red));
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.download-resume:hover {
    background: linear-gradient(to bottom, var(--pokedex-dark-red), #8b0000);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Enhanced Modals */
.project-modal,
.badge-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.project-modal.active,
.badge-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content,
.badge-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.95));
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--pokedex-red);
    animation: modalSlideIn 0.3s ease;
    /* Enable focus for accessibility */
    outline: none;
}

.badge-modal-content {
    max-width: 500px;
    text-align: center;
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal,
.close-badge-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--pokedex-black);
    background: rgba(255, 255, 255, 0.8);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.close-modal:hover,
.close-badge-modal:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Easter Egg Styles */
.easter-egg {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--pokedex-yellow), #d4b41c);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    z-index: 2000;
    text-align: center;
    max-width: 400px;
    border: 3px solid #b8940f;
}

.easter-egg.active {
    display: block;
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Easter Egg Button */
#close-easter-egg {
    background: linear-gradient(to bottom, var(--pokedex-red), var(--pokedex-dark-red));
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

#close-easter-egg:hover {
    background: linear-gradient(to bottom, var(--pokedex-dark-red), #8b0000);
    transform: translateY(-2px);
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.4);
}

#close-easter-egg:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .pokedex-container {
        margin: 10px;
        border-radius: 10px;
    }

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

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

    .nav-btn {
        width: 80%;
    }

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

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

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

    .badge {
        width: 120px;
        height: 120px;
    }

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

    .skills-container {
        grid-template-columns: 1fr;
    }

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

/* Section Headers */
.section-header {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--pokedex-yellow), transparent);
    border-radius: 2px;
}

/* Print Styles for Resume */
@media print {
    .particles,
    .pokedex-header,
    .pokedex-nav,
    .download-resume {
        display: none;
    }

    .pokedex-container {
        box-shadow: none;
        border: none;
    }

    .resume-section {
        page-break-inside: avoid;
    }

    body {
        background: white;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
