/* Reset basic styles */
body,
header,
a,
button {
  /* Targeting body, header, anchor tags, and buttons */
  margin: 0; /* Remove default margin */
  padding: 0; /* Remove default padding */
  font-family: Arial, sans-serif; /* Set the font to Arial */
  box-sizing: border-box; /* Ensures padding and border are included in element width/height */
}

/* Style the top bar */
header {
  position: fixed; /* Fix the header at the top */
  top: 0; /* Stick to the top of the page */
  width: 100%; /* Full width */
  display: flex; /* Use flexbox to align items horizontally */
  justify-content: space-between; /* Distribute items evenly with space between them */
  align-items: center; /* Center items vertically */
  background-color: white; /* Set the background color to green */
  padding: 10px 20px; /* Add 10px padding vertically and 20px horizontally */
  color: green !important; /* Set the text color */
  z-index: 1000; /* Ensure the header is above other content */
  height: 50px; /* Set a fixed height for the header */
}

/* Top bar sections */
.top-bar {
  display: flex; /* Use flexbox to align items horizontally within each section */
  align-items: center; /* Center items vertically */
}

/* Language button */
.language {
  position: relative; /* Position relative to allow absolute positioning of the popup menu */
}

#language-btn {
  background: none; /* Remove default background */
  border: none; /* Remove border */
  color: green; /* Set text color */
  cursor: pointer; /* Change cursor to pointer on hover */
  font-size: 16px; /* Set font size */
}

.language-popup {
  display: none; /* Initially hide the popup */
  position: absolute; /* Position relative to the container */
  top: 30px; /* Position the popup 30px below the button */
  left: 0; /* Align the popup to the left of the container */
  background-color: #73983b; /* Set the background color to white */
  border: 1px solid #ccc; /* Add a light gray border */
  border-radius: 5px; /* Round the corners of the popup */
  z-index: 1000; /* Ensure the popup appears above other elements */
}

.language-popup button {
  background: none; /* Remove default background */
  border: none; /* Remove default border */
  padding: 10px; /* Add padding inside the buttons */
  color: white; /* Set the text color to green */
  cursor: pointer; /* Change cursor to pointer on hover */
  text-align: left; /* Align text to the left */
  width: 100%; /* Make buttons span the full width of the popup */
}

.language-popup button:hover {
  background-color: #f0f0f0; /* Set a light gray background */
}

/* Contact info */
.contact-info a {
  color: green !important; /* Set text color */
  text-decoration: none; /* Remove underline from links */
  display: flex; /* Use flexbox to align icon and text horizontally */
  align-items: center; /* Center icon and text vertically */
  margin: 0 15px; /* Add 15px horizontal margin between items */
}

.contact-info i {
  margin-right: 5px; /* Add 5px space between icon and text */
}

/* Social media links */
.social-media a {
  color: white; /* Set icon color */
  background-color: green; /* Set icon background to white */
  font-size: 18px; /* Set font size */
  width: 30px; /* Set icon width to 30px */
  height: 30px; /* Set icon height to 30px */
  line-height: 30px; /* Center icon vertically */
  text-align: center; /* Center icon horizontally */
  border-radius: 50%; /* Make the icon background circular */
  margin-left: 5px; /* Add 5px space between social media icons */
  transition: transform 0.2s; /* Add smooth scaling transition effect */
}

.social-media a:hover {
  transform: scale(1.1); /* Slightly increase size on hover */
}

/* Vertical separators */
.separator {
  width: 1px; /* Set the width of the separator */
  height: 20px; /* Set the height of the separator */
  background-color: green; /* Set the color */
  margin: 0 10px; /* Add horizontal margin around the separator */
}

/* Navbar Styling */
.navbar {
  position: fixed; /* Fixed position to keep navbar at the top */
  top: 50px; /* Position below the header */
  width: 100%; /* Full width */
  padding: 5px 20px; /* Reduced top and bottom padding */
  background-color: green !important; /* Force navbar background to white */
  color: gold !important; /* Default text color for navbar */
  display: flex; /* Flexbox for alignment */
  justify-content: space-between; /* Space between logo and links */
  align-items: center; /* Center items vertically */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
  transition: background 0.3s ease, color 0.3s ease; /* Smooth transitions */
  z-index: 1000; /* Ensure navbar is above other content */
  height: 70px; /* Set a fixed height for the navbar */
}

/* Navbar Brand (Logo) */
.navbar-brand img {
  width: 70px; /* Set the logo width */
  height: auto; /* Maintain aspect ratio for the logo */
  margin-right: 50px; /* Add space between the logo and the next element */
}

/* Change Navbar Background on Scroll */
.navbar.scrolled {
  background: green !important; /* Change background color on scroll */
  color: gold !important; /* Change text color on scroll */
}

/* Shop Now Button */
.rent-btn {
  background-color: gold; /* Button background color */
  color: green; /* Button text color */
  padding: 8px 20px; /* Add padding to increase clickable area */
  border-radius: 20px; /* Make the button corners rounded */
  text-decoration: none; /* Remove default underline styling for links */
  font-size: 14px; /* Adjust button text size */
  font-weight: bold; /* Make button text bold */
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth color change on hover */
  margin-right: 20px;
}

.rent-btn:hover {
  background-color: white; /* Subtle hover effect for the button */
  color: green;
}

/* Change Shop Now Button on Scroll */
.navbar.scrolled .rent-btn {
  background-color: gold; /* Change background color to white */
  color: green; /* Change text color to green */
}

/* Navbar Links */
.navbar-nav {
  display: flex; /* Ensure flexbox is enabled */
  gap: 15px; /* Add a 15px gap between nav links */
}

/* Navbar Links */
.nav-link {
  color: gold !important; /* Navbar link text color */
  font-size: 15px; /* Set the font size for navbar links */
  padding: 10px 15px; /* Add padding for spacing */
  text-decoration: none; /* Remove default underline styling */
  transition: color 0.3s; /* Smooth color change on hover */
  position: relative; /* Required for positioning the submenu */
}

.nav-link:hover {
  color: white; /* Add a hover effect for better interactivity */
}

/* Change Navbar Links Color on Scroll */
.navbar.scrolled .nav-link {
  color: gold !important; /* Change text color to white */
}

/* Sub-menu Styling */
.sub-menu {
  display: none; /* Hide submenu by default */
  position: absolute; /* Position submenu relative to its parent */
  top: 100%; /* Position submenu below the parent link */
  left: 0; /* Align submenu to the left */
  background-color: green !important; /* Submenu background color */
  color: #000;
  box-shadow: 0 2px 8px rgba(41, 205, 76, 0.158); /* Add a shadow for depth */
  border-radius: 4px; /* Make submenu corners slightly rounded */
  z-index: 10; /* Ensure submenu appears on top of other elements */
}

/* Show submenu on hover */
.rent-buy:hover .sub-menu {
  display: block; /* Show submenu when hovering over parent link */
}

/* Navigation Toggle (Hamburger icon) */
.navbar-toggler {
  border-color: green; /* White border for the toggle button */
}

.navbar-toggler-icon {
  background-color: forestgreen; /* White toggle icon */
}

/* Icons & Register Button */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px; /* Add a 15px gap between icons and register button */
  margin-left: 20px;
}

.nav-icons i {
  font-size: 18px;
  margin-right: 15px;
  cursor: pointer;
}

.register-btn {
  background: gold;
  color: green;
  padding: 8px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
}

.register-btn:hover {
  background: white;
  color: green;
}

/* Change register button Color on Scroll */
.navbar.scrolled .register-btn {
  background-color: gold;
  color: green !important; /* Change text color to white */
}

/* Navbar Animation */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.navbar.scrolled {
  animation: slideDown 0.5s ease-in-out;
}

/* Impacts section */
.impact-section {
  background-color: #f9f9f9;
  text-align: center;
  overflow: hidden;
  margin-top: 120px;
}

.impact-title {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 30px;
}

.green {
  color: orange;
}

.impact-content {
  opacity: 0;
  transform: translateX(-100%);
  transition: all 1s ease-in-out;
}

.impact-text {
  font-size: 20px;
  text-align: left;
}

.impact-text ul li {
  font-size: 20px;
  margin-bottom: 10px;
}

.impact-text i {
  color: green !important;
  margin-right: 10px;
}

.impact-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-box {
  background: green;
  color: white;
  padding: 20px;
  width: 45%;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.stat-box:hover {
  transform: scale(1.05);
}

.stat-box h3 {
  font-size: 32px;
  margin: 5px 0;
  color: orange;
}

.stat-box p {
  font-size: 18px;
}

/* WhatsApp Icon */
.whatsapp-icon {
  position: fixed; /* Fixed to viewport */
  bottom: 20px; /* 20px from the bottom */
  left: 20px; /* 20px from the left */
  background: #25d366; /* WhatsApp green color */
  color: white; /* Icon color */
  font-size: 2rem; /* Icon size */
  padding: 15px; /* Padding for the icon */
  border-radius: 50%; /* Circular icon */
  cursor: pointer; /* Pointer on hover */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  z-index: 100; /* Place above other elements */
}

/* WhatsApp Popup Container */
.whatsapp-popup {
  display: none; /* Initially hidden */
  position: fixed; /* Fixed to viewport */
  bottom: 80px; /* Popup position above the WhatsApp icon */
  left: 20px; /* Align with the WhatsApp icon */
  width: 300px; /* Fixed width */
  background: white; /* Popup background */
  border: 1px solid #ddd; /* Light border */
  border-radius: 15px; /* Circular edges for the popup */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  z-index: 101; /* Above the icon */
  font-family: Arial, sans-serif; /* Default font */
}

/* Show popup on hover over either the icon or the popup */
.whatsapp-icon:hover + .whatsapp-popup,
.whatsapp-popup:hover {
  display: block; /* Keep the popup visible */
}

/* Popup Header */
.popup-header {
  display: flex; /* Horizontal alignment */
  justify-content: space-between; /* Space between text and close icon */
  align-items: center; /* Center align */
  background: #25d366; /* WhatsApp green */
  color: white; /* White text */
  padding: 10px; /* Padding inside */
  border-radius: 15px 15px 0 0; /* Rounded top corners */
  font-size: 1rem; /* Header font size */
}

.popup-header .close-popup {
  cursor: pointer; /* Pointer on hover for close icon */
  font-size: 1.2rem; /* Icon size */
}

/* Popup Body */
.popup-body {
  padding: 15px; /* Add space inside */
  font-size: 0.9rem; /* Text size */
  color: #555; /* Slightly dark text color */
  line-height: 1.5; /* Line spacing */
}

/* Popup Footer */
.popup-footer {
  padding: 10px; /* Add space inside */
  text-align: left; /* Align "Open Chat" button to the left */
}

.popup-footer .open-chat-btn {
  display: inline-flex; /* Align icon and text horizontally */
  align-items: center; /* Center icon and text vertically */
  justify-content: center; /* Center content */
  background: #25d366; /* WhatsApp green */
  color: white; /* White text */
  text-decoration: none; /* Remove underline */
  padding: 10px 15px; /* Button padding */
  border-radius: 15px; /* Circular button edges */
  font-size: 0.9rem; /* Button font size */
  transition: background 0.3s; /* Smooth hover effect */
}

.popup-footer .open-chat-btn:hover {
  background: #1da851; /* Darker green on hover */
}

/* WhatsApp arrow icon before text */
.popup-footer .open-chat-btn::before {
  content: "➤"; /* Right chevron */
  margin-right: 8px; /* Space between icon and text */
  font-size: 1rem; /* Icon size */
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed; /* Keep button fixed to viewport */
  bottom: 20px; /* Position 20px from bottom */
  right: 20px; /* Position 20px from right */
  background: #2f772b; /* Green background */
  color: #fff; /* White color for arrow */
  border-radius: 50%; /* Make it circular */
  padding: 10px; /* Add padding inside */
  font-size: 1.5rem; /* Arrow size */
  cursor: pointer; /* Change cursor to pointer on hover */
  z-index: 10; /* Place above other elements */
}

/* Scroll to Top Hover Effect */
.scroll-to-top:hover {
  background: #225320; /* Darker green on hover */
}

/* Footer Styling */
:root {
  --green: green; /* Define a custom green color */
  --yellow: #ffc107; /* Define a custom yellow color */
}

.bg-green {
  background-color: var(--green); /* Set background color to green */
}

.bg-yellow {
  background-color: var(--yellow); /* Set background color to yellow */
}

.text-yellow {
  color: var(--yellow); /* Set text color to yellow */
}

.decorated-line {
  height: 2px; /* Set height of the decorated line */
  width: 50px; /* Set width of the decorated line */
  background-color: white; /* Set color of the decorated line */
}

.btn-yellow {
  background-color: var(--yellow); /* Set button background color to yellow */
  color: var(--green); /* Set button text color to green */
  border: none; /* Remove button border */
}

.btn-yellow:hover {
  background-color: #e0a800; /* Change button background color on hover */
}

.social-icons a {
  font-size: 1.5rem; /* Set social media icon size */
  transition: color 0.3s; /* Add smooth transition for icon color */
}

.social-icons a:hover {
  color: #e0a800; /* Change icon color on hover */
}

/* Bold text for Contact Us labels */
.contact-us-label {
  font-weight: bold; /* Make text bold */
}

/* Yellow hover effect for Quick Links */
.quick-links a {
  color: white; /* Set default text color to white */
  text-decoration: none; /* Remove underline */
  transition: color 0.3s; /* Add smooth transition for text color */
}

.quick-links a:hover {
  color: var(--yellow); /* Change text color to yellow on hover */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .footer .col-md-3 {
    margin-bottom: 2rem; /* Add margin between columns on smaller screens */
  }
}

/* Specific styles for the footer section */
.footer-section {
  position: relative; /* Ensure the footer is positioned correctly */
  z-index: 10; /* Ensure the footer is above other elements */
  margin-top: auto; /* Push the footer to the bottom of the page */
}
