/* CSS Variables - Design System */
:root {
  --primary: hsl(221, 83%, 25%);
  --primary-foreground: hsl(210, 40%, 98%);
  --secondary: hsl(214, 32%, 91%);
  --secondary-foreground: hsl(221, 83%, 25%);
  --accent: hsl(174, 72%, 45%);
  --accent-foreground: hsl(0, 0%, 100%);
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(220, 25%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 25%, 15%);
  --muted: hsl(214, 32%, 95%);
  --muted-foreground: hsl(220, 15%, 45%);
  --border: hsl(214, 32%, 88%);
  --input: hsl(214, 32%, 88%);
  --destructive: hsl(0, 84.2%, 60.2%);
  --destructive-foreground: hsl(210, 40%, 98%);
  --radius: 0.75rem;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background-color: #ffffff; /* Fallback */
  background-color: var(--background);
  color: #2d3748; /* Fallback */
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 2rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: #1e3a8a; /* Fallback */
  background-color: var(--primary);
  color: #f8fafc; /* Fallback */
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: hsl(221, 83%, 20%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-accent {
  background-color: #0891b2; /* Fallback */
  background-color: var(--accent);
  color: #ffffff; /* Fallback */
  color: var(--accent-foreground);
}

.btn-accent:hover {
  background-color: hsl(174, 72%, 40%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-white {
  background-color: #f8fafc; /* Fallback */
  color: #1e3a8a;; /* Fallback */
}

.btn-white:hover {
  background-color: hsl(204, 9%, 90%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  font-size: 1.25rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-img {
  display: block;
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}

.logo-img-secondary {
  height: 2.125rem;
}

.footer-section .logo-title {
    color: #fff;
}

.logo-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-nav {
  align-items: center;
  gap: 2rem;
}

.nav-links.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .nav-links.desktop-nav {
    display: flex;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 2rem;
  }

  .logo-img-secondary {
    height: 1.75rem;
  }
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 1.25rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-link:last-of-type {
  border-bottom: none;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    hsla(221, 83%, 25%, 0.9) 0%,
    hsla(221, 83%, 25%, 0.8) 50%,
    hsla(221, 83%, 25%, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 8rem 0;
  text-align: center;
  width: 100%;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: white;
  font-size: 0.875rem;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-accent {
  color: var(--accent);
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.5rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 600px;
  margin: 3rem auto 0;
  padding-top: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-bordered {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.hero-wave {
  position: absolute;
  bottom: -7px;
  left: -7px;
  right: 0;
  z-index: 10;
}

.hero-wave svg {
  width: 100%;
  height: auto;
}

/* Features Section */
.features {
  padding: 6rem 0;
  background: linear-gradient(to bottom, var(--background), var(--muted));
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.features-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.main-feature {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .main-feature:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (min-width: 1024px) {
  .main-feature:first-child {
    grid-column: span 1;
  }
}

.feature-image {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.feature-description {
  color: var(--muted-foreground);
  line-height: 1.6;
  flex-grow: 1;
}

/* Vision Mission Section */
.vision-mission {
  padding: 6rem 0;
}

.vision-mission-content {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .vision-mission-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vision-mission-item {
  background-color: var(--card);
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.vm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

.vm-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.vm-description {
  color: var(--muted-foreground);
  line-height: 1.8;
  font-size: 1.125rem;
  text-align: left;
}

.vm-list {
  text-align: left;
  color: var(--muted-foreground);
  line-height: 1.8;
  font-size: 1.125rem;
}

.vm-list li {
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  position: relative;
}

/* Footer */
.footer {
  background-color: var(--foreground);
  color: var(--background);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-item i {
  width: 1rem;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.social-link:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Maps Page Styles */
.maps-page {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.maps-header {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  color: var(--foreground);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 0.2s ease;
  font-weight: 500;
}

.back-btn:hover {
  background-color: var(--muted);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-title i {
  color: var(--primary);
}

.header-title h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.maps-container {
  display: flex;
  height: calc(100vh - 4rem);
}

.maps-sidebar {
  width: 20rem;
  background-color: var(--card);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(34, 80, 149, 0.1);
}

.layers-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.layer-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.layer-item:hover {
  background-color: var(--muted);
}

.layer-checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}

.layer-name {
  font-size: 0.875rem;
  color: var(--foreground);
}

.legend-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legend-color {
  width: 1.5rem;
  height: 0.75rem;
  border-radius: 0.25rem;
}

.legend-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.maps-main {
  flex: 1;
  position: relative;
  background-color: var(--muted);
}

.map-container {
  position: absolute;
  inset: 0;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--muted);
}

.map-placeholder-content {
  text-align: center;
  max-width: 400px;
  padding: 2rem;
}

.map-placeholder-icon {
  font-size: 6rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.map-placeholder-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.map-placeholder-content p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.map-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.map-control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-control-btn:hover {
  background-color: var(--muted);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.coordinates-display {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.coordinates-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.coordinates-value {
  font-family: monospace;
  color: var(--foreground);
  font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.fade-in.hidden {
  opacity: 0;
  transform: translateY(30px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .maps-sidebar {
    width: 18rem;
  }
}

@media (max-width: 768px) {
  .maps-sidebar {
    position: absolute;
    left: -20rem;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: left 0.3s ease;
  }

  .maps-sidebar.active {
    left: 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-stats {
    gap: 1rem;
  }

  .features {
    padding: 4rem 0;
  }

  .vision-mission {
    padding: 4rem 0;
  }

  .vision-mission-item {
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .hero-content {
    padding: 6rem 0;
  }

  .hero-inner {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}
