.bodyall{
  background-color: #f8fcff !important;
}

@media (max-width: 992px) {
  .navbar {
    background-color: #ffffff; /* Clean white background */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border-bottom: 1px solid #ddd; /* Light border */
    padding: 0.5rem 1rem;
    align-items: center;
    width: 100%;
    height: auto;
  }

  .navbar-toggler {
    border: none;
    background-color: transparent;
    padding: 0.25rem;
  }

  .navbar-collapse {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #ffffff; /* Matches the navbar background */
    overflow: hidden; /* Prevents unwanted overflow */
    transition: height 0.3s ease; /* Smooth height animation */
  }

  .navbar-collapse.show {
    height: auto; /* Expand dynamically to fit content */
  }

  .navbar-nav {
    flex-direction: column; /* Stack items vertically */
    align-items: center;
    width: 100%; /* Ensure full width for better centering */
    padding: 1rem 0;
  }

  .nav-item {
    margin: 0.5rem 0; /* Add spacing between the nav items */
  }

  .nav-link {
    text-align: center;
  }

  /* Dropdown Menu */
  .dropdown-menu {
    display: none; /* Initially hidden */
    position: static; /* Ensure it appears inline */
    width: 100%; /* Full width for better usability */
    background-color: #ffffff; /* Match navbar background */
    text-align: center;
    padding: 0.5rem 0;
    border: none;
    box-shadow: none;
    display: none;
    display: none;
    opacity: 0; /* Hidden by default */
    pointer-events: none; /* Disable interaction initially */
    transition: opacity 0.5s ease; /* Smooth transition */
  }

  .nav-item:hover .dropdown-menu {
    display: block;
    opacity: 1; /* Make visible */
    pointer-events: auto; /* Enable interaction after appearing */
  }
  
  /* Disabled link style */
  .dropdown-item.disabled {
    pointer-events: none; /* Disable clicks */
    opacity: 0.5; /* Visual cue */
    cursor: not-allowed;
  }

  /* Show dropdown when toggled */
  .dropdown-menu.show {
    display: block;
    opacity: 1; /* Make visible */
    pointer-events: auto; /* Enable interaction after appearing */
  }

  /* Optional Hover Effect for Dropdown Items */
  .dropdown-item {
    font-size: 1rem;
    padding: 0.5rem;
    color: #333333;
    transition: background-color 0.3s ease;
  }

  .dropdown-item:hover {
    background-color: #f0f0f0;

  }
  /* Collapsible Menu */
  .mynavbar .navbar-collapse {
    position: absolute;
    top: 20vh; /* Appears below the navbar */
    width: 100%;
    height: 90vh;
    background-color: #ffffff;
    border-radius: 15px;
    z-index: 1050;
    padding: 1rem;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
justify-content: center; /* Center items horizontally */
align-items: center; /* Center items vertically */
flex-direction: column; /* Stack items vertically */
overflow: hidden;
}

.mynavbar .nav-link,
.mynavbar .dropdown-item {
    font-size: 1rem;
    color: #333333;
    padding: 10px 15px;
    text-align: center;
    border-radius: 5px;
    margin: 0.25rem 0;
    display: block;
    transition: background-color 0.3s ease;
}

.mynavbar .nav-link:hover,
.mynavbar .dropdown-item:hover {
    background-color: #f0f0f0; /* Highlight on hover */
}

.mynavbar .dropdown-menu {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    text-align: center;
    width: 100%;
}

.mynavbar .dropdown-toggle::after {
    display: none; /* Hide caret for a clean look */
}

/* Hide Icons */
.icon-left {
    display: none;
}

  /* Navbar Brand */
  .navbar-brand {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .navbar-brand img {
    height: 30px;
  }

  /* Smooth Fade-in Effect for Navbar Collapse */
  .navbar-collapse.show {
    animation: fadeIn 0.3s ease-in-out;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

  
.project-logo {
  width: auto;
  height: 7.5vh;
}

/* Main Styles */
.mynavbar {
background-color: #f4f1f6;
color: #fff;
width: 100%;
height: 10vh; 
}

.nav-link {
  margin-left: 1vw;
}

.navbar-nav {
position: absolute;
right: 2vw;
}

.mynavbar .navbar-brand {
font-size: 1.5rem;
color: #fff;
}

.mynavbar .navbar-nav {
list-style-type: none;
padding-left: 0;
margin-right: 0;
}

.mynavbar .navbar-nav .nav-item {
margin-left: 1.5vw;
}

.mynavbar .navbar-nav .nav-item a {
color: #28202a;
font-weight: bold;
}

.mynavbar .navbar-nav .nav-item a:hover {
color: #000000;
}

.mynavbar .dropdown-menu {
background-color: #e2e8ea;
}

.mynavbar .dropdown-menu .dropdown-item {
color: #fff;
}

.mynavbar .dropdown-menu .dropdown-item:hover {
background-color: #ffc107;
}

.dropdown-menu {
display: none; /* Hide dropdown menu by default */
position: absolute;
background-color: #fff;
left: 0;
right: 0;
text-align: center; /* Center-align dropdown items */
box-shadow: 0px 1vw 1vh 0px rgba(0,0,0,0.2);
z-index: 1;
}

/* Hover Effects for Icons */
.nav-item {
position: relative;
display: inline-block;
padding: 0 10px;
margin: 0 15px;
transition: opacity 0.3s;
}

.nav-item .icon-left, .nav-item .icon-right, .nav-item .icon-left-new {
position: absolute;
top: 50%;
transform: translateY(-50%) rotate(0deg);
opacity: 0;
transition: opacity 0.3s, transform 0.3s;
pointer-events: none;
width: 20px;
height: auto;
}

.nav-item .icon-left {
left: -20px;
}

.nav-item .icon-left-new {
left: -20px;
}

.nav-item .icon-right {
right: -15px;
}

.nav-item:hover .icon-left-new {
opacity: 1;
pointer-events: auto;
transform: translateY(-50%) rotate(-15deg);
}

.nav-item:hover .icon-left {
opacity: 1;
pointer-events: auto;
transform: translateY(-50%) rotate(-15deg);
}

.nav-item:hover .icon-right {
opacity: 1;
pointer-events: auto;
transform: translateY(-50%) rotate(15deg);
}

.icon-left, .icon-right {
height: 7vh !important;
width: auto !important;
}

.icon-left-new{
width: 2vw !important;
height: auto !important;
}

/* Dropdown Menu Hover */
.navbar-nav .nav-item.dropdown:hover .dropdown-menu {
display: block;
}

.dropdown {
  display: flex;
flex-direction: column;
justify-content: center; /* Aligns elements vertically in the container */
align-items: center;
}

/* Additional Styles */
.vertical-center {
margin: 0;
position: absolute !important;
top: 50% !important;
transform: translateY(-50%) !important;
}