/* ========== About Section ========== */
.about {
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

/* Gradient background with decorative patterns */
.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(255, 213, 79, 0.05) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(108, 99, 255, 0.05) 0%,
      transparent 30%
    ),
    repeating-linear-gradient(
      45deg,
      rgba(30, 30, 30, 0.4) 0px,
      rgba(30, 30, 30, 0.4) 1px,
      transparent 1px,
      transparent 15px
    );
  z-index: 1;
}

/* Add floating shapes like in hero */
.about::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  filter: blur(30px);
  opacity: 0.2;
  top: 15%;
  right: 10%;
  animation: float 10s infinite ease-in-out;
  z-index: 1;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Create a two-column layout for better text flow */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Styled text block with hover effect */
.about-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  position: relative;
  padding: 2rem;
  background: rgba(30, 30, 30, 0.6);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(108, 99, 255, 0.2);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.about-text:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(108, 99, 255, 0.4);
}

/* Color accent bar on text blocks */
.about-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

/* Highlight important text elements */
.about-text strong,
.about-text em {
  color: var(--primary-color);
  font-weight: 600;
}

/* Full-width emphasized text block */
.about-text:last-of-type {
  grid-column: 1 / -1;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(108, 99, 255, 0.1),
    rgba(79, 195, 247, 0.1)
  );
  border: 1px solid rgba(108, 99, 255, 0.3);
  font-style: italic;
}

/* Responsive card grid layout */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

/* Feature card with hover animation */
.about-card {
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(15px);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(51, 51, 51, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Animated gradient overlay on cards */
.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(108, 99, 255, 0.05),
    rgba(79, 195, 247, 0.05)
  );
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.about-card:hover::before {
  opacity: 1;
}

.about-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.about-card > * {
  position: relative;
  z-index: 2;
}

/* Animated icon in cards */
.about-card .icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.5rem;
  fill: var(--secondary-color);
  transition: var(--transition);
}

.about-card:hover .icon {
  fill: var(--primary-color);
  transform: scale(1.1);
}

.about-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Mobile layout adjustments */
@media (max-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-text {
    padding: 1.5rem;
    font-size: 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
}

/* Floating animation keyframes */
@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(15px, -15px) scale(1.05);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}
