/* RESET & BASIC STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
  }
  h1, h2, h3 {
    margin-bottom: 0.5em;
  }
  p {
    margin-bottom: 1em;
  }
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* HEADER */
  .main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  transition: transform 0.3s ease-out;
  }
  
  .main-header.hidden {
  transform: translateY(-100%);
}

  .main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
  }
  .logo {
    font-size: 1.5rem;
    color: #218c74;
  }
  .logo img {
  max-height: 70px;  /* Adjust based on your header height */
  display: block;
  width: auto;
}
  .nav a {
    margin-left: 1.2rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
  }
  .nav a:hover {
    color: #218c74;
  }
  
  /* Hamburger icon styling */
.hamburger {
  display: none; /* Hide by default (desktop/tablet) */
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background: #333;
  transition: all 0.3s ease;
  border-radius: 2px;
}

@media (max-width: 768px) {
  /* Hide the regular nav */
  .nav {
    display: none;
  }
  
  /* Show the hamburger icon */
  .hamburger {
    display: block;
    cursor: pointer;
  }
  
  /* When active, show the mobile menu */
  .nav.active {
    display: block;
    position: absolute;
    top: 70px; /* Adjust according to your header height */
    right: 0;
    left: 0;
    background: #fff;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  /* Optional: Style nav links in mobile view */
  .nav.active a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    margin: 0;
  }
  
  /* Remove last link’s border if desired */
  .nav.active a:last-child {
    border-bottom: none;
  }
}

  
  /* HERO SECTION */
  .hero-section {
    background: url('https://dmteam.hr/img/hero_bg.jpg') no-repeat bottom center/cover;
    color: #fff;
    text-align: center;
    padding: 5rem 0;
    position: relative;
  height: 600px; /* Adjust as needed */
  overflow: hidden;
  }
  
/* Pseudo-element for the light dark overlay over the background image */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Use a semi-transparent black overlay; adjust opacity as needed (e.g., 0.2 or 0.3) */
  background: rgba(18, 60, 25, 0.6);
  z-index: 1; /* Sits above the background image but below the mow overlay */
}

/* Mowing Overlay Container for the animation (remains unchanged) */
.mow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;  /* Dividing the overlay into vertical stripes */
  z-index: 2;     /* Sits above the overlay pseudo-element */
}

/* Mowing Stripe: each vertical stripe (remains unchanged) */
.mow-stripe {
  flex: 1;  /* Equally divide available width between stripes */
  background-color: #218c74; /* Green color; adjust to your branding */
  animation: mowCut 1.5s ease forwards;
  animation-delay: var(--mow-delay); /* Custom delay via inline style on HTML */
}

/* Keyframes for the mowing animation effect */
@keyframes mowCut {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-150%);
  }
}

@media (max-width: 768px) {
  /* Change the overlay to stack stripes vertically (horizontal stripes) */
  .mow-overlay {
    flex-direction: column;
    gap: 0; /* Ensure there is no gap between stripes */
    z-index:3;
  }
  
  /* Only display the first 3 stripes on mobile; hide the rest */
  .mow-overlay .mow-stripe:nth-child(n+4) {
    display: none;
  }
  
  /* Override the animation for mobile to slide horizontally */
  .mow-stripe {
    /* Use the new mobile keyframes for horizontal animation */
    animation: mowCutMobile 1.5s ease forwards;
  }
}

/* Mobile keyframes: slide the stripe horizontally to the left */
@keyframes mowCutMobile {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-150%);
  }
}

/* Hero content styling adjusted to sit on top of the mow overlay */
.hero-content {
  position: relative;
  z-index: 3; /* Ensures that text and CTA remain above the overlays */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #fff;
}
  
  .hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
  .btn-cta {
    background-color: #ff7f50;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
  }
  .btn-cta:hover {
    background-color: #e06741;
  }
  
  /* SERVICES SECTION */
  .services-section {
    padding: 3rem 0;
    background-color: #f5f5f5;
  }
  .services-section h2 {
    text-align: center;
    margin-bottom: 2rem;
  }
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  .service-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  .service-card img {
    width: 100%;
    height: auto;
    display: block;
  }
  .service-card h3 {
    margin: 1rem 0 0.5rem 0;
  }
  .service-card p {
    padding: 0 1rem;
    margin-bottom: 1rem;
  }
  
  /* WHY US SECTION */
  .why-us-section {
    padding: 3rem 0;
  }
  .why-us-section h2 {
    text-align: center;
    margin-bottom: 2rem;
  }
  .why-us-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }
  .why-card {
    background-color: #218c74;
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
  }
  .why-card h3 {
    margin-bottom: 0.5rem;
  }
  
  /* ABOUT SECTION */
  .about-section {
    padding: 3rem 0;
    background-color: #f5f5f5;
  }
  .about-section h2 {
    text-align: center;
    margin-bottom: 1rem;
  }
  .about-section p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }
  
  /* HOW IT WORKS */
  .how-it-works-section {
    padding: 3rem 0;
  }
  .how-it-works-section h2 {
    text-align: center;
    margin-bottom: 2rem;
  }
  .how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
  }
  .step-number {
    display: inline-block;
    background-color: #218c74;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  /* CTA SECTION */
  .cta-section {
    background-color: #ff7f50;
    color: #fff;
    text-align: center;
    padding: 3rem 0;
  }
  .cta-section .btn-cta {
    margin-top: 1rem;
    border: 2px solid #fff;
  }
  .cta-section .btn-cta:hover {
    background-color: #fff;
    color: #ff7f50;
  }
  
  /* CONTACT SECTION */
  .contact-section {
    padding: 3rem 0;
    background-color: #f5f5f5;
    text-align: center;
  }
  .contact-section h2 {
    margin-bottom: 2rem;
  }
  .contact-form {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    text-align: left;
  }
  .form-group {
    margin-bottom: 1.2rem;
  }
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid #ccc;
  }
  .btn-submit {
    background-color: #218c74;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  .btn-submit:hover {
    background-color: #196a59;
  }
  .contact-info p {
    margin: 0.5rem 0;
  }
  
  /* FOOTER */
  .main-footer {
    background-color: #218c74;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
  }
 
 .back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px; /* Updated from left to right */
  background-color: #218c74;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  display: none; /* Hidden until scrolling occurs */
  cursor: pointer;
  transition: opacity 0.3s;
}

.back-to-top:hover {
  background-color: #196a59;
}

 