@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes underlineExpand {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Hero animations */
.hero-fade-in {
  animation: slideInLeft 0.8s ease-out forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.hero-fade-in-delay {
  animation: slideInRight 0.8s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

/* Fade in animations */
.fade-in-up {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.fade-in-up.delay-1 {
  animation-delay: 0.15s;
}

.fade-in-up.delay-2 {
  animation-delay: 0.3s;
}

.fade-in-up.delay-3 {
  animation-delay: 0.45s;
}

.fade-in-up.delay-4 {
  animation-delay: 0.6s;
}

.fade-in-up.delay-5 {
  animation-delay: 0.75s;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Link animations */
a {
  transition: all 0.3s ease;
}

/* Button hover effects */
button, [role="button"] {
  transition: all 0.3s ease;
}

/* Mobile menu transitions */
#mobile-menu {
  transition: opacity 0.3s ease, max-height 0.3s ease;
  opacity: 1;
  max-height: 100vh;
  overflow: hidden;
}

#mobile-menu.hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}

/* Image hover zoom */
img {
  transition: transform 0.3s ease;
}

.group:hover img {
  transform: scale(1.02);
}

/* Card hover lift */
.group {
  transition: all 0.3s ease;
}

/* Gradient background animations */
body {
  background-attachment: fixed;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #0369a1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Smooth transitions for form elements */
input, textarea, select {
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  transform: translateY(-2px);
}

/* Decorative grain overlay */
.grain {
  position: relative;
  background-image: 
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' result='noise' /%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Premium feel for sections */
section {
  position: relative;
}

/* Text decoration hover */
a:not(.inline-block):not([role="button"]) {
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
}

/* Accessibility focus states */
*:focus-visible {
  outline: 2px solid #0369a1;
  outline-offset: 2px;
}

/* Prevent layout shift */
html {
  overflow-y: scroll;
}

