/* === HOME PAGE (FINAL CLEAN RESPONSIVE VERSION) === */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
.home-body {
  background: linear-gradient(135deg, #000814, #001d3d);
  color: #dce5f7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ✅ NAVBAR (uses same design as other pages) */
.navbar {
  width: 100%;
  background: rgba(15, 25, 45, 0.85);
  backdrop-filter: blur(15px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}
.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  color: #4da6ff;
  font-size: 1.8rem;
  font-weight: 700;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  color: #d6e6ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}
.nav-links a:hover {
  color: #4da6ff;
}
.menu-icon {
  display: none;
  font-size: 2rem;
  color: #4da6ff;
  cursor: pointer;
}
#menu-toggle {
  display: none;
}

/* ✅ MOBILE NAVBAR */
@media (max-width: 820px) {
  .menu-icon {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    width: 100%;
    right: 0;
    background: rgba(15, 25, 45, 0.97);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 0;
  }
  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }
}

/* ✅ HERO */
.hero {
  height: 85vh;
  background: url('https://images.unsplash.com/photo-1605902711622-cfb43c4437b5?auto=format&fit=crop&w=1600&q=80')
    center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 6rem;
  position: relative;
  margin-top: 80px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 10, 25, 0.95) 40%, rgba(0, 10, 25, 0.5) 70%, transparent);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.hero-content h1 {
  font-size: 2.8rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.15rem;
  color: #cfe6ff;
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
}
.cta-btn,
.learn-btn {
  border-radius: 10px;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  cursor: pointer;
  transition: 0.3s;
}
.cta-btn {
  background: linear-gradient(90deg, #007bff, #1e90ff);
  color: white;
}
.learn-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(77, 166, 255, 0.4);
  color: #9ecbff;
}

/* ✅ HERO MOBILE FIX */
@media (max-width: 850px) {
  .hero {
    padding: 1.5rem;
    text-align: center;
    justify-content: center;
    height: auto;
  }
  .hero::before {
    background: rgba(0, 10, 25, 0.85);
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.3;
  }
  .hero-content p {
    font-size: 1rem;
    line-height: 1.5;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .cta-btn,
  .learn-btn {
    width: 100%;
    font-size: 1rem;
  }
}

/* ✅ SECTION HEADINGS */
.awareness-header,
.section-title {
  text-align: center;
  color: #4da6ff;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 4rem 0 1rem;
}

/* ✅ INFO SECTION */
.info-container {
  max-width: 1300px;
  margin: auto;
  padding: 4rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}
.info-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
}
.info-card h2 {
  font-size: 1.6rem;
  color: #4da6ff;
  margin-bottom: 0.8rem;
}
.info-card p,
.info-card li {
  font-size: 1.05rem;
  color: #dbe9ff;
  line-height: 1.6;
}
.info-card ul,
.info-card li {
  list-style: none !important;
}

/* ✅ TABLE CENTER FIX */
.table-card table {
  width: 100%;
  max-width: 800px;
  margin: auto;
  border-collapse: collapse;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.table-card th,
.table-card td {
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.table-card th {
  color: #4da6ff;
}

/* ✅ INCIDENT GRID */
.section-title {
  text-align: center;
  color: #4da6ff;
  font-size: 2rem;
  margin-top: 2rem;
}
.incident-grid {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  padding: 0 2rem 3rem;
}
.incident-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.incident-card h3 {
  color: #74c0ff;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.incident-card p {
  font-size: 1rem;
  color: #dbe9ff;
  line-height: 1.6;
}
.incident-card .source {
  text-align: right;
  font-size: 0.9rem;
  color: #9ecbff;
}

/* ✅ FOOTER */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #0b1a2d;
  color: #9ecbff;
}

/* ✅ RESPONSIVE FIXES */
@media (max-width: 1100px) {
  .incident-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .incident-grid {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .info-container {
    padding: 2rem 1.2rem;
  }
}
