/* Additional styles for SafetyPro Agency Website */

/* Enhanced animations and transitions */
@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 pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Enhanced hero section */
.hero-section {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/placeholder.svg?height=800&width=1200") center / cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-section > * {
  position: relative;
  z-index: 2;
}

/* Enhanced service cards */
.service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
}

.service-card .service-icon {
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  animation: pulse 2s infinite;
}

/* Enhanced navigation */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #ffd700;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* Enhanced buttons */
.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary::before,
.btn-secondary::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;
}

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

/* Contact form enhancements */
.contact-form input:focus,
.contact-form textarea:focus {
  transform: scale(1.02);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Modal enhancements */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

.modal-content {
  animation: fadeInUp 0.3s ease-out;
}

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #ffd700;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive enhancements */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .service-card {
    margin-bottom: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 3rem 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1.1rem;
  }
}

/* Accessibility improvements */
.focus-visible:focus {
  outline: 2px solid #ffd700;
  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;
}

/* Print styles */
@media print {
  .hero-section,
  nav,
  footer,
  .modal-backdrop {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .service-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    border-width: 3px;
  }

  .btn-secondary {
    border-width: 3px;
  }

  .service-card {
    border-width: 2px;
    border-color: #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;
  }
}

/* Dark mode specific enhancements */
@media (prefers-color-scheme: dark) {
  .hero-section {
    background: linear-gradient(135deg, #000000 0%, #2a2a2a 50%, #000000 100%);
  }

  .service-card {
    background-color: #1a1a1a;
    border-color: #333;
  }

  .service-card:hover {
    background-color: #2a2a2a;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
  }
}
