body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url("images/bgimg.jpg") no-repeat center center fixed;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 0.5 = 50% dark overlay */
  z-index: -1; /* para nasa likod lang siya ng content */
}


/* Header Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: #ffffff;
  border-bottom: 2px solid #e0e0e0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: bold;
  color: black;
}

.logo img {
  width: 70px;
  height: auto;
  margin-right: 10px;
}

nav {
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  padding: 8px 14px;
  border-radius: 8px;
  transition: 0.3s;
}

nav a:hover {
  background-color: #007bff;
  color: #fff;
}


/* Main Content */
main {
  text-align: center;
  margin-top: 50px;
  padding: 50px;
}

/* Services Section */
.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px auto;
  padding: 0 20px;
  transform: translateY(20px); /* adjust -10px para umangat */
}


.service-box img {
  width: 100%;
  height: auto;          /* height automatic, base sa aspect ratio */
  max-height: 250px;     /* maximum height para hindi masyadong mataas */
  object-fit: contain;    /* buong image makikita, walang ma-cut */
  border-radius: 8px;
  margin-bottom: 15px;
}



.service-box {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.service-box h3 {
  color: #007bff;
  margin-bottom: 10px;
}

.service-box p {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

/* View Products Button */
.service-box button {
  margin-top: 15px;
  padding: 10px 18px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: 0.3s;
}

.service-box button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


.products-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 20px;
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 20px;
  margin-top: 100px;
}

.product-box {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: 0.3s;
}

.product-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.product-box img {
  width: 250px;       /* para sakto sa lapad ng box */
  height: 300px;     /* fixed height para pantay lahat */
  object-fit: contain;  /* para buo ang image, walang cut */
  border-radius: 6px;   /* optional, rounded corners */
  padding: 5px;         /* para may konting space */
}

.product-box h4 {
  color: #007bff;
  margin: 10px 0 5px;
}

.product-box p {
  color: #333;
  font-size: 14px;
}

.product-box button {
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.product-box button:hover {
  background-color: #0056b3;
}

.view-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.3s;
}

.view-btn:hover {
  background-color: #0056b3;
}

main h1 {
  font-size: 2.5em;
  color: white;
  text-align: center;
  margin-bottom: 30px;
}


/* Footer */
footer {
  background-color: brown;
  color: #fff;
  padding: 5px;
  text-align: center;
  width: 100%;
  position: fixed;   /* fixed sa screen */
  bottom: 0;         /* nasa pinaka-baba */
  left: 0;
  z-index: 1000;     /* para di matakpan */
}


/* Generic footer link style */
footer a {
  text-decoration: none;
  font-weight: bold;
  margin: 0 8px;
  transition: color 0.3s;
  color: white;
}



    /* Navigation container */
    nav {
      display: flex;
      gap: 25px;
      align-items: center;
    }

    nav a {
      text-decoration: none;
      font-size: 16px;
      font-weight: 500;
      color: #333;
      padding: 8px 14px;
      border-radius: 8px;
      transition: 0.3s;
    }

    nav a:hover {
      background-color: #007bff;
      color: #fff;
    }

    /* Dropdown style */
    .dropdown {
      position: relative;
    }

    .dropdown > a::after {
      content: " ▾"; /* maliit na arrow */
      font-size: 12px;
    }

    .dropdown-content {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background-color: #fff;
      min-width: 180px;
      border-radius: 8px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
      z-index: 1000;
    }

    .dropdown-content a {
      display: block;
      padding: 10px 15px;
      color: #333;
      text-decoration: none;
      border-radius: 6px;
      white-space: nowrap;
    }

    .dropdown-content a:hover {
      background-color: #007bff;
      color: #fff;
    }

    /* show dropdown on hover */
    .dropdown:hover .dropdown-content {
      display: block;
    }


    /* ===== Slideshow Styles ===== */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: 50px auto; /* nasa baba na, may space sa taas */
  border-radius: 12px;
  overflow: hidden;

}

.mySlides {
  display: none;
  animation: fadeEffect 1s;
}

@keyframes fadeEffect {
  from {opacity: 0.4}
  to {opacity: 1}
}


.mySlides {
  display: none;
}

.mySlides img {
  width: 100%;
  height: auto;      /* height adjust ayon sa aspect ratio */
  max-height: 400px; /* maximum height para hindi masyadong matangkad */
  object-fit: contain; 
  border-radius: 10px;
}


.text {
  color: #fff;
  font-size: 20px;
  padding: 10px 15px;
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 15px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background: rgba(0,0,0,0.4);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.8);
}

/* Dots indicators */
.dots-container {
  text-align: center;
  margin-top: 15px;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.4s;
}

.intro {
  text-align: center;       /* i-center ang text */
  margin: 50px auto;        /* space sa taas at baba */
  max-width: 800px;         /* para hindi sobrang lapad */
  padding: 20px;
}

.intro h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: white;
}

.intro p {
  font-size: 1.2rem;
  color: white;
}

.map-container {
  max-width: 500%;
  margin: 40px auto; /* center horizontally with some space */
  border-radius: 15px;
  overflow: hidden; /* make sure rounded corners are applied */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
