/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}



:root {
    /* Classic Pokemon Colors */
    --primary-color: #ffcb05; /* Pokemon Yellow */
    --secondary-color: #3d7dca; /* Pokemon Blue */
    --accent-color: #dc0a2d; /* Pokemon Red */
    --dark-color: #1a1a1a; /* Dark Gray */
    --light-color: #f8f8f8; /* Light Gray */
    --success-color: #4ade80; /* Green */
    --warning-color: #fbbf24; /* Amber */
    --danger-color: #ef4444; /* Red */
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    
    /* Pokemon Type Colors */
    --type-fire: #ff6b6b;
    --type-water: #4ecdc4;
    --type-grass: #2ecc71;
    --type-electric: #f39c12;
    --type-psychic: #9b59b6;
    --type-fighting: #e74c3c;
    --type-normal: #95a5a6;
    --type-rock: #8b4513;
    --type-flying: #87ceeb;
    --type-ice: #add8e6;
    --type-dragon: #9932cc;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('./assets/Stadium.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    color: var(--text-dark);
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="14" fill="%23dc0a2d" stroke="%23000" stroke-width="2"/><circle cx="16" cy="16" r="14" fill="url(%23grad)"/><line x1="2" y1="16" x2="30" y2="16" stroke="%23000" stroke-width="2"/><circle cx="16" cy="16" r="4" fill="%23fff" stroke="%23000" stroke-width="2"/><defs><linearGradient id="grad" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%23dc0a2d"/><stop offset="50%" style="stop-color:%23dc0a2d"/><stop offset="50%" style="stop-color:%23fff"/><stop offset="100%" style="stop-color:%23fff"/></linearGradient></defs></svg>') 16 16, pointer;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Pokemon Solid', 'Orbitron', monospace;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 3px 3px 0px var(--primary-color), 6px 6px 0px var(--secondary-color);
    -webkit-text-stroke: 2px var(--dark-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.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: left 0.5s;
}

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

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow);
    border: 3px solid var(--dark-color);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: var(--primary-color);
    color: var(--dark-color);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow);
    border: 3px solid var(--dark-color);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: var(--primary-color);
    color: var(--dark-color);
}

/* Header */
.header {
    background: var(--accent-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 0 var(--dark-color);
    transition: var(--transition);
    border-bottom: 3px solid var(--dark-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

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

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: spin 3s linear infinite;
}

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

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
    text-shadow: 2px 2px 0px var(--dark-color);
    -webkit-text-stroke: 1px var(--dark-color);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Battle Scene */
.battle-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 10% 5% 10%;
    pointer-events: none;
}

.pokemon-left, .pokemon-right {
    position: relative;
    z-index: 2;
}

.battle-pokemon {
    max-width: 400px;
    max-height: 400px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    cursor: pointer;
    transition: all 0.3s ease;
}

.battle-pokemon:hover {
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.gyarados {
    animation: floatLeft 3s ease-in-out infinite;
    transform-origin: bottom center;
    transform: scaleX(-1) scale(1.5); /* Flip horizontally and scale up 50% */
}

.mew {
    animation: floatRight 2.5s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes floatLeft {
    0%, 100% {
        transform: scaleX(-1) scale(1.5) translateY(0px) rotate(-2deg);
    }
    50% {
        transform: scaleX(-1) scale(1.5) translateY(-20px) rotate(2deg);
    }
}

@keyframes floatRight {
    0%, 100% {
        transform: translateY(0px) rotate(2deg) scale(1);
    }
    50% {
        transform: translateY(-15px) rotate(-2deg) scale(1.05);
    }
}

/* Click animation for battle Pokemon */
.battle-pokemon.clicked {
    animation: pokemonClick 0.3s ease-out;
}

@keyframes pokemonClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Center Pokedex */
.center-pokedex {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    cursor: pointer;
    pointer-events: auto; /* Enable pointer events for Pokedex */
}



.pokedex-device {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
    border: 3px solid transparent;
    border-radius: 15px;
}

.pokedex-device:hover {
    transform: scale(1.1) !important;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6)) !important;
    border: 3px solid #ffffff !important;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 1),
        0 0 40px rgba(255, 255, 255, 0.8),
        0 0 60px rgba(255, 255, 255, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.3) !important;
    animation: whiteGlow 1.5s ease-in-out infinite !important;
}

@keyframes whiteGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(255, 255, 255, 0.6),
            0 0 60px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(255, 255, 255, 1),
            0 0 60px rgba(255, 255, 255, 0.8),
            0 0 90px rgba(255, 255, 255, 0.6);
    }
}

/* Pokedex Modal Popup */
.pokedex-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
    /* Fix interactivity */
    pointer-events: auto;
}

/* Pokedex modal content - more specific to override generic modal styles */
.pokedex-modal .modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    width: 98% !important; /* Almost full screen width - force override */
    height: 98% !important; /* Almost full screen height - force override */
    max-width: 2400px !important; /* Much bigger max-width - force override */
    max-height: 1600px !important; /* Much bigger max-height - force override */
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(220, 10, 45, 0.6),
        0 0 60px rgba(220, 10, 45, 0.4),
        0 0 90px rgba(220, 10, 45, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    background: linear-gradient(90deg, var(--primary-color) 0%, #ff6b6b 100%);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    position: relative;
}

.modal-title {
    color: white;
    font-family: 'Pokemon Solid', Arial, sans-serif;
    font-size: 2rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
}

.close-btn {
    background: #ff0000;
    border: 3px solid #ffffff;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 15px #ff0000,
        0 0 30px #ff0000;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    user-select: none;
    animation: pulse 2s infinite;
}

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

.close-btn:hover {
    background: rgba(220, 10, 45, 1);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(220, 10, 45, 0.8);
}

.close-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
    z-index: 1001;
}

.close-hint {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 10px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 2rem;
    max-height: calc(98vh - 120px);
    overflow-y: auto;
}

.pokedex-controls {
    margin-bottom: 2rem;
}

.search-box {
    margin-bottom: 1.5rem;
    text-align: center;
}

.search-box input {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(220, 10, 45, 0.4);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-btn {
    padding: 10px 18px;
    border: 2px solid var(--primary-color);
    background: rgba(255, 203, 5, 0.9);
    color: var(--dark-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 203, 5, 0.4);
}

.pokedex-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Fixed 5 columns */
    gap: 1rem;
    padding: 1.5rem;
    max-height: 95vh; /* Almost full height of the bigger modal */
    overflow-y: auto; /* Add vertical scrollbar if needed */
    background-image: url('./assets/Pokdex backround.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
}

.pokemon-card {
    background: linear-gradient(145deg, rgba(220, 10, 45, 0.4) 0%, rgba(220, 10, 45, 0.25) 100%);
    border: 2px solid rgba(220, 10, 45, 0.5);
    border-radius: 15px;
    padding: 1rem 0.8rem; /* Smaller padding for compact layout */
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.pokemon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pokemon-card:hover::before {
    opacity: 1;
}

.pokemon-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 203, 5, 0.3);
    border-color: var(--primary-color);
}

.pokemon-image-container {
    width: 120px; /* Bigger images for better visibility */
    height: 120px;
    margin: 0 auto 2.5rem; /* Keep the same bottom margin for the number badge */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pokemon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.pokemon-image-placeholder {
    width: 120px; /* Match the new container size */
    height: 120px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.pokemon-placeholder-text {
    font-size: 0.9rem; /* Smaller text for "Coming Soon" */
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    padding: 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pokemon-number {
    position: absolute;
    bottom: -35px; /* Position even lower below the image */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Perfect centering */
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 3px 8px;
    border-radius: 10px; /* Full rounded corners */
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid var(--dark-color);
    z-index: 10; /* Ensure it's above other elements */
    white-space: nowrap; /* Prevent text wrapping */
}

.pokemon-name {
    color: white;
    font-family: 'Pokemon Solid', Arial, sans-serif;
    font-size: 1.1rem;
    margin: 0.5rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.pokemon-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Pokemon Type Colors */
.pokemon-type-badge.fire { background: linear-gradient(135deg, #ff6b6b, #ee5a52); }
.pokemon-type-badge.water { background: linear-gradient(135deg, #4ecdc4, #44a08d); }
.pokemon-type-badge.grass { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.pokemon-type-badge.electric { background: linear-gradient(135deg, #f39c12, #e67e22); }
.pokemon-type-badge.psychic { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.pokemon-type-badge.fighting { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.pokemon-type-badge.normal { background: linear-gradient(135deg, #95a5a6, #7f8c8d); }
.pokemon-type-badge.rock { background: linear-gradient(135deg, #8b4513, #a0522d); }
.pokemon-type-badge.flying { background: linear-gradient(135deg, #87ceeb, #5dade2); }
.pokemon-type-badge.ice { background: linear-gradient(135deg, #add8e6, #85c1e9); }
.pokemon-type-badge.dragon { background: linear-gradient(135deg, #9932cc, #8e44ad); }
.pokemon-type-badge.bug { background: linear-gradient(135deg, #f4d03f, #f39c12); }
.pokemon-type-badge.poison { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.pokemon-type-badge.ground { background: linear-gradient(135deg, #d35400, #e67e22); }
.pokemon-type-badge.ghost { background: linear-gradient(135deg, #34495e, #2c3e50); }
.pokemon-type-badge.fairy { background: linear-gradient(135deg, #e91e63, #ad1457); }

.pokemon-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    border-radius: 10px;
}

.pokemon-name {
    color: var(--primary-color);
    font-family: 'Pokemon Solid', Arial, sans-serif;
    font-size: 1.2rem;
    margin: 0.5rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.pokemon-number {
    color: #666;
    font-weight: bold;
    margin: 0;
    font-size: 0.9rem;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
    text-align: center;
    position: relative;
    z-index: 10;
    margin: 0 auto;
    transform: translateX(56%);
}

.hero-title {
    font-family: 'Pokemon Solid', 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color); /* Pokemon Yellow text */
    text-shadow: 
        3px 3px 0px var(--secondary-color),  /* Blue outline */
        3px -3px 0px var(--secondary-color),  /* Blue outline */
        -3px 3px 0px var(--secondary-color),  /* Blue outline */
        -3px -3px 0px var(--secondary-color), /* Blue outline */
        0px 3px 0px var(--secondary-color),   /* Blue outline */
        0px -3px 0px var(--secondary-color),  /* Blue outline */
        3px 0px 0px var(--secondary-color),   /* Blue outline */
        -3px 0px 0px var(--secondary-color);  /* Blue outline */
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-pokemon {
    animation: float 6s ease-in-out infinite;
}

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



.pokemon-sprite {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.pokemon-card h3 {
    color: white;
    font-size: 1.5rem;
}

/* Generations Section */
.generations-section {
    padding: 80px 0;
    background: rgba(61, 125, 202, 0.9);
    color: white;
    border-top: 3px solid var(--dark-color);
    border-bottom: 3px solid var(--dark-color);
}

.generations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.generation-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border: 3px solid var(--dark-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 4px 4px 0px var(--dark-color);
}

.generation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.generation-card:hover::before,
.generation-card.active::before {
    opacity: 0.1;
}

.generation-card:hover,
.generation-card.active {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

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

.generation-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.generation-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.generation-stats {
    margin-bottom: 1.5rem;
}

.generation-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
}

.generation-stats .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.generation-status {
    margin-top: 1rem;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-complete {
    background: var(--success-color);
    color: white;
}

.status-coming-soon {
    background: var(--warning-color);
    color: white;
}

/* Pokedex Section */
.pokedex-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.9);
}

.generation-header {
    text-align: center;
    margin-bottom: 3rem;
}

.generation-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.region-badge,
.year-badge,
.games-badge {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pokedex-controls {
    margin-bottom: 3rem;
}

.search-box {
    position: relative;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 3px solid var(--dark-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 2px 2px 0px var(--dark-color);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 4px 4px 0px var(--dark-color);
    transform: translateY(-2px);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 3px solid var(--dark-color);
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 2px 2px 0px var(--dark-color);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--dark-color);
    border-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px var(--dark-color);
}

.pokemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.pokemon-card-grid {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 4px 4px 0px var(--dark-color);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 3px solid var(--dark-color);
}

.pokemon-card-grid:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 0px var(--dark-color);
    border-color: var(--primary-color);
}

.pokemon-card-grid img {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 300px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.pokemon-card-content {
    padding: 1.5rem;
}

.pokemon-card-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.pokemon-types {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.type-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.type-fire { background: var(--type-fire); color: white; }
.type-water { background: var(--type-water); color: white; }
.type-grass { background: var(--type-grass); color: white; }
.type-electric { background: var(--type-electric); color: white; }
.type-psychic { background: var(--type-psychic); color: white; }
.type-fighting { background: var(--type-fighting); color: white; }
.type-normal { background: var(--type-normal); color: white; }
.type-rock { background: var(--type-rock); color: white; }
.type-flying { background: var(--type-flying); color: white; }
.type-ice { background: var(--type-ice); color: white; }
.type-dragon { background: var(--type-dragon); color: white; }

.load-more {
    text-align: center;
}

/* Characters Section */
.characters-section {
    padding: 80px 0;
    background: rgba(255, 203, 5, 0.9);
    color: var(--dark-color);
    border-top: 3px solid var(--dark-color);
    border-bottom: 3px solid var(--dark-color);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    align-items: start;
}

.character-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 4px 4px 0px var(--dark-color);
    transition: var(--transition);
    border: 3px solid var(--dark-color);
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.character-image img {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 500px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.character-info {
    padding: 2rem;
}

.character-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.character-title {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.character-description {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.character-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    color: white;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--accent-color);
    color: white;
    padding: 60px 0 20px;
    border-top: 3px solid var(--dark-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

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

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

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

/* Generic modal content - but Pokedex modal overrides this */
.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    z-index: 1;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 2rem;
}

/* Audio Controls */
.audio-control {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--light-color);
    border-radius: 25px;
    padding: 10px 20px;
    backdrop-filter: blur(10px);
}

.audio-btn {
    background: transparent;
    border: none;
    color: var(--light-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
}

.audio-btn:hover {
    transform: scale(1.05);
}

.audio-icon {
    font-size: 1.2rem;
}

.audio-text {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Detailed Pokemon Window - Video Game Style */
.detailed-pokemon-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detailed-pokemon-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(220, 10, 45, 0.6),
        0 0 60px rgba(220, 10, 45, 0.4),
        0 0 90px rgba(220, 10, 45, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

.detailed-pokemon-header {
    background: linear-gradient(90deg, var(--primary-color) 0%, #ff6b6b 100%);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
}

.detailed-pokemon-header h2 {
    color: white;
    font-family: 'Pokemon Solid', Arial, sans-serif;
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.close-detailed-pokemon {
    background: #ff0000;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px #ff0000;
}

.close-detailed-pokemon:hover {
    background: rgba(220, 10, 45, 1);
    transform: scale(1.05);
}

.detailed-pokemon-body {
    padding: 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.pokemon-image-section {
    flex-shrink: 0;
    position: relative;
}

.detailed-pokemon-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.pokemon-number-detailed {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 2px solid var(--dark-color);
}

.pokemon-stats-section {
    flex: 1;
}

.pokemon-type-detailed {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.pokemon-stats h3 {
    color: white;
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.stat-label {
    color: white;
    font-weight: 600;
    min-width: 80px;
}

.stat-bar {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.stat-value {
    color: white;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

.pokemon-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.info-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: right;
    max-width: 60%;
    word-wrap: break-word;
}

/* Music Player - Spotify Style */
.music-player {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: linear-gradient(135deg, rgba(220, 10, 45, 0.15), rgba(220, 10, 45, 0.1));
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease, opacity 0.3s ease;
    box-shadow: 
        0 20px 60px rgba(220, 10, 45, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.1);
    min-width: 380px;
    opacity: 1;
    backdrop-filter: blur(20px);
}

.music-player:hover {
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 
        0 24px 80px rgba(220, 10, 45, 0.2),
        0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Player Header */
.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.album-art {
    flex-shrink: 0;
}

.album-image {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.track-info {
    flex: 1;
}

.song-title {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 4px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'Roboto', sans-serif;
}

.artist-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.close-player {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.close-player:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Progress Section */
.progress-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Control Section */
.control-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.1);
}

.play-btn {
    width: 48px;
    height: 48px;
    background: white;
    color: #1db954;
    font-size: 1.2rem;
}

.play-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.shuffle-btn, .repeat-btn {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.shuffle-btn:hover, .repeat-btn:hover {
    color: white;
}

/* Volume Section */
.volume-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.volume-icon {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.volume-bar {
    position: relative;
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.volume-fill {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 70%;
    transition: width 0.1s ease;
}

.volume-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* Game Boy Emulator */
.gameboy-emulator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 500px;
    max-width: 600px;
    opacity: 1;
    backdrop-filter: blur(20px);
}

.emulator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.emulator-header h3 {
    margin: 0;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.close-emulator {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.close-emulator:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.gameboy-shell {
    background: linear-gradient(145deg, #d4d4d4, #a0a0a0);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
}

.gameboy-screen {
    background: #000;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.screen-content {
    background: #8b8b8b;
    border-radius: 4px;
    padding: 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.game-selection h4 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: #333;
}

.game-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.game-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
}

.game-option:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.game-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.game-option span {
    font-weight: 600;
    font-size: 1rem;
}

.gameboy-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.d-pad {
    display: grid;
    grid-template-areas: 
        ". up ."
        "left . right"
        ". down .";
    gap: 8px;
}

.dpad-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #444;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dpad-btn:hover {
    background: #666;
    transform: scale(1.1);
}

.dpad-btn:active {
    transform: scale(0.95);
}

.dpad-btn.up { grid-area: up; }
.dpad-btn.left { grid-area: left; }
.dpad-btn.right { grid-area: right; }
.dpad-btn.down { grid-area: down; }

.action-buttons {
    display: flex;
    gap: 15px;
}

.action-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.a-btn {
    background: #e74c3c;
    background: #e74c3c;
    color: white;
}

.b-btn {
    background: #3498db;
    color: white;
}

.action-btn:hover {
    transform: scale(1.1);
}

.action-btn:active {
    transform: scale(0.95);
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-btn {
    padding: 8px 16px;
    border: none;
    background: #95a5a6;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.menu-btn:hover {
    background: #7f8c8d;
    transform: scale(1.05);
}

.menu-btn:active {
    transform: scale(0.95);
}

.emulator-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    color: white;
}

.emulator-info p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.emulator-info code {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

#game-canvas {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: 2px solid #333;
    background: #000;
}

/* ROM Upload Section */
.rom-upload-section {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.upload-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.upload-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.upload-hint {
    color: #666;
    font-size: 0.9rem;
    margin: 10px 0 0 0;
}

/* Game Options with ROM info */
.game-option small {
    display: block;
    color: #888;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Emulator Container */
#emulator-container {
    width: 100%;
    text-align: center;
}

/* Emulator Controls */
.emulator-controls {
    margin-top: 20px;
}

.control-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.control-btn {
    background: #34495e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: #2c3e50;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .music-player {
        min-width: 320px;
        padding: 20px;
        gap: 16px;
    }
    
    .album-image {
        width: 56px;
        height: 56px;
    }
    
    .song-title {
        font-size: 1rem;
    }
    
    .artist-name {
        font-size: 0.8rem;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .play-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .volume-bar {
        width: 100px;
    }
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.volume-slider::-webkit-slider-thumb:hover {
    background: var(--accent-color);
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Cursor Trail Effect */
#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Bottom Dock */
.bottom-dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: auto;
}

.dock-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the dock items */
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 0, 0.02);
    backdrop-filter: blur(6px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 0, 0.03);
    box-shadow: 0 1px 8px rgba(255, 255, 0, 0.04);
    transition: all 0.2s ease;
}



.dock-item {
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center bottom;
}

.dock-item::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 10001;
}

.dock-item:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-12px);
}

.dock-icon {
    width: 78px;
    height: 78px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dock-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.dock-icon i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    z-index: 1;
}

/* Hover Effects */
.dock-item:hover .dock-icon {
    transform: scale(1.3);
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

/* Special handling for X logo to prevent distortion */
.dock-item[data-tooltip="X"]:hover .dock-icon {
    transform: scale(1.2);
}

.dock-item:hover .dock-icon i {
    color: white;
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Ripple Effect for Neighboring Icons */
.dock-item:hover + .dock-item .dock-icon,
.dock-item:hover ~ .dock-item .dock-icon {
    transform: scale(1.15);
    background: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

.dock-item:hover + .dock-item .dock-icon i,
.dock-item:hover ~ .dock-item .dock-icon i {
    color: rgba(255, 255, 255, 0.95);
}

/* Specific Icon Colors */
.dock-item[data-tooltip="Pokedex"] .dock-icon i {
    color: #ffcb05;
}

.dock-item[data-tooltip="X"] .dock-icon.x-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
}

.dock-item[data-tooltip="X"] .dock-icon.x-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: -1;
}

.x-logo-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
}

.music-icon-image {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
}

.discord-icon-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
}

.tiktok-icon-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
}

.gameboy-icon-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
}

.dock-item[data-tooltip="Music"] .dock-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 70px !important;
    height: 70px !important;
    overflow: visible !important;
}

.dock-item[data-tooltip="Music"] .dock-icon::before {
    display: none !important;
}

.dock-item[data-tooltip="TikTok"] .dock-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.dock-item[data-tooltip="Phantom"] .dock-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Hover state colors */
.dock-item:hover[data-tooltip="Pokedex"] .dock-icon i {
    color: #ffd700;
}

.dock-item:hover[data-tooltip="X"] .dock-icon.x-icon {
    background: transparent;
    border: none;
    box-shadow: none;
}

.dock-item:hover[data-tooltip="X"] .x-logo-image {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    transform: scale(1.1);
}

.dock-item:hover[data-tooltip="Music"] .music-icon-image {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.dock-item:hover[data-tooltip="TikTok"] .tiktok-icon-image {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.dock-item:hover[data-tooltip="Game Boy"] .gameboy-icon-image {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.dock-item:hover[data-tooltip="Discord"] .discord-icon-image {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

/* Pokedex Image Styling */
.pokedex-icon {
    background: transparent !important;
}

.pokedex-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
}

.dock-item:hover .pokedex-image {
    transform: scale(1.2);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.dust-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #ffd700 0%, #ffed4e 50%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle 1s ease-out forwards;
    box-shadow: 0 0 6px #ffd700, 0 0 12px #ffd700, 0 0 18px #ffd700;
}

@keyframes sparkle {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav {
        display: none;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .generations-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .characters-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .character-image img {
        min-height: 250px;
        max-height: 400px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .project-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .generation-info {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Bottom Dock Mobile Responsiveness */
    .bottom-dock {
        bottom: 15px;
    }
    
    .dock-container {
        padding: 20px 26px;
        gap: 10px;
    }
    
    .dock-icon {
        width: 65px;
        height: 65px;
    }
    
    .dock-icon i {
        font-size: 1.7rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .pokemon-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pokemon-card-grid img {
        min-height: 180px;
        max-height: 250px;
    }
    
    .character-stats {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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

/* ... existing code ... */
.header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.4rem;
    font-family: 'Roboto', sans-serif;
}

.header nav a:hover {
    color: var(--primary-color);
}
/* ... existing code ... */
