* {
    margin: 0;
    padding: 0;
}

:root {
    --accent: #FFD700;
}

body {
    background: linear-gradient(135deg, #1a2040 0%, #090b16 50%, #2a3f5f 100%);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Dynamic Background for all pages */
body::before {
    content: '';
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 203, 5, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(227, 53, 13, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(59, 76, 202, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(179, 161, 37, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Floating Pokéballs */
body::after {
    content: '';
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 203, 5, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 90% 80%, rgba(227, 53, 13, 0.08) 3px, transparent 3px),
        radial-gradient(circle at 30% 70%, rgba(59, 76, 202, 0.06) 2px, transparent 2px),
        radial-gradient(circle at 70% 30%, rgba(179, 161, 37, 0.09) 2px, transparent 2px),
        radial-gradient(circle at 50% 10%, rgba(255, 203, 5, 0.07) 2px, transparent 2px),
        radial-gradient(circle at 20% 90%, rgba(227, 53, 13, 0.05) 3px, transparent 3px);
    background-size: 200px 200px, 300px 300px, 250px 250px, 180px 180px, 220px 220px, 280px 280px;
    pointer-events: none;
    z-index: -1;
    animation: floatingPokeballs 15s linear infinite;
}

@keyframes floatingPokeballs {
    0% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-15px); }
    75% { transform: translateY(-30px) translateX(5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

.bg-electric {
    --accent: #FFFFFF;
}

.custom-navbar {
    background-color: black;
    height: 100px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: clamp(0.5rem, 2vw, 1rem);
    padding-right: clamp(0.5rem, 2vw, 1rem);
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: clamp(5px, 1.5vw, 10px);
}

/* Align hamburger menu with logo section */
.hamburger-menu {
    display: block;
    position: relative;
    z-index: 1001;
    align-self: center;
}

.hamburger-menu {
    display: block;
    position: relative;
    z-index: 1001;
}

/* Show desktop nav only on larger screens */
@media (min-width: 1025px) {
    .desktop-nav {
        display: flex !important;
    }
    
    .hamburger-menu {
        display: none !important;
    }
}

/* Mobile styles */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none !important;
    }
    
    .hamburger-menu {
        display: block !important;
    }
    
    .navbar-container {
        justify-content: space-between !important;
        align-items: center !important;
    }
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.mobile-nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-link {
    display: block;
    padding: 0.8rem 1.5rem;
    color: white;
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    padding-left: 2rem;
}

.nav-links {
    display: flex;
    margin-left: auto;
    gap: clamp(10px, 2vw, 20px);
    padding-right: clamp(10px, 2vw, 20px);
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    font-weight: 500;
    padding: clamp(6px, 1.5vw, 8px) clamp(8px, 2vw, 12px);
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.pokeball {
    width: clamp(3rem, 7vw, 4.2rem);
    height: clamp(3rem, 7vw, 4.2rem);
    margin-right: clamp(5px, 1.5vw, 10px);
    transition: transform 0.6s ease-in-out;
    margin-top: clamp(15px, 3vh, 25px);
}

.pokeball:hover {
    transform: rotate(360deg) scale(1.1);
}

.heading {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: white;
    text-shadow: 0 0 5px red;
    transition: all 0.3s ease;
    margin-top: clamp(15px, 3vh, 25px);
    white-space: nowrap;
}

.heading:hover {
    color: #FFD700;
    text-shadow: 0 0 8px red;
    animation: headingPulse 0.8s infinite alternate;
}

@keyframes headingPulse {
    from { transform: scale(1); }
    to { transform: scale(1.03); }
}



/* Fire Type - Warm and Fiery */
.bg-fire { 
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 25%, #ff4e50 50%, #f9d423 75%, #ff6b35 100%);
    color: white;
    position: relative;
    overflow-x: hidden;
}

.bg-fire::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(255, 107, 53, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(249, 212, 35, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: fireGlow 4s ease-in-out infinite alternate;
}

@keyframes fireGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Water Type - Flowing and Deep */
.bg-water { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #43cea2 50%, #185a9d 75%, #667eea 100%);
    color: white;
    position: relative;
    overflow-x: hidden;
}

.bg-water::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(67, 206, 162, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: waterFlow 6s ease-in-out infinite;
}

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

/* Grass Type - Natural and Vibrant */
.bg-grass { 
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 25%, #7cb342 50%, #8bc34a 75%, #56ab2f 100%);
    color: white;
    position: relative;
    overflow-x: hidden;
}

.bg-grass::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 75%, rgba(86, 171, 47, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 75% 25%, rgba(168, 224, 99, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: grassSway 5s ease-in-out infinite;
}

@keyframes grassSway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(1deg); }
}

/* Electric Type - Bright and Energetic */
.bg-electric { 
    background: linear-gradient(135deg, #fff700 0%, #f0c000 25%, #ffd700 50%, #ffff00 75%, #fff700 100%);
    color: black;
    position: relative;
    overflow-x: hidden;
}

.bg-electric::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 40% 60%, rgba(255, 247, 0, 0.5) 0%, transparent 50%),
                radial-gradient(circle at 60% 40%, rgba(255, 215, 0, 0.4) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: electricSpark 2s ease-in-out infinite;
}

@keyframes electricSpark {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Psychic Type - Mystical and Dreamy */
.bg-psychic { 
    background: linear-gradient(135deg, #bc4e9c 0%, #f80759 25%, #ff6b9d 50%, #c44569 75%, #bc4e9c 100%);
    color: white;
    position: relative;
    overflow-x: hidden;
}

.bg-psychic::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(188, 78, 156, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(248, 7, 89, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: psychicFloat 7s ease-in-out infinite;
}

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

/* Fairy Type - Magical and Soft */
.bg-fairy { 
    background: linear-gradient(135deg, #f096d6 0%, #ef79a0 25%, #ffb6c1 50%, #ffc0cb 75%, #f096d6 100%);
    color: black;
    position: relative;
    overflow-x: hidden;
}

.bg-fairy::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 75%, rgba(240, 150, 214, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 75% 25%, rgba(255, 182, 193, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: fairySparkle 3s ease-in-out infinite;
}

@keyframes fairySparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Dark Type - Mysterious and Deep */
.bg-dark { 
    background: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 25%, #2a2a2a 50%, #1a1a1a 75%, #2c2c2c 100%);
    color: white;
    position: relative;
    overflow-x: hidden;
}

.bg-dark::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(74, 74, 74, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(26, 26, 26, 0.4) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: darkShimmer 8s ease-in-out infinite;
}

@keyframes darkShimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Normal Type - Balanced and Calm */
.bg-normal { 
    background: linear-gradient(135deg, #f5f5dc 0%, #deb887 25%, #d2b48c 50%, #f4a460 75%, #f5f5dc 100%);
    color: black;
    position: relative;
    overflow-x: hidden;
}

.bg-normal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(245, 245, 220, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(222, 184, 135, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Fighting Type - Strong and Intense */
.bg-fighting { 
    background: linear-gradient(135deg, #d32f2f 0%, #f57c00 25%, #ff5722 50%, #e64a19 75%, #d32f2f 100%);
    color: white;
    position: relative;
    overflow-x: hidden;
}

.bg-fighting::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 75%, rgba(211, 47, 47, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 75% 25%, rgba(245, 124, 0, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: fightingPulse 3s ease-in-out infinite;
}

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

/* Flying Type - Light and Airy */
.bg-flying { 
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 25%, #87ceeb 50%, #b0e0e6 75%, #89f7fe 100%);
    color: black;
    position: relative;
    overflow-x: hidden;
}

.bg-flying::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(137, 247, 254, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(102, 166, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: flyingDrift 6s ease-in-out infinite;
}

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

/* Rock Type - Solid and Earthy */
.bg-rock { 
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 25%, #6d4c41 50%, #8b7355 75%, #8b4513 100%);
    color: white;
    position: relative;
    overflow-x: hidden;
}

.bg-rock::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 75%, rgba(139, 69, 19, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 75% 25%, rgba(160, 82, 45, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Ground Type - Natural and Stable */
.bg-ground { 
    background: linear-gradient(135deg, #d2b48c 0%, #c2b280 25%, #a0522d 50%, #8b4513 75%, #d2b48c 100%);
    color: black;
    position: relative;
    overflow-x: hidden;
}

.bg-ground::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(210, 180, 140, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(194, 178, 128, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Bug Type - Organic and Lively */
.bg-bug { 
    background: linear-gradient(135deg, #a8b820 0%, #9acd32 25%, #d0f0c0 50%, #90ee90 75%, #a8b820 100%);
    color: black;
    position: relative;
    overflow-x: hidden;
}

.bg-bug::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 75%, rgba(168, 184, 32, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 75% 25%, rgba(208, 240, 192, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: bugCrawl 4s ease-in-out infinite;
}

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

/* Ghost Type - Ethereal and Mysterious */
.bg-ghost { 
    background: linear-gradient(135deg, #5f4b8b 0%, #2c2a4a 25%, #4b0082 50%, #8a2be2 75%, #5f4b8b 100%);
    color: white;
    position: relative;
    overflow-x: hidden;
}

.bg-ghost::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(95, 75, 139, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(44, 42, 74, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: ghostWisp 5s ease-in-out infinite;
}

@keyframes ghostWisp {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.03); }
}

/* Steel Type - Metallic and Strong */
.bg-steel { 
    background: linear-gradient(135deg, #b0bec5 0%, #78909c 25%, #607d8b 50%, #455a64 75%, #b0bec5 100%) !important;
    color: white;
    position: relative;
    overflow-x: hidden;
}

.bg-steel::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 75%, rgba(176, 190, 197, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 75% 25%, rgba(120, 144, 156, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: steelShine 4s ease-in-out infinite;
}

@keyframes steelShine {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Ice Type - Cool and Crystalline */
.bg-ice { 
    background: linear-gradient(135deg, #74ebd5 0%, #acb6e5 25%, #87ceeb 50%, #b0e0e6 75%, #74ebd5 100%) !important;
    color: black;
    position: relative;
    overflow-x: hidden;
}

.bg-ice::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(116, 235, 213, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(172, 182, 229, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: iceCrystal 6s ease-in-out infinite;
}

@keyframes iceCrystal {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}

/* Dragon Type - Majestic and Powerful */
.bg-dragon { 
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 25%, #4a90e2 50%, #7b68ee 75%, #6a11cb 100%) !important;
    color: white;
    position: relative;
    overflow-x: hidden;
}

.bg-dragon::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 75%, rgba(106, 17, 203, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 75% 25%, rgba(37, 117, 252, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: dragonBreath 7s ease-in-out infinite;
}

@keyframes dragonBreath {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(1deg); }
}

/* Poison Type - Toxic and Mysterious */
.bg-poison { 
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 25%, #a855f7 50%, #c084fc 75%, #9b59b6 100%) !important;
    color: white;
    position: relative;
    overflow-x: hidden;
}

.bg-poison::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(155, 89, 182, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(142, 68, 173, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: poisonBubble 4s ease-in-out infinite;
}

@keyframes poisonBubble {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

.search-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin: 10rem auto;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    isolation: isolate;
}



.search-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.search-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: white !important;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.search-wrapper:hover .search-title {
    transform: scale(1.05);
    /* color stays white */
}

.search-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
    outline: none;
    z-index: 10001;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.search-input:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.search-input:hover::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.search-btn {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.search-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.search-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.autocomplete-suggestions {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    max-height: 300px;
    min-height: 50px;
    overflow-y: auto;
    z-index: 999999;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    margin-top: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    outline: none;
}

.autocomplete-suggestions.show {
    opacity: 1;
    transform: translateY(0);
}

.suggestion-item {
    padding: 0.8rem 1rem;
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.suggestion-item:hover {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent);
    transform: translateX(5px);
    padding-left: 1.5rem;
}

.suggestion-item img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
}

.search-input-group::after {
    display: none;
}

.search-input-group:focus-within::after {
    display: none;
}

.search-container {
    position: relative;
    z-index: 10000;
}

.pokemon-display-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.pokemon-main-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pokemon-main-card::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: left 0.5s ease;
}

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

.pokemon-main-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.pokemon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.pokemon-name-header {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    color: white;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    margin: 0;
}

.pokemon-number {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--accent);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    border: 2px solid var(--accent);
}

.pokemon-image-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pokemon_img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.pokemon_img:hover {
    transform: scale(1.1) rotate(5deg);
}

.pokemon-types {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.type-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

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

.type-normal { background: #A8A878; color: white; }
.type-fire { background: #F08030; color: white; }
.type-water { background: #6890F0; color: white; }
.type-electric { background: #F8D030; color: black; }
.type-grass { background: #78C850; color: white; }
.type-ice { background: #98D8D8; color: black; }
.type-fighting { background: #C03028; color: white; }
.type-poison { background: #A040A0; color: white; }
.type-ground { background: #E0C068; color: black; }
.type-flying { background: #A890F0; color: white; }
.type-psychic { background: #F85888; color: white; }
.type-bug { background: #A8B820; color: white; }
.type-rock { background: #B8A038; color: white; }
.type-ghost { background: #705898; color: white; }
.type-dragon { background: #7038F8; color: white; }
.type-dark { background: #705848; color: white; }
.type-steel { background: #B8B8D0; color: black; }
.type-fairy { background: #EE99AC; color: black; }

.pokemon-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card, .info-card, .moves-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-card:hover, .info-card:hover, .moves-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-card h3, .info-card h3, .moves-card h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--accent) !important;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    font-weight: normal;
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: white;
    min-width: 80px;
}

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

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #FFD700);
    border-radius: 4px;
    transition: width 1s ease;
}

.stat-value {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    color: var(--accent);
    min-width: 30px;
    text-align: right;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.info-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: #ffffff;
}

.info-value {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: white;
    text-align: right;
}

.moves-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.move-item {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: white !important;
    padding: 0.3rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    transition: background 0.2s ease;
}

.move-item:hover {
    background: rgba(255, 215, 0, 0.2);
    color: white !important;
    transform: none;
    padding-left: 0.5rem;
}

.evolution-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evolution-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.evolution-chain {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: unset;
}

.evolution-stage {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.evolution-pokemon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.evolution-pokemon:hover {
    transform: scale(1.1) translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.evolution-pokemon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.evolution-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: white;
    text-align: center;
}

.evolution-arrow {
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
    animation: pulse 2s infinite;
    transform: rotate(90deg);
}

.bg-electric .evolution-arrow,
.bg-fairy .evolution-arrow,
.bg-flying .evolution-arrow,
.bg-normal .evolution-arrow {
    color: black;
}

.loading-evolution {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: #ccc;
    text-align: center;
    padding: 2rem;
}

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: 2rem;
}

.error-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.error-card h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.error-card p {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    color: white;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .pokemon-display-container {
        max-width: 900px;
        gap: 1.5rem;
    }
    }
    
@media (max-width: 768px) {
    .pokemon-display-container {
        max-width: 700px;
        grid-template-columns: 1fr;
        padding: 1rem;
}

    .search-wrapper {
        padding: 1.5rem;
    }
    
    .search-title {
        font-size: 1.2rem;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .pokemon-main-card, .evolution-card {
        padding: 1.5rem;
    }
    
    .pokemon-name-header {
        font-size: 1.5rem;
    }
    
    .pokemon_img {
        width: 150px;
        height: 150px;
    }
    
    .evolution-chain {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .evolution-stage {
        flex-direction: column;
    }
    
    .evolution-arrow {
        transform: rotate(90deg);
    }
    
    .stat-name, .info-label, .info-value {
        font-size: 0.7rem;
    }
    
    .stat-value {
        font-size: 0.8rem;
    }
    
    .move-item {
        font-size: 0.6rem;
    }
    
    .evolution-name {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .logo-section {
        gap: 0.5rem;
    }
    
    .heading {
        font-size: clamp(2.2rem, 5vw, 3rem);
    }
    
    .pokeball {
        width: clamp(2.8rem, 6vw, 3.8rem);
        height: clamp(2.8rem, 6vw, 3.8rem);
    }
    
    .navbar-container {
        justify-content: space-between !important;
        align-items: center !important;
    }
}

@media (max-width: 480px) {
    .pokemon-display-container {
        max-width: 600px;
        padding: 1rem;
    }
    
    .pokemon-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pokemon-types {
        flex-wrap: wrap;
    }
    
    .type-badge {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
    }
    
    .stat-name, .info-label, .info-value {
        font-size: 0.7rem;
    }
    
    .stat-value {
        font-size: 0.8rem;
    }
    
    .move-item {
        font-size: 0.6rem;
    }
    
    .evolution-name {
        font-size: 0.7rem;
    }
    
    /* Enhanced Mobile navbar adjustments */
    .custom-navbar {
        height: 70px;
        padding: 0.2rem 0;
    }
    
    .navbar-container {
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem;
        height: 100%;
    }
    
    .logo-section {
        gap: 0.3rem;
        align-items: center;
    }
    
    .heading {
        font-size: clamp(1.2rem, 2.8vw, 1.3rem);
        line-height: 1;
    }
    
    .pokeball {
        width: clamp(1.4rem, 3vw, 1.8rem);
        height: clamp(1.4rem, 3vw, 1.8rem);
    }
    
    .hamburger-menu {
        align-self: center;
        display: flex;
        align-items: center;
    }
    
    .hamburger-icon {
        width: 25px;
        height: 20px;
        display: flex;
        align-items: center;
    }
    
    .hamburger-icon span {
        height: 2px;
    }
    
    .mobile-nav-dropdown {
        min-width: 180px;
        padding: 0.8rem 0;
    }
    
    .mobile-nav-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.7rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 320px) {
    .custom-navbar {
        height: 60px;
        padding: 0.15rem 0;
    }
    
    .navbar-container {
        justify-content: space-between;
        align-items: center;
        padding: 0.3rem;
        height: 100%;
    }
    
    .logo-section {
        gap: 0.2rem;
        align-items: center;
    }
    
    .heading {
        font-size: clamp(1.1rem, 2.5vw, 1.1rem);
        line-height: 1;
    }
    
    .pokeball {
        width: clamp(1.2rem, 2.5vw, 1.5rem);
        height: clamp(1.2rem, 2.5vw, 1.5rem);
    }
    
    .hamburger-menu {
        align-self: center;
        display: flex;
        align-items: center;
    }
    
    .hamburger-icon {
        width: 22px;
        height: 18px;
        display: flex;
        align-items: center;
    }
    
    .hamburger-icon span {
        height: 2px;
    }
    
    .mobile-nav-dropdown {
        min-width: 160px;
        padding: 0.6rem 0;
    }
    
    .mobile-nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.65rem;
    }
    
    /* Increase Pokédex sizes for small phones */
    .pokemon-display-container {
        padding: 0.8rem;
    }
    
    .pokemon-main-card, .evolution-card {
        padding: 1.2rem;
    }
    
    .pokemon-name-header {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }
    
    .pokemon_img {
        width: clamp(120px, 30vw, 150px);
        height: clamp(120px, 30vw, 150px);
    }
    
    .type-badge {
        font-size: 0.6rem;
        padding: 0.4rem 0.8rem;
    }
    
    .stat-name, .info-label, .info-value {
        font-size: 0.65rem;
    }
    
    .stat-value {
        font-size: 0.75rem;
    }
    
    .move-item {
        font-size: 0.55rem;
    }
    
    .evolution-name {
        font-size: 0.65rem;
    }
    
    .search-wrapper {
        padding: 1.5rem;
    }
    
    .search-title {
        font-size: 1.2rem;
    }
    
    .search-input {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .search-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .custom-navbar {
        height: 50px;
        padding: 0.15rem 0;
    }
    
    .navbar-container {
        justify-content: space-between;
        align-items: center;
        padding: 0.2rem 0.5rem;
        height: 100%;
    }
    
    .logo-section {
        gap: 0.3rem;
        align-items: center;
    }
    
    .heading {
        font-size: clamp(1rem, 2.2vw, 1rem);
        line-height: 1;
    }
    
    .pokeball {
        width: clamp(1.1rem, 2.2vw, 1.3rem);
        height: clamp(1.1rem, 2.2vw, 1.3rem);
    }
    
    .hamburger-menu {
        align-self: center;
        display: flex;
        align-items: center;
    }
    
    .hamburger-icon {
        width: 20px;
        height: 16px;
        display: flex;
        align-items: center;
    }
    
    .hamburger-icon span {
        height: 2px;
    }
    
    .mobile-nav-dropdown {
        min-width: 150px;
        padding: 0.5rem 0;
    }
    
    .mobile-nav-link {
        padding: 0.4rem 1rem;
        font-size: 0.6rem;
    }
}

.stat-value {
    color: white !important;
}

.bg-electric .stat-value,
.bg-fairy .stat-value,
.bg-flying .stat-value,
.bg-normal .stat-value {
    color: white !important;
}

.stat-card h3, .info-card h3, .moves-card h3 {
    color: var(--accent) !important;
}

.bg-electric .stat-card h3,
.bg-electric .info-card h3,
.bg-electric .moves-card h3,
.bg-fairy .stat-card h3,
.bg-fairy .info-card h3,
.bg-fairy .moves-card h3,
.bg-flying .stat-card h3,
.bg-flying .info-card h3,
.bg-flying .moves-card h3,
.bg-normal .stat-card h3,
.bg-normal .info-card h3,
.bg-normal .moves-card h3 {
    color: var(--accent) !important;
}

.bg-electric .move-item,
.bg-fairy .move-item,
.bg-flying .move-item,
.bg-normal .move-item {
    color: white !important;
}



