body {
  margin: 0;
  font-family: "Roboto", "Open Sans", "Helvetica Neue", sans-serif;
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  transition:
    width 0.5s,
    transform 0.5s,
    background-color 0.3s;
  overflow-y: hidden;
}

/* Custom loading screen */
/* Fullscreen Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00264f; /* Match your theme */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* Spinner Animation */
.spinner {
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid #ffffff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

/* Spin animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Fade-out effect for loader */
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

/* NAVBAR STYLES */

/* Navbar Logo */

.logo {
  display: flex;
  align-items: center; /* ✅ Middle aligns elements vertically */
  gap: 200px !important; /* ✅ Adds space between MHS and the text */
}

.logo a {
  font-size: 25px;
  font-weight: bold;
  line-height: 40px;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center; /* ✅ Ensures everything inside the link is aligned */
  transition: color 0.3s ease-in-out;
}

.logo a:hover {
  color: #00a3ff;
}

/* Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
  flex-grow: 0;
}

.nav-links li {
  display: inline-block;
}

.nav-links a {
  color: white;
  font-size: 1rem;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  transition:
    background 0.3s ease-in-out,
    color 0.3s ease-in-out;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hero-content .cta-btn {
  align-self: flex-start; /* Move button to the left */
  margin-left: 0; /* Remove any centering margin */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  flex-grow: 1; /* This will push everything else to the right */
  justify-content: flex-end;
}

#dark-mode-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  transition: color 0.3s ease;
  margin-left: 15px; /* Push it away from the nav-links */
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: 15px; /* Ensures spacing between dark mode and menu */
}

#dark-mode-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  transition: color 0.3s ease;
}

/* HERO SECTION */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    #00264f 10%,
    /* 80% opacity black */ #00264fb8 50%,
    /* 40% opacity black */ #00264fbc 100% /* Fully transparent */
  );
  z-index: 1;
}

footer {
  background: linear-gradient(to right, #00264f, #00152b);
  color: white;
  padding: 50px 0;
  text-align: center;
  font-size: 1rem;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}

.footer-container {
  border-radius: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: left;
}

.footer-container div {
  flex: 1;
  padding: 10px;
  min-width: 200px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #00a3ff;
}

.footer-socials a {
  color: white;
  font-size: 1.5rem;
  margin-right: 10px;
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: #00a3ff;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* sidebar */
.main-content {
  margin-left: 300px; /* Push content to the right to avoid overlap */
  padding: 20px;
  width: calc(100% - 250px); /* Ensure it doesn't overflow */
}

.sidebar h2 {
  text-align: center;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin: 20px 0;
}

.sidebar ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  display: block;
  padding: 10px;
  transition: background 0.3s;
}

.sidebar ul li a:hover {
  background: #004080;
  border-radius: 5px;
}

/* 🔹 LOGO */
.logo {
  display: flex;
  align-items: center;
  padding-left: 15px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.big-m {
  padding-top: 1px;
  font-size: 40px;
  font-weight: bold;
  margin-right: 8px;
  transform: scaleX(1.7) scaleY(2.1);
}

.text {
  display: flex;
  flex-direction: column;
  font-size: 16px;
}

.text p {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
}

/* 🔹 NAVIGATION */
.nav-center {
  flex: 1; /* Allow nav to expand */
  display: flex;
  justify-content: center; /* Center the links */
}

.nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin: 0 20px;
}

.nav-links a {
  color: white;
  font-weight: normal;
  text-decoration: none;
  transition: all 0.3s;
  text-transform: none;
}

/* 🔹 DARK MODE TOGGLE */
#dark-mode-toggle {
  background: none;
  border: none;
  font-size: 18px;
  color: white;
  cursor: pointer;
  margin-left: auto; /* Push to the right */
}

/* ✅ Mobile Sidebar */
#mobile-menu {
  position: fixed;
  top: 0;
  left: -250px; /* Start hidden */
  width: 250px;
  height: 100%;
  background: #00264f;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  padding-top: 60px;
  transition: left 0.3s ease-in-out;
  z-index: 1000;
}

#mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#mobile-menu ul li {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#mobile-menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  display: block;
}

#mobile-menu ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ✅ Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* ✅ Mobile Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  background: white;
  height: 3px;
  width: 25px;
  margin: 4px 0;
  transition: 0.3s;
}

/* ✅ Open Sidebar */
#mobile-menu.open {
  left: 0;
}

/* ✅ Fix the Hamburger Menu */
.menu-toggle {
  padding-top: 2%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  display: none;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

/* Prevent horizontal scroll issues */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

/* Ensure no element overflows the viewport */
* {
  box-sizing: border-box;
  max-width: 100%;
}

.navbar {
  position: fixed; /*  Always stays visible */
  top: 1vw; /*  Sticks to the top of the screen */
  left: 50%; /*  Centers it */
  transform: translateX(-50%); /*  Prevents shifting */
  width: 90%; /*  Adjust width to fit the screen */
  margin: 0 auto; /*  Removes margin that may shift it */
  border-radius: 99px;
  height: 6rem;
  background: var(--md-sys-color-primary);
  border: 2px solid rgba(255, 255, 255, 0.8);

  box-shadow: 0px 0px 35px -18px rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  padding: 15px 40px;
  z-index: 1000;
  transition: all 0.3s;
}

.navbar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px; /* Adjust as needed */
  backdrop-filter: blur(15px); /* Strong blur */
  -webkit-backdrop-filter: blur(15px); /* Safari support */
  transition: opacity 0.5s ease-in-out;
  opacity: 1; /* Initially visible */
  pointer-events: none;
  z-index: 999;

  /* Create a smooth fade effect from blur to no blur */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0)
  );
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

/* ✅ Ensure Topbar is Responsive */
@media (max-width: 1024px) {
  .logo-container {
    flex-direction: row; /* Align text next to the "M" */
    margin-left: -14%; /* ✅ Moves the element to the left */
  }

  .text {
    font-size: 1rem; /* Reduce text further */
  }

  .menu-toggle {
    width: 30px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }

  .menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
  }

  /* Hide nav links on mobile */
  .nav-links {
    display: none;
  }

  .hero {
    height: 100vh; /* Full viewport height */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px; /* Ensure spacing */
    background-color: #00264f;
  }

  .hero-content {
    max-width: 90%; /* Prevents text from stretching too much */
  }

  .scroll-down {
    position: absolute;
    bottom: 15%; /* Moves arrow lower */
  }

  .logo {
    display: flex;
    align-items: center;
    padding-left: 15px;
  }

  .logo-container {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .big-m {
    padding-top: 1px;
    font-size: 35px;
    font-weight: bold;
    margin-right: 8px;
    transform: scaleX(1.7) scaleY(2.1);
  }

  .text {
    display: flex;
    flex-direction: column;
    font-size: 16px;
  }

  .text p {
    font-size: 17px;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: 1; /* ✅ Ensures the navbar starts at the very left */
    width: 100%; /* ✅ Ensures it spans the full width */
    border-radius: 0px !important;
    height: 90px !important;
    background: #00264f !important;
    border: none;
    backdrop-filter: blur(10px);
    box-shadow: 0px 0px 35px -18px rgba(0, 0, 0, 1);
    display: flex;
    align-items: center;
    justify-content: space-between; /* ✅ Ensures proper spacing */
    padding: 15px 40px;
    z-index: 1000;
    transition: all 0.3s;
  }

  /* Navbar Hover */
  .navbar:hover {
    background: rgba(0, 38, 79, 1) !important;
    border-radius: 30px;
  }

  .navbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px; /* Adjust as needed */
    transition: opacity 0.5s ease-in-out;
    opacity: 1; /* Initially visible */
    pointer-events: none;
    z-index: 999;
    background-color: #00264f !important;

    -webkit-mask-image: none;
    mask-image: none;
  }
}

.container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background-color: var(--md-sys-color-surface-container-low);
  padding: 30px;
  margin-bottom: 40px;
  border-radius: 30px;
  box-shadow: none;
  transition: all 0.3s ease-out;
}

.scrim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.main-btn {
  position: relative;
  font-size: var(--font-body);
  padding: 20px 100px;
  border-radius: 20px;
  color: var(--md-sys-color-on-primary);
  border: none;
  font-weight: 700;
  cursor: pointer;
  background: var(--md-sys-color-primary);
  transition: all 0.3s ease;
}

.main-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--md-sys-color-on-primary); /* use ON color */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

/* ✅ Now this works */
.main-btn:hover::after {
  opacity: 0.08;
}
