:root {
  --black: #000000;
  --darkGray: #1e1e1e;
  --mediumGray: #303030;
  --redAccent: #ce080a;
  --lightGray: #f1f1f1;
  --yellowAccent: #fddd5b;
  --white: #ffffff;
  --hover: #ffe57b;
  --darkGrayOpacity: #1e1e1eb3;
  --customCardHover: #00000026;
  --lineColor: #0000001a;
  --hrColor: #e8e8e8;
  --featureDropdown: #f3f3f3;
  --navItemHover: #e0e0e0;
  --customCard: #f5f5f5;

  --font-size-12-xxs: 12px;
  --font-size-14-xs: 14px;
  --font-size-16-sm: 16px;
  --font-size-18-md: 18px;
  --font-size-20-lg: 20px;
  --font-size-24-xl: 24px;
  --font-size-40-xxl: 40px;
  --font-size-96-xxxl: 96px;
  /* fonts */
  --font-general-sans: "General Sans";
  /* Border radiuses */
  --br-3xs: 10px;
  /* Paddings */
  --padding-3xs: 10px;
  --padding-mini: 15px;
  --padding-sm: 14px;
}
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
  background-color: transparent;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-style: normal;
  font-family: "General Sans", sans-serif;
}

.header {
  position: fixed;
  display: block;
  width: 100%;
  z-index: 1000;
}
/* navbar */
/* Anchor tag */
.nav-items span {
  color: var(--redAccent);
}

.nav a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Logo */
.logo {
  position: absolute;
  top: 33px;
  left: 33px;
  max-width: 137px;
  height: auto;
  flex-shrink: 0;
  z-index: 20;
}

/* Hamburger Button Wrapper - For Small Screens */
.hamburger {
  display: none;
  width: 32px;
  height: 32px;
  background-color: var(--lightGray);
  border: none;
  border-radius: 10px;
  padding: 0;
  position: absolute;
  right: 18px;
  top: 24px;
  cursor: pointer;
}

/* Hamburger Icon Image */
.hamburger-icon {
  width: 10px;
  height: 8px;
  flex-shrink: 0;
  display: block;
  margin: auto;
}

/* Navigation Wrapper */
.nav {
  display: flex;
  position: absolute;
  top: 24px;
  right: 24px;
  height: 40px;
  z-index: 20;
}

.nav-items {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  z-index: 20;
}

/* Nav Items and Sub-Items */
.nav-item {
  color: var(--black);
  text-align: center;
  font-size: var(--font-size-14-xs);
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 19.6px */
  letter-spacing: -0.42px;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
  background-color: var(--lightGray);
  border-radius: 10px;
  padding: 8px 16px;
  z-index: 20;
}

/* Style for the last nav item */
.nav-items .nav-item:last-child {
  background-color: var(--yellowAccent);
  border-radius: 10px;
}
.nav-items .nav-item:last-child:hover {
  background-color: var(--hover);
}
.has-submenu {
  position: relative;
  display: inline-block;
  z-index: 20;
}
/* Submenu Wrapper */
.submenu {
  display: block;
  opacity: 0;
  position: absolute;
  top: 38px; /* Positions the submenu right below the parent item */
  right: 0;
  background-color: var(--lightGray);
  list-style: none;
  width: 200px;
  border-radius: 10px;
  padding: 10px 0;
  transform: translateY(10px); /* Shift submenu slightly down */
  transition: opacity 0.3s ease, transform 0.3s ease; /* Transition for smooth appearance */
  pointer-events: none;
  z-index: 20;
}

/* Submenu Items */
.submenu-item {
  padding: 8px 16px;
  color: var(--black);
  text-align: left;
  font-size: 12px;
  font-style: normal;
  font-weight: 200;
  line-height: 140%; /* 19.6px */
  letter-spacing: -0.42px;
  cursor: pointer;
}

/* desktop view: enable hover effect */
@media (min-width: 768px) {
  /* show submenu on hover */
  .has-submenu:hover .submenu {
    opacity: 1; /* Makes submenu visible */
    transform: translateY(0); /* Reset position for smooth slide-in effect */
    pointer-events: auto; /* Allows interaction on hover */
    box-shadow: 0 4px 8px var(--customCardHover);
  }
  .submenu-item:hover {
    transform: scale(1.06);
    transition: 0.2s;
  }

  /* hover effect for nav items */
  .nav-item:hover {
    background-color: var(--navItemHover);
  }
}

/* submenu toggle arrow - for mobile view */
.submenu-toggle {
  display: none;
  justify-content: end;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background-color: var(--white);
  border: none;
  padding: 0;
  position: absolute;
  cursor: pointer;
  top: 14px;
  right: 14px;
}

/* responsive styles using media query - mobile and smaller screens */
@media (max-width: 767px) {
  /* display hamburger button for mobile/tablet */
  .logo {
    width: 127px;
  }
  .hamburger {
    display: block;
  }

  /* hide default nav style in mobile view */
  .nav {
    display: none;
  }

  /* hide submenu unless menu is clicked in mobile view */
  .has-submenu .submenu {
    display: none;
  }

  /* up/down arrow icon on mobile nav items */
  .submenu-toggle {
    display: block;
  }

  .open .line-div {
    position: absolute;
    top: 39.5px;
    left: 11.5px;
    border-top: 1px solid var(--hrColor);
    box-sizing: border-box;
    width: 203px;
    height: 1px;
  }

  /* nav styling for mobile */
  .nav-item {
    width: 227px;
    color: var(--black);
    text-align: left;
    transition: color 0.2s, background-color 0.2s;
    /* Rectangle styling */
    background-color: var(--white);
    padding: 10px 16px;
  }

  .nav-item:hover {
    background-color: var(--white);
  }

  .submenu-item {
    letter-spacing: -0.36px;
    cursor: pointer;
  }

  /* Show nav when hamburger icon is clicked */
  .nav-active .nav {
    float: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    top: 60px;
    right: 10px;
    border-radius: 10px;
    background: var(--lightGray);
    padding: 16px;
    box-shadow: 0 4px 8px var(--customCardHover);
    width: 260px;
    height: auto;
  }

  /* Display nav items in column */
  .nav-items {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    justify-content: left;
  }

  .nav-items .nav-item:last-child {
    width: 227px;
  }

  /* Display submenu items in column when selected */
  .has-submenu.open .submenu {
    position: relative;
    top: 2px;
    display: inline-block;
    box-shadow: none;
    background-color: transparent;
    z-index: 20;
    opacity: 1; /* Makes submenu visible */
    pointer-events: auto;
  }

  .open .submenu-toggle {
    transform: rotate(180deg) scaleX(-1);
  }

  .heading {
    font-size: 3rem;
  }

  .subheading {
    font-size: 1.5rem;
    color: var(--mediumGray);
  }
}

/* Tablets and iPads */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .main-section {
    padding: 48px;
  }

  .heading {
    font-size: 3rem;
  }

  .subheading {
    font-size: 1.5rem;
    color: var(--mediumGray);
  }
}
.hamburger-icon {
  transition: transform 0.3s ease;
}

.hamburger.is-open .hamburger-icon {
  transform: rotate(90deg); /* Rotate for the "X" effect */
}
