@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_services/development_img.jpg');
}

.section2::before {
  background-image: url('img_services/marketing_img.jpg');
}

.section3::before {
    
  background-image: url('img_services/bamboo_img.jpg');
}

.section4::before {    
  background-image: url('img_services/soil_img.jpg');
}
.section5::before {
    background-image: url('img_services/energy_img.jpg');
}


/* h1 Styling */
.section h1 {
  font-size: var(--heading-font-size);
  font-weight: 600;
  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 p {
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  z-index: 0;
  position: absolute;
  text-align: justify;
  margin-left: 100px;
  margin-right: 100px;
  line-height: 22px;
  bottom: 120px; /* 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 p {
  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);
}


/* Responsive styles */
@media (max-width: 768px) {
  .section h1 {
      font-size: 1.5rem;
  }

  .section p {
      font-size: 1rem;
      margin: 30px;
  }

  .btn {
      padding: 8px 16px;
      font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .section h1 {
      font-size: 1.2rem;
  }

  .section p {
      font-size: 0.9rem;
      margin: 30px;
  }

  .btn {
      padding: 6px 12px;
      font-size: 0.8rem;
  }
}


.navbar-home{
  padding-left: 1700%;
}



/* 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: #14330a60;
  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 */
  }
  .navbar-home {
    position: absolute;
    top: 30px;
    right: 20px;
    padding-right: 40px;
}
}

/* 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 */
  }
  .navbar-home {
    position: absolute;
    top: 30px;
    right: 20px;
    padding-right: 40px;
}

}
@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: 40px;
  }

  .navbar-links a {
    font-size: 1.5rem; /* Larger font size for desktop */
  }
  .navbar-home {
    position: absolute;
    top: 30px;
    right: 20px;
    padding-right: 70px;
}
}

@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 */
  }
  .navbar-home {
    position: absolute;
    top: 25px;
    right: 20px;
    padding-right: 25px;
}
}