/* ===== SECTION BACKGROUND ===== */
.about-section {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  position: relative;
  overflow: hidden;
}

/* subtle glow effect */
.about-section::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(99,102,241,0.1);
  filter: blur(120px);
  top: -100px;
  left: -100px;
  border-radius: 50%;
}

.about-section::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(79,172,254,0.1);
  filter: blur(100px);
  bottom: -50px;
  right: -50px;
  border-radius: 50%;
}

/* ===== TEXT BLOCK ===== */
.about-content {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-content:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.9);
}

/* headings */
.about-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111827;
  position: relative;
  display: inline-block;
}

.about-content h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 3px;
  width: 40px;
  background: linear-gradient(90deg, #213C72, #4facfe);
  border-radius: 2px;
}

.about-content.text-center h3::after {
  left: 50%;
  transform: translateX(-50%);
}

/* text */
.about-content p {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 0;
}

/* ===== CARD WRAPPER ===== */
.about-card {
  perspective: 1500px;
}

/* ===== INNER FLIP ===== */
.about-card .card-inner {
  position: relative;
  width: 100%;
  height: 220px;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

/* flip */
.about-card:hover .card-inner {
  transform: rotateY(180deg);
}

/* ===== FRONT & BACK ===== */
.about-card .card-front,
.about-card .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 30px;
  border-radius: 24px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ===== FRONT ===== */
.about-card .card-front {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transition: all 0.4s ease;
}

/* icon */
.about-card .card-front i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #213C72, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease;
}

.about-card:hover .card-front i {
  transform: scale(1.1);
}

/* title */
.about-card .card-front h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

/* hover glow */
.about-card:hover .card-front {
  box-shadow: 0 20px 50px rgba(79,172,254,0.15);
}

/* ===== BACK ===== */
.about-card .card-back {
  background: linear-gradient(135deg, #213C72, #1a2f55);
  color: #fff;
  transform: rotateY(180deg);
  border: 1px solid rgba(255,255,255,0.1);
}

.about-card .card-back h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
}

/* text */
.about-card .card-back p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(255,255,255,0.9);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .about-card .card-inner {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .about-card .card-inner {
    height: 180px;
  }
  .about-content {
      padding: 25px;
  }
}

/* ===== MICRO INTERACTION ===== */
.about-content,
.about-card {
  will-change: transform;
}