/* Custom styles beyond Tailwind CSS */

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

/* Improved typography */
body {
  font-size: 16px;
  line-height: 1.5;
  color: #1f2937;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Animations for page transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

main {
  animation: fadeIn 0.5s ease-in-out;
}

/* Custom styling for blockquotes */
blockquote {
  position: relative;
}

blockquote::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  left: -0.5rem;
  top: -1rem;
  color: rgba(59, 130, 246, 0.2);
  font-family: Georgia, serif;
}

/* Helper classes for animations */
.hover-lift {
  transition: transform 0.3s ease-in-out;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* Custom styling for form elements */
input, textarea {
  transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Custom button hover effect */
.btn-hover-effect {
  position: relative;
  overflow: hidden;
}

.btn-hover-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: left 0.7s ease-in-out;
}

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

/* Timeline custom styles */
.timeline-dot::before {
  content: '';
  position: absolute;
  width: 1px;
  background-color: #e5e7eb;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -0.5px;
}

/* Prose styling for blog content */
.prose h2 {
  color: #1f2937;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul, .prose ol {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  font-style: italic;
  color: #4b5563;
  padding: 1rem 1.5rem;
  border-left: 4px solid #60a5fa;
  margin: 1.5rem 0;
  background-color: #f9fafb;
}

/* Map container styling */
#map {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

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

::-webkit-scrollbar-thumb {
  background: #c7d2fe;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #93c5fd;
}