/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  background: #f9fafb;
  color: #333;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  transition: padding-top 0.3s ease;
}

/* ===== Navbar ===== */
.navbar {
  background: #ffffff;
  color: #161718;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 70px;
  padding: 0 32px;
}

body.scrolled .navbar {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.logo {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #161718;
  text-decoration: none;
  line-height: 70px;
}

nav ul {
  list-style: none;
  display: flex;

}

nav a,
.nav-btn-link,
.nav-btn {
  display: inline-block;
  padding: 12px 20px;
  background: #ffffff;
  color: #161718;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, box-shadow 0.3s, border-radius 0.3s, color 0.3s;
  border: none;
  outline: none;
  line-height: normal;
}

nav a:hover,
.nav-btn-link:hover,
.nav-btn:hover {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
  border-radius: 16px;
}

/* ===== Hamburger ===== */
.hamburger {
  display: none;
  cursor: pointer;
}

/* ===== Layout Wrapper ===== */
.wrapper {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 70px);
}

/* ===== Search Box ===== */
.search-box {
  flex: 1;
  display: flex;
  max-width: 400px;
}

.search-box input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  outline: none;
  font-size: 14px;
}

.search-box button {
  padding: 12px 16px;
  border: none;
  background: #3b82f6;
  /* Bright blue accent */
  color: white;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 600;
}

.search-box button:hover {
  background: #2563eb;
}

/* ===== Buttons ===== */
.btn,
.btn-link {
  display: inline-block;
  padding: 12px 20px;
  background: #3b82f6;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s ease;
}

.btn:hover,
.btn-link:hover {
  background: #2563eb;
}

.btn-link {
  padding: 10px 16px;
  font-size: 14px;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 80px 32px;
  background: white;
}

.hero h2 {
  font-size: 40px;
  margin-bottom: 16px;
  color: #1e3a8a;
}

.hero p {
  font-size: 18px;
  margin-bottom: 24px;
  color: #555;
}

/* ===== Sections ===== */
.section {
  padding: 48px 32px;
  text-align: center;
}

.section-title {
  font-size: 32px;
  color: #1e3a8a;
  margin-bottom: 32px;
}

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h4 {
  color: #1e3a8a;
  margin-bottom: 16px;
}

/* ===== Testimonial ===== */
.testimonial-section {
  background: #f9fafb;
  padding: 48px 32px;
}

.testimonial {
  font-size: 18px;
  font-style: italic;
  max-width: 700px;
  margin: 24px auto;
  color: #555;
}

.author {
  font-weight: bold;
  color: #1e3a8a;
  margin-top: 16px;
}

/* ===== CTA ===== */
.cta {
  background: #1e3a8a;
  color: white;
  text-align: center;
  padding: 64px 32px;
}

.cta h2 {
  font-size: 40px;
  margin-bottom: 24px;
}

/* ===== Footer ===== */
.footer {
  background: #1f2937;
  color: #bbb;
  text-align: center;
  padding: 32px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

.footer-links a {
  color: #3b82f6;
  margin: 0 16px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ===== Responsive Styling ===== */
@media (max-width: 1024px) {
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
  }

  body {
    padding-top: 50px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1e3a8a;
    text-align: left;
    padding: 16px 25px 16px 25px;
    border-radius: 0 0 8px 8px;
    z-index: 101;
    transition: max-height 0.4s cubic-bezier(.4, 0, .2, 1), opacity 0.4s;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }

  .nav-links.active {
    display: block;
    max-height: 300px;
    opacity: 1;
  }

  .nav-links ul {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: left;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .nav-links ul li {
    flex: 1;
    text-align: left;
  }

  .nav-links ul li a {
    display: block;
    width: 100%;
    padding: 8px 0;
    background-color: #1e3a8a;
    color: white;
    font-weight: 600;
    text-align: left;
    border-radius: 8px;
    transition: background 0.3s, box-shadow 0.3s, border-radius 0.3s, color 0.3s;
  }

  nav a:hover,
  .nav-btn-link:hover,
  .nav-btn:hover {
    display: block;
    width: 100%;
    padding: 8px 0;
    background-color: #1e3a8a;
    color: white;
    font-weight: 600;
    text-align: left;
    border-radius: none;
    box-shadow: none;
    transition: none;
    cursor: pointer;
  }



  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    gap: 6px;
  }

  .hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #000000;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Hide all content except navbar when hamburger menu is active with fade animation */
  body.nav-open .hero,
  body.nav-open .section,
  body.nav-open .testimonial-section,
  body.nav-open .cta,
  body.nav-open .footer {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.4s cubic-bezier(.4, 0, .2, 1),
      visibility 0.4s cubic-bezier(.4, 0, .2, 1),
      transform 0.4s cubic-bezier(.4, 0, .2, 1);
  }

  body.nav-open .hero {
    padding-top: 130px !important;
    transition: padding-top 0.4s cubic-bezier(.4, 0, .2, 1);
  }

  .hero,
  .section,
  .testimonial-section,
  .cta,
  .footer {
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: margin-top 0.4s cubic-bezier(.4, 0, .2, 1),
      opacity 0.4s cubic-bezier(.4, 0, .2, 1),
      visibility 0.4s cubic-bezier(.4, 0, .2, 1),
      transform 0.4s cubic-bezier(.4, 0, .2, 1);
  }

  .search-box {
    display: none;
  }

  .footer-links a {
    font-size: 12px;
    white-space: nowrap;
  }
}