/* Font and Color Variables */
:root {
  --main-green: #0b4946;
  --accent-green: #00754a;
  --accent-red: #d3817a;
  --beige: #faf7f2;
  --text-primary: #454545;
  --text-secondary: #6a7878;
  --background-light: #e4e1d5;
}

/* Global Font Settings */
body {
  font-family: "Hind", sans-serif;
  color: var(--text-primary);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
}

/* Text Styles */
.heading-text,
.montserrat-headers {
  font-family: "Montserrat", sans-serif;
  color: var(--accent-green);
}

.paragraph-text,
.hind {
  font-family: "Hind", sans-serif;
  color: var(--text-secondary);
}

/* Additional specific styles could go here */

/* Custom hover effect for circle color change
.relative:hover .absolute {
  background-color: #cf4657; /* Transition to red */

/* .relative:hover .absolute > div {
  background-color: #cf4657; Transition inner circle to red */

.text-header {
  color: #e4e1d5; /* Example color for header links and text */
}

.text-hero-title {
  color: #cf4657; /* Example color for hero title */
}

.text-hero-paragraph {
  color: #e4e1d5; /* Example color for hero paragraph text */
}

.bg-hero-button {
  background-color: #cf4657; /* Button background color */
  color: var(--accent-green);
}

.container {
  max-width: 1440px;
  margin: 0 auto;
}

.service-card {
  border: 1px solid var(--accent-green);
}

.header-logo {
  height: 100px !important;
}
/* from Below*/

/* General Container Styling */
.service-cards-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Service Cards */
.service-cards {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: nowrap; /* Prevent wrapping on desktop */
  width: 100%;
}

/* Service Card Styling */
.service-card {
  position: relative;
  background-position: center;
  background-size: cover;
  height: 45vh;
  width: 23%; /* Default card width for desktop */
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  flex-grow: 1;
  flex-basis: 23%;
}

/* Overlay Text */
.service-card .overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.service-card h3 {
  font-size: 24px;
  font-weight: 600;
}

.service-card p {
  font-size: 18px;
  font-weight: 400;
  text-decoration: underline;
  cursor: pointer;
}

/* Hover Effects for Desktop */
.service-card:hover {
  width: 57.5%;
}

.service-1:hover,
.service-4:hover {
  width: 57.5%;
}

.service-2:hover,
.service-3:hover {
  width: 57.5%;
}

.service-card:not(:hover) {
  flex-grow: 1;
  flex-basis: 9%;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .service-cards {
    flex-direction: column; /* Stack cards vertically */
    gap: 0; /* Remove gaps between stacked cards */
    height: 100vh;
  }

  .service-card {
    width: 100%; /* Full width on mobile */
    height: 100vh; /* Full viewport height for each card */
    flex-basis: 100%; /* Ensure full width for each card */
    border-radius: 0; /* Remove rounded corners for fullscreen effect */
    margin-bottom: 2em;
  }

  .service-card .overlay h3 {
    font-size: 28px; /* Increase font size for mobile */
  }

  .service-card .overlay p {
    font-size: 20px;
  }
  .service-cards {
    flex-direction: column !important;
  }

  .service-card {
    width: 100% !important;
    height: 100vh !important;
  }
}

/*-------------Why Choose*/

/* Optional: Style the separator line between sections */
.border-b {
  border-bottom-width: 1px;
  border-color: #e0e0e0;
}

/*-------------Services2*/

.bg-white:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* CSS for fade-up animation */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0; /* Initially hidden */
  animation: fadeUp 0.8s ease-out forwards; /* Animation properties */
}

/* Staggered Fade-in from Bottom */
.fade-up {
  opacity: 0;
  transform: translateY(60px); /* Start from 30px below */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.servicescta {
  background-color: #0b4946; /* Deep green background */
  color: #faf7f2; /* Light beige for text to stand out */
}

/* Base styles for header */
#navbar {
  background-color: transparent;
  backdrop-filter: none;
  color: white;
}

/* Navbar after scroll */
#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  color: black;
}

/* Nav links base styles */
.nav-link {
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: color 0.3s ease;
  text-transform: uppercase;
}

/* Nav links hover effect */
.nav-link:hover {
  color: var(--accent-green);
}

/* Animated underline effect */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -10px; /* Position underline slightly below the text */
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-green);
  transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
  width: 100%;
}

/* Nav links color change on scroll */
#navbar.scrolled .nav-link {
  color: black;
}

#navbar.scrolled .nav-link:hover {
  color: var(--accent-green);
}

#navbar.scrolled .nav-link::after {
  background-color: var(--accent-green);
}

/* Contact button */
.contact-button {
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
}

/* Mobile menu and hamburger */
#hamburger-icon {
  display: none; /* Hidden by default on larger screens */
}

#hamburger-button {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 21px;
  width: 21px;
}

#mobile-menu {
  display: none;
}

/* Show mobile menu when active */
#mobile-menu.active {
  display: block;
  text-transform: uppercase;
  color: var(--accent-green);
  background-color: rgba(255, 255, 255, 0.3);
}

/* Mobile Links */
.mobile-link {
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 0;
  transition: color 0.3s ease;
  margin-left: 1em;
  border-bottom: 1px solid white;
}

/* Links hover effect on mobile */
.mobile-link:hover {
  color: var(--accent-red);
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
  /* Show hamburger icon on small screens */
  #hamburger-icon {
    display: block;
    color: #0b4946;
  }

  /* Hide regular nav links on small screens */
  #nav-links {
    display: none;
  }

  /* Mobile menu (hidden by default) */
  #mobile-menu {
    display: none;
  }
}

.footer-form-h2 {
  color: #cf4657;
}

.logo {
  height: 100px; /* Sets the logo height */
}

.nav-link {
  display: flex;
  align-items: center; /* Centers the menu items with the logo vertically */
}

.container {
  display: flex;
  align-items: center; /* Ensures all items are aligned to the middle */
}

.service-card {
  filter: grayscale(100%);
}

.service-card:hover {
  filter: grayscale(0%) brightness(0.8);
}

.service-card:hover .overlay {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease-in-out; /* Smooth transition */
  padding: 1em 2em;
}

@media (max-width: 1024px) {
  .mobile-hero-section {
    height: auto; /* Adjust height for smaller screens */
    padding: 46px 0px;
  }

  .h-screen {
    height: 100% !important;
  }

  .chooose-section {
    width: 100% !important;
  }

  .choose-item {
    padding-left: 0px !important;
  }
  .heading-text {
    text-align: center;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  footer .border-b {
    flex-direction: column; /* Stack other elements vertically */
    align-items: center; /* Center align content */
  }

  footer .flex.space-x-4 {
    justify-content: center; /* Keep social icons centered */
  }
  .header-logo {
    height: 63px !important;
  }
}

.hamburger-line {
  transform-origin: center;
}
