/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #2d3748;
  padding-top: 50px;
  background: linear-gradient(135deg, #e8e2ff 0%, #f7fafc 50%, #e6fffa 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Safe Exit Button */
.safe-exit {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #e53e3e;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(229, 62, 62, 0.3);
}

.safe-exit:hover {
  background: #c53030;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 1.8rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-links a:hover {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
}

/* Section Management */
.section {
  display: none;
  min-height: 100vh;
  padding-top: 80px;
}

.section.active {
  display: block;
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #4a5568;
  margin-bottom: 3rem;
  line-height: 1.6;
}

/* Emergency Section */
.emergency-section {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.emergency-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1.5rem;
  text-align: center;
}

.emergency-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.emergency-card {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.1);
  transition: all 0.3s ease;
}

.emergency-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

.emergency-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.emergency-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.emergency-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #8b5cf6;
  margin-bottom: 0.5rem;
}

.emergency-desc {
  font-size: 0.9rem;
  color: #718096;
}

/* CTA Section */
.cta-section {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
  background: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

/* Mission Section */
.mission-section {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.mission-content {
  background: rgba(255, 255, 255, 0.9);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.1);
  text-align: center;
}

.mission-content h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1.5rem;
}

.mission-content p {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.value-item {
  text-align: center;
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.value-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.value-item p {
  font-size: 0.95rem;
  color: #718096;
}

/* Chat Section */
.chat-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.chat-header {
  text-align: center;
  margin-bottom: 2rem;
}

.chat-header h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.chat-header p {
  color: #718096;
  font-size: 1.1rem;
}

.chat-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.1);
  max-height: 500px;
}

.chat-message {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.3s ease;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.bot-message .message-avatar {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

.user-message .message-avatar {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  order: 2;
}

.user-message {
  flex-direction: row-reverse;
}

.message-content {
  background: #f7fafc;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  max-width: 70%;
  word-wrap: break-word;
}

.user-message .message-content {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.chat-input-container {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

#chatInput {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  color: #2d3748;
}

#chatInput::placeholder {
  color: #a0aec0;
}

#sendButton {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

#sendButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.chat-disclaimer {
  background: rgba(255, 237, 213, 0.8);
  border: 1px solid rgba(237, 137, 54, 0.3);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
}

.chat-disclaimer p {
  font-size: 0.9rem;
  color: #744210;
  margin: 0;
}

/* Resources Section */
.resources-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.resources-header {
  text-align: center;
  margin-bottom: 3rem;
}

.resources-header h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.resources-header p {
  font-size: 1.1rem;
  color: #718096;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.resource-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.1);
  transition: all 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(139, 92, 246, 0.15);
}

.resource-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.resource-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
  text-align: center;
}

.resource-card p {
  color: #4a5568;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.6;
}

.resource-card ul {
  list-style: none;
  appearance: 0.5rem;
}

.resource-card li {
  padding: 0.5rem 0;
  color: #4a5568;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  font-size: 0.95rem;
}

.resource-card li:last-child {
  border-bottom: none;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .safe-exit {
    top: 10px;
    right: 10px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .section {
    padding-top: 120px;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .emergency-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .emergency-card {
    padding: 1.25rem;
  }

  .emergency-number {
    font-size: 1.3rem;
  }

  .cta-section {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }

  .mission-content {
    padding: 2rem;
  }

  .mission-content h2 {
    font-size: 1.6rem;
  }

  .values {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .chat-container {
    padding: 1rem;
  }

  .chat-header h2 {
    font-size: 1.6rem;
  }

  .chat-input-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  #sendButton {
    width: 100%;
  }

  .message-content {
    max-width: 85%;
  }

  .resources-container {
    padding: 1rem;
  }

  .resources-header h2 {
    font-size: 2rem;
  }

  .resources-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .resource-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .emergency-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .emergency-section h2 {
    font-size: 1.5rem;
  }

  .mission-content {
    padding: 1.5rem;
  }

  .mission-content h2 {
    font-size: 1.4rem;
  }

  .mission-content p {
    font-size: 1rem;
  }

  .chat-box {
    max-height: 400px;
  }

  .resources-header h2 {
    font-size: 1.6rem;
  }
}

.logo-img {
  height: 130px;
  width: auto;
  object-fit: 

body {
    padding-top: 80px; /* Change this value to match your navbar's height */
} 