/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Roboto+Slab:wght@400;600&display=swap");

/* General Styles for About Section */
.about-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #e3f2fd, #f4f8fc);
  position: relative;
  overflow: hidden;
}

/* Floating Circle */
.about-section::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  background-color: rgba(59, 130, 246, 0.15);
  border-radius: 50%;
  z-index: 0;
  animation: float 6s ease-in-out infinite;
}

/* About Content */
.about-content {
  max-width: 1200px;
  display: flex;
  gap: 40px;
  align-items: center;
  font-family: "Poppins", sans-serif;
  margin-top: 100px;
  margin-bottom: 50px;
}

/* Scroll Animation */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* About Image */
.about-image {
  flex: 1;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}

.about-image img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
  background-color: #dbeafe;
  padding: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover img {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.2);
}

/* About Text */
.about-text {
  flex: 2;
  color: #2d3748;
  opacity: 0;
  transform: translateY(20px);
}

.about-text h3 {
  font-family: "Roboto Slab", serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: #4a5568;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.about-text h2 {
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a202c;
  background: linear-gradient(90deg, #3b82f6, #1a202c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradient 3s ease infinite;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.about-text p:hover {
  transform: scale(1.02);
}

/* Accent Button */
.about-text .btn {
  display: inline-block;
  padding: 12px 25px;
  margin-top: 20px;
  background-color: #3b82f6;
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 25px;
  box-shadow: 0 8px 15px rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}

.about-text .btn:hover {
  background-color: #2563eb;
  box-shadow: 0 12px 20px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

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

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

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

@keyframes textGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Responsiveness */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    width: 200px;
    height: 200px;
  }

  .about-text h2 {
    font-size: 28px;
  }

  .about-text .btn {
    margin-top: 15px;
  }
}
