/* Root Variables */
:root {
    --primary-color: #308812;
    --primary-hover-color: #26700e;
    --secondary-color: #f5f5f5;
    --text-color: #333333;
    --light-text-color: #ffffff;
    --background-color: #ffffff;
    --footer-background: #333333;
    --footer-text-color: #ffffff;
    --box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    --spacing-small: 10px;
    --spacing-medium: 20px;
    --spacing-large: 30px;
    --border-radius: 8px;

    /* New Gradient Colors */
    --primary-gradient: linear-gradient(45deg, #308812, #26700e);
    --secondary-gradient: linear-gradient(45deg, #f5f5f5, #e0e0e0);

    /* Font Pairing */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Merriweather', serif;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 140px;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Header & Navigation */
header {
    background: var(--secondary-gradient);
    padding: var(--spacing-small) var(--spacing-small);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.branding {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.logo img {
    width: 100px;
    height: auto;
    margin-right: 10px;
}

.company-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-name {
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
}

.company-name .line1 {
    display: block;
}

.company-name .line2 {
    display: block;
    font-size: 16px;
    font-weight: normal;
}

.tagline {
    font-size: 14px;
    color: #777;
}

/* Navbar */
.nav-menu {
    display: flex;
    margin-right: 30px;
    box-shadow: none; /* Remove shadow from the navbar */
    background-color: transparent; /* Remove background color for desktop view */
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 50px;
}

.nav-menu li {
    display: inline-block;
}

.nav-menu a {
    font-family: var(--heading-font);
    text-decoration: none;
    color: var(--text-color);
    font-size: 18px;
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: green;
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Mobile Toggle Button */
.menu-toggle {
    font-size: 32px; /* Increased font size */
    padding: 10px; /* Added padding for better touch area */
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* Mobile View */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0%;
        width: 40%;
        background-color: var(--secondary-color); /* Retain background color for mobile view */
        box-shadow: var(--box-shadow);
        text-align: center;
        border-radius: 10px;
        margin-top: 7px;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu li {
        padding: 15px;
    }
}

/* Hero Section */
.hero {
    background: url('img/bg-img.jpg') no-repeat center center/cover, var(--primary-gradient);
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text-color);
    position: relative;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: -1; /* Ensure the gradient overlay is behind the content */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-family: var(--heading-font);
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    font-family: var(--body-font);
    font-size: 20px;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background: var(--primary-gradient);
    color: var(--light-text-color);
    padding: var(--spacing-small) var(--spacing-medium);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero .cta-button:hover {
    background: var(--primary-hover-color);
    transform: scale(1.1); /* Add scale effect */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Add subtle shadow */
}

.cta-button:focus {
    box-shadow: 0 0 8px rgba(48, 136, 18, 0.5);
    outline: none;
}



/* Services Section (Homepage) */
.services-hd {
   
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    margin-bottom: -30px;
    color: var(--primary-color);
}

.services {
    max-width: 1400px;
    margin: 50px auto;
    background: var(--secondary-color);
    padding: var(--spacing-medium);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.services-section {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.services-image {
    flex: 1;
    padding: 20px;
}

.services-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 7px;
}

.services-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services-content h2 {
    
    color: #2a7c2a;
}

.services-content p {
    font-family: var(--body-font);
}

.divider {
    margin: 40px 0;
    height: 2px;
    background: #ddd;
    border-radius: 4px;
}

.additional-services {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
}

.additional-services h2 {
    color: #2a7c2a;
    margin-bottom: 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    height: 350px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background: #f5f5f5;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 24px rgba(48, 136, 18, 0.15), 0 2px 8px rgba(0,0,0,0.08);
}

.service-card img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card h3 {
    margin: 10px 0 0 0;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: #308812;
}

.service-card p {
    margin: 5px 0 15px 0;
    font-size: 14px;
    color: #333;
    text-align: center;
    padding: 0 10px;
}

/* Remove overlay styles if present */
.service-card .overlay {
    display: none; /* Ensure overlay is not displayed */
}

.cta {
    margin-top: 30px;
    font-size: 16px;
    font-weight: bold;
    color: #2a7c2a;
    text-align: center;
}

@media (max-width: 768px) {
    .services-section {
        flex-direction: column;
    }

    .services-image, .services-content {
        width: 100%;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* About Us Section */
.about-container {
    flex-direction: row;
    display: flex;
    margin: 20px;
    padding: 20px;
    background: #f5f5f5;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    border-radius: 7dvw;
    box-shadow: var(--box-shadow);
    margin-top: 50px;
}

.about-txt {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
}

.about-txt h2 {
    
    font-size: 32px;
    margin-bottom: 15px;
    color: #308812;
}

.about-txt p {
    
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}

.about-image {
    flex: 1;
    max-width: 300px;
    max-width: 40%;
}

.about-image img {
    margin-top: 40px;
    width: 100%;
    height: 150px;
}

 .about-images {
        display: flex;
        justify-content: center;
        gap: 20px; /* Space between images */
        flex-wrap: wrap; /* Allow images to wrap to the next line if needed */
        margin-top: 20px; /* Add space above the image row */
      }
      
      .about-images img {
        width: 300px; /* Set a fixed width for the images */
        height: 500px; /* Maintain aspect ratio */
        border-radius: 10px; /* Rounded corners */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
        transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
      }
      .h1-image img {
      width: 100%;
      max-width: 1250px;
      height: 100%;
      max-height: 400px;
      object-fit: cover;
      display: block;
      margin: 20px auto 0 auto;
      border-radius: 10px;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
                }
    
      .about-images img:hover {
      transform: scale(1.05);
      box-shadow: 0 8px 24px rgba(48, 136, 18, 0.15), 0 2px 8px rgba(0,0,0,0.08);
      transition: transform 0.3s, box-shadow 0.3s;
      }

   .h1-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(48, 136, 18, 0.15), 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
      }

/* Responsive Design */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image, .about-txt {
        max-width: 100%;
    }

    .about-txt {
        text-align: center;
    }
    .about-images {
    flex-direction: column; /* Stack images vertically */
    gap: 10px; /* Reduce spacing between images */
    align-items: center; /* Center images */
  }

  .about-images img {
    width: 100%; /* Make images responsive to screen width */
    max-width: 300px; /* Set a maximum width for images */
    height: auto; /* Maintain aspect ratio */
  }
   .h1-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    margin: 15px auto 0 auto;
  }

}


.team-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.team-header {
    text-align: center;
    margin-bottom: 80px;
}

.team-title {
    font-size: 38px;
    font-weight: bold;
    color: #308812;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}

.team-subtitle {
    
    color: black;
    max-width: 600px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 40px;
    justify-items: center;
}

.team-member {
    background: #f5f5f5;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}



.passport-photo {
    width: 180px;
    height: 220px;
    margin: 0 auto 30px;
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 4px solid #ffffff;
}

.passport-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    z-index: 2;
}

.passport-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.team-member:hover .passport-photo img {
    transform: scale(1.05);
}

.member-name {
    font-size: 24px;
    font-weight: bold;
    color: #308812;
    margin-bottom: 8px;
}

.member-role {
    font-size: 16px;
    font-weight:light;
    color: rgb(30, 84, 30);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-description {

    color: black;
    line-height: 1.6;
    max-width: 250px;
    margin: 0 auto;
}

/* Decorative elements */
.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    border-radius: 20px 20px 0 0;
}

/* Professional badge effect */
.team-member::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #308812;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}



/* Responsive design */
@media (max-width: 768px) {
    .team-section {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-member {
        padding: 30px 20px;
    }

    .passport-photo {
        width: 160px;
        height: 200px;
    }
}



/* Animation on load */ /*
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-member {
    animation: fadeInUp 0.6s ease forwards;
}

.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.2s; }
.team-member:nth-child(3) { animation-delay: 0.3s; }
.team-member:nth-child(4) { animation-delay: 0.4s; }  */

/* Contact Section */
.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
    margin-top: 50px;
}

.column {
    flex: 1;
    min-width: 320px;
    max-width: 45%;
}

.contact-container h2 {
    font-size: 32px;
    text-align: center;
    color: #2a7c2a;
    width: 100%;
    margin-bottom: -30px;
}

.contact-description {
    width: 100%;
    color: #333333;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    height: 180px;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #2a7c2a;
    box-shadow: 0 0 8px rgba(42, 124, 42, 0.3);
    outline: none;
}

.submit-btn {
    background-color: #308812;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 14px 40px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
    margin: 20px auto;
    outline: none;
}

.submit-btn:hover {
    background-color: #26700e;
    transform: scale(1.05);
}

.submit-btn:focus {
    box-shadow: 0 0 8px rgba(48, 136, 18, 0.5);
    outline: none;
}

.response-message {
    text-align: center;
}

.response-message.hide {
    opacity: 0;
}

.contact-details {
    background: var(--background-color);
    padding: var(--spacing-medium);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
    max-width: 45%;
    min-height: 150px;
    justify-content: center;
    transition: background-color 0.3s ease;
    margin: 20px;
    word-wrap: break-word;
    line-height: 1.5;
}



.contact-details h3 {
    font-size: 20px;
    color: #2a7c2a;
    font-weight: bold;
}

.contact-details p {
    margin: 5px 0;
    display: block;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    word-wrap: break-word;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.contact-details p:hover {
    transform: scale(1.05);
}

.contact-details i {
    color: #308812;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.contact-details p:hover i {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        align-items: center;
    }

    .column, .contact-details {
        max-width: 100%;
        text-align: center;
    }

    .contact-details {
        margin: 0;
        padding: 15px;
    }

    .form-group input, .form-group textarea {
        font-size: 14px;
    }

    .submit-btn {
        width: 100%;
    }
}

/* Floating Whatsapp Button */
.floating-WA {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #308812;
    border-radius: 50px;
    text-align: center;
    width: 80px;
    height: 80px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.floating-WA:hover {
    transform: scale(1.1);
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #308812;
    color: #fff;
    padding: 10px 15px;
    border-radius: 50px;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    text-decoration: none;
}

.floating-contact:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    margin-top: auto;
    background: var(--footer-background);
    color: var(--footer-text-color);
    padding: var(--spacing-medium);
    text-align: center;
    font-family: var(--body-font);
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.footer-links a {
    font-family: var(--heading-font);
    color: var(--footer-text-color);
    margin: 0 10px;
    font-size: 16px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .footer-links {
        flex-direction: row;
        text-align: center;
    }
}

/* Default: Hide all sections */
section {
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 1s ease-out, transform 1s ease-out, visibility 1s ease-out;
}

/* Fade in when section is visible */
section.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .services-section, .about-container, .contact-container {
        padding: 10px;
    }

    .cta-button, .submit-btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .footer-links a {
        font-size: 14px;
    }
}

/* Disable any fade-in animation */
.fade-in {
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
}

