/* General Styles */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(120deg, #f0f4c3 0%, #fbc2eb 100%);
  overflow-x: hidden;
}

.header {
  text-align: center;
  padding: 50px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation: fadeIn 2s ease-in-out;
}

.header img {
  width: 150px;
  animation: bounceInDown 1.5s ease-in-out;
}

.header h1 {
  font-size: 3em;
  color: #333;
  margin: 20px 0;
  animation: fadeInUp 1.5s ease-in-out;
}

.overview,
.pricing {
  padding: 50px;
  text-align: center;
}

.overview h2,
.pricing h2 {
  font-size: 2.5em;
  color: #444;
  margin-bottom: 20px;
  animation: slideInLeft 1.5s ease-in-out;
}

.overview p,
.pricing p {
  font-size: 1.2em;
  color: #555;
  animation: slideInRight 1.5s ease-in-out;
}

.pricing .price-section {
  margin: 20px 0;
  position: relative;
  animation: swing 2s infinite;
}

.pricing .price-reduced {
  font-size: 1.5em;
  color: #ff0000;
  text-decoration: line-through;
  animation: shake 1s infinite;
}

.pricing .price-new {
  font-size: 2em;
  color: #28a745;
  animation: bounceIn 2s ease-in-out;
}

.pricing .price-note {
  font-size: 1em;
  color: #333;
  animation: fadeInUp 1.5s ease-in-out;
}

.payment {
  margin-top: 30px;
  animation: pulse 2s infinite;
}

.payment button {
  font-size: 1.2em;
  padding: 10px 20px;
  background-color: #28a745;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  animation: rubberBand 1.5s infinite;
}

.payment button:hover {
  background-color: #218838;
}

.footer {
  text-align: center;
  padding: 20px;
  background: #333;
  color: #fff;
  animation: fadeIn 2s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes bounceInDown {
  0% {
    opacity: 0;
    transform: translateY(-2000px);
  }
  60% {
    opacity: 1;
    transform: translateY(30px);
  }
  80% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25%,
  75% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes swing {
  20% {
    transform: rotate(15deg);
  }
  40% {
    transform: rotate(-10deg);
  }
  60% {
    transform: rotate(5deg);
  }
  80% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

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

@keyframes rubberBand {
  0%,
  100% {
    transform: scaleX(1);
  }
  30% {
    transform: scaleX(1.25);
  }
  40% {
    transform: scaleX(0.75);
  }
  50% {
    transform: scaleX(1.15);
  }
  65% {
    transform: scaleX(0.95);
  }
  75% {
    transform: scaleX(1.05);
  }
}

/* Existing Styles... */

/* Tic Tac Toe Styles */
/* Existing Styles... */

/* Interactive Hover Effects */
.interactive {
  position: relative;
  display: inline-block;
  padding: 10px;
  cursor: pointer;
}

.interactive::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #28a745;
  transition: width 0.3s ease;
}

.interactive:hover::before {
  width: 100%;
}

.interactive:hover {
  color: #28a745;
  background-color: rgba(40, 167, 69, 0.1);
}

/* Tic Tac Toe Styles */
.tictactoe {
  text-align: center;
  padding: 50px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
}

#tic-tac-toe-board {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 5px;
  justify-content: center;
  margin: 0 auto;
}

.cell {
  width: 100px;
  height: 100px;
  background: #f1f1f1;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.cell:hover {
  background: #e0e0e0;
  transform: scale(1.1);
  color: #333;
}

.cell.x {
  color: #f00;
}

.cell.o {
  color: #00f;
}

#game-message {
  font-size: 1.5em;
  color: #333;
  margin-top: 20px;
  font-weight: bold;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 300px;
  border-radius: 5px;
  text-align: center;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Float and Interactive Hover Effect for H2 */
/* Smooth Float and Interactive Hover Effect for H2 */
.header h1 {
  font-size: 3em;
  color: #333;
  margin: 20px 0;
  animation: float 8s ease-in-out infinite, fadeInUp 1.5s ease-in-out;
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.header h1:hover {
  transform: translateY(-8px);
  color: #d19733;
}

/* Smoother Floating Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Footer Social Media Icons */
.footer {
  text-align: center;
  padding: 20px;
  background: #333;
  color: #fff;
}

.social-media {
  margin-top: 10px;
}

.social-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: 0 10px;
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon i {
  display: block;
}
