.carousel-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }
  
  .container1
   {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  .slide {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  .item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
  }
  
  .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  }
  
  .item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
  }
  
  .item.next {
    opacity: 0;
    visibility: hidden;
    z-index: 1;
  }
  
  .content {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 600px;
    max-width: 80%;
    transform: translateY(-50%);
    color: #fff;
    z-index: 3;
  }
  
  .name {
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease 0.2s;
  }
  
  .des {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease 0.4s;
  }
  
  .item.active .name,
  .item.active .des {
    opacity: 1;
    transform: translateY(0);
  }
  
  .content button {
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    background: #000;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease 0.6s;
  }
  
  .item.active button {
    opacity: 1;
    transform: translateY(0);
  }
  
  .content button:hover {
    background: #333;
    transform: translateY(-5px);
  }
  
  .button {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 10;
    display: flex;
    gap: 20px;
  }
  
  .button button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
  }
  
  .button button:hover {
    background: #000;
    border-color: #fff;
  }
  
  .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 10;
  }
  
  .progress {
    height: 100%;
    width: 0;
    background: #fff;
    transition: width 3s linear;
  }
  
  @media (max-width: 768px) {
    .content {
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }
    .open-modal-btn{
      margin-left: 2vw !important;
    }
    .name {
        font-size: 2.5rem;
    }
  
    .des {
        font-size: 1rem;
    }
  
    .button {
        right: 50%;
        bottom: 30px;
        transform: translateX(50%);
    }
  }
  /*  For Navbar Card Open */
  
  /* Button to open modal */
  .open-modal-btn {
    padding: 8px 16px;
    font-size: 16px;
    background-color: #ff8400;
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    }
    
    .open-modal-btn:hover {
      background-color: #ff8400;
    }
    
    /* Modal Overlay */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 101%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 999;
      margin-bottom:400px;
    }
    
    /* Hidden class */
    .hidden {
      display: none;
    }
    
    /* Modal Box */
    .modal1 {
      background-color: #fff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      width: 100%;
      max-width: 500px;
      position: fixed; top: 58%;left: 50%; transform: translate(-50%,-50%);
    }
    
    /* Modal Title */
    .modal-title {
      font-size: 24px;
      margin-bottom: 20px;
      color: #333;
      text-align: center;
    }
    
    /* Form styling */
    .modal-form {
      display: flex;
      flex-direction: column;
    }
    
    /* Form Group */
    .form-group {
      margin-bottom: 15px;
    }
    
    .form-group label {
      font-size: 16px;
      margin-bottom: 5px;
      color: #333;
    }
    
    .form-group input {
      width: 100%;
      padding: 9px;
      font-size: 16px;
      border: 1px solid #ddd;
      border-radius: 5px;
      box-sizing: border-box;
      transition: border-color 0.3s ease;
    }
    
    .form-group input:focus {
      border-color: #007BFF;
      outline: none;
    }
  
    
    /* Button Styles */
    .btn1 {
      padding: 12px;
      font-size: 16px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
    
    .submit-btn {
      padding: 8px 16px;
      font-size: 16px;
      background-color: #fdb746;
      color: white;
      border: none;
      border-radius: 24px;
      cursor: pointer;
      transition: background-color 0.3s ease;
      
    }
    

    .form-actions{
      display: flex;
      align-items: center;
      justify-content: end;
    }
    
    .cancel-btn {
      padding: 8px 16px;
      font-size: 16px;
      background-color: #000;
      color: #fff;
      border: none;
      border-radius: 24px;
      cursor: pointer;
      margin-left: 8px;
      transition: background-color 0.3s ease;
    }
    
 
    
    /* Animation */
    @keyframes modalIn {
      from {
        opacity: 0;
        transform: translateY(-20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (max-width:768px){
        .modal1 {
            position: fixed; top: 50%;left: 50%; transform: translate(-50%,-50%);
          }
    }