/* Wilvin Safaris Custom Styles */

/* Custom CSS Variables for consistent theming */
:root {
  --safari-green: #1B4332;
  --safari-gold: #F4A259;
  --safari-brown: #8B4513;
  --safari-cream: #FEF7E0;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

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

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

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Apply animations to elements */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

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

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

/* Enhanced hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Safari-themed gradient backgrounds */
.gradient-safari {
  background: linear-gradient(135deg, var(--safari-green) 0%, #2D5A3D 100%);
}

.gradient-sunset {
  background: linear-gradient(135deg, var(--safari-gold) 0%, #E85A4F 100%);
}

/* Custom button styles */
.btn-safari-primary {
  background-color: var(--safari-gold);
  color: var(--safari-green);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-safari-primary:hover {
  background-color: #E85A4F;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(244, 162, 89, 0.4);
}

.btn-safari-secondary {
  background-color: transparent;
  color: var(--safari-green);
  border: 2px solid var(--safari-green);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-safari-secondary:hover {
  background-color: var(--safari-green);
  color: white;
}

/* Gallery styles */
.gallery-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item img {
  transition: transform 0.3s ease;
}

/* Form styles */
.form-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--safari-gold);
  box-shadow: 0 0 0 3px rgba(244, 162, 89, 0.1);
}

/* Navigation enhancements */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: var(--safari-gold);
  transition: all 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Card hover effects */
.safari-card {
  transition: all 0.3s ease;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

/* Testimonial styles */
.testimonial {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: scale(1.02);
}

/* Price badge styles */
.price-badge {
  background: linear-gradient(135deg, var(--safari-gold) 0%, #E85A4F 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Hero section enhancements */
.hero-text {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Parallax effect for backgrounds */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* WhatsApp widget styles */
.whatsapp-widget {
  animation: bounce 2s infinite;
}

/* Mobile responsive enhancements */
@media (max-width: 768px) {
  .hero-text {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .safari-card {
    margin-bottom: 1rem;
  }
  
  .btn-safari-primary,
  .btn-safari-secondary {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black !important;
    page-break-after: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-safari-primary {
    border: 2px solid currentColor;
  }
  
  .safari-card {
    border: 2px solid var(--safari-green);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--safari-gold);
  outline-offset: 2px;
}

.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;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #E85A4F;
}

/* Selection styles */
::selection {
  background-color: var(--safari-gold);
  color: var(--safari-green);
}

::-moz-selection {
  background-color: var(--safari-gold);
  color: var(--safari-green);
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
}

.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy.loaded {
  opacity: 1;
}

/* Grid enhancements */
.safari-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Typography improvements */
.font-safari-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.font-safari-body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* Safari-themed patterns and textures */
.texture-pattern {
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(244, 162, 89, 0.1) 1px, transparent 0);
  background-size: 20px 20px;
}

/* Loading states */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  .safari-card {
    background-color: #2d3748;
    color: white;
  }
}