@import url("https://fonts.googleapis.com/css2?family=Spartan:wght@200;300;400;500;600;700&display=swap");

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Playwrite+AU+SA:wght@100..400&family=Playwrite+GB+S:ital,wght@0,100..400;1,100..400&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Playwrite+AU+SA:wght@100..400&family=Playwrite+GB+S:ital,wght@0,100..400;1,100..400&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');



@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Poppins:wght@400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #000;
    overflow-x: hidden;
}

/* Header Styling */


/* Service Intro Section */
@keyframes zoomOut {
    0% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#service-intro {
   background-image:url(images/servicebg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;

    /* ✨ Zoom-out animation */
    animation: zoomOut 0.5s ease-out;
}

#service-intro p {
    color: #ffffff;
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 15px;
}

#service-intro a {
    display: inline-block;
    background-color: green;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background 0.3s ease;
}

#service-intro a:hover {
    background-color: darkgreen;
}


/* Smooth scroll effect */
html {
    scroll-behavior: smooth;
      background: #f9f9f9;
}

/* Services Section */
#services {
    padding: 50px 20px;
      background: #f9f9f9;
    text-align: center;
  }
  
  .service-explained {
    padding: 40px 20px;
      background: #f9f9f9;
    text-align: center;
  }
  
  .service-explained h2 {
      background: #f9f9f9;
    color: #008000; /* green */
    font-size: 48px;
    margin-bottom: 20px;
  }
  
  .service-explained p {
    color: #111;
    font-size: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
  }
  
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card {
  background: #ffff;
  border-radius: 10px;
  padding: 40px 25px; /* slightly more padding to make them larger */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  flex: 1 1 calc(50% - 40px); /* two per row */
  min-width: 320px;           /* ensure they don't shrink too small */
  max-width: 500px;           /* bigger max size */
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

  .card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .card h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #111;
}
.card p{
  margin-bottom: 10px;
  font-size: 20px;
  color: #111;
}

  .card:hover {
    transform: translateY(-5px);
  }
  
  .icon-top {
    width: 60px;
    height: 60px;
    color: #007b5e;
    margin-bottom: 15px;
  }
  
  .title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: #ffffff; /* white */
    margin-bottom: 10px;
  }
  
  .description {
    font-size: 14px;
    color: #000; /* white */
    margin-bottom: 15px;
    line-height: 1.5;
  }
  

  .learn-more {
    display: inline-block;
    text-decoration: none;
    background-color: #008000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
  }
  
  .learn-more:hover {
    background-color: #006400;
  }
  

  @keyframes popOut {
    0% {
      opacity: 0;
      transform: scale(0.9);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }
  

  
  /* Stagger each card slightly */
  .card:nth-child(1) {
    animation-delay: 0.1s;
  }
  .card:nth-child(2) {
    animation-delay: 0.2s;
  }
  .card:nth-child(3) {
    animation-delay: 0.3s;
  }
  .card:nth-child(4) {
    animation-delay: 0.4s;
  }
  
  /* Already in your code, for hover effect */
  .card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0px 8px 20px rgba(0, 128, 0, 0.25);
  }
  

/* Media Queries */
@media (max-width: 768px) {
    .menu {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .dropdown-menu {
        display: block;
    }

    #service-intro {
        height: 50vh;
    }

    #service-intro p {
        font-size: 0.9rem;
    }

    .service-image {
        width: 70px;
        height: 70px;
    }

    .learn-more {
        padding: 8px 12px;
    }

    
}

@media (max-width: 480px) {
    #service-intro {
        height: 100vh;
    }

    #service-intro p {
        font-size: 1.5rem;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 15px;
    }

    .service-image {
        width: 60px;
        height: 60px;
    }

    .service-explained h2{
      font-size: 42px;
    }

    .service-explained p{
      font-size: 15px;
    }
}
