/* =========================
   RESET & BASE STYLES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html, body {
  overflow-x: hidden;
}

body {
  background-color: #f4f4f9;
  color: #333;
  line-height: 1.6;
}

/* =========================
   HEADER
========================= */
header {
  background-color: #006400;
  color: #fff;
  text-align: center;
  padding: 25px 15px;
}

header .logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  margin-bottom: 10px;
}

header p {
  margin: 4px 0;
  font-size: 0.95rem;
}

/* =========================
   NAVBAR
========================= */
nav {
  background-color: #228B22;
  padding: 12px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  color: #fff;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -5px;
  background: #fff;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 2rem;
  color: #006400;
}

.section h3 {
  margin-top: 20px;
  color: #228B22;
}

/* =========================
   WORK GRID
========================= */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.box {
  background-color: #fff;
  padding: 25px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box a {
  text-decoration: none;
  color: #006400;
  font-weight: bold;
}

.box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

/* =========================
   SLIDER (FIXED VERSION)
========================= */
.slider-container {
  position: relative;
  max-width: 850px;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 450px;
}

.slider-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* IMPORTANT: Default first image visible */
.slider-wrapper img:first-child {
  opacity: 1;
}

/* When JS adds .show */
.slider-wrapper img.show {
  opacity: 1;
}

/* Slider Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,100,0,0.8);
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.slider-btn:hover {
  background: rgba(0,100,0,1);
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* =========================
   LISTS
========================= */
ul {
  margin: 15px 0;
  padding-left: 40px;
}

/* =========================
   FOOTER
========================= */
footer {
  background-color: #006400;
  color: #fff;
  padding: 45px 20px;
  text-align: center;
}

.footer-contact p {
  margin: 8px 0;
}

.footer-form {
  margin-top: 25px;
}

.footer-form form {
  max-width: 420px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-form input,
.footer-form textarea {
  padding: 10px;
  border-radius: 5px;
  border: none;
}

.footer-form button {
  background-color: #228B22;
  color: #fff;
  padding: 10px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

.footer-form button:hover {
  background-color: #004d00;
}

/* =========================
   BACK TO TOP
========================= */
.back-to-top {
  display: inline-block;
  margin-top: 20px;
  background: #228B22;
  color: #fff;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.4s;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   SCROLL ANIMATION
========================= */
.fade-in {
  opacity: 1;   /* changed so content never stays hidden */
  transform: none;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

  nav a {
    display: inline-block;
    margin: 8px;
  }

  header .logo {
    width: 90px;
    height: 90px;
  }

  .work-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .slider-wrapper {
    height: 300px;
  }
}

/* =========================
   GALLERY
========================= */

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

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}