/* General Styles */
:root {
  --primary: #002f6c;
  --secondary: #0066cc;
  --accent: #ff6600;
  --background: #f8f9fa;
  --text: #333;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

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

/* Header */
header {
  background:#1562c7;
  color: var(--white);
  padding: 0.5rem 0;
  box-shadow: var(--shadow);
}

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

header .logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

header .logo img {
  height: 45px;
  margin-right: 5px;
}

header .logo-text {
  text-align: left;
}

header h1 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

header .subheading {
  font-size: 0.9rem;
  margin: 0;
}

header .system-title {
  font-size: 0.8rem;
  margin-top: 5px;
}

header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap; /* Allow the menu to wrap on smaller screens */
  gap: 0.8rem;
}

header nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.1s;
}

header nav ul li a:hover {
  opacity: 0.5;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 47, 108, 0.8), rgba(0, 47, 108, 0.8)),
    url('images/3d-view-planet-earth.jpg') center/cover;
  color: var(--white);
  text-align: center;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.cta-buttons .btn {
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-buttons .btn.primary {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-buttons .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cta-buttons .btn.secondary {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.cta-buttons .btn.secondary:hover {
  background: var(--secondary);
  color: var(--white);
}

/* Key Modules Section */
.modules {
  background-color: #f7f9fc; /* Light background for the section */
 /* Adequate padding */
  text-align: center; /* Center the title */
}

.modules h2 {
  font-size: 2rem; /* Title size */
  margin-bottom: 30px; /* Space below the title */
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.module {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.module:hover {
  transform: translateY(-5px);
}

.module img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.module-content {
  padding: 1.5rem;
}

.module h3 {
  font-size: 1.1rem;
  margin: 10px 0 5px;
}

.module p {
  font-size: 0.85rem;
  margin: 0;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.feature:hover {
  transform: translateY(-5px);
}

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

.feature-content {
  padding: 1.5rem;
}

.feature h4 {
  font-size: 1.1rem;
  margin: 10px 0 5px;
}

.feature p {
  font-size: 0.85rem;
  margin: 0;
}

/* Subtitles */
.subtitle {
  font-size: 1.1rem;
  color: #666;
  margin: 0.5rem 0 2rem;
  text-align: center;
}

/* Departments Section */
.departments {
  background-color: #f0f0f0;
  padding: 40px 20px;
  text-align: center;
  margin-top: 50px;
}

.departments h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.department-slider {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
  padding: 0 10px;
}

.departments-container {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.5s ease;
}

.department {
  flex: 0 0 20%; /* Adjust width to fit more items on the screen */
  text-align: center;
  margin: 10px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.department:hover {
  transform: scale(1.05);
}

.department img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.department h3 {
  font-size: 1.1rem;
  padding: 10px;
  background-color: #007bff;
  color: white;
  margin: 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Arrow Buttons */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #333;
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 10;
  user-select: none;
}

.left-arrow {
  left: 0;
}

.right-arrow {
  right: 0;
}

/* Hide arrows on small screens for better mobile experience */
@media (max-width: 768px) {
  .arrow {
    display: none;
  }

  .department {
    flex: 0 0 50%; /* Make it 2 departments per row on small screens */
  }
}

/* Agencies Section */
.agencies {
  padding: 60px 0;
  text-align: center;
}

.agencies h3 {
  font-size: 36px;
  margin-bottom: 40px;
}

.agency-logos {
  display: flex;
  justify-content: space-between; /* Distributes logos evenly across the row */
  flex-wrap: nowrap; /* Prevents logos from wrapping to the next line */
}

.agency-logo {
  flex: 1; /* Makes each logo take equal space */
  max-width: 150px; /* Maximum width for each logo */
  height: auto; /* Maintains the aspect ratio */
  margin: 0 10px; /* Horizontal margin between logos */
  opacity: 0.8; /* Slightly transparent for a subtle effect */
  transition: opacity 0.3s ease; /* Smooth transition on hover */
}

.agency-logo:hover {
  opacity: 1; /* Fully opaque on hover */
}

/* Map Integration */
.map-integration {
  padding: 50px 0;
  background-color: #e6e6e6;
  text-align: center;
}

.map-integration h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.map-container {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Footer */
footer {
  background-color: #1562c7;
  color: var(--white);
  padding: 1rem 0;
  text-align: center;
}

footer .footer-links a {
  color: var(--white);
  margin: 0 1px;
  text-decoration: none;
}

/* Claims Section */
.claims-section {
  background: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.claims-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.claims-section .subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}

.feature {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.feature h4 {
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
  color: var(--primary);
}

.feature p {
  font-size: 0.95rem;
  color: #666;
}

.claims-links {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.claims-links .btn {
  min-width: 200px;
}

/* Copyright */
.copyright {
  text-align: center;
  margin-top: 30px;
  color: #666;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }
}
