/* General Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Primary Colors */
:root {
    --primary-green: #09a011;
    --secondary-green: #6B8E23;
    --white: #ffffff;
}
.section {
    padding: 60px 20px;
}
.logo-container {
    display: flex;
    align-items: center; /* Align logo vertically */
    justify-content: flex-start;
}

.company-logo {
    height: 80px; /* Adjust logo size */
    width: auto;
    margin-right: 20px; /* Space between logo and menu */
    border-radius: 10px;
}

/* Sticky Menu */
.sticky-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
  }
  
  .company-logo {
    height: 40px;
  }
  
  .nav-center {
    flex: 1;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;
  }
  #menuList {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
  } 
  .nav-center ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-center ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-center ul li a {
    text-decoration: none;
    color: #09a011;
    font-weight: 500;
    transition: color 0.3s;
  }
  
  .nav-center ul li a:hover {
    color: #333;
  }
  
  .menu-toggle {
    font-size: 28px;
    cursor: pointer;
    display: none;
    user-select: none;
  }
  .login-button {
    background-color: #ffffff;
    color: #09a011;
    border: 2px solid #09a011;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    margin-right: 10px;
    transition: background-color 0.3s ease;
  }
  
  .login-button:hover {
    background-color: #09a011;
    color: #ffffff;
  }
  
  .nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

/* Home Section */
/* Slider container */
.slider {
    display: flex;
    overflow: hidden;
    height: 100%;
    background: var(--secondary-green);
    color: var(--white);
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    position: relative;
}

/* Slide styling */
.slide {
    display: none; /* Hide all slides by default */
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

/* Show active slide */
.slide.active {
    display: block; /* Only the active slide is shown */
}

/* Image styling inside the slide */
.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 10;
    padding: 0 15px;
}
.slide-text-overlay {
    background-color: rgba(255, 255, 255, 0.85); /* White with some transparency */
    padding: 20px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: inline-block;
    color: #333; /* Dark text for contrast */
}

.slide-text-overlay h1 {
    font-size: 1.5em;
    margin-top: -5px;
}

.slide-text-overlay p {
    font-size: .8em;
    margin: 0;
}
.slide-text-list {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 15px 0;
    color: #333;
    font-size: 0.6em;
}

.slide-text-list li {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* spacing between checkmark and text */
    margin-bottom: 8px;
}
.slide-text-list li::before {
    content: "✔";
    color: #09a011;
    font-weight: bold;
    font-size: 1em;
}


.read-more-btn:hover {
    background-color: #078c0e;
    transform: scale(1.05);
}

.projects-carousel-section {
    padding: 60px 20px;
    background-color: #d7d7d7;
    text-align: center;
}

.projects-carousel-section h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #09a011;
}

.projects-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
}

.projects-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.project-card {
    flex: 0 0 80%;
    max-width: 400px;
    scroll-snap-align: center;
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease;
    margin: auto;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    margin-bottom: 10px;
    color: #077c0c;
}

.project-card p {
    margin: 6px 0;
    font-size: 0.95em;
    color: #333;
}




/* Service Tiles */
.service-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px auto;
    width: 80%;
}
.tile {
    position: relative;
    background: var(--primary-green);
    color: var(--white);
    padding: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, background-color 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1;
}

.tile::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 80%, rgba(0,0,0,0.5) 100%);
    z-index: 0;
    pointer-events: none;
}

.tile-content {
    position: relative;
    z-index: 1;
}

.tile-content h2 {
    text-align: center; /* Center-align the text */
    font-size: 1.5em; /* Larger font size for section titles */
    font-weight: 600; /* Slightly bold for emphasis */
    color: #ffffff; /* Primary Green color */
    margin-bottom: 20px; /* Spacing below the title */
    position: relative; /* For creating a stylish line under the title */
}

.tile.visible {
    opacity: 1;
    transform: translateY(0);
}

.tile:hover {
    background-color: var(--white);
    color: var(--secondary-green) !important;
    border: 1px solid var(--secondary-green);
}
.tile:hover h2,
.tile:hover p {
    color: var(--secondary-green);
}

/* About Section */
.about-us {
    padding: 60px 0;
    background-color: #f4f4f4;
}

.about-us-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    position: relative;
}

/* Styling for the image */
.about-us-image {
    flex: 0 0 50%; /* Image takes up 40% of the width */
    position: relative;
}

.about-us-image img {
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Styling for the text */
.about-us-text {
    flex: 0 0 45%; /* Text takes up 55% of the width */
    padding-left: 20px;
    position: relative;
    z-index: 1;
    background-color: var(--white);
}

/* Overlap effect */
.about-us-image img {
    position: relative; /* Change from absolute to relative positioning */
    width: 100%; /* Ensure the image takes full width within its container */
    max-width: 500px; /* You can set a max-width to prevent the image from growing too large */
    height: auto;
    margin: 0 auto; /* Center the image horizontally */
    display: block;
    z-index: 0;
}

/* Heading and paragraph styling */
.about-us-text h2 {
    font-size: 2.5em;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}

.why-us-text p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
}


/* Banner Section */
.about-banner {
    background: url('../images/about-banner.png') no-repeat center center/cover;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    background-color: rgba(0,0,0,0.4);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay h1 {
    color: white;
    font-size: 3em;
    font-weight: bold;
    text-align: center;
}

/* About Content */
.about-content {
    background: #f9f9f9;
    padding: 80px 20px;
}

.about-content .container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-block {
    margin-bottom: 60px;
    padding: 40px 30px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-block h2 {
    color: #09a011;
    font-size: 28px;
    margin-bottom: 20px;
}

.about-block p {
    font-size: 18px;
    color: #333;
    line-height: 1.7;
}

.core-values-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.core-values-list li {
    background: #09a011;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
}




/* Team Section */
.team-section {
    padding: 50px 20px;
    background-color: #fff;
}

.team-grid {


    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 20px;
}

.team-card {
    flex: 1 1 300px; /* Grow and shrink, but don't go below 250px */
    max-width: 400px;
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-card img {
    width: 100%;
    height: 300px; /* Or auto if you want natural height */
    object-fit: cover;
    display: block;
}


.team-info {
    padding: 15px;
}

.team-info h3 {
    margin-bottom: 5px;
    color: #09a011;
}

.team-info p {
    font-size: 0.95em;
    color: #333;
}

/* Responsive Container */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}


/* Services Section */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
}
.card {
    width: 400px;
    padding: 20px;
    background: var(--white);
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.card:hover {
    transform: scale(1.05);
}
.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px; /* slightly larger than icon size for spacing */
    margin-bottom: 10px; /* space below icon */
}

.icon img {
    width: 120px;  /* Set the size of each icon */
    height: 120px;  /* Set the size of each icon */
}

/* Basic styling for carousel */
.carousel {
    display: flex;
    overflow: hidden;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: auto;
    
}
.carousel-items {
    display: flex; /* Display items inline */
    transition: transform 0.5s ease; /* Smooth transition when sliding */
}

.carousel-item {
    flex: 0 0 35%; /* Hide all items by default */
    width: 90%;  /* Set a specific width for carousel items */
    max-width: 600px;  /* You can adjust this value as needed */
    text-align: center;
    margin: 0 auto;  /* Centers the carousel items */
    margin: 0 auto;  /* Centers the carousel item */
    background: #f4f4f4;  /* Light background color */
    border-radius: 12px;  /* Rounded corners */
    padding: 50px;  /* Padding around the content */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);  /* Subtle shadow */
    transition: transform 0.3s ease;  /* Smooth transform effect */
}


.carousel-item img {
    max-width: 50%;  /* Ensures image is responsive and doesn't exceed its container */
    height: auto;     /* Maintains the aspect ratio */
    border-radius: 8px;  /* Keeps rounded corners */
    display: block;   /* Ensures image is displayed as a block element */
    margin: 0 auto;   /* Centers the image within its container */
}

/* Header for the text */
.carousel-text h4 {
    font-size: 1.5em;
    font-weight: bold;
    color: #2e8b57;  /* Green color for the name */
    margin-bottom: 10px;
}

/* Paragraph styling */
.carousel-text p {
    font-size: 1em;
    line-height: 1.6;
    color: #333;  /* Dark gray color for the text */
    margin-bottom: 20px;
}

.carousel-item:hover {
    transform: scale(1.05);  /* Slight zoom effect when hovered */
}

/* Styling for navigation buttons */
button.prev, button.next {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 10;
}

button.prev {
    left: 10px;
    color: var(--primary-green);
}

button.next {
    right: 10px;
    color: var(--primary-green);
}



.read-more {
    text-decoration: none;
    color: #2E8B57; /* Primary Green */
    font-size: 0.5em;

    
}

.read-more:hover {
    background-color: #2e8b57;
    color: white;
}




.read-more {
    font-size: 1em;
    color: #09a011;
    border: 2px solid #09a011;
    padding: 5px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #09a011;
    color: white;
}


/* Contact Section */
.contact-info,
.modern-contact-form {
    flex: 1;
    min-width: 280px;
    max-width: 100%;
    box-sizing: border-box;
}



.modern-contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modern-contact-form input,
.modern-contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    background-color: #f9f9f9;
    transition: border-color 0.3s, background-color 0.3s;
}

.modern-contact-form input:focus,
.modern-contact-form textarea:focus {
    border-color: #09a011;
    background-color: #fff;
    outline: none;
}

.modern-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.modern-contact-form button {
    background: #09a011;
    color: #fff;
    padding: 14px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modern-contact-form button:hover {
    background: #077c0c;
}



.mvv-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    justify-content: center;
    text-align: center;
}

.mvv-box {
    background: linear-gradient(145deg, #ffffff, #f4f4f4);
    border: 1px solid #dcdcdc;
    border-radius: 16px;
    padding: 40px 30px;
    flex: 1 1 320px;
    max-width: 400px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.mvv-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}

.mvv-box h3 {
    color: #2e8b57;
    font-size: 1.6em;
    margin-top: 20px;
    margin-bottom: 15px;
}

.mvv-box p,
.mvv-box ul {
    color: #555;
    font-size: 1em;
    line-height: 1.6;
}

.mvv-box ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.mvv-box ul li::before {
    content: '✔';
    color: #2e8b57;
    margin-right: 8px;
}

.mvv-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
}

.mvv-icon img {
    max-width: 100%;
    height: auto;
    display: block;
}


.read-more-btn {
    margin-top: 10px;
    background-color: white;
    color: #2e8b57;
    border: 1px solid #2e8b57;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.read-more-btn:hover {
    background-color: #2e8b57;
    color: white;
}

/* Modal styles */
/* Modal background */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

/* Modal content */
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -200%);
    transition: transform 0.4s ease-in-out;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  
    max-height: 90vh;         /* Keep content within view height */
    overflow-y: auto;         /* Enable scrolling when content is too long */
    box-sizing: border-box;   /* Ensure padding doesn't exceed height */
  }
  

/* When modal is active (displaying), slide into place */
.modal.show .modal-content {
    transform: translate(-50%, -50%); /* Slide into the center */
}

.modal.show {
    opacity: 1;
}


.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}

/* Style for all h2 section titles */
h1 {
    text-align: center; /* Center-align the text */
    font-size: 2.5em; /* Larger font size for section titles */
    font-weight: 600; /* Slightly bold for emphasis */
    color: #2E8B57; /* Primary Green color */
    margin-bottom: 20px; /* Spacing below the title */
    position: relative; /* For creating a stylish line under the title */
}
h2 {
    text-align: center; /* Center-align the text */
    font-size: 2em; /* Larger font size for section titles */
    font-weight: 600; /* Slightly bold for emphasis */
    color: #2E8B57; /* Primary Green color */
    margin-bottom: 20px; /* Spacing below the title */
    position: relative; /* For creating a stylish line under the title */
}

.service-cards h2 {
    text-align: center; /* Center-align the text */
    font-size: 1.5em; /* Larger font size for section titles */
    font-weight: 600; /* Slightly bold for emphasis */
    color: #2E8B57; /* Primary Green color */
    margin-bottom: 20px; /* Spacing below the title */
    position: relative; /* For creating a stylish line under the title */
}

h3 {
    text-align: center; /* Center-align the text */
    font-size: 1.5em; /* Larger font size for section titles */
    font-weight: 500; /* Slightly bold for emphasis */
    color: #ffffff; /* Primary Green color */
    margin-bottom: 20px; /* Spacing below the title */
    position: relative; /* For creating a stylish line under the title */
}

/* Decorative line under section titles */
h2::after {
    content: "";
    position: absolute;
    width: 60px; /* Adjust the length of the line */
    height: 4px; /* Line height */
    background-color: #2E8B57; /* Primary Green color */
    bottom: -10px; /* Position it just below the title */
    left: 50%;
    transform: translateX(-50%); /* Center the line */
}

/* Optional: Add a shadow effect to make the text stand out more */
h2 {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}

/* Container for the Why Us section */
.why-us {
    padding: 60px 0;
    background-color: #f4f4f4;
}

.why-us-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    position: relative;
}

/* Styling for the image */
.why-us-image {
    flex: 0 0 50%; /* Image takes up 40% of the width */
    position: relative;
}

.why-us-image img {
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.why-us-image-slider {
    flex: 0 0 50%;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.why-us-slide-track {
    display: flex;
    width: fit-content;
    animation: slideAuto 15s linear infinite;
}

.why-us-slide-track img {
    width: 100%;
    min-width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Animation */
@keyframes slideAuto {
    0% {
        transform: translateX(0%);
    }
    20% {
        transform: translateX(0%);
    }
    25% {
        transform: translateX(-100%);
    }
    45% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(-200%);
    }
    70% {
        transform: translateX(-200%);
    }
    75% {
        transform: translateX(-300%);
    }
    95% {
        transform: translateX(-300%);
    }
    100% {
        transform: translateX(0%);
    }
}


/* Styling for the text */
.why-us-text {
    flex: 0 0 45%; /* Text takes up 55% of the width */
    padding-left: 20px;
    position: relative;
    z-index: 1;
    background-color: var(--white);
}

/* Overlap effect */
.why-us-image img {
    position: relative; /* Change from absolute to relative positioning */
    width: 100%; /* Ensure the image takes full width within its container */
    max-width: 900px; /* You can set a max-width to prevent the image from growing too large */
    height: auto;
    margin: 0 auto; /* Center the image horizontally */
    display: block;
    z-index: 0;
}

/* Heading and paragraph styling */
.why-us-text h2 {
    font-size: 2.5em;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}

.why-us-text p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
}

#contact-map {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

#contact-map h2 {
    color: #2e8b57;
    font-size: 2em;
    margin-bottom: 20px;
}

.map-container {
    max-width: 1000px;
    margin: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2e8b57;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #256b45;
}
/* Base parallax style */

.parallax-caption {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white !important;
    font-size: 2em;
    font-weight: bold;
  }

  .parallax-caption h2 {
    text-align: center; /* Center-align the text */
    font-size: 1.5em; /* Larger font size for section titles */
    font-weight: 600; /* Slightly bold for emphasis */
    color: #ffffff; /* Primary Green color */
    margin-bottom: 20px; /* Spacing below the title */
    position: relative; /* For creating a stylish line under the title */
}
  
  .parallax-base {
    height: 300px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 1;
  }
  
  .parallax-base::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* Optional overlay */
  }
  
  /* Specific background images */
  .parallax-1 {
    background-image: url('../images/slide14.jpg');
  }
  
  .parallax-2 {
    background-image: url('../images/slide14.jpg');
  }
  
  .parallax-3 {
    background-image: url('../images/slide12.jpg');
  }
  
  .parallax-4 {
    background-image: url('../images/slide12.jpg');
  }
  
  .parallax-5 {
    background-image: url('../images/slide14.jpg');
  }

/* Base animation class */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* When in view */
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Modal Styles */

  .modal-form-wrapper {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto; /* Enables vertical scrolling */
    background-color: rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
  }
  
  
  /* Content */
  .modal-form-content {
    background: #fff;
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    position: relative;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.4s ease-out;
  
    /* Add max-height to avoid overflowing */
    max-height: calc(100vh - 80px); 
    overflow-y: auto; /* Scroll inside the modal if needed */
  }
  
  
  /* Close button */
  .modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
  }
  
  /* Flex layout for modal sections */
  .modal-contact-section {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
  }
  
  /* Contact Header */
  .contact-header {
    flex: 1;
    min-width: 280px;
  }
  
  .contact-image {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 15px;
  }
  
  .contact-text {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
  }
  
  /* Contact Form */
  .contact-form {
    flex: 1;
    min-width: 280px;
  }
  
  .contact-form h4 {
    margin-bottom: 15px;
    color: #2e8b57;
  }
  
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
  }
  
  .contact-form textarea {
    height: 120px;
    resize: vertical;
  }
  
  .contact-form button {
    background-color: #2e8b57;
    color: white;
    padding: 10px 20px;
    border: none;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .contact-form button:hover {
    background-color: #246b45;
  }
  
  /* Slide animation */
  @keyframes slideDown {
    from {
      transform: translateY(-60px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

/* Contact Form Styles */
#contact {
    background: #f5f5f5;
    padding: 60px 20px;
    font-family: 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

#contact h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
}

.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Contact Info & Form - Shared Settings */
.contact-info,
.modern-contact-form {
    flex: 1;
    min-width: 300px;
    box-sizing: border-box;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

/* Contact Info */
.contact-info {
    text-align: center;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.contact-info p {
    margin: 10px 0;
    color: #333;
    word-wrap: break-word;
}

.contact-info a {
    color: #09a011;
    text-decoration: none;
    word-break: break-word;
}

.contact-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
    margin: 0 auto 15px; /* Top: 0, Right/Left: auto (center), Bottom: 15px */
    display: block;
    border-radius: 10px;
}

/* Contact Form */
.modern-contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modern-contact-form input,
.modern-contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    background-color: #f9f9f9;
    transition: border-color 0.3s, background-color 0.3s;
    box-sizing: border-box;
}

.modern-contact-form input:focus,
.modern-contact-form textarea:focus {
    border-color: #09a011;
    background-color: #fff;
    outline: none;
}

.modern-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.modern-contact-form button {
    background: #09a011;
    color: #fff;
    padding: 14px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modern-contact-form button:hover {
    background: #077c0c;
}



.modern-contact-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    background-color: #f9f9f9;
    transition: border-color 0.3s, background-color 0.3s;
}

.modern-contact-form select:focus {
    border-color: #09a011;
    background-color: #fff;
    outline: none;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #555;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.modal-close-btn:hover {
    color: #09a011;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    padding: 12px 12px;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-button:hover {
    background-color: #128C7E; /* Darker green on hover */
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
}

.desktop-only {
    display: block;
  }
  
  .mobile-only {
    display: none;
  }


@keyframes slideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media screen and (max-width: 1024px) {
    .slide-text h1 {
        font-size: 2.5em; /* Smaller text size for medium screens */
    }

    .slide-text p {
        font-size: 1.3em; /* Adjust paragraph text size */
    }
}


@media screen and (max-width: 480px) {
    .slider {
        height: 60vh; /* Reduce height of slider for mobile devices */
    }

}

/* Media queries for smaller screens */
@media (max-width: 768px) {
    .sticky-menu {
        flex-direction: column;
        align-items: stretch;
        position: sticky;
        top: 0;
      }
    
      .nav-center {
        width: 100%;
        order: 3;
        justify-content: center;
      }
    
      #menuList {
        flex-direction: column;
        align-items: center;
        display: none;
        width: 100%;
        padding: 10px 0;
      }
    
      #menuList.show {
        display: flex;
      }
    
      .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 24px;
        cursor: pointer;
        z-index: 1000;
      }
    .why-us-container {
        flex-direction: column; /* Stack image and text vertically on small screens */
        align-items: center;
    }

    .why-us-image {
        flex: 0 0 70%; /* Image takes up 70% on smaller screens */
        margin-bottom: 20px;
        position: static; /* Remove absolute positioning */
    }

    .why-us-text {
        flex: 0 0 90%; /* Text takes up 90% of the width on smaller screens */
        padding: 20px;
    }

    .why-us-image img {
        max-width: 90%; /* Make the image smaller on mobile */
        margin: 0 auto; /* Ensure it remains centered */
        position: relative; /* Ensures it's not absolutely positioned */
    }
    .parallax-caption {
        font-size: 1.2em;
      }
    .contact-section {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-info,
    .modern-contact-form {
        width: 100%;
    }
    .slider {
        height: 100vh;
        position: relative;
    }

    .slide-text {
        position: absolute;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        padding: 0 10px;
        z-index: 10;
        display: flex;
        justify-content: center;
    }

    .slide-text-overlay {
        width: 100%;
        max-width: 95vw;
        padding: 15px;
        border-radius: 10px;
        box-sizing: border-box;
    }

    .slide-text-overlay h1 {
        font-size: 0.8em;
    }

    .slide-text-overlay p {
        font-size: 0.6em;
    }

    .slide-text-list {
        font-size: 0.5em;
        padding-left: 0;
        text-align: center;
    }

    .slide-text-list li {
        justify-content: flex-start;
        text-align: left;
        margin-left: 0;
    }

    .read-more-btn {
        width: 100%;
        font-size: 1em;
        padding: 12px 20px;
        margin-top: 15px;
    }
 
    
      .company-logo {
        height: 40px;
      }
      .service-tiles {
        grid-template-columns: 1fr;
    }
    .about-row {
        flex-direction: column;
        text-align: center;
    }
    .about-row img {
        margin-bottom: 10px;
    }
    .contact-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .contact-container .address,
    .contact-container form {
        max-width: 100%;
    }
    .service-cards {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 90%;
    }
    .blog-list{
        flex-direction: column;
    }
    .blog-card {
        width: 100%;
    }
    .blog-post img {
        height: 150px;
    }

    .blog-details h3 {
        font-size: 1.5em;
    }

    .blog-details p {
        font-size: 1em;
    }
    .about-block {
        padding: 30px 20px;
    }

    .about-block h2 {
        font-size: 24px;
    }

    .about-block p {
        font-size: 16px;
    }

    .core-values-list {
        flex-direction: column;
        align-items: center;
    }
    .blog-view-container {
        padding: 25px 20px;
      }
    
      .blog-title {
        font-size: 1.5rem;
      }
    
      .blog-meta {
        flex-direction: column;
        gap: 5px;
      }
    
      .blog-footer {
        flex-direction: column;
        align-items: flex-start;
      }
    .whatsapp-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background-color: #25D366;
        color: white;
        padding: 12px 12px;
        border-radius: 30px;
        font-size: 0.95rem;
        font-weight: 500;
        text-decoration: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        transition: background 0.3s ease;
        margin: 20px auto;
      }
    
      .whatsapp-button:hover {
        background-color: #1ebe57;
      }
    
      .whatsapp-icon {
        width: 30px;
        height: 30px;
      }
      .blog-details h3 {
        font-size: 1.1rem;
      }
    
      .blog-details p {
        font-size: 0.9rem;
      }

      .desktop-only {
        display: none;
      }
    
      .mobile-only {
        display: block;
        color: var(--white);
      }
    
      .mobile-only .login-button {
        display: block;
        text-align: center;
        margin: 10px 0;
        width: 100%;
        box-sizing: border-box;
      }
      .modal-contact-section {
        display: flex;
        gap: 30px;
        flex-wrap: wrap;
      }
    
      .contact-header,
      .contact-form {
        flex: 1;
        min-width: 280px;
      }
    
      .modal-form-content {
        padding: 40px;
      }
}
@media screen and (max-width: 600px) {
    .team-card {
        margin: 15px;
    }

    .team-card img {
        height: 250px;
    }
}


@media screen and (max-width: 480px) {

    .blog-container {
        grid-template-columns: 1fr;
    }
}


