/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  } 
  body, html {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    display:flex;
    background-image: url('public/video/image.jpg'); /* Replace with your image path */
    background-size: cover;  /* Ensures the image covers the entire screen */
    background-position: center center;  /* Centers the image */
    background-repeat: no-repeat;  /* Prevents the image from repeating */
    margin: 0;
    overflow-x:hidden;
    overflow-y:auto;
  } 
  /* Full screen container for video */
  .video-background {
   position: relative;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
     /* Make sure the video stays in the background */
    display:flex;
    align-items:center;
    padding:2em;
  }
  
  /*logo*/
  .logo {
  width: 180px; /* Adjust the size of your logo */
  height: auto;
  margin-right: 10%;
  }
  
  /*menu bar */
  .header{
  position: fixed;
  top:0;
  left:0;
  min-width:100%;
  padding: 15px 10px;
  display: flex;
  background-color: white;
  align-items:center;
  justify-content:space-between;
  justify-items: end;
  z-index: 3;
  transition: .5s;
  }
  .header:hover{
  border-bottom: 2px solid rgba(255,255,255,0);
  }
  
  /* Navbar - Flexbox for even spacing of items */
  .navbar {
  display: flex;
  justify-content: space-evenly; /* Space items evenly */
  width: 100%; /* Ensure navbar takes full width */
  align-items: center; /* Vertically align items */
  flex-grow: 1;
  
  }
  .navbar a{
   color:black;
   font-size: 17px;
   font-family: sans-serif;
   font-weight:normal;
   text-decoration: none;
   transition: .3s;
  }
  
  .navbar a:hover{
  color:red;
  margin-left: 8px;
  }
  /* Hover effect for both <a> and .arrow */
  .dropdown:hover .dropbtn,
  .dropdown:hover .arrow {
    color: red;
    border-color: red;  /* Changes the color of the arrow as well */
  }
  
  /* Dropdown container */
  .dropdown {
  position: relative;
  display: inline-block;
  
  }
  
  /* Button for dropdown */
  .dropbtn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 14px 20px;
  font-size: 16px;
  display: inline-block;
  text-align: center;
  
  }
  /* down arrow*/
  .arrow {
  border: solid black;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  margin-bottom: 2px;
  margin-left: 5px;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  }
  /* Right arrow styles */
  .rightarrow {
  display: inline-block;
  border: solid black;
  border-width: 0 3px 3px 0;
  padding: 3px;
  margin-left: 110px;
  transform:rotate(-45deg);
  transition: transform 0.3s ease;
  position:absolute;
  right:10px;
  top:50%;
  transform: translateY(-50%) rotate(-45deg); 
  }
  
  
  
  /* Dropdown content - hidden by default */
  .dropdown-content {
  display: none;
  position: absolute;
  margin-left: 30%;
  width:250px;
  background:rgba(255,255,255,0.7);
  border: 2px solid rgba(255,255,255,.3);
  transition: .5s;
  backdrop-filter: blur(1px);
  z-index: 10;
  font-family: Arial, sans-serif;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  /* Dropdown items */
  .dropdown-content a {
  color: black;
  font-size: 16px;
  padding: 12px 16px;
  text-decoration: none;
  gap:3px;
  display: block;
  margin-left: 0;
  }
  
  /* Change color of dropdown items on hover */
  .dropdown-content a:hover {
  color:red;
  }
  
  /* Show dropdown content on hover */
  .dropdown:hover .dropdown-content {
  display: block;
  }
  
  /* Style for dropdown button on hover */
  .dropdown:hover .dropbtn {
  color:red;
  margin-left: 10px;
  }
  
  /* Nested Dropdown */
  .dropdown-submenu {
  position: relative;
  }
  
  .submenu-btn {
  display: block;
  padding: 12px 16px;
  color:white;
  text-decoration: none;
  }
  
  .submenu-btn:hover {
  color:red;
  }
  
  .submenu-content {
  display: none;
  position: absolute;
  left: 100%;
  background:rgba(255,255,255,0.7);
  border: 2px solid rgba(255,255,255,.3);
  transition: .5s;
  top: 0;
  margin-left: 3%;
  min-width: 190px;
  flex-direction: column;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  .submenu-content a {
  color: black;
  padding:  8px 16px 4px 16px;
  margin: 0;
  text-decoration: none;
  display: block;
  }
  
  .submenu-content a:hover {
  color:red;
  }
  
  /* Show submenu content on hover */
  .dropdown-submenu:hover .submenu-content {
  display: block;
  }
  /*engineer image */
  .image{

margin-bottom:35rem;
    min-width:45vw;
    min-height:80vh;
    background-image: url('public/video/hse.jpg'); /* Replace with your image path */
    background-repeat: no-repeat;
    background-size:contain;  /* Ensures the image covers the entire screen */
    background-position: center; /* Centers the image inside the div */
     /* Ensures content inside the div is positioned relative to the div */
    z-index: 1;
  }
  .content{
margin-top:10rem;
    min-height: 35vh;
    min-width:45vw ; /* Sets the width of the content */
    padding: 20px;
    background-color: rgba(255,255,255,0.2);
    box-shadow: rgba(255, 255, 255, 0.4);
    border:2px solid black;
    margin-left: 25px;
  }
  .icon i{
    color: white; /* Set the initial color of the icon */
    transition: transform 0.3s ease, color 0.3s ease;
  }
  /* Hover effect for the entire icon container (when hovering over any part of the container) */
  .icon:hover i, .icon:hover .hover-effect {
    color: #ff0000; /* Change color for both icon and text */
    animation: beat 1s infinite; /* Apply the "beat" effect on hover */
    margin-left:5px;
    }
    .content span{
        color:white;
    }
    
    .content span:hover{
   
      color:red;
    }
    .content h1{
      text-align: center;
       font-size: 1.4rem;
       text-shadow: 
       2px 2px 4px rgba(255,0, 0, 1), /* Create the border effect */
       -2px -2px 4px rgba(255, 0, 0, 1);
       margin-top: 5px;
       margin-bottom: 2%;
     }
     .content h2{
       color:rgba(0, 0, 0, 0.2);
       margin-top: 1rem;
       margin-bottom: 1rem;
       font-size: 1.1rem;
  background: url("public/video/gold.jpg");
  background-repeat:repeat-y;
  background-size: 100% 200%; /* 200% height for vertical animation */
  background-position: center bottom;
  -webkit-text-fill-color: transparent;
background-clip: text;
  -webkit-background-clip: text; 
  animation:animate 4s linear infinite; /* Apply animation */
}
@keyframes animate{
  0% {
    background-position: center 0%; /* bottom */
  }
 
  100% {
    background-position: center 70%; /* middle */
  }


}
     
     
   
    @keyframes beat {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.5);
    }
    100% {
      transform: scale(1);
    }
    }
    .content .icon{
      margin-left: 35px;
      margin-bottom: 10px;
    
    }
     /* Responsive Styles */
     @media screen and (max-width:1400px){
 .header,
 .navbar
  .para,
  .foot,
  .foot-contain {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }
  
  .header {
    flex-direction: row;
    align-items: flex-start;
    padding: 10px 20px;
  }
  .logo{
    margin-left: 5%;
  }

  .navbar {
    flex-direction: row;
    align-items: flex-start;
    margin-left:0;
  }
  .navbar a,
.dropbtn {
  padding: 14px 20px;
  line-height: 1.5;
  display: inline-block;
}
 
  .dropdown-content, .submenu-content {
    position: absolute;
    margin: 0;
  }
  .image{
    margin-bottom:65rem;
    margin-top:0rem;
  }
  .content{
    margin-top:10rem;
         height:90rem;
  }
}
@media screen and (max-width: 1200px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    
  }
   body,html{
    width:100%;
    height:120%;
  }

  .logo {
    width: 140px;
  }

  .navbar {
    flex-direction: row;
    width: 100%;
    justify-content:space-evenly;
    display: flex;
  }
.navbar > * {
  flex: 1;
  text-align: center;
}

  .navbar a,
  .dropbtn {
    padding: 5px;
    font-size: 16px;
    text-align: center;
    display: block;
    width: auto;
  }

  .dropdown-content,
  .submenu-content {
    position: absolute;
    margin: 0;
    width: 140px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.9);
  }

  .dropdown-content a,
  .submenu-content a {
    padding: 5px;
    text-align: center;
  }

  .video-background {
    padding: 1em;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
 

  
.image{
width:100%;
 margin-top:70rem;
  min-height:20rem;
  margin-bottom:0rem;
}
 .content{
     width:100%;
      margin-top:3rem;
   min-height:90rem;
     margin-right:15px;
 }
}
   /* Hides hamburger on desktop/tablet */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: black;
}

/* MOBILE ONLY - max-width 500px */
@media screen and (max-width: 500px) {
  html, body {
    min-height:100%;
    height: auto;
    overflow-y: auto;
  }
  .video-background{
    
     height: auto;
     flex-direction: column;
    overflow-y: auto;
     padding-top:2px;
  }
  .hamburger {
    display: block;
  }

  .navbar {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: white;
    margin-top: 10px;
    padding-left: 10px;
    border-top: 1px solid #ccc;
    z-index: 10010;
  }
.header{
  z-index:10000;
  position: absolute;
  flex-direction:column;
  top: 0;
  left: 0;
  width: 100%;
}

 
  .navbar.show {
    display: flex;
  }

  .navbar a,
  .dropbtn {
    padding: 12px 16px;
    text-align: left;
    width: 100%;
    border-bottom: 1px solid #eee;
  }
  
  .dropdown-content
   {
    position:relative;
   left: 0;           /* Reset the left shift */
    top: 0;            /* Reset the top offset */
    margin-left: 0;    /* Remove horizontal offset */
    width: 100%;       /* Full width */
    box-shadow: none;
    background: none;
    border: none;
  
  }
 
.submenu-content {
    position: relative;
    left: 0;           /* Reset the left shift */
    top: 0;            /* Reset the top offset */
    margin-left: 0;    /* Remove horizontal offset */
    width: 100%;       /* Full width */
    box-shadow: none;
    background: none;
    border: none;
   
  }
/* Still allow it to show on hover/tap */
.dropdown:hover .dropdown-content,
.dropdown-submenu:hover .submenu-content {
  display: block;
}


  /*.dropdown:hover .dropdown-content,
  .dropdown-submenu:hover .submenu-content {
    display: block;
  }*/

  .arrow, .rightarrow {
    display: none;
  }
  .image{
   min-width:10rem;
    margin-top:5rem;
    margin-bottom:0rem;
    min-height:30rem;
  }
  .content{
    min-width:100%;
    min-height:90rem;
    margin-bottom:70rem;
  }
}
 
   

   