/* Mobile About Me Redesign - Matching the image design */

/* Only apply these styles on mobile devices */
@media (max-width: 768px) {

  /* Fix for the About section to remove duplicate shadows */
  .about-section {
    box-shadow: none !important;
    background-color: var(--dark) !important;
  }

  /* Override the book container with a simpler design for mobile */
  .book-container {
    perspective: none;
    box-shadow: none !important;
    /* Remove any container shadow */
  }

  .book {
    flex-direction: column;
    transform-style: flat;
    opacity: 1;
    transform: none;
    min-height: auto;
    box-shadow: none !important;
    /* Remove any book shadow */
  }

  /* Remove any decorative elements that might cause duplicate shadows */
  .book-page::before {
    display: none !important;
  }

  /* Hide the book spine on mobile */
  .book-spine {
    display: none;
  }

  /* Style the left page (profile info) */
  .book-page-left {
    width: 100%;
    background: var(--dark);
    border-radius: 0;
    box-shadow: none;
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
    transform: none !important;
    z-index: 1 !important;
  }

  /* Style the right page (professional summary) */
  .book-page-right {
    width: 100%;
    background: var(--dark);
    border-radius: 0;
    box-shadow: none;
    padding: 1.5rem 1rem;
    transform: none !important;
    z-index: 0 !important;
    display: none;
    /* Initially hidden on mobile */
    margin-top: 1rem;
    /* Add space between the button and content */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle separator */
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
  }

  /* When displayed, animate in */
  .book-page-right.visible {
    opacity: 1;
  }

  /* Style the professional summary title */
  .book-page-right .title-main {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
    display: block;
    width: 100%;
  }

  /* Style the professional summary content */
  .book-page-right .paragraph-descript {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: left;
  }

  /* Profile header styling */
  .profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .avatar-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--secondary);
    margin-bottom: 1rem;
    box-shadow: none !important;
    /* Remove any shadow to prevent duplication */
  }

  .profile-title {
    text-align: center;
  }

  .title-header {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--white);
  }

  .paragraph-body {
    font-size: 0.9rem;
    color: var(--light);
    margin-bottom: 0.25rem;
  }

  .experience-tag {
    display: inline-block;
    background-color: rgba(0, 210, 211, 0.2);
    color: var(--secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 0.25rem;
  }

  /* Profile details styling */
  .profile-details {
    margin-bottom: 1.5rem;
  }

  .detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--light);
  }

  .detail-item i {
    width: 25px;
    height: 25px;
    background-color: rgba(0, 210, 211, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    margin-right: 0.75rem;
    font-size: 0.8rem;
  }

  .detail-item span {
    font-size: 0.85rem;
  }

  /* Social links styling */
  .social-links-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .git-account {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    color: var(--light);
  }

  .git-account i {
    margin-right: 0.5rem;
    color: var(--secondary);
  }

  /* Download buttons styling */
  .download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-cv,
  .btn-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.9rem;
  }

  .btn-cv i,
  .btn-cover i {
    margin-right: 0.5rem;
  }

  /* Add a "My Story" button to toggle the professional summary */
  .my-story-btn {
    display: none;
    /* Hidden by default */
    width: 100%;
    padding: 0.75rem;
    background-color: var(--secondary);
    color: var(--dark);
    text-align: center;
    border-radius: 4px;
    margin-top: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none !important;
    /* Remove any shadow */
    position: relative;
    z-index: 1;
  }

  /* Only show the My Story button on mobile */
  @media (max-width: 768px) {
    .my-story-btn {
      display: block;
    }

    /* Active state for touch feedback */
    .my-story-btn.active {
      background-color: var(--primary);
      transform: scale(0.98);
    }
  }

  /* Extra small devices */
  @media (max-width: 375px) {

    .book-page-left,
    .book-page-right {
      padding: 1rem 0.75rem;
    }

    .avatar-icon {
      width: 80px;
      height: 80px;
    }

    .title-header {
      font-size: 1.3rem;
    }

    .paragraph-body {
      font-size: 0.8rem;
    }

    .detail-item i {
      width: 22px;
      height: 22px;
    }

    .detail-item span {
      font-size: 0.8rem;
    }

    .git-account {
      padding: 0.5rem 0.7rem;
      font-size: 0.8rem;
    }

    .btn-cv,
    .btn-cover {
      padding: 0.6rem;
      font-size: 0.8rem;
    }
  }
}