@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
}

body {
    scroll-behavior: smooth;
    line-height: 1.6;
    font-size: 16px;
}

.logo img {
    margin-top: 10px;
    width: 100px;
    height: auto;
}

.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #ffffff;
    color: #000;
    height: 100px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Navbar list */
.navbar ul {
    font-size: 1.2rem;
    list-style: none;
    display: flex;
    gap: 40px;
}

.navbar ul li a {
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}


.navbar ul li a:hover {
    color: #ff6347;
}

button {
    border: none;
    outline: none;
    background: white;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
}

.navbar ul li a:hover {
    color: #ff6347;
}

/* ✅ Active page color */
.navbar ul li a.active {
    color: #ff6347;   
    font-weight: bold;
    border-bottom: 2px solid #ff6347; 
}


@media (max-width: 840px) {

    .navbar ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: absolute;
        top: 100px;
        left: 0;
        background-color: #ffffff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 0;

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    }

    .navbar ul.active {
        max-height: 500px;
        padding: 20px 0;
    }

    .menu-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
        z-index: 1001;
    }


    .logo img {
        width: 80px;
    }

    .hero-section {
        height: auto;
        min-height: 70vh;
    }
}


/* ///////////////////////Services-homepage///////////////////// */


.service-section {
    position: relative;
    height: 30vh;
    background: url('/src/assets/images/projects/Service_image.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
    margin-top: 100px;
    /* Add this line to push the section down */
}

/* Adds a semi-transparent overlay to make the text more readable */
.service-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 44, 44, 0.6);
    z-index: 1;
}

.service-container {
    position: relative;
    z-index: 2;
    /* Ensures the content is above the overlay */
    max-width: 800px;
    padding: 20px;
}

.service-container h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Adds a subtle shadow for depth */
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .service-section {
        height: 50vh;
        /* Reduces height on mobile for better visibility */
    }

    .service-container h1 {
        font-size: 2.5rem;
    }
}

.back-to-top-arrow {
  /* 1. Sticky Position and Location (as before) */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s; 
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: #333; 
  color: white; 
  text-decoration: none; 
  border-radius: 50%;
  font-size: 18px;
}


.back-to-top-arrow.show-arrow {
  opacity: 1;
  visibility: visible;
}

/* ===========================service-content================= */

.service-content {
    width: 100%;
    background: #f85c2c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    color: white;
    height: auto;
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-content p {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 550;
    transform: scale(0.9);
    line-height: 1.4;
}

/* Animation delays */
.service-content p:nth-child(1) {
    animation-delay: 0.2s;
}

.service-content p:nth-child(2) {
    animation-delay: 0.6s;
}

/* ---------------- Responsive ---------------- */

/* Tablets */
@media (max-width: 1024px) {
    .service-content p {
        font-size: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .service-content {
        padding: 15px 8px;
    }

    .service-content p {
        font-size: 1.2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .service-content {
        padding: 12px 6px;
    }

    .service-content p {
        font-size: 1rem;
        line-height: 1.3;
    }
}

/* ////////////////////////////////////////////////////////// */
/* ===== Quantity Surveying Section ===== */
.qs-section {
  width: 100%;
  padding: 50px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  overflow: hidden;
}

.qs-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  width: 1200px;
}

.qs-image {
  flex: 1;
  text-align: center;
}

.qs-image img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.5s ease, filter 0.5s ease;
}

/* Hover effect on image */
.qs-image img:hover {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.qs-content {
    text-align: left;
  flex: 1;
  transform: translateY(30px);
}

.qs-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #222;
  position: relative;
}

.qs-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 80px;
  height: 4px;
  background: orange;
  border-radius: 2px;
}

.qs-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qs-content ul li {
  font-size: 1.2rem;
  margin: 12px 0;
  padding-left: 25px;
  position: relative;
  color: #444;
  transition: all 0.3s ease;
}

/* Custom bullet */
.qs-content ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: orange;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Hover effect on list */
.qs-content ul li:hover {
  color: orange;
  transform: translateX(5px);
}


/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .qs-container {
    flex-direction: column;
    text-align: center;
  }

  .qs-content h2 {
    font-size: 2rem;
  }

  .qs-content ul li {
    font-size: 1rem;
  }
}


/* --- Main Footer Container and Columns --- */
.site-footer {
    background-color: #00003b;
    padding: 60px 20px 20px;
}


.footer-container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
}

.footer-column {
    margin: 10px auto;
    flex-basis: 22%;
    box-sizing: border-box;
    min-width: 200px;
}


.footer-column:nth-child(2),
.footer-column:nth-child(3),
.footer-column:nth-child(4) {
    max-width: 150px;
    display: flex;
    flex-direction: column;
}

.footer-heading {
    color: #ffbb00;
    /* A bright gold/yellow color */
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* --- Lists and Links --- */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.contact-list li,
.link-list li {
    font-size: 0.68rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-list li span {
    overflow-wrap: break-word;
    word-break: break-all;
    hyphens: auto;
}


.contact-list li a {
    color: white;
    text-decoration: none;
}

.link-list {
    display: flex;
    flex-direction: column;
}


.link-list a,
.contact-list span {
    overflow-wrap: break-word;
    word-wrap: break-word;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}


.link-list a:hover {
    color: #f7d268;
}


.icon {
    width: 20px;
    height: 20px;
    stroke: orange;
    margin-right: 4px;
    fill: none;
    flex-shrink: 0;
    vertical-align: middle;
}

/* --- Project Gallery Grid --- */
.gallery-grid {
    width: 150px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}


/* --- Copyright Section --- */
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}


/* --- Media Queries for Responsiveness --- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-column {
        min-width: 100%;
    }

    .contact-list,
    .link-list {
        text-align: left;
    }

    .gallery-grid {
        justify-items: center;
    }
}

/* ================== RESPONSIVE DESIGN ================== */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .navbar {
        padding: 10px 30px;
    }
}

/* Tablets */
@media (max-width: 840px) {

    .menu-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
    }
}

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


    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}
