/**
 * ===================== ABOUT SECTION =====================
 *
 * @format
 */

.about-area {
  position: relative;
  padding: 95px 0;
  overflow: hidden;
  color: var(--off-white-light);
  font-family: "Lexend", sans-serif;
  /* border: 1px solid red; */
}

/* Parallax background */
.about-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://images.unsplash.com/photo-1526378723456-4a7d1a01e3f1")
    center/cover no-repeat;
  z-index: -1;
  transform: translateZ(0);
  will-change: transform;
  opacity: 0.15;
}

/* Floating vertical accent line */
.about-area::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50px;
  width: 3px;
  height: 75%;
  background: linear-gradient(
    to bottom,
    var(--trust-blue-light),
    var(--trust-blue-base)
  );
  border-radius: 2px;
  filter: drop-shadow(0 0 8px var(--trust-blue-light));
  animation: floatLine 5s ease-in-out infinite alternate;
}

@keyframes floatLine {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(15px);
  }
}

/* layout */
.about {
  display: flex;
  gap: 3rem;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* left content */
.about-content {
  flex: 1 1 60%;
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

.about-content h4 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--royal-yellow-base);
  position: relative;
  border: none;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
  color: var(--soft-gray-light);
  text-align: justify;
}

/* right skills card */
.about-skills {
  flex: 1 1 35%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 25px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  animation: fadeRight 1s ease forwards;
  opacity: 0;
  transition: all 0.3s ease;
}

.about-skills h5 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--royal-yellow-base);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-skills ul li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: 0.3s ease;
  color: var(--soft-gray-light);
}

.about-skills ul li:last-child {
  border-bottom: none;
}

.about-skills ul li:hover {
  color: var(--off-white-light);
  font-weight: 600;
  text-shadow: 0 0 5px var(--deep-navy-dark);
}

/* animations */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeRight {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===================== ABOUT SECTION RESPONSIVE ===================== */

/* Tablet - up to 992px */
@media (max-width: 992px) {
  .about {
    gap: 2rem; /* reduce gap between left and right */
  }
  .about-content h4 {
    font-size: 2.2rem; /* slightly smaller headings */
  }
  .about-content p {
    font-size: 0.95rem; /* adjust paragraph for tablet */
  }
  .about-skills h5 {
    font-size: 1.1rem;
  }
  .about-skills ul li {
    padding: 8px 0;
  }
}

/* Mobile Landscape & Small Tablets - up to 768px */
@media (max-width: 768px) {
  .about {
    flex-direction: column;
    gap: 1.5rem;
  }
  .about-content,
  .about-skills {
    flex: 1 1 100%;
  }
  .about-content h4 {
    font-size: 2rem;
  }
  .about-content p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .about-skills h5 {
    font-size: 1rem;
  }
  .about-skills ul li {
    padding: 7px 0;
    font-size: 0.9rem;
  }
}

/* Mobile Portrait - up to 480px */
@media (max-width: 480px) {
  .about-area {
    padding: 60px 15px; /* smaller padding */
  }
  .about-content h4 {
    font-size: 1.7rem;
  }
  .about-content p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .about-skills {
    padding: 16px;
  }
  .about-skills h5 {
    font-size: 0.95rem;
  }
  .about-skills ul li {
    padding: 6px 0;
    font-size: 0.85rem;
  }
  .about-area::before {
    left: 5px;
  }
}
