@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(to right, #1f0036, #3e0d60);
  color: #fff;
  transition: 0.3s ease;
  transform: translateZ(0); /* Boost GPU rendering */
}

.about {
  width: 100%;
  min-height: 100vh;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 40px;
}

.img-container img {
  height: 500px;
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  border: 5px solid #f9004d;
  box-shadow: 0 0 30px #f9004d;
  transition: 0.3s ease;
}

.img-container img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 50px #ff4da6;
}

.about-text {
  max-width: 550px;
}

.about-text h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.about-text h5 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #ccc;
}

.about-text span {
  color: #f9004d;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #f0f0f0;
}

button {
  background: #f9004d;
  color: white;
  font-weight: bold;
  border: none;
  padding: 13px 30px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.4s ease;
  box-shadow: 0 0 15px #f9004d;
}

button:hover {
  background: transparent;
  color: #f9004d;
  border: 2px solid #f9004d;
  box-shadow: 0 0 25px #f9004d;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px #f9004d;
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 25px #f9004d;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px #f9004d;
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate {
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.animate.in-view {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.animate.in-view.fade-in-left {
  animation: fadeInLeft 1s forwards ease-out;
}

.animate.in-view.fade-in-right {
  animation: fadeInRight 1s forwards ease-out;
}

@media (max-width: 768px) {
  .main {
    flex-direction: column;
    text-align: center;
  }

  .img-container img {
    height: auto;
    width: 90%;
  }

  .about-text h1 {
    font-size: 2.2rem;
  }

  .about-text h5 {
    font-size: 1.2rem;
  }

  .about-text p {
    font-size: 1rem;
  }
}
