@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;500;700&display=swap");

body {
  font-family: "Inter", sans-serif;
  background-color: #050505;
  color: #ffffff;
  margin: 0;
  padding: 0;
}

.text-gray-400 {
  color: #d1d5db !important;
}
.text-gray-500 {
  color: #9ca3af !important;
}
.text-\[\#D3D3D3\] {
  color: #f3f4f6 !important;
}
.text-\[\#888\] {
  color: #9ca3af !important;
}

/* Common Card Styling */
.card {
  background-color: #1a1a1a;
  border: 1px solid #333333;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: white;
  transform: translateY(-5px);
}

/* Animations */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes neonPulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 12px #3b82f6;
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 4px #3b82f6;
  }
}

.hero-title {
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

/* Hero text sizing - Original baseline with proper scaling */
.hero-massive {
  font-size: 2.25rem; /* 4xl - original baseline */
}

@media (min-width: 640px) {
  .hero-massive {
    font-size: 3rem; /* 5xl */
  }
}

@media (min-width: 768px) {
  .hero-massive {
    font-size: 4.5rem; /* 7xl */
  }
}

@media (min-width: 1024px) {
  .hero-massive {
    font-size: 6rem; /* 8xl */
  }
}

/* Hero subtext sizing - Original baseline */
.hero-subtext {
  font-size: 1rem; /* base */
}

@media (min-width: 640px) {
  .hero-subtext {
    font-size: 1.125rem; /* lg */
  }
}

@media (min-width: 768px) {
  .hero-subtext {
    font-size: 1.25rem; /* xl */
  }
}

@media (min-width: 1024px) {
  .hero-subtext {
    font-size: 1.5rem; /* 2xl */
  }
}

/* Enhanced entrance animations */
@keyframes heroFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fade-in {
  animation: heroFadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.animate-fade-in-delay {
  animation: heroFadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  opacity: 0;
}

/* Gradient text support */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

.text-transparent {
  -webkit-text-fill-color: transparent;
}

/* ---- Professional UI Enhancements ---- */

/* Emergency Alert Banner */
.emergency-alert-banner {
  background: linear-gradient(90deg, #dc2626 0%, #991b1b 100%);
  color: white;
  padding: 12px 20px;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.alert-pulse-icon {
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  animation: miniPulse 1s infinite;
}

@keyframes miniPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Status Badges */
.status-badge {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-safe {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.status-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.status-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Premium Language Switcher */
.lang-switcher-container {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 2px;
}

.lang-btn {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: rgba(255, 255, 255, 0.5);
  border: none;
  background: transparent;
}

.lang-btn.active {
  background: white;
  color: black;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.lang-btn:hover:not(.active) {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

/* Helpline Cards */
.helpline-card {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 24px;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.helpline-card:hover {
  border-color: #ef4444;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.1);
  transform: translateY(-5px);
}

.call-btn {
  background: #ef4444;
  color: #ffffff;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s;
}

.call-btn:hover {
  background: #dc2626;
  color: #ffffff;
}

/* Glass UI Elements */
.glass-panel {
  background: rgba(
    30,
    30,
    40,
    0.4
  ); /* Darker, more opaque background for better contrast */
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.6);
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 1.5rem;
}

/* Fix for icons and visibility */
[data-feather] {
  stroke-width: 2.2;
  filter: drop-shadow(0 0 4px currentColor);
}

/* Mobile Responsive Utility */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .emergency-alert-banner {
    font-size: 0.85rem;
    padding: 10px;
  }
}
