@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


/* General Reset */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  overflow: hidden; /* Disable default scrolling */
}

:root {
  --heading-font-size: 44px; /* For headings */
  --subheading-font-size: 34px; /* For subheadings */
  --paragraph-font-size: 1rem; /* For paragraphs */
}

/* Container for Sections */
.container {
  overflow: hidden;
  height: auto; /* Full viewport height */
  display: flex;
  flex-direction: column;
  background-color: black;
}

/* Each Section */
.section {
  height: 100vh; /* Full viewport height */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-size: 3em;
  overflow: hidden;
  
}

/* Background Images with Zoom-Out Effect */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.1); /* Start zoomed-in */
  transition: transform 3.2s ease-out; /* Smooth transition */
}

/* Zoom-out effect when active */
.section::before {
  transform: scale(1.0); /* Zoom out to normal size */
}
/* Zoom-out effect for images */
.section.active::before {
  transform: scale(1.4); /* Adjust zoom-out scale */
  transition: transform 6.2s ease-out; /* Smooth zoom effect */
}



.section1::before {
  background-image: url('img_page/about_img.jpg');
}

.section2::before {
  background-image: url('img_page/why_img.jpg');
}

.section3::before {
  background-image: url('img_page/service_img.jpg');
}

.section4::before {
  background-image: url('img_page/project_img.jpg');
}
.section5::before {
  background-image: url('img_page/product_img.jpg');
}
.section6::before {
  background-image: url('img_page/contact_img.jpg');
}
.section7::before {
  background-image: url('img_page/companies_img.jpg');
}
.section8::before {
  background-image: url('img_page/career_img.jpg');
}

/* h1 Styling */
.section h1 {
  font-size: var(--heading-font-size);
  font-weight: 400;
  opacity: 0; /* Initial opacity */
  transform: translateY(300px); /* Start below the view */
  transition: opacity 1s ease-out, transform 1s ease-out; /* Smooth transition */
}

/* When in view */
.section.visible h1 {
  opacity: 1; /* Fully visible */
  transform: translateY(-100px); /* Original position */
}

/* h3 Styling */
.section h3 {
  margin-top: 20px;
  font-size: 20px;
  color: #ffffff;
  font-weight: 100;
  z-index: 0;
  position: absolute;
  bottom: 80px; /* Position h3 at the bottom of the section */
  opacity: 0; /* Start with zero opacity */
  transform: translateY(150px); /* Start below the view */
  transition: opacity 1s ease-out, transform 1s ease-out; /* Smooth transition */
}

/* When in view */
.section.visible h3 {
  opacity: 1; /* Fully visible */
  transform: translateY(0); /* Original position */
}

/* Button Styling */
.btn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #ffffff00;
  color: rgb(0, 0, 0);
  border: 1px solid white; /* White border */
  border-radius: 5px;
  z-index: 0;
  cursor: pointer;
  position: absolute;
  bottom: 50px;
  opacity: 0; /* Start with zero opacity */
  transform: translateY(500px); /* Start below the view */
  transition: opacity 2s ease-out, transform 2s ease-out, background-color 0.3s ease, transform 1s ease; /* Smooth transition */
}

.btn a{
  text-decoration: none;
  color: #ffffff;
}

.section.visible .btn {
  opacity: 1; /* Make the button visible when section is in view */
  transform: translateY(0); /* Bring the button into its original position */
}

/* Button Hover */
.btn:hover {
  transform: scale(6.5);
  color: rgb(0, 0, 0);
}





/* Navbar Styling */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #14330a60;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 20px;
  z-index: 1000;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand a {
  font-size: var(--subheading-font-size);
  font-weight: bold;
  margin-left: 25px;
  text-decoration: none;
  color: #ffff;
}

/* Align hamburger menu near SarabaN font */
.navbar-toggle {
  cursor: pointer;
  font-size: 1.5rem;
  color: white;
  display: flex;
  margin-left: 20px;
}

/* Logo placement */
.navbar-logo {
  width: auto;
  height: 60px;
  margin-right: 20px;
}

/* Navbar Links Styling */
.navbar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background-color: #14330a90;
  position: fixed;
  top: -3%;
  left: -100%; /* Start off-screen to the left */
  width: 11%; /* Adjust width as needed */
  height: 100%; /* Full height */
  padding: 2rem 1rem;
  padding-left: 40px;
  transition: left 0.4s ease; /* Smooth transition */
}

.navbar-links.active {
  left: 0; /* Slide into view */
}

.navbar-links li {
  padding: 0.7rem 0;
}

.navbar-links a {
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.navbar-links a:hover {
  color: #229d00;
}



/* Close button styling */
.navbar-links .close-btn {
  align-self: flex-end; /* Align the button to the right */
  margin-right: 10px;
  margin-bottom: 1rem;
  cursor: pointer;
}

.navbar-links .close-btn i {
  font-size: 1.5rem;
  color: white;
  transition: color 0.3s ease;
}




/* Mobile devices (up to 480px) */
@media (max-width: 480px) {
  .navbar {
    padding: 15px 10px; /* Reduce padding for smaller screens */
    display:flex;
  }

  .navbar-brand a {
    font-size: 1.2rem; /* Adjust font size for mobile */
  }

  .navbar-toggle {
    font-size: 1.5rem; /* Hamburger menu size */
  }

  .navbar-logo {
    height: 50px; /* Logo smaller on mobile */
  }

  .navbar-links {
    width: 50%; /* Adjust navbar width for mobile */
    padding-left: 30px; /* Reduce padding */
    padding-top: 25px;
  }

  .navbar-links li {
    padding: 0.5rem 0; /* Adjust padding for list items */
  }

  .navbar-links a {
    font-size: 1.4rem; /* Adjust font size */
  }
  .navbar-home {
    position: absolute;
    top: 25px;
    right: 20px;
    padding-right: 30px;
}
}

/* Tablet devices (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .navbar {
    padding: 20px 15px; /* Adjust padding */
  }

  .navbar-brand a {
    font-size: 1.5rem; /* Slightly larger text for tablet */
  }

  .navbar-toggle {
    font-size: 1.5rem; /* Same as mobile */
  }

  .navbar-logo {
    height: 55px; /* Slightly larger logo */
  }

  .navbar-links {
    width: 40%; /* Adjust navbar width */
    padding-left: 35px; /* Adjust padding */
    padding-top: 35px;
  }

  .navbar-links a {
    font-size: 1.5rem; /* Slightly larger font size */
  }
  .navbar-home {
    position: absolute;
    top: 30px;
    right: 20px;
    padding-right: 40px;
  }
}

/* Laptop devices (769px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .navbar {
    padding: 25px 20px; /* Standard padding */
  }

  .navbar-brand a {
    font-size: 1.7rem; /* Adjust font size */
  }

  .navbar-toggle {
    font-size: 1.7rem; /* Consistent hamburger size */
  }

  .navbar-logo {
    height: 60px; /* Standard logo size */
  }

  .navbar-links {
    width: 25%; /* More space for links */
    padding-left: 40px; /* Standard padding */
    padding-top: 40px;
  }

  .navbar-links a {
    font-size: 1.4rem; /* Larger font size */
  }

}

/* Desktop devices (1025px and above) */
@media (min-width: 1025px)  {
  .navbar {
    padding: 25px 20px; /* Keep standard padding */
  }

  .navbar-brand a {
    font-size: 1.8rem; /* Larger font size for desktops */
  }

  .navbar-toggle {
    font-size: 1.8rem; /* Adjust hamburger menu size */
  }

  .navbar-logo {
    height: 50px; /* Larger logo size for desktop */
  }

  .navbar-links {
    width: 16%; /* Adjust width for larger screens */
    padding-left: 50px; /* Slightly larger padding */
    padding-top: 37px;
  }

  .navbar-links a {
    font-size: 1.5rem; /* Larger font size for desktop */
  }


}
@media (min-width: 1414px) {
  .navbar {
    padding: 25px 20px; /* Keep standard padding */
  }

  .navbar-brand a {
    font-size: 1.8rem; /* Larger font size for desktops */
  }

  .navbar-toggle {
    font-size: 1.8rem; /* Adjust hamburger menu size */
  }

  .navbar-logo {
    height: 50px; /* Larger logo size for desktop */
  }

  .navbar-links {
    width: 10%; /* Adjust width for larger screens */
    padding-left: 60px; /* Slightly larger padding */
    padding-top: 37px;
  }

  .navbar-links a {
    font-size: 1.5rem; /* Larger font size for desktop */
  }

}

@media (max-width:479px){
  .navbar {
    padding: 15px 10px; /* Reduce padding for smaller screens */
    
  }

  .navbar-brand a {
    font-size: 1.2rem; /* Adjust font size for mobile */
  }

  .navbar-toggle {
    font-size: 1.5rem; /* Hamburger menu size */
  }

  .navbar-logo {
    height: 50px; /* Logo smaller on mobile */
  }

  .navbar-links {
    width: 55%; /* Adjust navbar width for mobile */
    padding-left: 30px; /* Reduce padding */
    padding-top: 30px;
  }

  .navbar-links li {
    padding: 0.5rem 0; /* Adjust padding for list items */
  }

  .navbar-links a {
    font-size: 1.4rem; /* Adjust font size */
  }

}




.section {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Styles for arrows */
.prev-arrow,
.next-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: #14330a90;
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  z-index: 10;
}

.prev-arrow {
  left: 10px;
}

.next-arrow {
  right: 10px;
}

.prev-arrow:hover,
.next-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}
.section {
  position: relative;
  overflow: hidden;
  height: 100vh;
}
.section {
  position: relative;
  overflow: hidden;
  height: 100vh;
}

.transition-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease-in-out;
}

.slide img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensures the image scales proportionally */
  position: absolute;
  z-index: 1;
}

.slide.active {
  opacity: 1;
}

.slide .slide-text {
  position: relative;
  z-index: 2;
  font-size: 22px;
  color: white;
  border-radius: 5px;
  text-align: center;
  width: 90%; /* Add space between text and image bottom */
  opacity: 0;
  top: 200px;
  transform: translateY(20px); /* Start slightly below the final position */
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out; /* Smooth text appearance */
}

.slide.active .slide-text {
  opacity: 1;
  transform: translateY(0); /* Move text to the final position */
}


.dots {
  text-align: center;
  margin-top: 10px;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbbbbb67;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #ffffff;
}


/* Mobile devices (portrait, up to 480px) */
@media (max-width: 480px) {
  .container {
    height: auto; /* Adjust height for small screens */
  }

  /* Arrows */
  .prev-arrow,
  .next-arrow {
    font-size: 1.5rem;
    padding: 0.8rem;
  }

  .slide .slide-text {
    font-size: 16px;
    top: 120px; /* Adjust text position */
    width: 90%; /* Ensure the text fits well */
  }

  .dots {
    bottom: 10px;
  }

  .dot {
    height: 12px;
    width: 12px;
  }

  /* Adjust image for small screens */
  .slide img {
    object-fit: cover;
    height: 100%;
  }
}

/* Tablets (portrait and landscape, up to 768px) */
@media (max-width: 768px) {
  .container {
    height: auto; /* Adjust height for tablets */
  }

  /* Arrows */
  .prev-arrow,
  .next-arrow {
    font-size: 2rem;
    padding: 1rem;
  }

  .slide .slide-text {
    font-size: 18px;
    top: 100px; /* Adjust position for readability */
    width: 80%; /* Text width */
  }

  .dots {
    bottom: 15px;
  }

  .dot {
    height: 14px;
    width: 14px;
  }

  /* Adjust image for tablet screens */
  .slide img {
    object-fit: cover;
    height: 100%;
  }
}

/* Tablets (landscape) and small laptops (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    height: auto; /* Adjust height for medium-sized screens */
  }

  /* Arrows */
  .prev-arrow,
  .next-arrow {
    font-size: 2rem;
    padding: 1rem;
  }

  .slide .slide-text {
    font-size: 20px;
    top: 120px; /* Adjust text position */
    width: 80%; /* Text width */
  }

  .dots {
    bottom: 20px;
  }

  .dot {
    height: 16px;
    width: 16px;
  }

  /* Adjust image for tablet landscape / small laptop screens */
  .slide img {
    object-fit: cover;
    height: 100%; /* Make the image height occupy most of the screen */
  }
}

/* Laptops (min-width 1024px) */
@media (min-width: 1024px) {
  .section {
    height: 100vh; /* Full height for large screens */
  }

  /* Arrows */
  .prev-arrow,
  .next-arrow {
    font-size: 2.5rem;
    padding: 1.5rem;
  }

  .slide .slide-text {
    font-size: 24px;
    top: 150px; /* Adjust text position for large screens */
    width: 60%; /* Reduce text width for better layout */
  }

  .dots {
    bottom: 30px;
  }

  .dot {
    height: 18px;
    width: 18px;
  }

  /* Adjust image for laptop screens */
  .slide img {
    object-fit: cover;
    height: 100%;
  }
}

/* Desktops (min-width 1200px) */
@media (min-width: 1200px) {
  .section {
    height: 100vh; /* Full height for desktop screens */
  }

  /* Arrows */
  .prev-arrow,
  .next-arrow {
    font-size: 2rem;
    padding: 2rem;
  }

  .slide .slide-text {
    font-size: 26px;
    top: 180px; /* Further adjust position for large screen */
    width: 50%; /* Reduce text width to focus more on images */
  }

  .dots {
    bottom: 40px;
  }

  .dot {
    height: 20px;
    width: 20px;
  }

  /* Adjust image for desktop screens */
  .slide img {
    object-fit: cover;
    height: 100%;
  }
}




/* For screens up to 768px (tablets and smaller devices) */
@media screen and (max-width: 768px) {
  .section h1 {
      font-size: 35px;
      text-align: center;
      padding-top: 20px; /* Adjusts the heading position */
  }

  .section h3 {
      text-align: center;
  }

  /* Move the button up */
  .btn {
      margin-top: 10px; /* Reduce margin to bring button closer */
  }

  .btn a {
      padding: 12px 20px;  /* Adjust button padding for mobile */
      font-size: 1.1em;
      text-align: center;
  }
}

/* For screens up to 480px (mobile devices) */
@media screen and (max-width: 480px) {
  .section h1 {
    font-size: 35px;
      padding-top: 60px;  /* Adjust header padding for mobile */
      margin-top: 30px;
  }

  .section h3 {
    padding-bottom: 35%;
  }

  /* Move the button up more */
  .btn {
      margin-top: 5px; /* Further reduces space between button and content */
      margin-bottom: 36%;
    }

  .btn a {
      padding: 10px 18px; /* Adjust button padding for smaller screens */
      font-size: 1em;
  }
}