/* Animation Keyframes */
@keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(100%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-100%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes scaleIn {
    from {
      opacity: 0;
      transform: scale(0.9);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
  }
  
  @keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
      transform: translate3d(0, 0, 0);
    }
    40%, 43% {
      transform: translate3d(0, -10px, 0);
    }
    70% {
      transform: translate3d(0, -5px, 0);
    }
    90% {
      transform: translate3d(0, -2px, 0);
    }
  }
  
  @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  /* Animation Classes */
  .animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
  }
  
  .animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
  }
  
  .animate-slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
  }
  
  .animate-slide-in-left {
    animation: slideInLeft 0.5s ease-out forwards;
  }
  
  .animate-scale-in {
    animation: scaleIn 0.4s ease-out forwards;
  }
  
  .animate-pulse {
    animation: pulse 2s infinite;
  }
  
  .animate-bounce {
    animation: bounce 1s infinite;
  }
  
  .animate-spin {
    animation: spin 1s linear infinite;
  }
  
  /* Hover Animations */
  .hover-float {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .hover-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(28, 110, 140, 0.1);
  }
  
  .hover-scale {
    transition: transform 0.3s ease;
  }
  
  .hover-scale:hover {
    transform: scale(1.05);
  }
  
  .hover-rotate {
    transition: transform 0.3s ease;
  }
  
  .hover-rotate:hover {
    transform: rotate(5deg);
  }
  
  /* Stagger Animation for Lists */
  .stagger-animation > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
  }
  
  .stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
  .stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
  .stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
  .stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
  .stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
  .stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }
  
  /* Loading Animation */
  .loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--company-secondary);
    border-radius: 50%;
    border-top-color: var(--company-primary);
    animation: spin 1s ease-in-out infinite;
  }
  
  /* Intersection Observer Animation Classes */
  .fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .fade-in-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
  }
  
  .slide-in-left-on-scroll {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .slide-in-left-on-scroll.in-view {
    opacity: 1;
    transform: translateX(0);
  }
  
  .slide-in-right-on-scroll {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .slide-in-right-on-scroll.in-view {
    opacity: 1;
    transform: translateX(0);
  }
  
  .scale-in-on-scroll {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .scale-in-on-scroll.in-view {
    opacity: 1;
    transform: scale(1);
  }
  
  /* Button Animation Effects */
  .btn {
    position: relative;
    overflow: hidden;
  }
  
  .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent
    );
    transition: left 0.5s;
  }
  
  .btn:hover::before {
    left: 100%;
  }
  
  /* Card Animations */
  .card-entrance {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .card-entrance.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Text Animation Effects */
  .typewriter {
    overflow: hidden;
    border-right: 2px solid var(--company-primary);
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
  }
  
  @keyframes typing {
    from { width: 0; }
    to { width: 100%; }
  }
  
  @keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--company-primary); }
  }
  
  /* Smooth Reveal Animation */
  .reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
  }
  
  .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Parallax Effect */
  .parallax {
    transform: translateZ(0);
    will-change: transform;
  }
  
  /* Mobile-specific animations */
  @media (max-width: 768px) {
    .animate-fade-in-up,
    .fade-in-on-scroll,
    .slide-in-left-on-scroll,
    .slide-in-right-on-scroll,
    .scale-in-on-scroll {
      transform: none;
      opacity: 1;
    }
    
    .typewriter {
      border-right: none;
      animation: none;
      white-space: normal;
    }
  }
  
  /* Reduced motion preferences */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    /* Scroll-in effect for contact cards */
.contact-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.contact-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Icon hover animation */
.contact-icon {
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-icon.hovered {
  transform: scale(1.2) rotate(10deg);
  color: #3F51B5;
}

  }