/* ===== LinkedIn In-App WebView FIX ===== */
@supports (-webkit-touch-callout: none) {
  body.linkedin-fix header {
    min-height: 100dvh !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: calc(env(safe-area-inset-top) + 60px) !important;
    padding-bottom: calc(env(safe-area-inset-bottom) + 60px) !important;
    text-align: center !important;
  }

  body.linkedin-fix .hero-img {
    width: 90%;
    max-width: 340px;
    height: auto;
    border-radius: 16px;
    margin-top: 20px;
  }

  /* إعادة حركة المهارات داخل LinkedIn */
  body.linkedin-fix .carousel-track {
    display: flex !important;
    animation: slideSkills 20s linear infinite !important;
    gap: 25px !important;
  }

  @keyframes slideSkills {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  body.linkedin-fix .skills-carousel {
    display: block !important;
    margin-top: 60px !important;
  }

  body.linkedin-fix .skills-carousel .skill {
    display: inline-block !important;
    opacity: 1 !important;
  }
}
/* ===== Instagram In-App WebView FIX ===== */
@supports (-webkit-touch-callout: none) {
  body.instagram-fix header {
    min-height: 100dvh !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: calc(env(safe-area-inset-top) + 60px) !important;
    padding-bottom: calc(env(safe-area-inset-bottom) + 60px) !important;
    text-align: center;
  }

  body.instagram-fix .hero-img {
    width: 90%;
    max-width: 340px;
    border-radius: 16px;
    object-fit: cover;
    margin-top: 20px;
  }

  body.instagram-fix .intro {
    padding: 0 20px;
    margin-top: 15px;
  }

  /* إصلاح ظهور المهارات */
  body.instagram-fix .skills-carousel {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    margin-top: 60px !important;
  }

  body.instagram-fix .carousel-track {
    display: flex !important;
    gap: 25px !important;
    animation: slideSkills 20s linear infinite !important;
  }

  @keyframes slideSkills {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
}
