/* General Reset */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  
  .team-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
  }
  
  .team-section h2 {
    font-size: 36px;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
  }
  
  .profile-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 40px !important;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    /* position: relative; */
    width: 220px !important;
  }
  
  .profile-card img {
    width: 100%;
    height: 250px; /* Adjust height as needed */
    object-fit: cover; /* Ensures the image covers the container */
    display: block;
  }
  
  .profile-card h3 {
    font-size: 24px;
    margin: 20px 0 10px;
    color: #00BFFF;
  }
  
  .profile-card p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #777;
  }
  
  /* Hover Effects */
  .profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  /* Layout Styling */
  .chairman {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    top: -100px; /* Start above the viewport */
    animation: slideDown 1s ease-out forwards;
  }
  
  .ceo {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .ceo .profile-card {
    animation: slideIn 3.5s forwards;
  }
  
  .ceo .profile-card:nth-child(1) {
    animation-delay: .3s;
    animation-name: slideInFromRight;
  }
  
  .ceo .profile-card:nth-child(2) {
    animation-delay: .3s;
    animation-name: slideInFromLeft;
  }
  
  .team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
  }
  
  /* .team-grid .profile-card {
    animation: slideIn 7s forwards;
  } */
  
  .team-grid .profile-card:nth-child(1),
  .team-grid .profile-card:nth-child(2),
  .team-grid .profile-card:nth-child(3),
  .team-grid .profile-card:nth-child(4) {
    animation-name: slideInFromRight;
  }
  
  .team-grid .profile-card:nth-child(5),
  .team-grid .profile-card:nth-child(6),
  .team-grid .profile-card:nth-child(7),
  .team-grid .profile-card:nth-child(8) {
    animation-name: slideInFromLeft;
  }

  @keyframes slideInFromRight {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes slideInFromLeft {
    from {
      transform: translateX(-100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes slideIn {
    from {
      transform: translateY(50px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .sliding-div {
    width: 100px;
    height: 100px;
    background-color: red;
    position: absolute;
    animation: slide 5s linear infinite;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(100vw); }
}
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .profile-card img {
        height: auto;}

    .ceo {
      flex-direction: column;
    }
    .team-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      margin-top: 20px;
    }
    @keyframes slideDown {
        from {
          top: -100px; /* Start off-screen */
        }
        to {
          top: -10%; /* Final position */
          transform: translate(0, 0%);
        }
      }
  
  }

  @media (min-width:1000px) {
    @keyframes slideDown {
        from {
        top: -200px; /* Start off-screen */
        }
        to {
        top: 50%; /* Final position */
        transform: translate(0, 50%);
        }
        }
}