body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    line-height: 1.6;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1e293b;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: #818cf8;
}

.menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.menu li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.menu li a:hover {
    color: #818cf8;
}

.hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
        url('assets/images/Eclipse_Based_Image.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.hero p {
    max-width: 700px;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 10%;
}

.card {
    background: linear-gradient(145deg, #1e293b, #162033);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(129, 140, 248, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0px 10px 20px rgba(129, 140, 248, 0.35);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #a5b4fc;
}

.card strong {
    color: #818cf8;
}

.card p {
    margin-bottom: 10px;
    color: #cbd5e1;
}

.card img {
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

button,
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 25px rgba(139, 92, 246, 0.6);
}

button:active,
.btn:active {
    transform: scale(0.96);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.hero button,
.hero .btn {
    font-size: 1.2rem;
    padding: 18px 36px;
}

.search-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 2rem;
    flex-wrap: wrap;
}

#searchInput {
    width: 300px;
    max-width: 90%;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    border: 1px solid #374151;
    background-color: #0f172a;
    color: white;
    outline: none;
}

#searchInput:focus {
    border-color: #818cf8;
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.25);
}

#regionFilter,
#typeFilter,
#sortOption {
    padding: 0.8rem 1rem;
    border-radius: 50px;
    border: 1px solid #374151;
    background-color: #0f172a;
    color: white;
    outline: none;
    min-width: 140px;
}

#regionFilter:hover,
#typeFilter:hover,
#sortOption:hover {
    border-color: #818cf8;
}

#regionFilter:focus,
#typeFilter:focus,
#sortOption:focus {
    border-color: #818cf8;
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.25);
}

.data-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.pokemon-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(129, 140, 248, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 260px;
    max-width: 100%;
}

.pokemon-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(129, 140, 248, 0.4);
}

.pokemon-card img {
    width: 120px;
    height: 120px;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto 10px;
}

.pokemon-card:hover img {
    transform: scale(1.1);
}

.pokemon-card h2 {
    text-transform: capitalize;
    font-size: 1.5rem;
    margin: 10px 0;
    letter-spacing: 1px;
    color: #f8fafc;
}

.dex-number {
    margin: 6px 0 4px;
    font-size: 0.95rem;
    color: #cbd5e1;
    font-weight: 600;
}

.region-name {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: capitalize;
}

.type-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.type-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: capitalize;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.page-title {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: #e2e8f0;
}

main {
    padding-bottom: 40px;
}

/* Gym page */
.gym-card {
    overflow: hidden;
}

.gym-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
    display: block;
}

.gym-card h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.gym-card p {
    font-size: 0.95rem;
    color: #cbd5e1;
}

/* Characters page */
.character-card img {
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 14px;
    margin: 0 auto 15px;
    display: block;
}

.character-card h2 {
    margin-bottom: 8px;
}

.character-card strong {
    color: #a5b4fc;
}

/* Map page */
.map-section {
    display: flex;
    justify-content: center;
    padding: 2rem 10% 4rem;
}

.map-card {
    background: linear-gradient(145deg, #1e293b, #162033);
    padding: 2rem;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(129, 140, 248, 0.15);
    max-width: 1100px;
    width: 100%;
}

.region-map {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    margin: 0 auto 1.5rem;
}

.map-description {
    font-size: 1rem;
    color: #cbd5e1;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero {
        height: auto;
        padding: 4rem 20px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .features-grid {
        padding: 2rem 5%;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    #searchInput {
        width: 100%;
    }

    .pokemon-card {
        width: 100%;
    }
}