/* ========================
   GLOBAL STYLES
======================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #222;
    scroll-behavior: smooth;
  }
  
  /* ========================
     HEADER & NAVIGATION
  ======================== */
  header {
    background-color: #111;
    color: #f9f9f9;
    text-align: center;
    padding: 2em 1em;
  }
  
  header img {
    max-height: 80px;
    margin-bottom: 10px;
  }
  
  nav {
    background-color: #222;
    padding: 1em 0;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    gap: 2rem;
  }
  
  nav li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
    border-radius: 5px;
  }
  
  nav li a:hover {
    background-color: #444;
  }
  
  /* =======================
   HERO SECTION
   ======================= */
.hero {
  background: url('Images/hero-background.jpg') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin: 0;
}

.bold-statement {
  font-size: 1.8rem;
  margin: 1em 0;
  font-weight: bold;
}

/* Hero Button Style */
.hero-button {
  display: inline-block;
  background-color: #fff;
  color: #111;
  border: none;
  padding: 0.8em 1.5em;
  cursor: pointer;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-button:hover {
  background-color: #ddd;
  transform: scale(1.05);
}



  
  
  /* ========================
     MAIN CONTENT
  ======================== */
  main {
    padding: 3em 2em;
    background-color: #fff;
  }
  
  main section {
    margin-bottom: 3em;
  }
  
  main h2 {
    font-size: 2em;
    color: #222;
    border-bottom: 2px solid #ccc;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
  }
  
  /* ========================
     SERVICES SECTION
  ======================== */
  .services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
  }
  
  .service-item {
    background-color: #eee;
    padding: 1.5em;
    border-radius: 10px;
    width: 250px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
  }

  .service-item {
  display: block;
  padding: 20px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  text-decoration: none; /* removes underline */
  color: inherit; /* keeps text color */
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

  
  /* ========================
     REVIEWS SECTION
  ======================== */
  #reviews {
    padding: 40px;
    background-color: #f5f5f5;
    text-align: center;
  }
  
  .review-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
  
  .review-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    opacity: 1;
    transition: opacity 0.8s ease;
  }
  
  .review-card:hover {
    transform: scale(1.03);
  }
  
  /* Review Transitions */
  .review-card.fade-out {
    opacity: 0;
  }
  
  .review-card.fade-in {
    opacity: 1;
  }
  
  /* ========================
     FOOTER
  ======================== */
  footer {
    background-color: #111;
    color: #aaa;
    text-align: center;
    padding: 1.5em 1em;
    font-size: 0.9em;
  }
  
  footer a {
    color: #00bfff;
    text-decoration: none;
  }
  
  footer a:hover {
    text-decoration: underline;
  }
  
  /* ========================
     RESPONSIVE DESIGN
  ======================== */
  @media (max-width: 768px) {
    nav ul {
      flex-direction: column;
      align-items: center;
      gap: 1em;
    }
  
    .hero h1 {
      font-size: 2rem;
    }
  
    .bold-statement {
      font-size: 1.2rem;
    }
  
    .services-list {
      flex-direction: column;
      align-items: center;
    }
  
    .service-item {
      width: 90%;
    }
  }





  /* =======================
   HERO VARIANT FOR SERVICES
   ======================= */
.services-hero {
  background: url('Images/services-hero.jpg') no-repeat center center/cover;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
}

.services-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* dark overlay for readability */
}

.services-hero .hero-content {
  position: relative;
  z-index: 1;
}

.services-hero h1 {
  font-size: 3rem;
  margin: 0;
}

.services-hero .bold-statement {
  font-size: 1.5rem;
  margin-top: 1em;
  font-weight: 600;
}

 


  /* ========================
   📸 GALLERY PAGE STYLES
   ======================== */

/* Hero section specific to gallery */



.gallery-hero {
  background: url('Images/gallery-hero.jpg') no-repeat center center/cover;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
}

.gallery-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.gallery-hero .hero-content {
  position: relative;
  z-index: 1;
}


.gallery-hero h1 {
  font-size: 2.5rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

.gallery-hero p {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

/* Main gallery layout */
.gallery-main {
  padding: 3em 2em;
  background-color: #fff;
}

.gallery-section {
  margin-bottom: 3em;
}

.gallery-section h2 {
  font-size: 2em;
  color: #222;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
  text-align: center;
}

/* Responsive grid of images */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
  



/* Filter buttons */
.filter-buttons {
  text-align: center;
  margin: 2em 0;
}

.filter-btn {
  background-color: #222;
  color: #fff;
  border: none;
  padding: 0.5em 1em;
  margin: 0 0.3em;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background-color: #444;
}

/* Captions on hover */
.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.5em;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .caption {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
}

.lightbox .close {
  position: absolute;
  top: 20px; right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}




/* ==============================
   GALLERY PAGE STYLES
   ============================== */

#gallery {
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
}

#gallery h2 {
  font-size: 2em;
  margin-bottom: 1em;
  color: #222;
  border-bottom: 2px solid #ccc;
  display: inline-block;
  padding-bottom: 0.3em;
}

.filter-buttons {
  margin-bottom: 2em;
}

.filter-buttons button {
  background-color: #444;
  color: #fff;
  border: none;
  padding: 0.6em 1.2em;
  margin: 0 0.3em 0.5em;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.filter-buttons button:hover,
.filter-buttons button.active {
  background-color: #222;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 1em;
}

.gallery-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item .caption {
  padding: 0.8em;
  font-size: 0.95rem;
  color: #333;
  background-color: #fff;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}


/* Universal Search Bar */
.site-search {
  text-align: center;
  margin: 1.5em auto;
}

.site-search input[type="text"] {
  width: 60%;
  max-width: 400px;
  padding: 0.6em;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 5px;
}

.site-search button {
  padding: 0.6em 1em;
  font-size: 1rem;
  margin-left: 0.5em;
  background-color: #111;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.site-search button:hover {
  background-color: #333;
}


/* Search Toggle & Search Bar Styles */
.search-wrapper {
  text-align: center;
  margin: 1em 0;
}

.search-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #111;
}

.site-search {
  margin-top: 0.5em;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  overflow: hidden;
  max-height: 100px;
  opacity: 1;
}

.site-search.hidden {
  max-height: 0;
  opacity: 0;
}

.site-search input[type="text"] {
  width: 60%;
  max-width: 300px;
  padding: 0.5em;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 5px;
}

.site-search button {
  padding: 0.5em 0.8em;
  font-size: 1rem;
  margin-left: 0.3em;
  background-color: #111;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.site-search button:hover {
  background-color: #333;
}



.projects-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-item {
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.project-item img {
  width: 100%;         /* make the image fill the card width */
  height: 250px;       /* consistent height for all cards */
  object-fit: cover;   /* scales image, crops excess without distortion */
  display: block;
  border-radius: 5px;  /* optional: rounded corners for a nicer look */
}


.project-item p {
  padding: 10px;
  font-size: 1rem;
  color: #333;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}




.project-item {
  background-color: #e0e0e0; /* light grey background */
  border-radius: 8px;
  padding: 20px;
  height: 150px;           /* consistent card height */
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center */
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  color: #333;             /* text color */
  font-size: 1rem;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

