/* Global Styles */
:root {
    --primary-color: #2e7d32;
    --primary-light: #60ad5e;
    --primary-dark: #005005;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    height: 16%;
    top: 0;
    z-index: 1000;
    padding:  0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 120px;
    align-items: flex-start;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    padding: 5px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
}

.dropdown-menu a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.arrow {
    font-size: 0.8rem;
    margin-left: 5px;
}


/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
  }
  
  .slides {
    display: flex;
    width: 300%; /* 100% × number of slides */
    height: 100%;
    transition: transform 1s ease;
  }
  
  .slide {
    width: 100vw; /* 100% of viewport width */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px;
    box-sizing: border-box;
    background-color: #f2f2f2;
  }
  
  .slide-text {
    width: 50%;
  }
  
  .slide-img {
    width: 45%;
  }
  
  .slide-img img {
    width: 100%;
    border-radius: 100px 0 0 100px;
  }
  
  /* Animation */
  .animated-text {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .animated-text.active {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Buttons */
  .slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
  }
  
  .slider-controls button {
    padding: 10px 20px;
    font-size: 20px;
    background: #ffffff;
    border: 1px solid #ccc;
    cursor: pointer;
  }
  

/* Services Preview */
.services-preview {
    background-color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.5rem;
    margin: 20px 20px 10px;
    color: var(--primary-dark);
}

.service-card p {
    margin: 0 20px 20px;
    color: var(--text-light);
}

.service-card .btn-outline {
    margin: 0 20px 20px;
}

/* About Preview */
.about-preview {
    background-color: var(--white);
}

.about-preview .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Contact CTA */
.contact-cta {
    background-color: var(--primary-light);
    color: var(--white);
    text-align: center;
}

.contact-cta h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.contact-cta .btn {
    background-color: var(--white);
    color: var(--primary-color);
}

.contact-cta .btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 200px;
    margin-bottom: 20px;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-light);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-preview .container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0 10px 10px;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 60px 0;
    }
}


@media (max-width: 768px) {

  /* Make sure nav-links become sidebar on mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
  }
  .nav-links.show-sidebar {
    right: 0;
  }

  /* Important: Remove display:none on dropdown-menu */
  .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    padding-left: 15px;
    margin-top: 5px;
    box-shadow: none;
    position: static;
    opacity: 1 !important;  /* override desktop opacity */
    visibility: visible !important; /* override desktop visibility */
    transform: none !important; /* override desktop transform */
    transition: max-height 0.4s ease;
  }

  /* Show dropdown submenu when parent has .active */
  .dropdown.active .dropdown-menu {
    max-height: 500px; /* enough to show all submenu items */
  }

  /* Disable desktop hover submenu on mobile */
  .dropdown:hover .dropdown-menu {
    display: none;
  }
}
