/* About Section Styles - Professional background and skills overview - Mobile First */
.about-section {
  background: var(--about-section-bg);
  position: relative;

  & .about-content {
    /* Positioning & Display */
    display: flex;
    flex-direction: column;
    gap: 0;

    /* Box Model */
    width: 100%;

    & .about-image {
      /* Positioning & Display */
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      overflow: hidden;
      align-self: center;

      /* Box Model */
      width: 100%;
      max-width: 100%;
      border-radius: 0;
      padding: var(--spacing-lg);
      aspect-ratio: 3/4;

      /* Typography */
      color: white;

      /* Colors & Backgrounds */
      background-image: url('./../assets//img/profile/about-me.png');
      background-size: cover;
      background-position: center;

      /* Effects & Transitions */
      box-shadow: 0 10px 20px var(--card-shadow);

      & .text-title {
        /* Typography */
        font-size: 0.8rem;
        font-weight: bold;
      }

      & span {
        /* Positioning & Display */
        opacity: 0;
        transform: translateX(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
      }

      & span:first-child {
        /* Initial state - hidden and offset to the left */
        transform: translateX(-40px);
      }

      & span.text-title {
        /* Initial state - hidden and offset to the right */
        transform: translateX(40px);
      }

      & span.fade-in-left {
        opacity: 1;
        transform: translateX(0);
      }

      & span.fade-in-right {
        opacity: 1;
        transform: translateX(0);
      }

      & img {
        /* Positioning & Display */
        display: block;

        /* Box Model */
        width: 100%;
        height: 100%;

        /* Effects & Transitions */
        transition: transform 0.5s ease;

        /* Other */
        object-fit: cover;
      }
    }

    & .about-text {
      /* Positioning & Display */
      display: flex;
      flex-direction: column;

      /* Box Model */
      padding: var(--spacing-lg) var(--spacing-lg) 0px var(--spacing-lg);

      & p {
        /* Typography & spacing */
        margin-bottom: 1rem;
        line-height: 1.6;
      }
    }
  }

  & .skills {
    padding: 0 var(--spacing-lg);
    max-width: 100%;
    margin: auto;

    & h3 {
      /* Box Model */
      margin-bottom: 1.25rem;
    }

    & ul {
      /* Positioning & Display */
      display: flex;
      flex-wrap: wrap;

      /* Box Model */
      gap: 0.75rem;

      /* Other */
      list-style: none;

      & li {
        /* Box Model */
        padding: 0.5rem 1rem;
        border-radius: var(--border-radius-pill);
        border: 1px solid var(--border-color);

        /* Typography */
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--text-color);

        /* Colors & Backgrounds */
        background-color: var(--card-bg);

        /* Effects & Transitions */
        transition: all 0.3s ease;
        box-shadow: 0 2px 6px var(--card-shadow);
      }
    }
  }

  & .expertise-tags {
    /* Positioning & Display */
    justify-content: center;
  }
}

/* Small Tablet styles */
@media (min-width: 576px) {
  .about-section {
    & .about-content {
      & .about-image {
        max-width: 300px;
        border-radius: var(--border-radius-lg);
      }
    }
  }
}

/* Larger Tablet styles */
@media (min-width: 768px) {
  .about-section {
    & .about-content {
      flex-direction: column;
      padding: 0;
      gap: var(--spacing-md);
    }

    & .skills {
      padding: 0 var(--spacing-xl);

      & h3 {
        margin-bottom: 1.5rem;
      }

      & ul {
        & li {
          padding: 0.55rem 1.1rem;
          font-size: 0.875rem;

          &:hover {
            /* Positioning & Display */
            transform: translateY(-3px);

            /* Colors & Backgrounds */
            color: var(--accent-color);

            /* Effects & Transitions */
            box-shadow: 0 4px 8px var(--card-hover-shadow);
          }
        }
      }
    }
  }
}

/* Desktop styles */
@media (min-width: 992px) {
  .about-section {
    & .about-content {
      flex-direction: row;
      gap: var(--spacing-lg);
      max-width: var(--container-width);
      padding: var(--spacing-xxl);

      & .about-image {
        flex: 0 0 300px;
        align-self: stretch;
        box-shadow: 0 20px 40px var(--card-shadow);
      }
    }

    & .skills {
      padding: 0 var(--spacing-xxl);
      max-width: var(--container-width);

      & ul {
        & li {
          padding: 0.6rem 1.2rem;
          font-size: 0.9rem;
        }
      }
    }
  }
}