/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  } 
  body {
    height: 100vh;
    font-family: Arial, sans-serif;
    display:flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  } 
  .video-background {
    position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
      /* Make sure the video stays in the background */
     display:flex;
     align-items:center;
     padding:3em;
     z-index: 1;
   }
  /*logo*/
  
  
  .logo {
  width: 190px; /* 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;
  align-items:center;
  background-color: white;
  justify-content:space-between;
  justify-items: end;
  z-index: 10;
  transition: .5s;
  border-bottom: 1px solid black;
  }
  .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 */
  
  border-radius: 8px;
  padding: 15px 30px;
  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;
  z-index: 20; /* Ensure dropdown is above the slider */
  }
  
  /* 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;
  top: 100%; /* Place dropdown content below the button */
  left: 0; /* Align with the left edge of the dropdown */
  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: 30; /* Ensure dropdown content is above the slider */
  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;
  }
  
  
  /* Style for dropdown button on hover */
  .dropdown:hover .dropbtn {
  color:red;
  }
  .dropdown:hover .dropdown-content {
    display: block;
  }
  /* Nested Dropdown */
  .dropdown-submenu {
  position: relative;
  z-index: 40;
  }
  
  .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;
  z-index: 50;
  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;
  margin-left: 10px;
  }
  
  /* Show submenu content on hover */
  .dropdown-submenu:hover .submenu-content {
  display: block;
  }
  
/*heading*/
.head{
    position: absolute;
width: 100%;
    text-align: center;
    font-size: 2rem;
    color: black;
    padding-top: 20px;
    padding-bottom: 2px;
    font-weight: bolder;
z-index: 2;
margin-bottom: 31%;
padding-bottom: 5px;
height:8%;
top:20%;
left: 50%;
transform:translate(-50%,-50%);
}

.head::after {
    content: ""; /* Required for the pseudo-element */
    position: absolute;
    bottom: 0;
    left: 50%; /* Centers the pseudo-element horizontally */
    transform: translateX(-50%); /* Adjusts it to be exactly in the center */
    width: 5%; /* Controls the length of the bottom border */
    height: 5px; /* Sets the thickness of the border */
    background-color:  blue; /* Color of the border */
  }
  .head h1{
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    position: relative;
    text-align: center;
    color:black;
    text-shadow: 0 0 1px rgba(255,255,255,0.2);

  }
  .head h1:before{
    content: "Health, Safety, Enviroment and Quality";
    position: absolute;
    text-transform: uppercase;
    top:0;
    left:0;
    width:100%;
    height: 35%;
    font-weight: bold;
      color: transparent;
      background: linear-gradient(
        to right,
        #4169e1 20%,
        #4169e1 35%,
        #BB000E 35%,
        #BB000E 45%,
        #228c22 45%,
        #228c22 60%,
        #efbf04 60%,
        #efbf04 100%
      );
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;

    text-shadow: 0 0 1px rgba(255,255,255,0.2);
    overflow: hidden;
    animation: moveanimate 5s infinite linear;
  }
  @keyframes moveanimate{
    0% {
      height: 20%; /* Start with no color visible */
    }
    25% {
      height: 60%; /* Color rising up */
    }
    50% {
      height: 70%; /* Full reveal of color */
    }
    75% {
      height: 60%; /* Slight drop to simulate the wave */
    }
    100% {
      height: 20%; /* Back to the start */
    }
   
  }


  .image{
    margin-top: 21%;
    width:350vw;
    height:95%;
    background-image: url('public/video/hsqe1.png'); /* Replace with your image path */
    background-repeat: no-repeat;
    background-size: contain;  /* Ensures the image covers the entire screen */
      background-position: center center; 
      margin-left: 15px;
      
  }
  /*hse intro*/
  .content{
    margin-top: 22%;
    height: 95%;
    position: relative;
    width: 400vw; /* Sets the width of the content */
    padding: 20px;
    margin-left: 15px;
    margin-bottom: 10px;
    border-radius: 25px;
    border: 2px solid black;
   background-color: black;
   border-radius: 25px;
    
  }
  @property --angle{
    syntax:"<angle>";
    initial-value: 0deg;
    inherits:false;
  }
  .content::after, .content::before{
    content: '';
      background-image:conic-gradient(from var(--angle),transparent 10%,#ff4545,#00ff99,#006aff,#ff0095,#ff4545);
      position: absolute;
      left:50%;
      top:50%;
      width:100%;
      height: 100%;
      border-radius: 25px;
      translate:-50% -50%;
      z-index: -1;
      padding: 5px;
      animation:3s spin linear infinite;
  }

.content p{
    margin-bottom: 15px;
    font-size: 1.2rem;
line-height: 24px;
color:white;
text-align: justify;
}
@keyframes spin{
  from{
      --angle:0deg;
  }
  to{
      --angle:360deg;
  }
  
}
/*our expertise*/
.expert{
    width:95%;
    margin-top:110%;
    position:absolute;
    display: flex;
    height: 70%;
background-color: black;
    flex-direction: column;
   
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-left: 10px;
    border-radius: 25px;

}
@property --angle{
  syntax:"<angle>";
  initial-value: 0deg;
  inherits:false;
}
.expert::after, .expert::before{
  content: '';
    background-image:conic-gradient(from var(--angle),transparent 10%,#ff4545,#00ff99,#006aff,#ff0095,#ff4545);
    position: absolute;
    left:50%;
    top:50%;
    width:100%;
    height: 100%;
    border-radius: 25px;
    translate:-50% -50%;
    z-index: -1;
    padding: 4px;
    animation:3s spin linear infinite;
}

.expert h1{
    margin-top: 10px;
    font-size: 1.3rem;
    margin-left: 3%;
    margin-bottom: 15px; 
    color:rgba(255, 255, 255, 0.3);
    background: url("public/video/leaf.jpg");
    background-repeat:repeat-x;
    -webkit-text-fill-color: transparent;
  background-clip: text;
    -webkit-background-clip: text; 
    animation:animate 3s linear infinite; /* Apply animation */
  }
  @keyframes animate{
    0% {
      background-position: center 0%; /* bottom */
    }
   
    100% {
      background-position: center 100%; /* middle */
    }
  
  
  }


.expert h2{
    font-size: 1.2rem;
    margin-left: 6%;
    margin-bottom: 5px;
    color:rgba(255, 255, 255, 0.3);
    background: url("public/video/red.jpg");
    background-repeat:repeat-x;
    -webkit-text-fill-color: transparent;
  background-clip: text;
    -webkit-background-clip: text; 
}
.expert p{
    margin-left: 10%;
    font-size: 1.1rem;
    line-height: 25px;
    margin-bottom: 5px;
   color:white;
    text-align: justify;
    margin-right: 15px;
}

/*choose*/
.choose{
    border:2px solid black;
    width:95%;
    margin-top:177%;
    position:absolute;
    display: flex;
    height: 40%;
    flex-direction: column;
    background-color: black;
    margin-left: 10px;
    border-radius: 25px;
}
@property --angle{
  syntax:"<angle>";
  initial-value: 0deg;
  inherits:false;
}
.choose::after, .choose::before{
  content: '';
    background-image:conic-gradient(from var(--angle),transparent 10%,#ff4545,#00ff99,#006aff,#ff0095,#ff4545);
    position: absolute;
    left:50%;
    top:50%;
    width:100%;
    height: 100%;
    border-radius: 25px;
    translate:-50% -50%;
    z-index: -1;
    padding: 4px;
    animation:3s spin linear infinite;
}

.choose  h1{
    margin-top: 10px;
    font-size: 1.3rem;
    margin-left: 3%;
    margin-bottom: 15px;
    color:rgba(255, 255, 255, 0.3);
    background: url("public/video/leaf.jpg");
    background-repeat:repeat-x;
    -webkit-text-fill-color: transparent;
  background-clip: text;
    -webkit-background-clip: text; 
    animation:animate 3s linear infinite; /* Apply animation */
}
.choose h2{
    font-size: 1.2rem;
    margin-left: 6%;
    margin-bottom: 5px;
    color:rgba(255, 255, 255, 0.3);
    background: url("public/video/red.jpg");
    background-repeat:repeat-x;
    -webkit-text-fill-color: transparent;
  background-clip: text;
    -webkit-background-clip: text; 
    
}
.choose p{
    margin-left: 10%;
    font-size: 1.1rem;
    line-height: 25px;
    margin-bottom: 5px;
    color:white;
    text-align: justify;
    margin-right: 15px;
}
/*commit*/
.commit{
    border: 2px solid green;
    width:95%;
    margin-top:215%;
    position:absolute;
    color: black;
    display: flex;
    flex-direction: column;
    height:18%;
   background-color: black;
    margin-left: 10px;
    border-radius: 25px;
}
@property --angle{
  syntax:"<angle>";
  initial-value: 0deg;
  inherits:false;
}
.commit::after, .commit::before{
  content: '';
    background-image:conic-gradient(from var(--angle),transparent 10%,#ff4545,#00ff99,#006aff,#ff0095,#ff4545);
    position: absolute;
    left:50%;
    top:50%;
    width:100%;
    height: 100%;
    border-radius: 25px;
    translate:-50% -50%;
    z-index: -1;
    padding: 4px;
    animation:3s spin linear infinite;
}

.commit  h1{
    margin-top: 10px;
    font-size: 1.3rem;
    margin-left: 3%;
    margin-bottom: 15px;
    color:rgba(255, 255, 255, 0.3);
    background: url("public/video/leaf.jpg");
    background-repeat:repeat-x;
    -webkit-text-fill-color: transparent;
  background-clip: text;
    -webkit-background-clip: text; 
    animation:animate 3s linear infinite; /* Apply animation */
}
.commit p{
    margin-left: 5%;
    font-size: 1.1rem;
    line-height: 25px;
    margin-bottom: 5px;
    color:white;
    text-align: justify;
    margin-right: 15px;
}
/*footer*/
footer {
  margin-top: 255%;
  left:0;
  position:absolute ;
  background-color: #222; /* Example background color */
  color: #ccc;          /* Example text color */
  padding: 30px 20px 10px 20px; /* Add padding (top, sides, bottom, sides) */
  width: 100%;
  box-sizing: border-box; /* Include padding in width calculation */
}

.foot {
  display: flex; /* Makes .foot-contain divs arrange horizontally */
  justify-content: space-around; /* Distributes space around the items */
  align-items: flex-start; /* Aligns items to the top */
  flex-wrap: wrap; /* Allows items to wrap on smaller screens */
  margin-bottom: 20px; /* Add space between the main footer content and the bottom copyright */
  gap: 20px; /* Adds space between the flex items if they wrap */
}

.foot-contain {
  flex: 1; /* Allows items to grow, adjust as needed */
  margin-left: 5%;
  min-width: 250px; /* Minimum width before wrapping */
  padding: 0 15px; /* Add some horizontal padding */
  box-sizing: border-box;
}

.foot-contain h3 {
  color: #fff; /* Make headings stand out */
  margin-bottom: 15px;
  border-bottom: 1px solid #555; /* Optional separator */
  padding-bottom: 5px;
}

.foot-contain .box {
  display: flex; /* Align icon and text */
  align-items: flex-start;
  margin-bottom: 5px;
}
.foot-contain .box .text {
  display: flex;          /* Use flexbox for the text container */
  flex-direction: column; /* **** Stack the child elements (the <p> tags) vertically **** */
  align-items: flex-start;/* Align text to the left */
}


.foot-contain .box .icon {
  margin-right: 10px;
  color: #eee; /* Example icon color */
  width: 20px; /* Give icon fixed width */
  text-align: center;
  padding-top: 2px;
}

.foot-contain .box .text p {
 display:block;
 padding: 0;
  margin: 0 0 2px 0; /* Remove default paragraph margin */
  line-height: 1.4;
}

/* Styling for the Follow Us list */
.foot-contain ul {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin: 10px 0 0 0;
    display:flex;
    flex-wrap:wrap;
    gap:25px;
    justify-content: flex-start;
}

.foot-contain li {
    margin-bottom: 10px;
    display:inline-block;
    padding: 7px;
  
}

.foot .foot-contain li a {
    color: #ccc; /* Link color */
    text-decoration: none; /* Remove underline */
    display:flex;
    align-items: center;
    transition: color 0.3s ease; /* Smooth hover effect */
}

.foot-contain li a i:hover {
    color: red; /* Link color on hover */
}

.foot-contain li a i {
    margin-right: 8px; /* Space between icon and text */
    width: 25px; /* Consistent icon width */
  font-size: 1.4em;
  text-align: center;
  transition: color 0.3s ease; /* Add transition for icon color */
}


/* Style for the bottom copyright section */
.bottom {
  text-align: center; /* Centers the text */
  padding-top: 15px; /* Adds space above the copyright */
  border-top: 1px solid #444; /* Optional separator line */
  width: 100%; /* Ensures it takes full width */
  font-size: 0.9em;
  color: #aaa; /* Slightly dimmer text color */
}

.foot .foot-contain li i{
  color:white;
}
.foot .foot-contain .box .icon i{
  color:white;
}




/* Responsive Design */

@media (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;
}
  .video-background {
    height: 100vh;
    margin-top: 10%;

  }

  .video-background video {

    object-fit: cover;
  }

  .para {
    position: absolute;
    padding: 10px;
    margin-top: 120px; /* Adjust as needed */
    text-align: center;
    margin-bottom:5%;
  }

  .para p {
    font-size: 20px;
    line-height: 1.4;
  }
 

  .foot-contain {
    margin-left: 0;
    min-width: auto;
  }

  .dropdown-content, .submenu-content {
    position: absolute;
    margin: 0;
  }
  .head{
    top:5%;
  }
.head::after{
  bottom:-15px;
}
  .content{
    margin-top:27%;
    height:140%;
  }
  .expert{
    height:100%;
    margin-top:135%;
  }
  .choose{
    margin-top: 230%;
    height:70%;
  }
  .commit{
    margin-top: 290%;
    height:30%;
  }
   footer {
    flex-direction: column;
    padding: 20px;
    margin-top:345%;

  }
}

 /* Hides hamburger on desktop/tablet */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: black;
  margin-left:1rem;
}

/* MOBILE ONLY - max-width 500px */
@media screen and (max-width: 500px) {
  html, body {
    height: auto;
    overflow-y: auto;
  }
  .video-background{
     min-height: 100vh;
    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;
   padding:0px;
  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;
  }
 .head{
  margin-top:8rem;

 }
  .head h1{
    font-size:0.8rem;
  }
.head::after{
  margin-bottom: 100px;
}
.content{
  margin-top: 10rem;
  min-width:110%;
  height:auto;
  margin-left:0px;
  
}
.content p{
  font-size:0.9rem;
}
.expert{
  margin-top:110rem;
  height:auto;
  width:auto;
  margin-right:1.4rem;
}
.expert p{
  font-size:0.9rem;
}
.choose{
  margin-top:210rem;
  height:auto;
  width:auto;
    margin-right:1.4rem;

}

.choose p{
  font-size:0.9rem;
}
.commit{
  margin-top:265rem;
  height:auto;
    margin-right:1.4rem;
width:auto;
}
.commit p{
  font-size:0.9rem;
}
  footer{
    margin-top: 310rem;
  }
}




 





 


