/* CSS Variables - Pokemon Theme */
:root {
    /* Primary Colors - Pokemon Blue & Yellow */
    --primary-blue: #3B4CCA;
    --primary-yellow: #FFCB05;
    --primary-red: #FF0000;
    
    /* Secondary Colors */
    --secondary-blue: #2A75BB;
    --secondary-yellow: #FFD700;
    
    /* Type Colors */
    --type-normal: #A8A878;
    --type-fire: #F08030;
    --type-water: #6890F0;
    --type-electric: #F8D030;
    --type-grass: #78C850;
    --type-ice: #98D8D8;
    --type-fighting: #C03028;
    --type-poison: #A040A0;
    --type-ground: #E0C068;
    --type-flying: #A890F0;
    --type-psychic: #F85888;
    --type-bug: #A8B820;
    --type-rock: #B8A038;
    --type-ghost: #705898;
    --type-dragon: #7038F8;
    --type-dark: #705848;
    --type-steel: #B8B8D0;
    --type-fairy: #EE99AC;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #E9ECEF;
    --gray: #6C757D;
    --dark-gray: #343A40;
    --black: #000000;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--off-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-yellow);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-yellow);
    transition: var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: var(--spacing-xxl) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-content {
    padding: 0 var(--spacing-xl);
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    backdrop-filter: blur(10px);
}

.hero-badge i {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn i {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Pokeball Animation */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.pokeball-container {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

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

.pokeball {
    width: 300px;
    height: 300px;
    position: relative;
    animation: rotate 10s linear infinite;
}

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

.pokeball-top {
    width: 100%;
    height: 50%;
    background: var(--primary-red);
    border-radius: 150px 150px 0 0;
    border-bottom: 8px solid var(--black);
}

.pokeball-bottom {
    width: 100%;
    height: 50%;
    background: var(--white);
    border-radius: 0 0 150px 150px;
    border-top: 8px solid var(--black);
}

.pokeball-middle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 16px;
    background: var(--black);
}

.pokeball-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 8px solid var(--black);
    border-radius: 50%;
    box-shadow: inset 0 0 0 12px var(--white), inset 0 0 0 16px var(--black);
}

/* Stats Section */
.stats {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.stat-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--off-white);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-card i {
    width: 48px;
    height: 48px;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.stat-card h3 {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
}

.stat-card p {
    font-size: 16px;
    color: var(--gray);
    font-weight: 600;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
}

/* Featured Pokemon Section */
.featured {
    padding: var(--spacing-xxl) 0;
    background: var(--off-white);
}

.pokemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.pokemon-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.pokemon-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-normal);
}

.pokemon-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.pokemon-number {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    color: var(--gray);
}

.pokemon-image {
    margin: var(--spacing-md) 0;
}

.pokemon-placeholder {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.pokemon-placeholder i {
    width: 80px;
    height: 80px;
    color: var(--white);
    opacity: 0.8;
}

.electric-bg { background: linear-gradient(135deg, var(--type-electric) 0%, #FFE066 100%); }
.fire-bg { background: linear-gradient(135deg, var(--type-fire) 0%, #FF9966 100%); }
.water-bg { background: linear-gradient(135deg, var(--type-water) 0%, #88B0FF 100%); }
.grass-bg { background: linear-gradient(135deg, var(--type-grass) 0%, #90E070 100%); }
.psychic-bg { background: linear-gradient(135deg, var(--type-psychic) 0%, #FF88AA 100%); }
.dragon-bg { background: linear-gradient(135deg, var(--type-dragon) 0%, #8860FF 100%); }

.pokemon-card h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-xs);
}

.pokemon-types {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.type-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
}

.type-badge.electric { background: var(--type-electric); color: var(--dark-gray); }
.type-badge.fire { background: var(--type-fire); }
.type-badge.water { background: var(--type-water); }
.type-badge.grass { background: var(--type-grass); }
.type-badge.poison { background: var(--type-poison); }
.type-badge.flying { background: var(--type-flying); }
.type-badge.psychic { background: var(--type-psychic); }
.type-badge.dragon { background: var(--type-dragon); }

.pokemon-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: var(--spacing-md);
}

.pokemon-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
}

.pokemon-btn:hover {
    background: var(--secondary-blue);
    transform: translateX(4px);
}

.pokemon-btn i {
    width: 16px;
    height: 16px;
}

/* Types Section */
.types-section {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--spacing-md);
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    transition: var(--transition-normal);
    cursor: pointer;
}

.type-card:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.type-card i {
    width: 32px;
    height: 32px;
}

.type-card.normal { background: var(--type-normal); }
.type-card.fire { background: var(--type-fire); }
.type-card.water { background: var(--type-water); }
.type-card.electric { background: var(--type-electric); color: var(--dark-gray); }
.type-card.grass { background: var(--type-grass); }
.type-card.ice { background: var(--type-ice); color: var(--dark-gray); }
.type-card.fighting { background: var(--type-fighting); }
.type-card.poison { background: var(--type-poison); }
.type-card.ground { background: var(--type-ground); color: var(--dark-gray); }
.type-card.flying { background: var(--type-flying); }
.type-card.psychic { background: var(--type-psychic); }
.type-card.bug { background: var(--type-bug); }
.type-card.rock { background: var(--type-rock); }
.type-card.ghost { background: var(--type-ghost); }
.type-card.dragon { background: var(--type-dragon); }
.type-card.dark { background: var(--type-dark); }
.type-card.steel { background: var(--type-steel); color: var(--dark-gray); }
.type-card.fairy { background: var(--type-fairy); color: var(--dark-gray); }

/* About Section */
.about {
    padding: var(--spacing-xxl) 0;
    background: var(--off-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text h2 {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: var(--spacing-md);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.feature i {
    width: 32px;
    height: 32px;
    color: var(--primary-yellow);
    flex-shrink: 0;
}

.feature h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 4px;
}

.feature p {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

.trainer-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    color: var(--white);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.trainer-badge {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    backdrop-filter: blur(10px);
}

.trainer-badge i {
    width: 40px;
    height: 40px;
    color: var(--primary-yellow);
}

.trainer-card h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.trainer-card p {
    font-size: 16px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: var(--spacing-xxl) 0 var(--spacing-md);
}

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

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.footer-logo i {
    width: 32px;
    height: 32px;
    color: var(--primary-yellow);
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-yellow);
    color: var(--primary-blue);
    transform: translateY(-4px);
}

.social-links i {
    width: 20px;
    height: 20px;
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition-fast);
    font-size: 14px;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--primary-yellow);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero {
        grid-template-columns: 1fr;
        padding: var(--spacing-xl) 0;
        text-align: center;
    }
    
    .hero-content {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .pokeball {
        width: 200px;
        height: 200px;
    }
    
    .pokeball-center {
        width: 60px;
        height: 60px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pokemon-grid {
        grid-template-columns: 1fr;
    }
    
    .types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-yellow);
    color: var(--primary-blue);
}