/* Custom CSS for OmniTech Solutions */

/* Root Variables */
:root {
  --indigo-600: #1D4ED8;
  --sky-500: #0EA5E9;
  --emerald-500: #10B981;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
}

/* Tailwind Layer Utilities */
@layer utilities {
  /* Card Styles */
  .card {
    @apply rounded-2xl transition-all duration-300 hover:transform hover:-translate-y-1 hover:shadow-2xl;
  }
  
  /* Chip Styles */
  .chip {
    @apply bg-sky-500/20 text-sky-300 px-4 py-2 rounded-full text-sm font-medium hover:bg-sky-500/30 transition-colors;
  }
  
  /* Badge Styles */
  .badge {
    @apply inline-flex items-center px-3 py-1 rounded-full text-xs font-medium;
  }
  
  /* Shadow Utilities */
  .shadow-soft {
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  }
  
  /* Gradient Backgrounds */
  .bg-gradient-primary {
    background: linear-gradient(135deg, var(--indigo-600) 0%, var(--sky-500) 55%, var(--emerald-500) 100%);
  }
  
  .bg-gradient-hero {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.8) 0%, rgba(14, 165, 233, 0.7) 55%, rgba(16, 185, 129, 0.8) 100%);
  }
  
  /* Text Gradients */
  .text-gradient {
    background: linear-gradient(135deg, var(--sky-400) 0%, var(--emerald-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  /* Hero Effects */
  .hero-gradient-veil {
    background: linear-gradient(135deg, 
      rgba(29, 78, 216, 0.35) 0%, 
      rgba(14, 165, 233, 0.25) 25%, 
      rgba(16, 185, 129, 0.35) 50%, 
      rgba(14, 165, 233, 0.25) 75%, 
      rgba(29, 78, 216, 0.35) 100%);
    background-size: 400% 400%;
    animation: gradientShift 14s ease-in-out infinite;
  }
  
  /* Parallax Container */
  .hero-parallax-container {
    will-change: transform;
  }
  
  .hero-background {
    will-change: transform;
  }
  
  /* Floating Particles */
  .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    filter: blur(2px);
    animation: float 8s ease-in-out infinite;
  }
  
  /* Typing Effect */
  .typing-text {
    overflow: hidden;
    border-right: 2px solid currentColor;
    white-space: nowrap;
    animation: typing 2.5s steps(40, end), blink 0.75s step-end infinite;
  }
  
  /* CTA Ripple Effect */
  .cta-ripple {
    position: relative;
    overflow: hidden;
  }
  
  .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
  }
  
  /* Tilt Hover Effect */
  .tilt-on-hover:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(3deg) scale(1.05);
    transition: transform 0.3s ease;
  }
  
  /* Scroll Progress */
  #scroll-progress {
    height: 2px;
  }
  
  #progress-bar {
    width: 0%;
    transition: width 0.3s ease;
  }
}

/* Custom Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

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

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes zoomOut {
  from {
    opacity: 0;
    transform: scale(1.2);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes flipInX {
  from {
    opacity: 0;
    transform: perspective(400px) rotateX(90deg);
  }
  to {
    opacity: 1;
    transform: perspective(400px) rotateX(0deg);
  }
}

@keyframes flipInY {
  from {
    opacity: 0;
    transform: perspective(400px) rotateY(90deg);
  }
  to {
    opacity: 1;
    transform: perspective(400px) rotateY(0deg);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-10px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(10px);
  }
}

@keyframes wobble {
  0% {
    transform: translateX(0%);
  }
  15% {
    transform: translateX(-25%) rotate(-5deg);
  }
  30% {
    transform: translateX(20%) rotate(3deg);
  }
  45% {
    transform: translateX(-15%) rotate(-3deg);
  }
  60% {
    transform: translateX(10%) rotate(2deg);
  }
  75% {
    transform: translateX(-5%) rotate(-1deg);
  }
  100% {
    transform: translateX(0%);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.1);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.1);
  }
  70% {
    transform: scale(1);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.6);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(14, 165, 233, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.8), 0 0 30px rgba(14, 165, 233, 0.4);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatDown {
  0% {
    opacity: 0;
    transform: translateY(-100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes wiggle {
  0%, 7% {
    transform: rotateZ(0);
  }
  15% {
    transform: rotateZ(-15deg);
  }
  20% {
    transform: rotateZ(10deg);
  }
  25% {
    transform: rotateZ(-10deg);
  }
  30% {
    transform: rotateZ(6deg);
  }
  35% {
    transform: rotateZ(-4deg);
  }
  40%, 100% {
    transform: rotateZ(0);
  }
}

@keyframes rubberBand {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scaleX(1.25) scaleY(0.75);
  }
  40% {
    transform: scaleX(0.75) scaleY(1.25);
  }
  50% {
    transform: scaleX(1.15) scaleY(0.85);
  }
  65% {
    transform: scaleX(0.95) scaleY(1.05);
  }
  75% {
    transform: scaleX(1.05) scaleY(0.95);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes tada {
  0% {
    transform: scale(1);
  }
  10%, 20% {
    transform: scale(0.9) rotate(-3deg);
  }
  30%, 50%, 70%, 90% {
    transform: scale(1.1) rotate(3deg);
  }
  40%, 60%, 80% {
    transform: scale(1.1) rotate(-3deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes jello {
  0%, 11.1%, 100% {
    transform: translate3d(0, 0, 0);
  }
  22.2% {
    transform: skewX(-12.5deg) skewY(-12.5deg);
  }
  33.3% {
    transform: skewX(6.25deg) skewY(6.25deg);
  }
  44.4% {
    transform: skewX(-3.125deg) skewY(-3.125deg);
  }
  55.5% {
    transform: skewX(1.5625deg) skewY(1.5625deg);
  }
  66.6% {
    transform: skewX(-0.78125deg) skewY(-0.78125deg);
  }
  77.7% {
    transform: skewX(0.390625deg) skewY(0.390625deg);
  }
  88.8% {
    transform: skewX(-0.1953125deg) skewY(-0.1953125deg);
  }
}

@keyframes lightSpeedIn {
  from {
    transform: translate3d(100%, 0, 0) skewX(-30deg);
    opacity: 0;
  }
  60% {
    transform: skewX(20deg);
    opacity: 1;
  }
  80% {
    transform: skewX(-5deg);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes lightSpeedOut {
  from {
    opacity: 1;
  }
  to {
    transform: translate3d(100%, 0, 0) skewX(30deg);
    opacity: 0;
  }
}

@keyframes rollIn {
  from {
    opacity: 0;
    transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes rollOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);
  }
}

@keyframes hinge {
  0% {
    animation-timing-function: ease-in-out;
  }
  20%, 60% {
    transform: rotate3d(0, 0, 1, 80deg);
    animation-timing-function: ease-in-out;
  }
  40%, 80% {
    transform: rotate3d(0, 0, 1, 60deg);
    animation-timing-function: ease-in-out;
    opacity: 1;
  }
  to {
    transform: translate3d(0, 700px, 0);
    opacity: 0;
  }
}

@keyframes jackInTheBox {
  from {
    opacity: 0;
    transform: scale(0.1) rotate(30deg);
    transform-origin: center bottom;
  }
  50% {
    transform: rotate(-10deg);
  }
  70% {
    transform: rotate(3deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes flash {
  0%, 50%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0;
  }
}

@keyframes swing {
  20% {
    transform: rotate3d(0, 0, 1, 15deg);
  }
  40% {
    transform: rotate3d(0, 0, 1, -10deg);
  }
  60% {
    transform: rotate3d(0, 0, 1, 5deg);
  }
  80% {
    transform: rotate3d(0, 0, 1, -5deg);
  }
  100% {
    transform: rotate3d(0, 0, 1, 0deg);
  }
}

@keyframes slideOutLeft {
  to {
    transform: translateX(-100%);
  }
}

@keyframes slideOutRight {
  to {
    transform: translateX(100%);
  }
}

@keyframes slideOutUp {
  to {
    transform: translateY(-100%);
  }
}

@keyframes slideOutDown {
  to {
    transform: translateY(100%);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes fadeOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-30px);
  }
}

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

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

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

/* Hero Gradient Veil Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Floating Particles Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-10px) translateX(-5px);
    opacity: 0.6;
  }
  75% {
    transform: translateY(-30px) translateX(15px);
    opacity: 0.8;
  }
}

/* Typing Effect Animation */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%, 50% {
    border-color: transparent;
  }
  51%, 100% {
    border-color: currentColor;
  }
}

/* Ripple Effect Animation */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Tilt Hover Effect */
@keyframes tilt {
  0% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: perspective(1000px) rotateX(2deg) rotateY(3deg);
  }
}

/* Animation Classes */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-slide-in-up {
  animation: slideInUp 0.6s ease-out;
}

.animate-slide-in-down {
  animation: slideInDown 0.6s ease-out;
}

.animate-zoom-in {
  animation: zoomIn 0.6s ease-out;
}

.animate-zoom-out {
  animation: zoomOut 0.6s ease-out;
}

.animate-rotate-in {
  animation: rotateIn 0.8s ease-out;
}

.animate-flip-in-x {
  animation: flipInX 0.8s ease-out;
}

.animate-flip-in-y {
  animation: flipInY 0.8s ease-out;
}

.animate-bounce-in {
  animation: bounceIn 0.8s ease-out;
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

.animate-wobble {
  animation: wobble 1s ease-in-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-heartbeat {
  animation: heartbeat 1.3s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

.animate-float-up {
  animation: floatUp 0.8s ease-out;
}

.animate-float-down {
  animation: floatDown 0.8s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out;
}

.animate-scale-out {
  animation: scaleOut 0.5s ease-out;
}

.animate-rotate {
  animation: rotate 2s linear infinite;
}

.animate-rotate-reverse {
  animation: rotateReverse 2s linear infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-wiggle {
  animation: wiggle 1s ease-in-out;
}

.animate-rubber-band {
  animation: rubberBand 1s ease-in-out;
}

.animate-tada {
  animation: tada 1s ease-in-out;
}

.animate-jello {
  animation: jello 1s ease-in-out;
}

.animate-light-speed-in {
  animation: lightSpeedIn 1s ease-out;
}

.animate-light-speed-out {
  animation: lightSpeedOut 1s ease-out;
}

.animate-roll-in {
  animation: rollIn 1s ease-out;
}

.animate-roll-out {
  animation: rollOut 1s ease-out;
}

.animate-hinge {
  animation: hinge 2s ease-in-out;
}

.animate-jack-in-the-box {
  animation: jackInTheBox 1s ease-out;
}

.animate-flash {
  animation: flash 1s ease-in-out;
}

.animate-swing {
  animation: swing 1s ease-in-out;
}

.animate-slide-out-left {
  animation: slideOutLeft 0.5s ease-in;
}

.animate-slide-out-right {
  animation: slideOutRight 0.5s ease-in;
}

.animate-slide-out-up {
  animation: slideOutUp 0.5s ease-in;
}

.animate-slide-out-down {
  animation: slideOutDown 0.5s ease-in;
}

.animate-fade-out {
  animation: fadeOut 0.5s ease-in;
}

.animate-fade-out-up {
  animation: fadeOutUp 0.5s ease-in;
}

.animate-fade-out-down {
  animation: fadeOutDown 0.5s ease-in;
}

.animate-fade-out-left {
  animation: fadeOutLeft 0.5s ease-in;
}

.animate-fade-out-right {
  animation: fadeOutRight 0.5s ease-in;
}

/* Hover Animation Classes - Simplified */
.hover-scale:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

/* Staggered Animation Classes */
.animate-stagger-1 {
  animation-delay: 0.1s;
}

.animate-stagger-2 {
  animation-delay: 0.2s;
}

.animate-stagger-3 {
  animation-delay: 0.3s;
}

.animate-stagger-4 {
  animation-delay: 0.4s;
}

.animate-stagger-5 {
  animation-delay: 0.5s;
}

.animate-stagger-6 {
  animation-delay: 0.6s;
}

.animate-stagger-7 {
  animation-delay: 0.7s;
}

.animate-stagger-8 {
  animation-delay: 0.8s;
}

/* Infinite Animation Classes - Minimal use only */
.animate-spin-infinite {
  animation: spin 2s linear infinite;
}

/* Loading Animation Classes */
.animate-loading-dots::after {
  content: '';
  animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
  0%, 20% {
    content: '';
  }
  40% {
    content: '.';
  }
  60% {
    content: '..';
  }
  80%, 100% {
    content: '...';
  }
}

.animate-loading-spinner {
  animation: spin 1s linear infinite;
}

.animate-loading-pulse {
  animation: pulse 1s ease-in-out infinite;
}

/* Text Animation Classes */
.animate-text-reveal {
  animation: textReveal 1s ease-out;
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-text-slide {
  animation: textSlide 0.8s ease-out;
}

@keyframes textSlide {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-text-bounce {
  animation: textBounce 0.8s ease-out;
}

@keyframes textBounce {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  50% {
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Animation Classes */
.animate-card-flip {
  animation: cardFlip 0.6s ease-in-out;
}

@keyframes cardFlip {
  0% {
    transform: perspective(1000px) rotateY(0deg);
  }
  50% {
    transform: perspective(1000px) rotateY(90deg);
  }
  100% {
    transform: perspective(1000px) rotateY(0deg);
  }
}

.animate-card-reveal {
  animation: cardReveal 0.8s ease-out;
}

@keyframes cardReveal {
  0% {
    opacity: 0;
    transform: scale(0.8) rotateY(180deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
  }
}

.animate-card-slide-up {
  animation: cardSlideUp 0.6s ease-out;
}

@keyframes cardSlideUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button Animation Classes */
.animate-button-press {
  animation: buttonPress 0.2s ease-out;
}

@keyframes buttonPress {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

.animate-button-glow {
  animation: buttonGlow 2s ease-in-out infinite;
}

@keyframes buttonGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(14, 165, 233, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.8);
  }
}

/* Form Animation Classes */
.animate-input-focus {
  animation: inputFocus 0.3s ease-out;
}

@keyframes inputFocus {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.02);
  }
}

.animate-input-error {
  animation: inputError 0.5s ease-in-out;
}

@keyframes inputError {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.animate-input-success {
  animation: inputSuccess 0.6s ease-out;
}

@keyframes inputSuccess {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Intersection Observer Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Carousel Styles */
.carousel-container {
  position: relative;
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-dot {
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background-color: var(--sky-500);
  transform: scale(1.2);
}

/* Counter Animation */
.counter {
  transition: all 0.3s ease;
}

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

::-webkit-scrollbar-track {
  background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
  background: var(--slate-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--slate-500);
}

/* Focus Styles for Accessibility */
button:focus,
a:focus {
  outline: 2px solid var(--sky-500);
  outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .animate-pulse,
  .animate-glow,
  .animate-pulse-infinite,
  .animate-glow-infinite,
  .animate-rotate-infinite,
  .animate-spin-infinite,
  .animate-bounce-infinite,
  .animate-wiggle-infinite,
  .hero-gradient-veil,
  .particle,
  .typing-text {
    animation: none !important;
  }
  
  .tilt-on-hover:hover,
  .hover-scale:hover,
  .hover-lift:hover,
  .hover-tilt:hover {
    transform: none !important;
  }
  
  .hero-parallax-container,
  .hero-background {
    will-change: auto !important;
  }
  
  /* Disable conflicting animations */
  [class*="animate-"] {
    animation: none !important;
  }
  
  [class*="hover-"]:hover {
    animation: none !important;
  }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .card {
    @apply hover:transform-none;
  }
  
  .carousel-slide {
    padding: 0 1rem;
  }
}

/* Print Styles */
@media print {
  .fixed {
    position: static !important;
  }
  
  .bg-gradient-primary,
  .bg-gradient-hero {
    background: var(--slate-900) !important;
  }
  
  .text-gradient {
    color: var(--slate-900) !important;
    -webkit-text-fill-color: var(--slate-900) !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--slate-300);
  }
  
  .chip {
    border: 1px solid var(--sky-500);
  }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
  /* Already using dark theme by default */
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Error States */
.error {
  border-color: #EF4444;
  background-color: #FEF2F2;
}

/* Success States */
.success {
  border-color: var(--emerald-500);
  background-color: #F0FDF4;
}

/* Custom Button Styles */
.btn-primary {
  @apply bg-gradient-to-r from-indigo-600 to-sky-500 text-white px-6 py-3 rounded-xl font-semibold hover:shadow-lg hover:scale-105 transition-all duration-300;
}

.btn-secondary {
  @apply border-2 border-white text-white px-6 py-3 rounded-xl font-semibold hover:bg-white hover:text-slate-900 transition-all duration-300;
}

.btn-outline {
  @apply border-2 border-slate-300 text-slate-700 px-6 py-3 rounded-xl font-semibold hover:bg-slate-900 hover:text-white hover:border-slate-900 transition-all duration-300;
}

/* Custom Input Styles */
.input {
  @apply w-full px-4 py-3 border border-slate-300 rounded-xl focus:ring-2 focus:ring-sky-500 focus:border-sky-500 transition-all duration-300;
}

/* Custom Card Variants */
.card-elevated {
  @apply shadow-xl hover:shadow-2xl;
}

.card-flat {
  @apply shadow-none hover:shadow-lg;
}

.card-bordered {
  @apply border border-slate-200 hover:border-sky-300;
}

/* Utility Classes */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Container Queries (if supported) */
@container (min-width: 640px) {
  .container-responsive {
    @apply grid-cols-2;
  }
}

@container (min-width: 1024px) {
  .container-responsive {
    @apply grid-cols-4;
  }
}

/* Reveal Animation */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{transition:none;transform:none;opacity:1}}

/* AOS Fallback - Ensure elements are visible if AOS fails */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* AOS Animation Override */
[data-aos].aos-animate {
    opacity: 1 !important;
    transform: none !important;
}

/* CSS-only fallback animations for when AOS fails */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* CSS fallback for AOS animations */
[data-aos="fade-up"] {
    animation: fadeInUp 0.7s ease-out forwards;
}

[data-aos="fade-left"] {
    animation: fadeInLeft 0.7s ease-out forwards;
}

[data-aos="fade-right"] {
    animation: fadeInRight 0.7s ease-out forwards;
}

/* Ensure animations work even without AOS */
@media (prefers-reduced-motion: no-preference) {
    [data-aos] {
        opacity: 0;
        animation-fill-mode: forwards;
    }
}
