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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0e27 url('tile.png') repeat;
  background-size: auto;
  color: #D4FF3B;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
  position: relative;
}

/* Container */
.container {
  max-width: 900px;
  width: 100%;
  background: rgba(217, 8, 217, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 60px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(217, 8, 217, 0.3);
  animation: fadeIn 0.8s ease-out;
  position: relative;
  z-index: 1;
}

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

/* Header */
.header {
  text-align: center;
  margin-bottom: 50px;
}

.logo {
  max-width: 604px;
  height: auto;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
  display: inline-block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

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

.title {
  font-size: 56px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  animation: slideDown 0.6s ease-out 0.2s both;
}

.subtitle {
  font-size: 20px;
  color: #D4FF3B;
  margin-bottom: 20px;
  animation: slideDown 0.6s ease-out 0.3s both;
}

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

.divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  margin: 0 auto;
  border-radius: 2px;
  animation: expandWidth 0.6s ease-out 0.4s both;
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 100px;
  }
}

.about-text {
  max-width: 600px;
  margin: 30px auto 0;
  font-size: 18px;
  line-height: 1.7;
  color: #D4FF3B;
  text-align: center;
  animation: slideDown 0.6s ease-out 0.5s both;
}

.about-text strong {
  color: #D4FF3B;
  font-weight: 600;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 30px;
  width: 60px;
  height: 60px;
  padding: 0;
  background: #D908D9;
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  font-size: 32px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: none;
  animation: slideDown 0.6s ease-out 0.6s both;
}

.contact-button:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(217, 8, 217, 0.6);
  background: #f020f0;
}

/* Content */
.content {
  margin-bottom: 40px;
}

.section-title {
  font-size: 38px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
  color: #D4FF3B;
  animation: slideDown 0.6s ease-out 0.5s both;
}

.description {
  text-align: center;
  color: #D4FF3B;
  margin-bottom: 40px;
  animation: slideDown 0.6s ease-out 0.6s both;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.game-card {
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  animation: slideUp 0.6s ease-out both;
  cursor: pointer;
  display: block;
}

.game-card:nth-child(1) {
  animation-delay: 0.7s;
}

.game-card:nth-child(2) {
  animation-delay: 0.85s;
}

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

.game-card::before {
  display: none;
}

.game-card:hover {
  transform: translateY(-10px);
}

.game-logo-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
}

.game-card:hover .game-logo-container {
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4),
    0 0 60px rgba(118, 75, 162, 0.3);
  transform: scale(1.02);
}

.game-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-logo {
  transform: scale(1.1);
}

.game-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 14, 39, 0.95) 0%, rgba(10, 14, 39, 0.7) 70%, transparent 100%);
  padding: 30px 20px 20px;
  transform: translateY(0);
  transition: all 0.4s ease;
}

.game-card:hover .game-overlay {
  background: linear-gradient(to top, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.85) 70%, transparent 100%);
}

.card-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #D4FF3B;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-arrow {
  font-size: 32px;
  color: #D4FF3B;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.game-card:hover .card-arrow {
  transform: translateX(10px);
}

/* In Development Section */
.dev-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideDown 0.6s ease-out 1.2s both;
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 50px;
  padding-bottom: 30px;
  animation: slideDown 0.6s ease-out 1s both;
}

.footer-logo {
  max-width: 120px;
  height: auto;
  margin-top: 30px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  filter: grayscale(30%);
}

.footer-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 40px 24px;
  }

  .title {
    font-size: 42px;
  }

  .section-title {
    font-size: 32px;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .logo {
    max-width: 140px;
  }
}
