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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  padding: 60px 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.logo-container {
  margin-bottom: 20px;
}

.main-logo {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.12s ease-in;
  cursor: crosshair;
}

.main-logo:hover { 
  transform: scaleX(-1);
}

.tagline {
  font-size: 1.4em;
  color: #666;
  font-weight: 300;
  letter-spacing: 1px;
}

.content {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.about {
  text-align: center;
  margin-bottom: 50px;
}

.about h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #2c3e50;
  font-weight: 300;
}

.about p {
  font-size: 1.2em;
  line-height: 1.6;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.games-section {
  text-align: center;
  margin-bottom: 50px;
}

.games-section h3 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #2c3e50;
  font-weight: 300;
}

.chessalicious-container {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  padding: 40px;
  border-radius: 15px;
  margin: 0;
  transition: transform 0.3s ease;
}

.chessalicious-logo {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 0px;
  transition: transform 1s ease-out;
  cursor: crosshair;
}

.chessalicious-logo:hover {
  transform: rotate(375deg);
}

.chessalicious-container p {
  color: white;
  font-size: 1.1em;
  margin-bottom: 25px;
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #f5576c;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: #f8f9fa;
}

.contact {
  text-align: center;
}

.contact h3 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #2c3e50;
  font-weight: 300;
}

.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
  text-decoration: none;
  font-size: 1.1em;
  padding: 15px 25px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid transparent;
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
  min-height: 40px;           /* Ensures a consistent height */
  will-change: transform;
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: #f8f9fa;
}

.contact-icon {
  font-size: 1.2em;
}

footer {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9em;
}

.floating-pieces {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.chess-piece {
  position: absolute;
  font-size: 2em;
  opacity: 0.1;
  animation: float 20s infinite linear;
  color: white;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .hero {
    padding: 40px 20px;
  }
  
  .content {
    padding: 30px 20px;
  }
  
  .about h2 {
    font-size: 2em;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 20px;
  }
  
  .tagline {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .about h2 {
    font-size: 1.8em;
  }
  
  .games-section h3,
  .contact h3 {
    font-size: 1.6em;
  }
  
  .chessalicious-container {
    padding: 30px 20px;
  }
}
