/* 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;

} 
/* Full screen container for video */
.video-background {
 position: relative;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
   /* Make sure the video stays in the background */
  display:flex;
  align-items:center;
  padding:3em;
}

/*logo*/
.logo {
width: 180px; /* Adjust the size of your logo */
height: auto;
margin-left: 5%;
}

/*menu bar */
.header{
position: fixed;
top:0;
left:0;
width:100%;
padding: 15px 10px;
display: flex;
background-color: white;
align-items:center;
justify-content:space-between;
justify-items: end;

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: 1;
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-top: 13%;
  margin-bottom: 5%;
  width:87vh;
  height:90%;
  background-image: url('public/video/engineer.jpg'); /* Replace with your image path */
  background-repeat: no-repeat;
  background-size: cover;  /* Ensures the image covers the entire screen */
    background-position: center center; 
}
.content{
  margin-top: 13%;
  height: 90%;
  width: 87vh; /* 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: 15px;
  margin-bottom:5%;
}
.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;
   }
   .content h2{
     margin-bottom: 10px;
      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;
  }
}
@media screen and (max-width: 1200px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    
  }
   body,html{
    width:100%;
    height:150%;
  }

  .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{
  margin-top: 30%;
}
 .content{
     margin-top:1%;
 }
}
   /* 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:170%;
    height: auto;
    overflow-y: auto;
  }
  .video-background{
    
     height: auto;
     flex-direction: column;
    overflow-y: auto;
     padding-top: 150px;
  }
  .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{
      height:15rem;
    width:100%;
    margin-top:50px;
  }
  .content{
    width:100%;
  }
}
 




 





 



   