/* Custom Tailwind CSS configuration and styles */

/* Custom scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade in animation visible state */
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom dot background patterns */
.dot-background {
  background-image: radial-gradient(#D1D1D6 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Mobile menu animation states */
.mobile-menu-open {
  transform: translateY(0);
  opacity: 1;
}

/* Navigation hamburger animation */
.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hover animations for buttons */
.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 122, 255, 0.25), 0 10px 10px -5px rgba(0, 122, 255, 0.1);
}

.btn-secondary {
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 122, 255, 0.25), 0 10px 10px -5px rgba(0, 122, 255, 0.1);
}

/* Icon hover animations */
.icon-hover {
  transition: transform 0.3s ease;
}

.icon-hover:hover {
  transform: scale(1.1);
}

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

/* Custom focus states for accessibility */
.focus-ring:focus {
  outline: 2px solid #007AFF;
  outline-offset: 2px;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Text gradient effect */
.text-gradient {
  background: linear-gradient(135deg, #007AFF, #5AC8FA);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Loading animation for images */
.image-loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Custom backdrop blur for modern browsers */
.backdrop-blur-custom {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Enhanced navigation styling */
.nav-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.8);
}

/* Progress bar smooth animation */
.progress-smooth {
  transition: width 0.15s ease-out;
}

/* Stagger animation delays for About Me section */
.scroll-animate:nth-child(1) { transition-delay: 0ms; }
.scroll-animate:nth-child(2) { transition-delay: 150ms; }
.scroll-animate:nth-child(3) { transition-delay: 300ms; }
.scroll-animate:nth-child(4) { transition-delay: 450ms; }
.scroll-animate:nth-child(5) { transition-delay: 600ms; }

/* Hero section animation delays */
.hero-animate-1 { animation-delay: 0.2s; }
.hero-animate-2 { animation-delay: 0.4s; }
.hero-animate-3 { animation-delay: 0.6s; }
.hero-animate-4 { animation-delay: 0.8s; }
.hero-animate-5 { animation-delay: 1.0s; }

/* Professional color scheme utilities */
.text-professional-blue { color: #007AFF; }
.text-professional-blue-dark { color: #005ECB; }
.text-professional-blue-light { color: #4DA3FF; }
.text-professional-accent { color: #5AC8FA; }
.text-professional-gray { color: #6E6E73; }
.text-professional-gray-light { color: #8E8E93; }

.bg-professional-blue { background-color: #007AFF; }
.bg-professional-blue-dark { background-color: #005ECB; }
.bg-professional-blue-light { background-color: #4DA3FF; }
.bg-professional-accent { background-color: #5AC8FA; }
.bg-professional-background { background-color: #F8F9FA; }
.bg-professional-surface { background-color: #FFFFFF; }

.border-professional-blue { border-color: #007AFF; }
.border-professional-gray { border-color: #D1D1D6; }

/* Responsive utilities */
@media (max-width: 768px) {
  .mobile-center {
    text-align: center;
  }
  
  .mobile-full-width {
    width: 100%;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* Accessibility improvements */
@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;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .text-professional-gray {
    color: #000000;
  }
  
  .bg-professional-blue {
    background-color: #0000FF;
  }
}