/* Add this to the top of your CSS file to ensure consistent sizing everywhere */
html {
    font-size: 16px !important; 
}

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

body {
  font-family: 'Arial', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
}

body {
    overflow-x: hidden; /* Prevents horizontal scrollbars */
    overflow-y: visible; /* Allows vertical scrolling and lets sticky work */
}


/* Progress Bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, #b859dd, #7a40d1);
  width: 0%;
  z-index: 2000;
}

/* Premium Navbar */
.navbar-1 {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-1 .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}


/* Main Navigation */
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  color: #1c1f28;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  font-weight: bold;
}

.nav-menu > li > a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #ca74ec;
}

/* macOS-style Dropdown */
.navbar-2 {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 180px;
  padding: 8px;
}

.navbar-2::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 4px solid rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1));
}

.nav-menu > li:hover .navbar-2 {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.navbar-2 .container {
  padding: 0;
  height: auto;
  display: block;
}

.nav-menu_hovered {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-menu_hovered a {
  display: block;
  padding: 8px 12px;
  color: #1c1f28;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.15s ease;
  position: relative;
}

.nav-menu_hovered a:hover {
  background: #ca74ec;
  color: white;
  transform: translateX(2px);
}
/* Mobile Responsive */
@media (max-width: 768px) {
  .navbar-1 .container {
    height: 60px;
    padding: 0 1rem;
    justify-content: space-between; /* logo left, toggle right */
  }

  .nav-menu {
    max-height: 0;                 /* hidden by default */
    overflow: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 0 1rem;
    flex-direction: column;
    gap: 0;
    z-index: 999;
    transition: max-height 0.4s ease; /* smooth slide */
  }

  .nav-menu.open {
    max-height: 600px; /* enough space for all links */
    padding: 1rem;
  }

  .nav-menu > li {
    width: 100%;
  }

  .nav-menu > li > a {
    padding: 12px 16px;
    border-radius: 8px;
    justify-content: space-between;
  }

  .navbar-2 {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: none;
    border: none;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    padding: 8px;
  }

  .navbar-2::before {
    display: none;
  }

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

  .hero-text {
    padding: 2rem 1.5rem;
  }
}

/* Default (desktop) — hidden */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
  justify-content: center;
  align-items: center;
}

/* Show only on mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
}

/* Hamburger icon (3 bars) */
.nav-toggle-icon {
  position: relative;
  width: 28px;
  height: 3px;
  background-color: #333;
  display: block;
  transition: background-color 0.2s ease-in-out;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 3px;
  background-color: #333;
  transition: transform 0.2s ease-in-out, top 0.2s ease-in-out;
}

.nav-toggle-icon::before {
  top: -8px;
}

.nav-toggle-icon::after {
  top: 8px;
}

/* Expanded (turn into X) */
.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: rotate(-45deg);
  top: 0;
}


/* Logo */
.navbar-brand {
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  top: 60px;
}

.navbar-brand img {
  height: 60px;
  width: auto;
  transition: transform 0.2s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}


body {
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    line-height: 24px;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;         /* reset heading margins */
    padding: 0;        /* reset heading padding */
}
