/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(0, 0%, 100%);
  --black-color-light: hsl(0, 0%, 100%);
  --black-color-lighten: hsl(0, 0%, 100%);
  --white-color: #000000;
  --body-color: hsl(0, 0%, 100%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}

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

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
}

ul {
  list-style: none;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

a {
  text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--black-color);
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
  z-index: var(--z-fixed);
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
}

.nav__logo, 
.nav__burger, 
.nav__close {
  color: var(--white-color);
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 20px;
  
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .35rem;
  font-weight: var(--font-semi-bold);
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

.nav__logo i {
  font-weight: initial;
  font-size: 1.25rem;
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__burger, 
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
}

.nav__close {
  opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
  .nav__list {
    background-color: var(--black-color);
    padding-top: 1rem;
  }
}

.nav__link {
  color: var(--white-color);
  background-color: var(--black-color);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .3s;
}

.nav__link:hover {
  background-color: var(--black-color-light);
}


/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
  max-width: 1000px;
  background-color: white;
  align-items: center;
  
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
}

.dropdown__link, 
.dropdown__sublink {
  padding:12px;
  color: var(--white-color);
  background-color: var(--black-color-light);
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .3s;
}

.dropdown__link i, 
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover, 
.dropdown__sublink:hover {
  background-color: var(--black-color);
}

.dropdown__menu, 
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
}

/* Show dropdown menu & submenu */
.dropdown__item:hover .dropdown__menu, 
.dropdown__subitem:hover > .dropdown__submenu {
  max-height: 1000px;
  transition: max-height .4s ease-in;
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: var(--black-color-lighten);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }

}

/* For large devices */
@media screen and (min-width: 1118px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }
  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item, 
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu, 
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }

  .dropdown__link, 
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: .5rem;
  }

  /* Show dropdown menu */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    transition: top .3s;
  }

  /* Show dropdown submenu */
  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    transition: top .3s;
  }
}
.nav__logo img {
    width: 150px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
}

/* Button Styling */
.book-demo-btn {
    display: inline-flex;
    align-items: center;
    margin: 20px;
    padding: 10px 10px;
    background-color: #18191ae2; /* Dark Blue background */
    color: white;

    font-size: 16px;
    font-weight: 500;
    border-radius: 15px; /* Round the corners */
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Button Hover Effect */
.book-demo-btn:hover {
    background-color: #002244; /* Slightly darker blue on hover */
}

/* Arrow Styling */
.book-demo-btn i {
    margin-left: 10px; /* Space between text and arrow */
    font-size: 20px; 

}

/* Optional: If you want to add custom icon from Bootstrap */
.bi-arrow-right-circle {
    font-size: 18px;
}
/* Set max-width and center the nav container */
.nav.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Mega Menu Wrapper */
.dropdown__menu.solutions-menu {
   /* display: none; */
    position: absolute;
    top: 100%;
    /* left: 50%; */
    /* right: 50%; */
    transform: translateX(-10%);
    width: 70vw; /* Force full width */
    max-width: 1000px; /* Remove cap */
    padding: 2rem 3vw; /* Add horizontal breathing room */
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 0px; /* remove radius for clean edge */
    display: flex;
    justify-content: space-between;
    gap: .5rem;
}


.solutions-dropdown {
    position: relative;
    z-index: 2000;
}

/* Show menu on toggle */
.dropdown__item.active .solutions-menu {
    display: flex !important;
}

/* Each column */
.solution-column {
    flex: 1;
    min-width: 180px;
}

/* Column headings */
.solution-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    margin-bottom: 10px;
}

/* Links */
.solution-column .dropdown__link {
    display: block;
    padding: 6px 0;
    color: #000;
    font-weight: 500;
    text-decoration: none;
}

.solution-feature-box {
    flex: 1.2;
    background-color: #000;
    color: #fff;
    border-radius: 20px;
    padding: 2rem;
    font-size: 1.2rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.solution-feature-box a {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
    margin-top: 1rem;
    display: inline-block;
}
/*=============== DROPDOWN ===============*/
.dropdown__item {
  position: relative;
  /* Remove max-width here if it's restricting the container */
  /* max-width: 1000px; */ 
}

.dropdown__menu {
  /* This is the key change for the width */
  min-width: 300px; /* Adjust this value to your desired width */
  max-width: 500px; /* Optional: Set a max-width to prevent it from becoming too wide */
  
  /* Keep your original dropdown menu positioning and styling */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%); /* This centers the dropdown relative to the parent */
  
  /* Basic styling for the dropdown menu */
  background-color: var(--black-color);
  box-shadow: 0 8px 16px hsla(220, 32%, 8%, .3);
  z-index: var(--z-fixed);
  
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
}

/* Ensure these styles are kept for the links inside the dropdown */
.dropdown__link, 
.dropdown__sublink {
  padding: 12px;
  color: var(--white-color);
  background-color: var(--black-color-light);
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .3s;
}

/* On hover, make the menu visible and centered */
.dropdown__item:hover .dropdown__menu {
  max-height: 1000px; /* Use a large number to show all content */
  transition: max-height .4s ease-in;
}

/*
For large devices (desktop)
This section is important for the desktop view, as it overrides the mobile styles.
*/
@media screen and (min-width: 1118px) {
  .dropdown__menu {
    /* Set the desired width for desktop */
    min-width: 300px;
    max-width: 500px; /* Keeps the max-width for consistency */

    /* Position the dropdown below the parent link */
    top: 6rem;
    left: 50%; /* Center it again */
    transform: translateX(-50%); /* Centering transform */

    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }
  
  /* Show dropdown menu on hover */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem; /* Adjust this value to position it below the nav link */
    pointer-events: initial;
    transition: top .3s;
  }
}