/* Reset some default browser styles for body, h1, and p */
body, h1, p {
   margin: 0;
   padding: 0;
}

/* Style the header image */
header {
   height: 400px; /* Adjust the height as needed */
   background-image: url('dessert.jpg'); /* Replace with your image path */
   background-size: cover;
   display: flex;
   justify-content: flex-start; /* Align content to the left */
   align-items: left;
   flex-direction: column;
   text-align: left; /* Align text to the left */
   overflow: hidden;
}

/* Style the header content */
.header-content {
   color: #fff;
   text-align: left; /* Align text to the left */
   padding-top:200px;
   padding-left: 100px; /* Add 100px left padding for spacing */
   display: flex; /* Add flex to align items to the left */
   flex-direction: column; /* Stack items vertically */
   align-items: flex-start; /* Align items to the left */
}

/* Style your name */
#name {
   font-size: 36px;
   margin-bottom: 10px;
   color: #fff; /* Set name color to white */
   text-align: left; /* Align text to the left */
   transition: font-size 0.1s ease,opacity 0.5s, bottom 0.3s; /* Add transition for font size */

}

/* Style your title */
#title {
   font-size: 18px;
   opacity: 1; /* Initial opacity */
   transition: font-size 0.3s, opacity 0.3s;
   color: #fff; /* Set title color to white */
   text-align: left; /* Align text to the left */
}

/* Style the "BAB" text */
#nameText {
   font-size: 24px; /* Set the font size */
   color: #fff; /* Text color */
   position: absolute;
   top: -20px; /* Position it above the navbar */
   left: 100px; /* Adjust the left position as needed */
   opacity: 0; /* Initially hidden */
   transition: opacity 0.3s, top 0.3s; /* Add transition for opacity and top position */

}


    #nameText a {
        /* color: white; */
        height: 20px;
        /* top: 20px; */
        /* margin-top: 20px; */
        margin-right: 20px;
        border-top-right-radius: 3px;
        border-top-left-radius: 3px;
        /* background-color: transparent; */
    }

    #nameText a:hover {
        color: darkgray;
        background-color: transparent;
        /* color:red; */
        /* font-size: 25px; */
    }


.nav-item-home{
  display: none;
}
    .home-icon {
      width: auto; /* Adjust the size of the icon as needed */
      height: 22px; /* Maintain aspect ratio */
      vertical-align: middle; /* Vertically align the icon with text */
      margin-right: -50px; /* Adjust spacing between the icon and text */
      margin-left: -5px; /* Adjust spacing between the icon and text */
      margin-top: -8px;
      /* background-color: green; */
      background-color: #333;

    }

    nav a.no-bg:hover {
      background-color: #333;
      /* background-color: lightgray; */
    }
    #homeHoverImage {
      display: none;
    }

    /* Show the homeHoverImage on hover */
.no-bg:hover #homeHoverImage {
  display: inline-block;
  background-color: #333;

}

.no-bg:hover #homeImage {
  display: none;
  background-color: #333;

}


/* Style the navigation bar */
nav {
   background-color: #333;
   color: #fff;
   position: relative;
   z-index: 100;
   transition: top 0.3s;
   height: 58.5px;
   /* padding-left: 80px; */
}

/* Style the navigation links */
nav ul {
   list-style: none;
   margin: 0;
   margin-right: 50px; /* Adjust spacing between links */
   padding: 0;
   display: flex; /* Use flexbox to align items horizontally */
   justify-content: flex-end; /* Push items to the right */
}

nav li {
  position: relative; /* Position for the dropdown */
   display: inline-block;
   margin-right: 10px; /* Adjust spacing between links */
   width: 120px;
}



nav a {
   color: #fff;
   text-decoration: none;
   padding: 20px 0px; /* Adjust padding as needed */
   display: inline-block;
   width: 100%; /* Set the width to 100% to fill the container */
   text-align: center;
}


nav a:hover {
    background-color: lightgray; /* Change background color to light gray on hover */

    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
    color: #000; /* Change font color to black on hover */
}



.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;


    background-color: gray;
    opacity: 0.95;
    padding: 0;
    list-style: none;
    color: #000;
    border-bottom-left-radius: 3px; /* Rounded bottom-left corner */
  border-bottom-right-radius: 3px;

}

/* Style submenu items with a black font color */
.submenu li {
    margin-right: 5px;
    margin-top: 5px;
    margin-left: 5px;
    margin-bottom: 5px;
    color: black; /* Font color for submenu items */
    height: 58px;
    width: 110px;
    border-radius: 0px;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
}



.submenu li:hover {
    background-color: lightgray; /* Change background color to light gray on hover */
    color: #000; /* Change font color to black on hover */
    border-radius: 3px; /* Increase border-radius on hover for a rounded effect */

}

.submenu li a:hover {
    background-color: lightgray; /* Change background color to light gray on hover */
    color: #000; /* Change font color to black on hover */
    border-radius: 3px; /* Increase border-radius on hover for a rounded effect */

}
/* Style the fixed navigation bar when scrolling */
nav.fixed {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   box-shadow: 0 0px 0px rgba(0, 0, 0);
   margin-bottom: 0px; /* Adjust margin-top as needed */
   background-color: #333;
}

/* Adjust header content on scroll */
nav.fixed .header-content {
   font-size: 24px; /* Shrink font size on scroll */
}

/* Hide the title on scroll */
nav.fixed #title {
   font-size: 0; /* Shrink font size to 0 */
   opacity: 0; /* Hide the title */
}

/* Style the main content area */
main {
   margin-top: 0px; /* Adjust margin-top as needed */
   padding: 80px;
   margin-left: 150px:
   margin-right: 150px:
}

main.main-with-margin {
   margin-top: 50px; /* Adjust this value to your preference */
}



.container {
  display: flex;
  flex-wrap: wrap;
   /* flex-direction: column; */
}

.profile {
  flex: 1;
  text-align: center;
  margin-right: 100px;
}

.profile img {
  max-width: 300px;
}

.profile-links h2 {
   text-align: left;
}

.bio {
  flex: 2;
}


/* Style for the links section */
.profile-links {
   margin-top: 20px;
   text-align: left;
   padding-left: 20px
}

/* Style for the links */
.profile-links a {
   color: #666;
   text-decoration: none;
   font-size: 1.2rem;
   transition: font-size 0.2s;
   /* display: block; */
   height: 15px; /* Set a fixed height for the links */
   line-height: 15px; /* Match the line-height to the height for vertical centering */
   margin-bottom: 0px;
   padding-left: 20px;
}

/* Style for the links on hover */
.profile-links a:hover {
   font-size: 1.4rem;
}



/* Style the h1 heading */
h1 {
   font-size: 36px;
   color: #333; /* Text color */
   margin-bottom: 20px;
}

/* Style paragraphs */
p {
   font-size: 18px;
   line-height: 1.5;
   color: #666; /* Text color */
   margin-bottom: 20px;
}

/* Default styles for the nameText */
#nameText {
    display: block;
}

.mobile-menu {
  display: none;
}

.mobile-menu .submenu {
  display: none;
}

/* Media query for tablets in vertical mode (portrait) */
@media (max-width: 834px)  {
    #nameText {
        display: none; /* Hide the nameText in this mode */
    }
    .nav-item-home{
      display: block;
    }

    .container {
        flex-direction: column-reverse; /* Reverse the order of the elements for phone mode */
      }
.bio{
margin-right: 20px;
padding-right: 20px;
width: 100%;
}
    nav {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}
}






  /* Media query for screens with a max-width of 834px (tablets in portrait mode) */
  @media (max-width: 507px) {

header{
  padding-left: 0px; /* Add 100px left padding for spacing */
margin-left: -50px;
}
    .header-content {
       /* color: #fff; */
       /* text-align: left; /* Align text to the left */ */
       /* padding-top:200px; */
       padding-left: -20px;
       margin-left: 0px;/* Add 100px left padding for spacing */
       /* display: flex; /* Add flex to align items to the left */ */
       /* flex-direction: column; /* Stack items vertically */ */
       /* align-items: flex-start; /* Align items to the left */ */
    }

    .mobile-menu {
       display: block;
       /* width: 370px; */
       text-align: center;
       padding-left: 30px;
       margin-left: 10px;
     }
     .mobile-menu nav-item {
       /* width: 370px; */
       padding-left: 10px;
       margin-left: 10px;
       text-align: center;
     }
     .mobile-menu li{
       width: 270px;
       text-align: center;
     }

     .mobile-menu li ul{
       width: 270px;
       /* margin-right: 10px; */
       /* padding-right: -10px; */

     }

     .mobile-menu li ul:hover{
       width: 270px;
       /* margin-right: 10px; */
       /* padding-right: 10px; */
     }


     .mobile-menu li ul a{
       width: 250px;
       margin-right: 10px;
       /* padding-right: 10px; */

     }

     .mobile-menu li ul a:hover{
       width: 200px;
       /* margin-right: -10px; */
       /* background-color: red; */
       /* padding-right: 10px; */

     }

     .submenu li {
         /* margin-right: 30px; */
         /* margin-top: 5px; */
         /* margin-left: 5px; */
         /* margin-bottom: 5px; */
         /* color: black; /* Font color for submenu items */
         /* height: 58px; */
         width: 260px;
         /* border-radius: 0px; */
         /* border-top-right-radius: 3px; */
         /* border-top-left-radius: 3px; */
         /* background-color: green; */

     }

     nav{
       padding-right: 0px;
       margin-right: 0px;
     }

     /* Hide individual nav items */
     nav ul {
       display: none;
       /* padding-right: 0px; */
       /* margin-right: 0px; */
     }
      main {
          padding-left: 20px ;
          padding-right: 20px;
      }




      .boxes{margin-left: -40px;}

      /* Hide submenu items for both academic and research sections */
.nav-item:nth-child(2) .submenu,
.nav-item:nth-child(3) .submenu,
.nav-item:nth-child(4) .submenu,
.nav-item:nth-child(5) .submenu {
  display: none !important;
}
  }
