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

body,
html {
  font-family: "Poppins", Arial, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  line-height: 1.6;
  color: #333;
}

/* Responsive section for the Top Navigation */
@media screen and (max-width: 820px) {
  .top-nav {
    z-index: 2;
  }

  .top-nav span {
    font-size: 14px;
    flex-direction: row;
  }
}

@media screen and (max-width: 768px) {
  .top-nav {
    z-index: 2;
  }

  .top-nav span {
    font-size: 12px;
    flex-direction: row;
  }
}

@media screen and (max-width: 540px) {
  .top-nav {
    z-index: 2;
  }

  .top-nav span {
    font-size: 10px;
    flex-direction: row;
    gap: 6px;
  }
}

@media screen and (max-width: 430px) {
  .top-nav {
    z-index: 2;
  }

  .top-nav span {
    font-size: 9px;
    flex-direction: row;
    gap: 2px;
  }
}

@media screen and (max-width: 420px) {
  .top-nav {
    font-size: 8px;
    z-index: 2;
  }

  .top-nav span {
    flex-direction: row;
    gap: 6px;
  }
}

@media screen and (max-width: 412px) {
  .top-nav {
    z-index: 2;
  }

  .top-nav span {
    font-size: 8px;
    flex-direction: row;
    gap: 5px;
  }
}

@media screen and (max-width: 410px) {
  .top-nav {
    z-index: 2;
    height: 25px;
  }

  .top-nav span {
    font-size: 9px;
    flex-direction: row;
    gap: 5px;
  }
}

@media screen and (max-width: 390px) {
  .top-nav {
    font-size: 8px;
    z-index: 2;
  }

  .top-nav span {
    font-size: 8px;
    flex-direction: row;
    gap: 4px;
  }
}

@media screen and (max-width: 380px) {
  .top-nav {
    z-index: 2;
  }

  .top-nav span {
    font-size: 7.5px;
    flex-direction: row;
    gap: 2px;
  }
}

@media screen and (max-width: 360px) {
  .top-nav {
    z-index: 2;
  }

  .top-nav span {
    font-size: 7px;
    flex-direction: row;
    gap: 2px;
  }
}

/*Top Header*/
header {
  background: #043b1c;
  color: #fff;
  padding: 5px 20px;
  text-align: right;
  font-size: 15px;
  font-family: "Quicksand", sans-serif;
  transition: all 0.3s ease-in-out;
}

header span {
  margin-left: 20px;
}

/* Responsive section toggle for the Nav */
@media screen and (max-width: 768px) {
  nav {
    margin-top: 30px;
    transition: margin-top 0.3s ease;

    /* Animate margin based on any scroll */
    animation: remove-margin linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 15px; /* Triggers on any scroll movement */
  }

  @keyframes remove-margin {
    0% {
      margin-top: 30px;
    }
    100% {
      margin-top: 0px;
    }
  }
}

@media screen and (max-width: 540px) {
  nav {
    margin-top: 30px;
    max-width: 540px;
    transition: margin-top 0.3s ease;

    /* Animate margin based on any scroll */
    animation: remove-margin linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 15px; /* Triggers on any scroll movement */
  }

  @keyframes remove-margin {
    0% {
      margin-top: 30px;
    }
    100% {
      margin-top: 0px;
    }
  }
}

@media screen and (max-width: 430px) {
  nav {
    margin-top: 30px;
    transition: margin-top 0.3s ease;

    /* Animate margin based on any scroll */
    animation: remove-margin linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 15px; /* Triggers on any scroll movement */
  }

  @keyframes remove-margin {
    0% {
      margin-top: 30px;
    }
    100% {
      margin-top: 0px;
    }
  }
}

@media screen and (max-width: 420px) {
  nav {
    margin-top: 20px;
    transition: margin-top 0.3s ease;

    /* Animate margin based on any scroll */
    animation: remove-margin linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 15px; /* Triggers on any scroll movement */
  }

  @keyframes remove-margin {
    0% {
      margin-top: 20px;
    }
    100% {
      margin-top: 0px;
    }
  }
}

@media screen and (max-width: 410px) {
  nav {
    margin-top: 15px;
    transition: margin-top 0.3s ease;

    /* Animate margin based on any scroll */
    animation: remove-margin linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 15px; /* Triggers on any scroll movement */
  }

  @keyframes remove-margin {
    0% {
      margin-top: 15px;
    }
    100% {
      margin-top: 0px;
    }
  }
}

@media screen and (max-width: 400px) {
  nav {
    margin-top: 35px;
    transition: margin-top 0.3s ease;

    /* Animate margin based on any scroll */
    animation: remove-margin linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 15px; /* Triggers on any scroll movement */
  }

  @keyframes remove-margin {
    0% {
      margin-top: 35px;
    }
    100% {
      margin-top: 0px;
    }
  }
}

@media screen and (max-width: 390px) {
  nav {
    margin-top: 25px;
    transition: margin-top 0.3s ease;

    /* Animate margin based on any scroll */
    animation: remove-margin linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 15px; /* Triggers on any scroll movement */
  }

  @keyframes remove-margin {
    0% {
      margin-top: 25px;
    }
    100% {
      margin-top: 0px;
    }
  }
}

@media screen and (max-width: 380px) {
  nav {
    margin-top: 25px;
    transition: margin-top 0.3s ease;

    /* Animate margin based on any scroll */
    animation: remove-margin linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 15px; /* Triggers on any scroll movement */
  }

  @keyframes remove-margin {
    0% {
      margin-top: 25px;
    }
    100% {
      margin-top: 0px;
    }
  }
}

@media screen and (max-width: 345px) {
  nav {
    margin-top: 35px;
    transition: margin-top 0.3s ease;

    /* Animate margin based on any scroll */
    animation: remove-margin linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 15px; /* Triggers on any scroll movement */
  }

  @keyframes remove-margin {
    0% {
      margin-top: 35px;
    }
    100% {
      margin-top: 0px;
    }
  }
}


/* Menu toggle (hamburger icon) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: white;
  margin: 4px 0;
  border-radius: 1px;
}

.menu-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation bar */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #16632e;
  color: white;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  font-family: "Quicksand", sans-serif;
  font-size: 20px;
  font-weight: normal;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  transition: 0.3s;
}

nav ul li a:hover {
  background: #31b74f;
  border-radius: 5px;
}

.contact-btn {
  background-color: transparent;
  padding: 0.3rem 1.7rem;
  border: 2px solid white;
  color: white;
  font-size: 20px;
  font-weight: normal;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  margin-right: 1%;
}

.nav-links li a {
  padding: 12px 16px;
  display: block;
}

.contact-btn:hover {
  background-color: #ffcc00;
  color: black;
  font-weight: bold;
}

@media (max-width: 1024px) {
  nav {
    width: 100%;
    padding: 0px 0px;
  }
  nav ul {
    padding: 0px 0px;
    font-size: 1.2rem;
  }
  nav ul li a {
    padding: 0px 0px;
  }
  .contact-btn {
    font-size: 0.8rem;
  }
  .nav-links li a {
    padding: 0px 0px;
  }
}

@media (max-width: 855px) {
  nav {
    width: 100%;
    padding: 0px 0px;
  }
  nav ul {
    padding: 0px 0px;
    font-size: 0.9rem;
  }
  nav ul li a {
    padding: 0px 0px;
  }
  .contact-btn {
    font-size: 0.8rem;
  }
  .nav-links li a {
    padding: 0px 0px;
  }
}

@media (max-width: 820px) {
  nav {
    width: 100%;
    padding: 0px 0px;
  }
  nav ul {
    padding: 0px 0px;
    font-size: 0.9rem;
  }
  nav ul li a {
    padding: 0px 0px;
  }
  .contact-btn {
    font-size: 0.8rem;
  }
  .nav-links li a {
    padding: 0px 0px;
  }
}

/*Home Page */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url("images/vecteezy_network-connection-social-media-with-telecommunication_2928560.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.3); /* Controls dark overlay */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
  padding: 0 20px;
  width: 100%;
  padding: 0 40px;
}

.hero-logo {
  text-align: center;
  margin-bottom: 35px;
}

.hero-logo img {
  max-width: 470px;
  height: auto;
  filter: drop-shadow(2px 0 white) drop-shadow(-2px 0 white)
    drop-shadow(0 2px white) drop-shadow(0 -2px white)
    drop-shadow(1.5px 1.5px white) drop-shadow(-1.5px -1.5px white)
    drop-shadow(1.5px -1.5px white) drop-shadow(-1.5px 1.5px white);
}

.tagline {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  color: white;
  margin: 0;
  padding: 0;
  width: 100%;
  line-height: 1.5;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000,
    2px 2px 0 #000;
}

.cta {
  display: inline-block;
  padding: 15px 60px;
  background-color: green;
  color: white;
  text-decoration: none;
  font-size: 25px;
  font-weight: normal;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  margin-top: 25px;
}

.cta:hover {
  background: #ffcc00;
  color: black;
  font-weight: bold;
  transform: scale(1.1);
}

/* Responsive section for logo and tagline */
@media screen and (max-width: 768px) {
  .hero-logo {
    text-align: center;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    width: 100%;
  }
  .tagline {
    text-align: center;
    font-size: 3rem;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    width: 100%;
    line-height: 1.5;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000,
      2px 2px 0 #000;
  }
}
@media screen and (max-width: 540px) {
  .hero-logo {
    text-align: center;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    width: 100%;
  }
  .tagline {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    width: 100%;
    line-height: 1.5;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000,
      2px 2px 0 #000;
  }
}
@media screen and (min-width: 420px) and (max-width: 430px) {
  .hero-logo {
    text-align: center;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    width: 100%;
  }
  .tagline {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    width: 100%;
    line-height: 1.5;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000,
      2px 2px 0 #000;
  }
}

@media screen and (min-width: 410px) and (max-width: 420px) {
  .hero-logo {
    text-align: center;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    width: 100%;
  }
  .tagline {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    width: 100%;
    line-height: 1.5;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000,
      2px 2px 0 #000;
  }
}

@media screen and (min-width: 375px) and (max-width: 390px) {
  .hero-logo {
    text-align: center;
    margin-top: 55px;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    width: 100%;
  }
  .tagline {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    width: 100%;
    line-height: 1.5;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000,
      2px 2px 0 #000;
  }
}
@media screen and (min-width: 360px) and (max-width: 375px) {
  .hero-logo {
    text-align: center;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    width: 100%;
  }
  .tagline {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    width: 100%;
    line-height: 1.5;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000,
      2px 2px 0 #000;
  }
}

@media screen and (min-width: 340px) and (max-width: 360px) {
  .hero-logo {
    text-align: center;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    width: 100%;
  }
  .tagline {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    color: white;
    margin: 0;
    padding: 0;
    width: 100%;
    line-height: 1.5;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000,
      2px 2px 0 #000;
  }
}

/* Responsive section for Menu */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    position: absolute;
    top: 18px;
    right: 20px;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: #16632e;
    z-index: 999;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #16632e;
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 1rem 0;
    z-index: 998;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
    padding: 10px 20px;
  }

  .nav-links .show {
    display: flex;
  }

  .nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .nav-links a.contact-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #ffcc00;
    color: black;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
  }

  .hero-tagline {
    font-size: 1.4rem;
  }

  .hero-logo img {
    max-width: 250px;
  }

  .contact-btn {
    display: none; /* optional: hide on mobile if needed */
  }
}

.section {
  padding: 4rem 0;
  margin: 0px 30px;
}

.section.dark {
  background-color: #f4f4f4;
  margin: 0px 30px;
}

h2 {
  margin-bottom: 1.1rem;
  text-align: center;
  font-family: "Poppins", sans-serif;
  color: #148628;
  font-size: 35px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* shadow added */
}

h3 {
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: "Poppins", sans-serif;
  color: #31b74f;
  font-size: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* shadow added */
}

/* Why Us */
.services-list {
  list-style: square inside;
}

.card:hover {
  background-color: #1aa131;
  transform: translateY(-5px);
}

.block-list {
  padding: 40px 20px;
  text-align: center;
  margin: 0px 30px;
}

.block-list .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr; /* Force same row height */
  gap: 20px;
  max-width: 1220px;
  margin: 0 auto;
}

.block-list .card {
  background-color: #0b7d1d;
  color: white;
  border-radius: 15px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);

  /* FORCE EXACT EQUAL DIMENSIONS */
  width: 100% !important;
  height: 280px !important; /* Fixed height */

  /* Layout */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;

  /* Spacing */
  padding: 20px 15px !important;
  box-sizing: border-box !important;
}

.block-list .card:hover {
  background-color: #1aa131;
  transform: translateY(-5px);
}

.block-list .card-title {
  /* Reset all margins and sizing */
  margin: 0 !important;
  padding: 0 !important;

  /* Typography */
  font-family: "Poppins", sans-serif !important;
  font-size: 20px !important;
  font-weight: bold !important;
  color: white !important;
  text-shadow: 1px 1px 2px #000 !important;
  text-align: center !important;
  line-height: 1.3 !important;

  /* Layout - takes remaining space */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;

  /* Spacing */
  padding-top: 10px !important;
}

.block-list .card-title img {
  /* Fixed icon size */
  width: 80px !important;
  height: 80px !important;
  object-fit: contain !important;

  /* Spacing */
  margin: 0 0 15px 0 !important;

  /* Layout */
  flex-shrink: 0 !important;
}

.block-list .card-title span {
  display: block !important;
  margin-top: 10px !important;
}

/* TABLET/MOBILE - 2x2 GRID */
@media screen and (max-width: 900px) {
  .block-list {
    margin: 0px 20px;
    padding: 35px 15px;
  }

  .block-list .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(2, 1fr) !important; /* Force 2 equal rows */
    gap: 20px;
    max-width: 600px;
  }

  .block-list .card {
    height: 250px !important; /* Fixed height for mobile */
    padding: 18px 12px !important;
  }

  .block-list .card-title {
    font-size: 18px !important;
  }

  .block-list .card-title img {
    width: 70px !important;
    height: 70px !important;
    margin-bottom: 12px !important;
  }
}

/* SMALL MOBILE */
@media screen and (max-width: 600px) {
  .block-list {
    margin: 0px 15px;
    padding: 30px 10px;
  }

  .block-list .grid {
    gap: 15px;
    max-width: 500px;
  }

  .block-list .card {
    height: 220px !important;
    padding: 15px 10px !important;
  }

  .block-list .card-title {
    font-size: 16px !important;
  }

  .block-list .card-title img {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 10px !important;
  }
}

/* VERY SMALL MOBILE */
@media screen and (max-width: 480px) {
  .block-list {
    margin: 0px 10px;
    padding: 25px 8px;
  }

  .block-list .card {
    height: 200px !important;
    padding: 12px 8px !important;
  }

  .block-list .card-title {
    font-size: 15px !important;
  }

  .block-list .card-title img {
    width: 55px !important;
    height: 55px !important;
    margin-bottom: 8px !important;
  }
}

/* ULTRA SMALL */
@media screen and (min-width: 375px) and (max-width: 390px){
  .block-list .card {
    height: 180px !important;
    padding: 10px 6px !important;
  }

  .block-list .card-title {
    font-size: 14px !important;
  }

  .block-list .card-title img {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 6px !important;
  }
}

@media screen and (min-width: 360px) and (max-width: 375px){
  .block-list .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(2, 1fr) !important; /* Force 2 equal rows */
    gap: 15px;
  }

  .block-list .card {
    height: 180px !important;
    padding: 10px 6px !important;
  }

  .block-list .card-title {
    font-size: 14px !important;
  }

  .block-list .card-title img {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 6px !important;
  }
}

@media screen and (min-width: 340px) and (max-width: 360px){
  .block-list .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(2, 1fr) !important; /* Force 2 equal rows */
    gap: 20px;
  }

  .block-list .card {
    height: 180px !important;
    padding: 10px 6px !important;
  }

  .block-list .card-title {
    font-size: 12px !important;
  }

  .block-list .card-title img {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 6px !important;
  }
}


/* Responsive tweaks for smaller screens */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns only */
  }

  .block-list {
    padding: 30px 15px;
  }

  .card {
    padding: 20px 15px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-title img {
    width: 70px;
  }
}

/* About section */
.about-section {
  padding: 60px 20px;
  background-color: #f8f9fa;
  margin: 0px 30px;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  flex-wrap: wrap;
  margin: 0 30px;
}

.about-image {
  flex: 1 1 400px;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 375px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 1 1 500px;
}

.about-content h2 {
  font-family: "Poppins", sans-serif;
  color: #148628;
  font-size: 35px;
  margin-bottom: 10px;
}

.about-content h3 {
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  color: #31b74f;
  margin-bottom: 25px;
}

.about-content p {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #333;
  text-align: justify;
}

.about-content p b,
.about-content p strong {
  color: #138c27; /* Change to any color you like */
}

/* Responsive section for about Us */
@media screen and (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 0 10px;
  }

  .about-content {
    text-align: center;
  }

  .about-content h2,
  .about-content h3 {
    text-align: center;
  }
}

@media screen and (min-width: 420px) and (max-width: 430px){
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-content {
    text-align: center;
  }

  .about-content h2,
  .about-content h3 {
    text-align: center;
  }
}

@media screen and (min-width: 390px) and (max-width: 420px){
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-content {
    text-align: center;
  }

  .about-content h2,
  .about-content h3 {
    text-align: center;
  }
}


@media screen and (min-width: 375px) and (max-width: 390px){
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-content {
    text-align: center;
  }

  .about-content h2,
  .about-content h3 {
    text-align: center;
  }
}

@media screen and (min-width: 360px) and (max-width: 375px){
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-content {
    text-align: center;
  }

  .about-content h2,
  .about-content h3 {
    text-align: center;
  }
}


/* Service section */
.services {
  text-align: center;
  font-family: "Poppins", sans-serif;
  padding: 4rem 0;
  margin: 0px 30px;
}

.services h2 {
  color: #138c27;
  font-size: 32px;
  margin-bottom: 10px;
}

.subtitle {
  color: #2e7d32;
  font-size: 18px;
  margin-bottom: 40px;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #000;
  width: 350px;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  background-color: rgb(232, 230, 230);
}

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 900;
  margin: 16px;
  color: #1e7b23;
}

.service-card p {
  font-size: 14px;
  font-weight: 500;
  padding: 0 16px;
  color: #444;
  line-height: 1.6;
}

/* Machines section */
.machines-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.machine-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}

.machine-image {
  border: 2px solid #000;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  min-width: 300px;
  height: auto;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0; /* prevent shrinking in scroll */
}

.machine-image:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.machine-image img {
  width: 100%;
  height: auto;
  display: block;
}

.description {
  font-size: 20px;
  color: #31b74f;
  line-height: 1.6;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* shadow added */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .description {
    font-size: 16px;
  }

  .machine-grid {
    flex-direction: column;
    gap: 20px;
  }

  .machine-image {
    max-width: 90%;
    margin: 0 auto;
  }
}

/* Team */
.org-chart-container {
  text-align: center;
  background-color: #f8f9fa;
  padding: 2rem 0;
  margin: 0px 30px;
}

.org-heading {
  margin-bottom: 1.1rem;
  text-align: center;
  font-family: "Poppins", sans-serif;
  color: #148628;
  font-size: 35px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* shadow added */
}

.org-subheading {
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: "Poppins", sans-serif;
  color: #31b74f;
  font-size: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* shadow added */
}

.org-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  /*background: black;*/
  transform-origin: top center;
  width: 100%;
  padding: 2%;
  gap: 1%;
  margin: 0 auto;
}

.box {
  width: 95%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  padding: 2%;
  font-size: clamp(0.55rem, 2vw, 1rem);
  font-weight: 600;
  color: white;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.box:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Name */
.box .name {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

/* Position */
.box .position {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

/* Email */
.box .email {
  font-family: "Roboto", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 6px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.box:hover .email {
  opacity: 1;
  max-height: 50px;
}

/* Role-based colors */
.md {
  background-color: #276221;
}
.ed {
  background-color: #3b8132;
}
.mgr {
  background-color: #46923c;
}
.mid {
  background-color: #52a447;
}
.lower {
  background-color: #5bb450;
}
.site {
  background-color: #72bf6a;
}

/* Grid placement */
.tamilvanan {
  grid-column: 2;
  grid-row: 1;
}
.zulmuqriz {
  grid-column: 2;
  grid-row: 2;
}
.thiruchelvan {
  grid-column: 1;
  grid-row: 3;
}
.peter {
  grid-column: 2;
  grid-row: 3;
}
.denif {
  grid-column: 3;
  grid-row: 3;
}
.ravin {
  grid-column: 1;
  grid-row: 4;
}
.kanniyappan {
  grid-column: 1;
  grid-row: 5;
}
.puvaneswaran {
  grid-column: 1;
  grid-row: 6;
}

/* Responsive style for teams */ 
@media screen and (max-width: 1024px) {
  .org-chart {
    margin-bottom: auto;
    width: 80%;
    font-size: 1.2rem;
  }
  .box {
    width: 90%;
    font-size: 1.2rem;
  }
  .box .position {
    font-size: 1.2rem;
  }
  .box .name {
    font-size: 1.2rem;
  }
  .box .email {
    font-size: 0.8rem;
  }
}
@media screen and (max-width: 768px) {
  .org-chart {
    margin-bottom: auto;
    width: 80%;
    font-size: 0.6rem;
  }
  .box .position {
    font-size: 0.6rem;
  }
  .box {
    width: 90%;
    font-size: 0.6rem;
  }
  .box .name {
    font-size: 0.6rem;
  }
  .box .email {
    font-size: 0.4rem;
  }
}
@media screen and (max-width: 480px) {
  .org-chart {
    margin-bottom: auto;
    width: 80%;
    font-size: 0.5rem;
  }
  .box .position {
    font-size: 0.5rem;
  }
  .box {
    width: 90%;
    font-size: 0.5rem;
  }
  .box .name {
    font-size: 0.5rem;
  }
  .box .email {
    font-size: 0.3rem;
  }
}
@media screen and (min-width: 375px) and (max-width: 390px) {
  .org-chart {
    margin-bottom: auto;
    width: 100%;
    font-size: 0.5rem;
  }
  .box .position {
    font-size: 0.5rem;
  }
  .box {
    width: 90%;
    font-size: 0.5rem;
  }
  .box .name {
    font-size: 0.5rem;
  }
  .box .email {
    font-size: 0.3rem;
  }
}

/* Projects section */
.toggle-btn {
  margin: 20px 0;
  padding: 12px 24px;
  font-size: 1rem;
  background-color: white;
  color: #16632e;
  border: 2px solid #16632e;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background-color: #16632e;
  color: white;
}

.toggle-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid #ddd;
  margin: 0px 30px;
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
  font-size: 0.95rem;
}

th,
td {
  padding: 12px 16px;
  border: 1px solid #ccc;
  white-space: nowrap;
}

th {
  text-align: center;
  white-space: nowrap;
  color: white;
}

td {
  text-align: left;
}

thead {
  background-color: #16632e;
  color: white;
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

tbody tr:hover {
  background-color: #e8f5e9;
  transition: background-color 0.2s ease-in-out;
}

@media screen and (max-width: 768px) {
  .toggle-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }

  table {
    font-size: 0.85rem;
    min-width: 100%;
  }

  .table-wrapper {
    margin: 0;
  }
}

/* Certification section */
.certification {
  background-color: #f4f4f4;
  margin: 0px 30px;
  padding: 4rem 0;
  text-align: center;
}

.certification-section {
  text-align: center;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: auto;
  padding: 0 10px;
}

.cert-img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.cert-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.cert-modal .modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

@media (max-width: 600px) {
  .certification {
    margin: 0 10px;
    padding: 3rem 0;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .close {
    font-size: 30px;
    right: 20px;
  }
}

/* Portfolio section */
.project-section {
  text-align: center;
  padding: 40px 20px;
}

.project-gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.project-gallery img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

.load-more-btn {
  margin: 20px 0;
  padding: 12px 24px;
  font-size: 1rem;
  background-color: white;
  color: #16632e;
  border: 2px solid #16632e;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background-color: #16632e;
  color: white;
}

/* Modal Style (Not fullscreen) */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.modal-gallery-content {
  background: white;
  width: 90%;
  max-width: 1000px;
  max-height: 90%;
  padding: 20px;
  border-radius: 10px;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  cursor: default;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 2em;
}

.modal-close {
  font-size: 1.8em;
  cursor: pointer;
  color: #018a2f;
}

.modal-close:hover {
  color: gold;
}

/* Gallery inside Modal */
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.modal-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.modal-overlay {
  height: 100dvh;
}

/* Modal Styles */
.image-viewer {
  display: none;
  position: fixed;
  z-index: 1100;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.image-viewer-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.image-viewer .close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Responsive fallback */
@media (max-width: 768px) {
  .modal-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-overlay {
    height: 100%;
  }

  .modal-gallery-content {
    width: 100%;
    height: 90%;
    max-height: 90%;
  }
}

/* Footer section */
.footer {
  background: #16632e;
  color: #fff;
  padding: 40px 20px 20px;
  font-family: "Poppins", sans-serif;
  margin: 0 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-direction: row;
}

.footer-section {
  padding-left: 5%;
  min-width: 200px;
}

.footer-logo img {
  width: 70%;
  display: block;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.footer-pages ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-pages li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.footer-pages li::before {
  font-family: "Font Awesome 6 Free";
  content: "\f061"; /* fa-arrow-right */
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: #fff;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

/* Change arrow color on hover */
.footer-pages li:hover::before {
  color: #018a2f; /* or any hover color you want */
}

.footer-pages a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-pages a:hover {
  color: #018a2f;
}

.footer-contact .contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-contact i {
  min-width: 20px;
  font-size: 16px;
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  margin-top: 30px;
  font-size: 0.95rem;
  color: #aaa;
}

/* Table Responsive */
@media (max-width: 1024px) {
  .footer-container {
    max-width: 90%;
    justify-content: baseline;
    flex-wrap: nowrap;
  }
  .footer-section {
    padding: 0px 0px;
  }

  .footer-logo img {
    width: 80%;
    padding-top: 10%;
    display: block;
  }

  .footer-pages {
    font-size: 0.75rem;
  }

  .footer-title {
    font-size: 0.9rem;
    font-weight: 600;
  }

  .footer-contact {
    font-size: 0.75rem;
  }
}
/* Tablet Responsive */
@media (max-width: 768px) {
  .footer-container {
    max-width: 100%;
    justify-content: baseline;
    flex-wrap: nowrap;
  }
  .footer-section {
    padding: 0px 0px;
  }

  .footer-logo img {
    width: 100%;
    padding-top: 25%;
    display: block;
  }

  .footer-pages {
    padding-left: 5%;
    font-size: 0.65rem;
  }

  .footer-title {
    font-size: 0.8rem;
    font-weight: 600;
  }

  .footer-contact {
    font-size: 0.65rem;
    padding-left: -15%;
  }
}

/* Mobile Responsive */
@media (max-width: 540px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .footer-section {
    width: 100%;
    border-top: 1px solid #ffffff44;
    padding-top: 15px;
    text-align: center;
  }

  .footer-logo img {
    max-width: 80%;
    padding-top: 2%;
    padding-bottom: 2%;
    margin: 0 auto;
    display: block;
    text-align: center;
  }

  /* Pages section */
  .footer-pages {
    text-align: center;
    padding-top: 2%;
    padding-left: 0px;
  }
  .footer-title {
    font-size: 1.2rem;
  }

  .footer-pages ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
  }

  .footer-pages li {
    margin: 5px 0;
  }

  .footer-pages li::before {
    font-family: "Font Awesome 6 Free";
    content: "\f061"; /* fa-arrow-right */
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #fff;
    font-size: 0.9rem;
    transition: color 0.3s ease;
  }

  .footer-pages li:hover::before {
    color: #ffffff;
  }

  .footer-pages a {
    color: #fff;
    text-decoration: none;
  }

  .footer-pages a:hover {
    text-decoration: underline;
  }

  /* Contact Section */
  .footer-contact {
    padding-left: 0px;
  }

  .contact-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
  }

  .contact-row i {
    color: #fff;
    min-width: 20px;
  }

  .contact-row span {
    line-height: 1.4;
  }
  .contact-info {
    padding-left: 95px;
  }
  .contact-info-email {
    padding-left: 70px;
  }
  /* Footer Bottom */
  .footer-bottom {
    text-align: center;
    margin-top: 25px;
    font-size: 0.85rem;
    border-top: 1px solid #ffffff44;
    padding-top: 10px;
  }
}


@media (max-width: 480px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .footer-section {
    width: 100%;
    border-top: 1px solid #ffffff44;
    padding-top: 15px;
    text-align: center;
  }

  .footer-logo img {
    max-width: 80%;
    padding-top: 2%;
    padding-bottom: 2%;
    margin: 0 auto;
    display: block;
    text-align: center;
  }

  /* Pages section */
  .footer-pages {
    text-align: center;
    padding-top: 2%;
    padding-left: 0px;
  }
  .footer-title {
    font-size: 1.2rem;
  }

  .footer-pages ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
  }

  .footer-pages li {
    margin: 5px 0;
  }

  .footer-pages li::before {
    font-family: "Font Awesome 6 Free";
    content: "\f061"; /* fa-arrow-right */
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #fff;
    font-size: 0.9rem;
    transition: color 0.3s ease;
  }

  .footer-pages li:hover::before {
    color: #ffffff;
  }

  .footer-pages a {
    color: #fff;
    text-decoration: none;
  }

  .footer-pages a:hover {
    text-decoration: underline;
  }

  /* Contact Section */
  .footer-contact {
    padding-left: 0px;
  }

  .contact-row {
    display: flex;

    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
  }

  .contact-row i {
    color: #fff;
    min-width: 20px;
  }

  .contact-row span {
    display: inline-block;
    line-height: 1.4;
  }
  .contact-info {
    padding-left: 10%;
  }
  .contact-info-email {
    padding-left: 5%;
  }

  /* Footer Bottom */
  .footer-bottom {
    text-align: center;
    margin-top: 25px;
    font-size: 0.85rem;
    border-top: 1px solid #ffffff44;
    padding-top: 10px;
  }
}

@media (max-width: 345px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .footer-section {
    width: 100%;
    border-top: 1px solid #ffffff44;
    padding-top: 15px;
    text-align: center;
  }

  .footer-logo img {
    max-width: 80%;
    padding-top: 2%;
    padding-bottom: 2%;
    margin: 0 auto;
    display: block;
    text-align: center;
  }

  /* Pages section */
  .footer-pages {
    text-align: center;
    padding-top: 2%;
    padding-left: 0px;
  }
  .footer-title {
    font-size: 1.2rem;
  }

  .footer-pages ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
  }

  .footer-pages li {
    margin: 5px 0;
  }

  .footer-pages li::before {
    font-family: "Font Awesome 6 Free";
    content: "\f061"; /* fa-arrow-right */
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #fff;
    font-size: 0.9rem;
    transition: color 0.3s ease;
  }

  .footer-pages li:hover::before {
    color: #ffffff;
  }

  .footer-pages a {
    color: #fff;
    text-decoration: none;
  }

  .footer-pages a:hover {
    text-decoration: underline;
  }

  /* Contact Section */
  .footer-contact {
    padding-left: 0px;
  }

  .contact-row {
    display: flex;

    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
  }

  .contact-row i {
    color: #fff;
    min-width: 20px;
  }

  .contact-row span {
    display: inline-block;
    line-height: 1.4;
  }
  .contact-info {
    padding-left: 5%;
  }
  .contact-info-email {
    padding-left: 2%;
  }

  /* Footer Bottom */
  .footer-bottom {
    text-align: center;
    margin-top: 25px;
    font-size: 0.85rem;
    border-top: 1px solid #ffffff44;
    padding-top: 10px;
  }
}

/* Click to top section */
#myBtn {
  display: none;
  position: fixed;
  bottom: 18px;
  right: 20px;
  z-index: 99;
  font-size: 18px;
  outline: none;
  border: none;
  background-color: #31b74f;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 3px;
}

#myBtn:hover {
  background-color: #ffcc00;
  color: #000;
}
