/* General Styles */
body {
  font-family: sans-serif;
  margin: 0;
  background-color: #f3f4f6;
}

/* Navbar */
.nav-bar {
  padding: 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
  background-color: rgba(30, 58, 138, 0.9); /* Semi-transparent dark blue */
  transition: background-color 0.3s ease;
}

.nav-bar.scrolled {
  background-color: #1e3a8a; /* Solid dark blue when scrolled */
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.logo-link {
  text-decoration: none;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin: 0;
  transition: color 0.3s ease;
}

.logo-link:hover .logo,
.logo-link:focus .logo {
  color: #93c5fd;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #93c5fd;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #1e3a8a;
    padding: 1rem;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links.active .nav-link {
    color: white; /* Ensure links are white in mobile menu */
    padding: 0.5rem;
  }

  .nav-links.active .nav-link:hover,
  .nav-links.active .nav-link:focus {
    color: #93c5fd;
  }
}

/* Hero Section */
.hero-section {
  padding: 8rem 1rem 4rem;
  background-color: #f3f4f6;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 1rem; /* Fixed negative margin */
}

/* Packages Section */
.packages-section {
  padding: 2rem 1rem;
  background-color: #f3f4f6;
}

.section-title {
  font-size: 1.875rem;
  font-weight: bold;
  text-align: center;
  color: #1e3a8a;
  margin-bottom: 0.25rem;
}

.section-subtitle {
  font-size: 1.25rem;
  text-align: center;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.section-description {
  font-size: 1rem;
  text-align: center;
  color: #4b5563;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .packages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .packages-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.package-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.package-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
}

.package-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.package-speed {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
}

.package-features {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.package-price {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.package-button {
  display: inline-block;
  background-color: #1e3a8a;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.package-button:hover,
.package-button:focus {
  background-color: #93c5fd;
}

/* Footer */
.footer {
  background-color: #1f2937; /* Consistent with contact.html */
  color: white;
  padding: 2rem 0;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 250px;
}

.footer-left {
  text-align: left;
}

.footer-left ul {
  list-style: none;
  padding-left: 0;
}

.footer-left ul li {
  margin-bottom: 0.5rem;
}

.footer-left a,
.footer-center a,
.footer-right a {
  color: white;
  text-decoration: none;
}

.footer-left a:hover,
.footer-center a:hover,
.footer-right a:hover,
.footer-left a:focus,
.footer-center a:focus,
.footer-right a:focus {
  text-decoration: underline;
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-text {
  margin: 0.5rem 0;
}

@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    align-items: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    text-align: center;
    margin: 1rem 0;
  }
}