* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.welcome-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.pokeball-container {
  margin-bottom: 1.5rem;
}

/* Pokéball Animation */
.pokeball {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  animation: pokeball-bounce 2s ease-in-out infinite;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pokeball-top {
  width: 100%;
  height: 50%;
  background: #ff4444;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff4444 100%);
  border-bottom: 4px solid #333;
}

.pokeball-bottom {
  width: 100%;
  height: 50%;
  background: #ffffff;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
}

.pokeball-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: #ffffff;
  border-radius: 50%;
  border: 4px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pokeball-button {
  width: 12px;
  height: 12px;
  background: #333;
  border-radius: 50%;
}

@keyframes pokeball-bounce {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(-10px) rotate(0deg);
  }
  75% {
    transform: translateY(-15px) rotate(-5deg);
  }
}

.pokeball:hover {
  animation: pokeball-spin 1s ease-in-out infinite;
}

@keyframes pokeball-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Welcome Content */
.welcome-content {
  color: white;
  max-width: 600px;
  width: 100%;
}

.welcome-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.welcome-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.welcome-actions {
  animation: fadeInUp 1s ease-out 0.4s both;
  max-width: 600px;
  width: 100%;
}

.search-section {
  margin-bottom: 1.5rem;
}

.search-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: white;
}

.search-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.search-tip {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 1rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: #333;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.search-btn {
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.search-result {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  display: none;
}

.divider {
  margin: 1.2rem 0;
  position: relative;
  color: white;
  opacity: 0.7;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.divider span {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.view-all-btn {
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
}

.view-all-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.pokemon-day-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff4444 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem auto 0;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.pokemon-day-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
  background: linear-gradient(135deg, #ff7a7a 0%, #ff5555 100%);
}

/* Collection Search Styles */
.collection-search-container {
  display: flex;
  gap: 1rem;
  margin: 1.5rem auto;
  max-width: 600px;
  width: 100%;
}

.collection-search-input {
  flex: 1;
  padding: 0.8rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.collection-search-input:focus {
  outline: none;
  border-color: #764ba2;
  box-shadow: 0 0 10px rgba(118, 75, 162, 0.3);
}

.collection-search-btn {
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  border: none;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.collection-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

/* Search results styles */
.search-highlight {
  animation: highlight-pulse 1s ease-in-out;
  box-shadow: 0 0 20px rgba(118, 75, 162, 0.6);
  z-index: 10;
}

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

/* Card highlight animation */
.card-highlight {
  animation: card-highlight 3s ease-in-out;
  transition: all 0.3s ease-in-out;
  position: relative;
  z-index: 100 !important;
  box-shadow: 0 0 50px rgba(255, 107, 107, 1) !important;
  border: 3px solid #ff4444;
}

.card-highlight::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 25px;
  background: rgba(255, 107, 107, 0.15);
  animation: pulse-outer 1.5s infinite alternate;
  z-index: -1;
}

@keyframes pulse-outer {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes card-highlight {
  0% {
    box-shadow: 0 0 0px rgba(255, 107, 107, 0);
    transform: scale(1);
  }
  10% {
    box-shadow: 0 0 50px rgba(255, 107, 107, 1);
    transform: scale(1.15);
  }
  20% {
    transform: scale(1.1);
  }
  40% {
    transform: scale(1.15);
  }
  60% {
    transform: scale(1.1);
  }
  80% {
    box-shadow: 0 0 50px rgba(255, 107, 107, 1);
    transform: scale(1.15);
  }
  90% {
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.6);
    transform: scale(1.1);
  }
  100% {
    box-shadow: 0 0 0px rgba(255, 107, 107, 0);
    transform: scale(1);
  }
}

/* Card found styling - persists for a while */
.card-found {
  animation: card-found-pulse 1.5s infinite alternate;
  position: relative;
  z-index: 5;
  border: 2px solid rgba(255, 107, 107, 0.8);
}

.card-found::after {
  content: '↑ FOUND ↑';
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 107, 107, 0.9);
  color: white;
  padding: 5px 15px;
  border-radius: 15px;
  font-weight: bold;
  font-size: 0.8rem;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Special styling for MissingNo. card */
.missingno-card {
  position: relative;
  overflow: hidden;
}

.missingno-card img {
  animation: glitch-animation 3s infinite !important;
  filter: contrast(1.5) brightness(1.2) !important;
  image-rendering: pixelated !important;
  opacity: 1 !important;
}

.missingno-card .card-content {
  animation: text-glitch 2s infinite;
}

.missingno-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><rect width="100%" height="100%" fill="rgba(255,255,255,0.05)"/><rect y="20" width="100%" height="1" fill="rgba(0,0,0,0.2)"/><rect y="40" width="100%" height="1" fill="rgba(0,0,0,0.2)"/><rect y="60" width="100%" height="1" fill="rgba(0,0,0,0.2)"/><rect y="80" width="100%" height="1" fill="rgba(0,0,0,0.2)"/></svg>');
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
}

@keyframes glitch-animation {
  0% {
    transform: translate(0);
    filter: contrast(1.5) brightness(1.2);
  }
  5% {
    transform: translate(-5px, 5px);
    filter: contrast(1.8) brightness(1.4) hue-rotate(10deg);
  }
  10% {
    transform: translate(5px, -5px);
    filter: contrast(1.5) brightness(1.2);
  }
  15% {
    transform: translate(0);
    filter: contrast(1.5) brightness(1.2);
  }
  20% {
    transform: translate(0);
    filter: contrast(1.5) brightness(1.2);
  }
  95% {
    transform: translate(0);
    filter: contrast(1.5) brightness(1.2);
  }
  96% {
    transform: translate(3px, 0);
    filter: contrast(2) brightness(1.6) hue-rotate(-20deg);
  }
  97% {
    transform: translate(-3px, 0);
    filter: contrast(1.5) brightness(1.2);
  }
  98% {
    transform: translate(0, -2px);
    filter: contrast(1.7) brightness(1.3);
  }
  100% {
    transform: translate(0);
    filter: contrast(1.5) brightness(1.2);
  }
}

@keyframes text-glitch {
  0%,
  100% {
    opacity: 1;
    transform: translate(0);
  }
  92% {
    opacity: 1;
    transform: translate(0);
  }
  93% {
    opacity: 0.75;
    transform: translate(2px, 0);
  }
  94% {
    opacity: 1;
    transform: translate(0);
  }
  95% {
    opacity: 0.75;
    transform: translate(-2px, 0);
  }
  96% {
    opacity: 1;
    transform: translate(0);
  }
}

/* Modal glitch effects for MissingNo. */
.glitched-image {
  position: relative;
}

.glitched-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  animation: scanline 4s linear infinite;
  pointer-events: none;
}

.glitched-content {
  position: relative;
  overflow: hidden;
}

.glitched-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><rect width="100%" height="100%" fill="rgba(0,0,0,0.03)"/></svg>');
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0.3;
  z-index: 100;
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes card-found-pulse {
  0% {
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
  }
  100% {
    box-shadow: 0 0 25px rgba(255, 107, 107, 1);
  }
}

.no-results {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 3rem;
  margin: 2rem auto;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.show-all-btn {
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  border: none;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.show-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.back-to-search {
  position: fixed;
  top: 80px;
  left: 2rem;
  z-index: 200;
}

.back-btn {
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 25px;
  color: #667eea;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Individual Pokemon Card in Search Result */
.pokemon-card-individual {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  color: #333;
  margin-top: 1rem;
  backdrop-filter: blur(10px);
}

.pokemon-card-individual img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.pokemon-card-individual h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #667eea;
}

.pokemon-card-individual .message {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.pokemon-card-individual .user-info {
  margin-top: 1rem;
}

.user-title {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Navigation */

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-title {
  color: #667eea;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.social-link {
  color: #667eea;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  color: #764ba2;
  transform: translateY(-2px);
}

.hero-section {
  text-align: center;
  padding: 4rem 2rem;
  color: white;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.docker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.pokemon-grid {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.pokemon-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.pokemon-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-image {
  position: relative;
  height: 200px;
  background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-image img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
  opacity: 1 !important;
}

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

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  color: white;
}

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

.card-overlay i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.card-content {
  padding: 1.5rem;
}

.pokemon-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
}

.user-info {
  text-align: center;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0077b5;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(0, 119, 181, 0.1);
  transition: all 0.3s ease;
  font-weight: 500;
}

.linkedin-link:hover {
  background: rgba(0, 119, 181, 0.2);
  transform: translateY(-2px);
}

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

.modal-content {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 8% auto;
  padding: 0;
  border-radius: 20px;
  width: 80%;
  max-width: 500px;
  animation: modalSlideIn 0.3s ease;
  overflow: hidden;
}

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

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
}

.close:hover {
  color: #ff6b6b;
  transform: scale(1.1);
}

.modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  color: white;
  text-align: center;
}

.modal-image {
  margin-bottom: 1.5rem;
}

.modal-image img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.modal-info h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-info p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  opacity: 0.9;
}

.modal-user {
  margin-top: 1.5rem;
}

.linkedin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

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

/* Footer */
footer {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #667eea;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #764ba2;
  transform: translateY(-2px);
}

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

.error-content {
  text-align: center;
  color: white;
}

.error-image img {
  width: 150px;
  height: 150px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.error-title {
  font-size: 6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.error-subtitle {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.error-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: white;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 2rem;
  opacity: 0.7;
}

.empty-state h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .modal-content {
    width: 90%;
    margin: 12% auto;
    max-width: 400px;
  }

  .modal-body {
    padding: 1.5rem 1rem;
  }

  .modal-info h2 {
    font-size: 1.7rem;
  }

  .modal-info p {
    font-size: 0.9rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-title {
    font-size: 1.2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .pokemon-day-btn {
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
  }
}

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

  .hero-section {
    padding: 2rem 1rem;
  }

  .pokemon-grid {
    padding: 1rem;
  }

  /* Welcome Screen Very Small Mobile */
  .welcome-title {
    font-size: 2rem;
  }

  .welcome-screen {
    padding: 1rem;
  }

  .search-input {
    min-width: 250px;
    padding: 0.8rem;
  }

  .search-btn,
  .view-all-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .pokeball {
    width: 80px;
    height: 80px;
  }

  .back-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .pokemon-card-individual {
    padding: 1rem;
  }

  .pokemon-card-individual h3 {
    font-size: 1.3rem;
  }

  .pokemon-card-individual .message {
    font-size: 1rem;
  }

  .search-container {
    flex-direction: column;
    align-items: center;
  }

  .search-input {
    width: 100%;
  }

  .search-btn {
    width: 100%;
    justify-content: center;
  }

  .view-all-btn {
    width: 100%;
    justify-content: center;
  }

  .pokemon-day-btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}
