/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  } 
  html,body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    display:flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background-color: white;
    flex-direction: column;
    overflow-x:hidden;
    overflow-y:auto;
    
  } 
  .video-background {
     top: 0;
     left: 0;
     width: 100%;
     min-height: 100%;
     z-index:1 ;
      /* Make sure the video stays in the background */
     display:flex;
     align-items:center;
     padding:3em;
   }
  /*logo*/
  
  
  .logo {
  width: 190px; /* Adjust the size of your logo */
  height: auto;
  margin-left: 10%;
  
  }
  
  /*menu bar */
  .header{
  position: absolute;
  top:0;
  left:0;
  width:100%;
  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;
  }
  /* content of the body*/
  /* Styling for the content area */
.content {
    width: 100%;
    height:100%;
    position: absolute;
    display: flex;
    flex-direction: column; /* Stack the div elements vertically */
    gap:20px;
    margin: 0;
    padding: 0;
    margin-top: 14%;
   
}

/* Style for each content item */
/*heading*/
.head{
position:absolute;
margin: 0;
padding: 0;
padding-top: 15px;
padding-bottom: 10px;
overflow: hidden;
    font-size: 1.4rem;
    width:100%;
    text-align: center;
   
}
.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:  black; /* Color of the border */
  }
  .head h2{
   /* text-transform: uppercase ;*/
    color:rgba(255, 255, 255, 0.3);
    background: url("public/video/fire.webp");
    background-repeat:repeat-x;
    -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 40%; /* middle */
    }
  
  
  }
  
  /*image*/
  .image{
    width: 100%;
    height: 50vh;
    margin-top: 66px;
    padding: 20px;
    position:absolute;
     
    background-image: url("public/video/about.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; 
    border-radius: 10px;
  }
  /*introduction*/
  .intro{
    font-size: 1.2rem;
    text-align: justify;
    width: 100%;
    margin-top: 35%;
    padding: 10px;
    background-color: white;
    color:black;
    border-radius: 10px;
  }
  .intro p{
    line-height: 50px;
    text-align: justify;
    margin-bottom: 1px;
    margin-left: 10%;
    margin-right: 10%;
  }
 
  .intro span{
    font-weight: bolder;
  text-transform: uppercase ;
   color:black;
   background: url("public/video/fire.webp");
   -webkit-text-fill-color: transparent;
   background-clip: text;
     -webkit-background-clip: text; 
     animation:animate1 2s linear infinite; /* Apply animation */
  }
  /*our service*/
.ourservice{
  margin-top: 0;
  padding-bottom: 20px;
  padding-left: 5px;
  margin-left: 10px;
    width: 98%;
    position:relative;
    height:120vh;
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line if they overflow */
    border-radius: 25px;
    background-color: white;

}
@property --angle{
  syntax:"<angle>";
  initial-value: 0deg;
  inherits:false;
}
.ourservice::after, .ourservice::before{
  content: '';
    background-image:conic-gradient(from var(--angle),transparent 75%,red);
    position: absolute;
    top:50%;
    width: 100%;
    height: 100%;
    left:50%;
    translate:-50% -50%;
    padding: 3px;
    z-index: -2;
    border-radius: 25px;
    animation:3s spin linear infinite;
}

@keyframes spin{
  from{
      --angle:0deg;
  }
  to{
      --angle:360deg;
  }
  
}
 .h{
    position: relative;
padding-top: 15px;
padding-bottom: 10px;
    color:black;
    font-size: 1.4rem;
    width:100%;
    text-align: center;
    margin-bottom: 8px;
}
 .h::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 */
  }
  .ourservice h1{
    display:block;
    font-size: 2rem;
    text-transform: uppercase ;
     color:rgba(255, 255, 255, 0.3);
     background: url("public/video/fire.webp");
     background-repeat:repeat-x;
     -webkit-text-fill-color: transparent;
   background-clip: text;
     -webkit-background-clip: text; 
     animation:animate 4s linear infinite; /* Apply animation */
   }
  
  
/* Styling for individual service items */
.ourservice div {
  position: relative;
    display: flex; /* Flexbox for horizontal layout */
    align-items: center; /* Center vertically */
    width: 31%;/* Set a fixed width for each service item */
    height: 30vh; /* Set a fixed height for each service item */
    margin-top: 10px;
    margin-left: 15px;
    padding-left: 10px;
    padding-top: 10px;;
    margin-bottom: 9px;
    margin-right: 15px;
    background-color: black;
    border-radius: 25px; /* Optional: Rounded corners for each item */
}

.ourservice div h2{
    font-size: 1.25rem;
    margin-top:5px;
    margin-bottom: 10px;
  padding: 2px;
  margin-left: 2px;

}
.ourservice div h2{
  display:block;
  text-transform: uppercase ;
   color:black;
   background: url("public/video/red.jpg");
   -webkit-text-fill-color: transparent;
   background-clip: text;
     -webkit-background-clip: text; 
     animation:animate1 2s linear infinite; /* Apply animation */
 }
 @keyframes animate1{
  0% {
    background-position: center 0%; /* bottom */
  }
 
  100% {
    background-position: center 75%; /* middle */
  }


}


.ourservice div p{
    text-align: justify;
    margin-left: 20px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight:500;
    
}
.ourservice .icon{
  display: flex; /* Make the icon and text inline */
  align-items: center; /* Vertically align the icon and text */
  justify-content: flex-start;
  margin-top: 5px;
  gap: 2px;
  width: 100%; /* Adjust width to content */
  height: auto; /* Adjust height to content */
  background-color: transparent; /* Remove background color */
  border: none; /* Remove border */
  padding: 0; /* Remove padding */
}
.ourservice .icon i{
  margin-bottom: 0px; /* No extra margin between the icon and text */
    margin-left: 10px;
    width: 20px; /* Fixed width for the icon */
    text-align: center; /* Center the icon within its fixed width */
    display: inline-block;
    text-shadow: 0px 0px 5px red; /* Add shadow to the icon */
    color: white; /* Set the initial color of the icon */
    transition: transform 0.3s ease, color 0.3s ease;
}
.ourservice span{
  margin-left: 5px;
    font-weight: bolder;
    font-size: 1rem;
}
.ourservice span{
  display:block;
   background: url("public/video/snow.jpg");
   -webkit-text-fill-color: transparent;
   background-clip: text;
     -webkit-background-clip: text; 
     animation:animate 4s linear infinite; /* Apply animation */
 }
/*all div alignment for vertically*/
.ourservice .asset,
.ourservice .hse,
.ourservice .engineering,
.ourservice .operation,
.ourservice .construction,
.ourservice .commision,
.ourservice .logistic,
.ourservice .digit {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
/*footer*/
footer {
  margin-top: 250%;
  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;
}

/* Media Responsive*/
@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;
  }
  footer {
    flex-direction: column;
    padding: 20px;
    margin-top:450%;

  }

  .foot-contain {
    margin-left: 0;
    min-width: auto;
  }

  .dropdown-content, .submenu-content {
    position: absolute;
    margin: 0;
  }
  .content{
    margin-top:10% ;
  }
  .intro{
    margin-top:30%;
  }
  .ourservice div{
    height:45vh;
    margin-left: 15%;
  }
  .ourservice{
  margin-top: 0;
  padding-bottom: 20px;
  padding-left: 5px;
  margin-left: 5%;
    width: 85%;
    position:relative;
    height:260vh;
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line if they overflow */
    border-radius: 25px;
    background-color: white;

}
 
}

 
/* Hides hamburger on desktop/tablet */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: black;
}
/* MOBILE ONLY - max-width 768px */
@media screen and (max-width: 500px) {
  html, body {
    height: auto;
    overflow-y: auto;
  }
  .video-background{
     height: auto;
    overflow-y: auto;
    padding-top: 150px;
     
  }
  .hamburger {
    display: block;
    margin-left:20px;
  }

  .navbar {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: white;
    margin-top: 10px;
    padding-left: 10px;
    border-top: 1px solid #ccc;
    z-index: 9999;
  }
.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;
    display: none;
    z-index: 99999;
    background: none;
    box-shadow: none;
    margin: 0;
    border: none;
    width: 100%;
  
  }
  
 
.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;
    z-index:9999;
  }
/* 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;
  }
  
 .content{
    margin-top:9rem;
    width:100%;
  }
  .head{
    margin-top:0.5rem;
  }
  .image{
    width:81%;
    margin-top:5rem;
  }
  .intro{
    font-size:0.9rem;
    margin-top:32rem;
    width:80%;
  }
  .intro p{
    line-height:25px;
  }
  .ourservice div{
    width:80%;
    height:auto;
    margin-left: 8%;
  }
   .ourservice{
  margin-top: 0;
  padding-bottom: 20px;
  padding-left: 3px;
  margin-left:3px;
    width: 80%;
    position:relative;
    height:auto;
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line if they overflow */
    border-radius: 25px;
    background-color: white;

}
  footer{
    margin-top: 550rem;
  }
}





 





 


