/* Additional custom styles for Electric Warlock Tattoo */

/* Smooth scroll offset for fixed navigation */
html {
  scroll-padding-top: 80px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #d94f74;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background-color: #fce4e8;
  color: #6e1c30;
}

/* Print styles */
@media print {
  .nav-glass,
  .hero-particles,
  .gallery-overlay {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .btn-primary,
  .btn-secondary {
    background: #333 !important;
    color: #fff !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card {
    border: 2px solid #333;
  }
  
  .form-input {
    border: 2px solid #000;
  }
}

/* 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;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .particle {
    animation: none;
  }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-gradient {
    min-height: auto;
    padding: 60px 0;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-gradient h1 {
    font-size: 3.5rem;
  }
  
  .service-card {
    padding: 32px 24px;
  }
}

/* Large desktop optimizations */
@media (min-width: 1920px) {
  .max-w-7xl {
    max-width: 80rem;
  }
  
  .hero-gradient h1 {
    font-size: 5rem;
  }
}

/* Dark mode preference (if user's system has dark mode) */
@media (prefers-color-scheme: dark) {
  /* Keep the site as designed - no automatic dark mode override */
  /* The burgundy and blush palette works well in both light and dark contexts */
}

/* Touch device optimizations */
@media (hover: none) {
  .service-card:hover {
    transform: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .gallery-item:hover .gallery-overlay {
    opacity: 0.8;
  }
}

/* Loading state for images */
img {
  background: linear-gradient(90deg, #fefcf8 0%, #ffeef2 50%, #fefcf8 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

img[src] {
  animation: none;
  background: transparent;
}

/* Mobile menu backdrop */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}
