/* -------------------------------------------------animated---Hero Video Section  */
 
  
  /* Image/Video Styling */
  .welcome-video-startframe img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .hero-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1; /* 3:1 aspect ratio */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #fafafa;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
  
  .scrim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fafafa00;
    z-index: 2;
  }
  
  .video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
  }
  
  .play-pause-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 1px!important;
  }
  
  .play-pause-button:hover {
    background-color: #fafafa00;
    border: none;
    cursor: pointer;
    padding: 1px!important;
  } 





  .play-pause-button:focus {
    background-color: #00709500;
}
  .control-icon {
    width: 64px;
    height: 64px;
    fill: #fff;
  }
  
  .control-icon-circle {
    fill: rgba(213, 213, 213, 0.2);
  }
  
  .control-icon-pause, .control-icon-play {
    fill: #fff;
  }
  
  .control-icon-pause {
    display: block;
  }
  
  .control-icon-play {
    display: none;
  }
  
  .play-pause-button:hover .control-icon-circle {
    fill: #8b8b8b66;
}
  
  .play-pause-button:active .control-icon-circle {
    fill: rgba(211, 211, 211, 0.6);
  }
  















  /* Container for the entire section */
.animated-card-container {
    position: relative;
    width: 100%;
    padding: 50px;
    background-color: #fafafa;
    overflow: hidden;
  }
  
  /* Background image that animates on scroll */
  .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../backgrounds/videos/parallax-red.jpg'); /* Replace with your image */
    background-size: cover;
    background-position: center;
    z-index: -1; /* Behind the cards */
    opacity: 0.5; /* Faded effect */
  }
  
  /* Card grid styling using flexbox */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    z-index: 1;
  }
  
  /* Individual card styling */
  .card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }
  
  /* For animated cards */
  .animated-element {
    transition: all 0.5s ease;
  }