* {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  background-color: #000000;
}

.container {
  max-width: 1280px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* Updated form validation styles for dark theme */
input.border-red-500,
textarea.border-red-500 {
  border-color: #ef4444 !important;
  border-width: 2px;
}

.text-red-500 {
  color: #ef4444 !important;
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}

iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.transition {
  transition: all 0.3s ease;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Added custom dark theme scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #dc2626;
}

/* Added card flip animation styles */
.feature-card {
  position: relative;
  min-height: 240px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
}

.card-front,
.card-back {
  transition: opacity 0.3s ease;
}

.card-back {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Added expandable case card styles */
.case-card {
  transition: all 0.4s ease;
}

.case-card.expanded {
  transform: scale(1.02);
}

.case-extra {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

/* Added glow effect for interactive elements */
.bg-red-600 {
  position: relative;
}

.bg-red-600:hover::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #dc2626, #ef4444, #dc2626);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.7;
  filter: blur(8px);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* Added table hover effects */
tbody tr {
  transition: all 0.2s ease;
}

tbody tr:hover {
  background-color: #1a1a1a !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* Added gradient text effect */
.text-gradient {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Added smooth parallax for images */
.relative img {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* Added loading animation for cards */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-shimmer {
  animation: shimmer 2s infinite;
  background: linear-gradient(to right, #1a1a1a 0%, #252525 20%, #1a1a1a 40%, #1a1a1a 100%);
  background-size: 1000px 100%;
}

/* Added mobile responsiveness improvements */
@media (max-width: 768px) {
  .feature-card {
    min-height: 200px;
  }

  table {
    font-size: 0.875rem;
  }

  .case-card {
    margin-bottom: 1rem;
  }
}

/* Added focus states for accessibility */
input:focus,
textarea:focus,
button:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* Added dark mode specific adjustments */
input[type="checkbox"]:checked {
  background-color: #dc2626;
  border-color: #dc2626;
}

/* Enhanced border colors for dark theme */
.border-gray-800 {
  transition: border-color 0.3s ease;
}

.border-gray-800:hover {
  border-color: rgba(220, 38, 38, 0.5);
}
