@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: #f4fbf8;
  color: #1e293b;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 16px 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #0077b6;
  font-size: 1.3rem;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #2e7d32;
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #e0f7fa, #e8f5e9);
  animation: fadeIn 1s ease;
}

.banner {
  display: block;
  width: 260px;
  height: auto;
  margin: 0 auto 20px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.6rem;
  color: #0077b6;
  font-weight: 700;
}

.hero p {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #444;
}

.hero button {
  margin-top: 25px;
  padding: 14px 32px;
  background: #2e7d32;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(46,125,50,0.35);
}

/* Sections */
.section {
  padding: 60px 8%;
  animation: fadeIn 0.8s ease;
}

.section h2 {
  font-family: 'Poppins', sans-serif;
  color: #0077b6;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  max-width: 650px;
}

input, textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  font-size: 1rem;
}

button {
  padding: 12px 22px;
  background: #0077b6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

button:hover {
  background: #005f8d;
}

.result-box {
  margin-top: 15px;
  padding: 15px;
  background: #f1f8f4;
  border-radius: 10px;
  min-height: 30px;
}

.disclaimer {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #888;
}

/* Tips Grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.tip-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform 0.2s ease;
}

.tip-card:hover {
  transform: translateY(-5px);
}

/* Emergency */
.emergency-section {
  background: #fff5f5;
  border-radius: 20px;
}

.emergency-btn {
  display: inline-block;
  background: #d32f2f;
  color: white;
  text-decoration: none;
  padding: 16px 34px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(211,47,47,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(211,47,47,0); }
  100% { box-shadow: 0 0 0 0 rgba(211,47,47,0); }
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.dash-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.dash-card h3 {
  color: #0077b6;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
}