/* Skills Section */
.skills {
    padding: 4rem 2rem;
    background-color: #1a1b26;
  }
  
  .skills h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #7aa2f7;
  }
  
  .skills-container {
    display: flex;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .globe-container {
    flex: 1;
    min-width: 400px;
  }
  
  #skills-globe-container {
    width: 100%;
    height: 500px;
    position: relative;
    /* background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0)); */
    background-color: #1a1b26;
  }
  
/* Skills List Styling */
.skills-list-container {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 400px;
    /* margin-top: 2rem; */
    background: linear-gradient(145deg, rgba(16, 20, 34, 0.9), rgba(22, 28, 45, 0.8));
    -webkit-backdrop-filter: blur(10px);    
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 113, 168, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-right: 5rem;
  }
  
  .skill-category {
    background: rgba(28, 33, 48, 0.6);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(99, 113, 168, 0.1);
    transition: all 0.3s ease;
  }
  
  .skill-category:hover {
    background: rgba(33, 38, 55, 0.8);
    transform: translateY(-2px);
  }
  
  .skill-category h3 {
    color: #7aa2f7; /* Tokyo Night blue */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(99, 113, 168, 0.2);
    font-weight: 600;
  }
  
  .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
  }
  
  .skills-list li {
    flex: 0 1 calc(33.333% - 0.4rem);
    background: rgba(41, 46, 66, 0.7);
    color: #a9b1d6; /* Tokyo Night text color */
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(99, 113, 168, 0.1);
  }
  
  .skills-list li:hover {
    background: rgba(99, 113, 168, 0.2);
    color: #c0caf5; /* Brighter text on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(99, 113, 168, 0.3);
  }
  
  /* Subtle glow effect on hover */
  .skill-category:hover .skills-list li {
    border-color: rgba(122, 162, 247, 0.2);
  }
  
  /* Animation for items */
  .skill-category {
    animation: fadeIn 0.5s ease-out;
  }
  
  .skills-list li {
    animation: slideUp 0.3s ease-out forwards;
    opacity: 0;
    animation-delay: calc(var(--index) * 0.1s);
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }


  /* Skills Icon For The Globe */
  .skill-icon {
    position: absolute;
    font-size: 32px;
    pointer-events: all;
    transition: all 0.3s ease;
    cursor: pointer;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
  }
  
  .skill-icon:hover {
    font-size: 40px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
  }
  
  .skill-icon::after {
    content: attr(data-name);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .skill-icon:hover::after {
    opacity: 1;
  }
  
  /* Responsive Design */
  @media (max-width: 1200px) {
    .skills-container {
      padding: 0 1rem;
    }
  }
  
  @media (max-width: 968px) {
    .globe-container {
      min-width: 100%;
    }
  
    #skills-globe-container {
      height: 400px;
    }
  
    .skills-list-container {
      max-width: 500px;
      width: 100%;
      margin-top: 1rem;
    }
  
    .skills-list li {
      flex: 0 1 calc(25% - 0.4rem); /* 4 items per row on medium screens */
    }
  }
  
  @media (max-width: 480px) {
    .skills {
      padding: 2rem 1rem;
    }
  
    .skills-container {
      gap: 1rem;
    }
  
    #skills-globe-container {
      height: 300px;
    }
  
    .skills-list-container {
      gap: 0.6rem;
    }
  
    .skill-category {
      padding: 0.6rem;
    }
  
    .skills-list li {
      flex: 0 1 calc(33.333% - 0.4rem); /* Back to 3 items per row on mobile */
      font-size: 0.7rem;
      padding: 0.3rem 0.4rem;
    }
  }