/* Advanced CSS for Professional Umrah Packages Bradford Site */

/* Performance optimizations */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-display: swap;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

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

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

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

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

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

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

.fade-in-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.5s ease-out;
}

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

/* Advanced Hover Effects */
.hover-lift {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.hover-glow {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

.hover-glow::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 ease;
}

.hover-glow:hover::before {
  left: 100%;
}

/* Card Enhancements */
.card-hover {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-hover:hover {
  transform: translateY(-12px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12);
}

.card-hover:hover .card-content {
  transform: translateY(-4px);
}

/* Custom gradients */
.gradient-text {
  background: linear-gradient(135deg, #065f46, #047857);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Professional Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #059669, #047857);
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary::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.6s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #047857, #065f46);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(5, 150, 105, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: transparent;
  border: 2px solid #059669;
  color: #059669;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #059669;
  z-index: -1;
  transition: left 0.3s ease;
}

.btn-secondary:hover {
  color: white;
  transform: translateY(-2px);
}

.btn-secondary:hover::before {
  left: 0;
}

/* CTA Button Effects */
.cta-glow {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
  transition: all 0.4s ease;
  position: relative;
}

.cta-glow:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 40px rgba(251, 191, 36, 0.5);
}

.cta-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-glow:hover::after {
  opacity: 0.6;
}

/* Schema-optimized contact info */
.contact-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* SEO-friendly breadcrumbs */
.breadcrumb {
  font-size: 0.875rem;
  color: #6b7280;
}

.breadcrumb a {
  color: #059669;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #047857;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
  .hero-text {
    font-size: 2.5rem;
  }
  
  .container-mobile {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Performance optimizations */
img {
  loading: lazy;
}

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

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
a:focus,
button:focus {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

/* Custom loading animation */
.loading-spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #059669;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}