.law-hero-content {
opacity: 0;
transform: translateY(30px);
animation: heroContentFadeIn 1s ease-out forwards;
}

.law-hero-content h1 {
opacity: 0;
transform: translateY(20px);
animation: textFadeIn 0.8s ease-out forwards;
animation-delay: 0.3s;
}

.law-hero-content h1 span {
display: inline-block;
opacity: 0;
transform: translateY(20px);
animation: textFadeIn 0.8s ease-out forwards;
animation-delay: 0.6s;
}

.law-hero-content p {
opacity: 0;
transform: translateY(20px);
animation: textFadeIn 0.8s ease-out forwards;
animation-delay: 0.9s;
}

.law-hero-content .law-btn-wrap {
opacity: 0;
transform: translateY(20px);
animation: textFadeIn 0.8s ease-out forwards;
animation-delay: 1.2s;
}

@keyframes heroContentFadeIn {
0% {
    opacity: 0;
    transform: translateY(30px);
}
100% {
    opacity: 1;
    transform: translateY(0);
}
}

@keyframes textFadeIn {
0% {
    opacity: 0;
    transform: translateY(20px);
}
100% {
    opacity: 1;
    transform: translateY(0);
}
}





  .law-client-section.law-section-padding h2,
  .law-client-section.law-section-padding p {
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
  }

  .law-client-section.law-section-padding.animate h2 {
    opacity: 1;
    transform: translateY(0);
    animation: typewriter 2s steps(40) 0.5s forwards;
  }

  .law-client-section.law-section-padding.animate p {
    opacity: 1;
    transform: translateY(0);
    animation: typewriter 2s steps(40) 1.5s forwards;
  }

  @keyframes typewriter {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
  }




  #animated-logo {
    animation: flipAndBounce 2s infinite;
    transform-origin: center;
  }
  
  @keyframes flipAndBounce {
    0% {
      transform: scale(1) rotateY(0);
    }
    50% {
      transform: scale(1.1) rotateY(180deg);
    }
    75% {
      transform: scale(0.95) rotateY(180deg);
    }
    100% {
      transform: scale(1) rotateY(360deg);
    }
  }
  
  /* Optional: Only animate on hover */
  #animated-logo {
    transition: transform 0.3s ease;
  }
  
  #animated-logo:hover {
    animation: flipAndBounce 2s ease;
  }

  /* Add these styles */
  .typing-text {
    overflow: hidden;
    white-space: normal;
    border-right: 2px solid #000;
    width: 0;
    animation: typing 6s steps(150) forwards,
               blink-caret 0.75s step-end infinite;
    max-width: 700px;
  }

  @keyframes typing {
    from { 
      width: 0;
      border-right-color: #000;
    }
    to { 
      width: 100%;
      border-right-color: transparent;
    }
  }

  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #000 }
  }

  .typing-text span {
    color: inherit;
    display: inline;
  }

  /* Add these animations for the experience section */
  .law-video-thumb {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s ease;
  }

  .law-video-thumb.reset {
    opacity: 0;
    transform: translateX(-50px);
  }

  .law-video-thumb.animate {
    opacity: 1;
    transform: translateX(0);
  }

  .law-experiences-data-wrap {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
  }

  .law-experiences-data-wrap.reset {
    opacity: 0;
    transform: translateY(30px);
  }

  .law-experiences-data-wrap.animate {
    opacity: 1;
    transform: translateY(0);
  }

  .law-experiences-data-item {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .law-experiences-data-item.hidden {
    opacity: 0;
    transform: translateX(100px);
  }

  /* Staggered delays */
  .law-experiences-data-item:nth-child(1) {
    transition-delay: 0.1s;
  }

  .law-experiences-data-item:nth-child(2) {
    transition-delay: 0.3s;
  }

  /* Add these new styles */
  .law-about-content h2,
  .law-about-content p {
    opacity: 0;
    transform: translateY(20px);
  }

  .law-about-content.animate h2 {
    animation: fadeInUp 0.8s ease forwards,
               typeWriter 2s steps(40) forwards;
  }

  .law-about-content.animate p {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
  }

  /* Force animation restart by removing animation when not in animate state */
  .law-about-content:not(.animate) h2,
  .law-about-content:not(.animate) p {
    animation: none;
    opacity: 0;
    transform: translateY(20px);
  }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes typeWriter {
    from {
      clip-path: inset(0 100% 0 0);
    }
    to {
      clip-path: inset(0 0 0 0);
    }
  }

  /* Add a blinking cursor effect to the heading */
  .law-about-content h2 {
    position: relative;
  }

  .law-about-content h2::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 70%;
    background: #132238;
    animation: blink 0.7s infinite;
  }

  @keyframes blink {
    50% {
      opacity: 0;
    }
  }

  /* Add these alongside your existing animations */
  #examinatio-registration .law-awards-item {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
  }

  #examinatio-registration .law-awards-item.animate {
    opacity: 1;
    transform: translateX(0);
  }

  /* Add different directions for left and right awards */
  #examinatio-registration .law-awards-item.left-awards {
    transform: translateX(-50px);
  }

  #examinatio-registration .law-awards-item.right-awards {
    transform: translateX(50px);
  }

  #examinatio-registration .law-awards-item.animate {
    transform: translateX(0);
  }

  /* Add these styles for smooth transitions */
  .law-testimonial-slider-item {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .law-testimonial-slider-item.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
  }

  /* Improve button styles */
  .law-testimonial-slider__control-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
  }

  .button {
    background: none;
    border: 1px solid #132238;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
  }

  .button:hover {
    background-color: #132238;
    color: white;
  }

  /* Progress indicator */
  .law-testimonial-slider {
    position: relative;
  }

  .law-testimonial-slider::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #eee;
  }

  .law-testimonial-slider::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 0;
    height: 2px;
    background: #132238;
    z-index: 1;
    animation: progressBar 3s linear infinite;
  }

  @keyframes progressBar {
    0% {
      width: 0;
    }
    100% {
      width: 100%;
    }
  }

  .law-service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .law-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }