/* ========== RESET & BASE STYLES ========== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* ========== HEADER STYLES ========== */
.site-header {
  background-color: rgb(52, 71, 85);
  height: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

/* Header Logo */
.Header_Logo {
  height: 80px;
  max-width: 100%;
  object-fit: contain;
}

/* Header collapse transition */
.site-header {
  transition: all 0.3s ease;
}

/* Collapsed header */
.site-header.collapsed {
  padding: 5px 10px;
}

.site-header.collapsed .Header_Logo {
  height: 50px; /* smaller logo on collapse */
}

/* ========== NAVIGATION ========== */
.topnav a.active {
  background-color: chocolate;
  color: white;
  border-radius: 4px;
}
.topnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.topnav ul li {
  margin-left: 10px;
  position: relative;
}

.topnav a,
.dropbtn {
  display: block;
  padding: 10px 14px;
  color: chocolate;
  text-decoration: none;
  text-align: center;
}

.topnav a:hover,
.dropdown:hover .dropbtn {
  background-color: rgb(52, 71, 85);
  color: chocolate;
}

/* Dropdown content */
.dropdown_content {
  display: none;
  position: absolute;
  background-color: rgb(52, 71, 85);
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 20;
}

.dropdown_content a {
  color: chocolate;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown:hover .dropdown_content {
  display: block;
}

/* ========== SLIDESHOW STYLING ========== */
.slideshow-container {
  padding: 110px;
  position: relative;
  left: 0;
  width: 100%;
  height: calc(100vh - 110px);
  overflow: hidden;
  z-index: 2;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  top: 0;
  left: 0;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  z-index: 3;
}

.overlay strong {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 10px;
  color: #ffe600;
}

.overlay p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  color: #fff;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  user-select: none;
  z-index: 10;
}

.prev:hover, .next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev { left: 20px; }
.next { right: 20px; }

/* ========== SERVICES OVERVIEW STYLES ========== */
.Services_Overview {
  padding: 50px 20px;
  background: #121212;
  color: #fff;
  margin-top: 110px;
}

.Services_Overview h2,
.Services_Overview h3 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.Services_Overview p {
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc;
}

.services-banner {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.service-item {
  display: flex;
  align-items: center;
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.service-item img {
  width: 250px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.service-text {
  padding: 20px;
}

.service-text h4 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #ffb400;
}

/* ========== FOOTER SECTION ========== */
.site-footer {
  background-color: #222;
  color: #fff;
  padding: 60px 20px 20px;
  font-size: 0.95rem;
}

.site-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer h2 {
  font-size: 1.6rem;
  color: #ffe600;
  margin-bottom: 10px;
}

.site-footer p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.site-footer form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer input,
.site-footer textarea {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background: #333;
  color: #fff;
}

.site-footer input:focus,
.site-footer textarea:focus {
  outline: 2px solid #ffe600;
}

.site-footer button {
  background-color: #ffe600;
  color: #222;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.site-footer button:hover {
  background-color: #ffc400;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #444;
  font-size: 0.85rem;
  color: #ccc;
}

/* ========== CONTACT INFO SECTION ========== */
.contact-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 20px;
}

.contact-info .email-icon {
  font-size: 1.2rem;
}

.contact-info a {
  color: #ffe600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #ffc400;
  text-decoration: underline;
}

/*===========SCROLL UP CODE ============*/
/* ===== Scroll Collapse Effect ===== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.3s ease, background 0.3s ease, padding 0.3s ease;
}

/* Collapsed header */
.site-header.collapsed {
  transform: translateY(-100%);
}

/* ===== Mobile Hamburger Menu ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 20px;
  cursor: pointer;
}
/* Collapsed header for desktop */
.site-header.collapsed {
  transform: translateY(-100%);
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* When menu is active */
.topnav.active {
  display: block;
}

/* ========== RESPONSIVE FIXES ========== */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    min-height: 56px; /* added fix for consistent header height */
    background-color: rgb(52, 71, 85); /* ensure background shows */
    justify-content: center; /* center content */
  }

  .hamburger {
    display: flex;
  }

  .Header_Logo {
    max-width: 160px; /* prevent huge scaling */
    height: auto;
    margin-bottom: 8px;
    display: block; /* ensure proper rendering */
  }
  /* Header collapse transition */
.site-header {
  transition: all 0.3s ease;
}

/* Collapsed header */
.site-header.collapsed {
  padding: 5px 10px;
}

.site-header.collapsed .Header_Logo {
  height: 50px; /* smaller logo on collapse */
}

/* Remove extra space between slideshow and content */
.slideshow-container {
  margin-bottom: 0;
  padding-bottom: 0;
}

.site-header {
    transition: padding 0.3s ease, height 0.3s ease;
}
  
.site-header.collapsed {
    transform: none;
    padding: 5px 10px; /* smaller padding */
}

/* Shrink logo inside collapsed mobile header */
.site-header.collapsed .Header_Logo {
    max-height: 40px;
}

.topnav {
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.95);
  padding:10px;
}

.topnav ul {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .topnav .active ul{
    display: flex;
  }

  .topnav ul li {
    width: 100%;
  }

  .topnav a,
  .dropbtn {
    width: 100%;
    text-align: center;
  }

  .dropdown_content {
    position: static;
    box-shadow: none;
  }

  .slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh; /* full height for mobile */
    overflow: hidden;
    padding-top: 0px;
    overflow: hidden;
  }

  .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }

  .slide.active {
    opacity: 1;
    z-index: 1;
  }

  .slide img {
    width: 100%;
    height: 100%;
    max-height: 100vh; /* prevent overflow in portrait */
    object-fit: cover;
    object-position: center center;
  }

  .overlay {
    position: absolute; /* keep overlay on top */
    bottom: 0;
    width: 100%;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    text-align: center;
  }

  .overlay strong {
    font-size: 1.5rem;
    color: #ffe600;
  }

  .overlay p {
    font-size: 1rem;
    max-width: 90%;
    margin: 0 auto;
  }

  .Services_Overview {
    margin-top: 5vh; /* adjust for fixed header */
  }

  .services-banner {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .service-item {
    flex-direction: column;
    text-align: center;
  }

  .service-item img {
    width: 100%;
    height: auto;
  }

  .service-text {
    padding: 10px;
  }

  .site-footer form {
    width: 100%;
  }

  .contact-info {
    flex-direction: column;
    align-items: flex-start;
  }
}