@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary-color: #14AEBB;
  --accent-color: #FA3B99;
  --accent-hover-color: #e13289;
  --light-bg: #FFF9F0;
  --white: #FFFFFF;
  --black: #121212;
  --button-hover: #0e7781;
  --blue: #4059A5;
  --blue-hover: #32488a;
  --red: #FF3B30;
  --red-hover: #d63128;
  --green: #34C759;
  --green-hover: #2fa84e;
  --gray: #9e9e9e;
}

/* Base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: var(--light-bg);
  color: #222;
}

/* Navbar Glassmorphism */
.navbar {
  position: sticky;
  top: 1rem; /* Slightly down from the top */
  z-index: 1000;
  width: 90%; /* Not full width */
  max-width: 1200px; /* Optional: cap the max width */
  margin: 1rem auto; /* Auto centers it horizontally */
  padding: 1.5rem 2rem;
  margin-top: 10px;
  background: rgba(64, 89, 165, 0.177);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.384);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 50px;
}

/* Navbar Container */
.navbar-container {
  max-width: 1280px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Section */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.504));
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

.nav-links a {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.nav-links a.active {
  color: var(--accent-color);
  font-weight: 600;
}

.nav-links a.active::after {
  width: 100%;
}


.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0%;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover {
  color: #ff0080;
  transform: scale(1.05);
}

.nav-links a:hover::after {
  width: 100%;
}




/*Hero Section*/

.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  top: -120px; /* adjust as needed */
}


.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25%; /* Adjust based on preference */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #FFF9F0 100%);
  z-index: 2;
  pointer-events: none;
}


.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.75);
}

.hero-text {
  position: absolute;
  bottom: 90px;
  left: 30px;
  width: 90%;
  color: #fff;
  font-size: 25px;
  line-height: 1.6;
  padding: 1.5rem;
  border-radius: 8px;
}

/*Map*/

/* Container styles */
.map-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

/* Map box */
#map {
  width: 100%;
  max-width: 1500px;
  height: 600px;
  border: 2px solid #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Metrics container */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(0.85);
  }
}



.metrics-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.operation-updates {
  font-size: 0.95rem;
  color: #555;
  text-align: left;
  margin: 0 10px -10px;
  font-style: italic;
  font-weight: 500;
}

.row {
  display: flex;
  gap: 1.5rem;
  justify-content: space-evenly;
}

.center-row {
  display: flex;
  gap: 1.5rem;
  justify-content: space-evenly;
}



.metric-card {
  background: linear-gradient(135deg, #0fbaba 0%, #23d7d7 52%, #18e0e0 100%);
  backdrop-filter: blur(25px);
  width: 500px;
  -webkit-backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.451);
  box-shadow:
    0 4px 12px rgba(15, 186, 186, 0.1),
    inset 0 0 12px rgba(255, 255, 255, 0.6);
  transform: scale(0.85);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s ease,
    background-color 0.35s ease;
  cursor: default;
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow, opacity;
  outline-offset: 4px;
  user-select: none;
}

.metric-card:hover,
.metric-card:focus-within {
  transform: scale(0.9) translateY(-6px);
  background-color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 15px 30px rgba(15, 186, 186, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.8);
  z-index: 3;
}

/* Hover and Tap */
.metric-card:hover,
.metric-card:active {
  transform: translateY(-10px) scale(1.06);
  box-shadow:
    0 25px 48px rgba(255, 255, 255, 0.35),
    inset 0 0 24px rgba(255, 255, 255, 0.95);
  border-color: #0aa1a1;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 2;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: -55%;
  left: -55%;
  width: 210%;
  height: 210%;
  background: linear-gradient(130deg, #0fbaba 0%, #23d7d7 52%, #0fbaba 100%);
  opacity: 0;
  transform: rotate(30deg);
  transition: opacity 0.5s ease, transform 0.7s ease;
  pointer-events: none;
  filter: blur(54px);
  z-index: 1;
  border-radius: inherit;
}

.metric-card:hover::before {
  opacity: 0.25;
  transform: rotate(42deg);
}

.metric-card h3 {
  position: relative;
  z-index: 3;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.9rem;
  letter-spacing: 0.07em;
  user-select: none;
  font-family: 'Poppins', sans-serif;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.metric-card p {
  position: relative;
  z-index: 3;
  text-align: center;
  font-size: 54px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.05em;
  user-select: text;
}

.metric-card i {
  font-size: 1.8rem;
  color: rgba(255, 255, 255);
  filter: blur(0.2px);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
  margin: 0;
  user-select: none;
  display: inline-flex;
  vertical-align: middle;
  transition: color 0.35s ease, filter 0.35s ease;
}

.metric-card:hover i,
.metric-card:focus i {
  color: rgba(255, 255, 255);
  filter: blur(0.2px);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

.operations-details {
  /* background-color: #fff0f5; light pink background */
  padding: 2rem;
  margin: 2rem auto;
  text-align: center;
}

.relief-header {
  font-size: 2.5rem;
  font-weight: 700;
  background-color: var(--accent-color, #fa3b99);
  border-radius: 80px;
  padding: 15px 30px;
  color: #ffffff;
  display: inline-block;
  margin-bottom: 1.5rem;
  margin-top: -2.5rem;
}

.relief-description {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
  color: #333;
  padding: 0 1rem;
}


/*Map Sort Options*/

.map-controls {
  margin-bottom: 1.2rem;
  margin-right: 1rem;
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333;
}

#regionFilter {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  background-color: #fff;
  transition: border-color 0.25s ease;
  cursor: pointer;
  appearance: none;
  outline-offset: 2px;
}

#regionFilter:focus {
  border-color: #14aebb;
  outline: none;
  box-shadow: 0 0 5px rgba(20, 174, 187, 0.4);
}


/*Footer*/

.footer {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--primary-color);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px 24px 0 0;
  margin-top: 5rem;
  text-align: center;
  transition: background 0.3s ease-in-out;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer p {
  font-size: 1rem;
  color: #eaeaea;
  letter-spacing: 0.6px;
  font-weight: 400;
}




/* Responsive (optional for better UX) */
@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
    margin-top: auto;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .nav-links a {
    display: block;
    width: 100%;
  }

  .metric-card{
    width: fit-content;
    padding: 15px;
  }

  .metric-card p, .metric-card h3, .metric-card i{
    font-size: 12px;
  }
}

/* Hamburger Button */
.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 425px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 0.5rem;
    background: rgba(64, 89, 165, 0.9);
    padding: 1rem 0;
    border-radius: 12px;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    margin: 0.5rem 0;
  }

  .nav-links.show {
    display: flex;
  }

  .navbar-container {
    flex-wrap: wrap;
  }
}

