/* 🌐 GLOBAL RESET */
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: none !important;
    overflow-x: hidden;
}

/* ✅ NAVBAR (TOP BAR) */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 10px 20px; */
  background-color: transparent;
  z-index: 10;
  margin: 0; /* Remove fixed margins that break mobile layout */
  height: auto; /* Let content define height */
  position: relative;
}



.top-bar * {
    border: none !important;
    box-shadow: none !important;
}

/* ✅ LOGO */
.logo {
    flex-shrink: 0;
}

.logo img {
    height: 100px;
    width: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(19%) sepia(99%) saturate(2731%) hue-rotate(190deg) brightness(90%) contrast(101%);
}

/* ✅ NAVIGATION LINKS */
.nav-links.desktop-nav {
    position: absolute;
    left: 85%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
}

.nav-links.desktop-nav a {
    color: #0063a6;
    text-decoration: none;
    /* font-size: 1rem; */
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links.desktop-nav a:hover {
    background-color: #e3f2fd;
    color: #0063a6;
}

/* ✅ HAMBURGER BUTTON */
.hamburger {
  display: none;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: #0063A6;
  cursor: pointer;
  z-index: 20;
  top: 20px;
  right: 40px;
  position: absolute; /* ⬅️ Changed from absolute to static */
}



/* ✅ MOBILE NAVIGATION */
.nav-links.mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 20px;
    width: 240px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    z-index: 100;
    overflow: hidden;
    padding: 12px 0;
}

.nav-links.mobile-nav.show {
    display: flex;
}

.nav-links.mobile-nav a {
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #0063a6;
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.nav-links.mobile-nav a:last-child {
    border-bottom: none;
}

.nav-links.mobile-nav a:hover {
    background-color: #e3f2fd;
    color: #0063a6;
    padding-left: 28px;
}

/* ✅ WORKS SECTION */
.works-section {
    /* padding: 1px 0 0; */
    background: url("images/bg.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    width: 100%;
    min-height: 100vh;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #0063a6;
    /* margin-bottom: 5px; */
    text-align: center;
    margin-top: 1px;

    white-space: nowrap;/* Prevent line break */
    overflow: hidden;/* Hide overflow if any */
}

/* ✅ FILTER MENU */
.filter-menu {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1.2rem;
    padding: 0.5rem;
    margin: 0;
    list-style: none;
    white-space: nowrap;
    justify-content: space-evenly;
    scrollbar-width: none; /* Firefox */
}

/* ✅ Hide scrollbar for WebKit browsers */
.filter-menu::-webkit-scrollbar {
    display: none;
}

.filter-menu li {
    flex: 0 0 auto;
    cursor: pointer;
    padding: 0.5rem 1rem;
    min-width: 120px;
    font-weight: 500;
    color: gray;
    transition: color 0.3s ease, background 0.3s;
    position: relative;
    text-align: center;
    white-space: nowrap;
}

.filter-menu li:hover {
    color: #0063a6;
    background: #f0f0f0;
}

.filter-menu li.active {
    color: #0063a6;
    font-weight: 600;
}



.filter-menu li.active::after,
.filter-menu li:hover::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 88%;
    background-color: #0063a6;
    transition: all 0.3s ease-in-out;
    opacity: 0.8;
}


/* ✅ IMAGE GRID */
.works-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
    margin-bottom: 0;
    /* controls space before footer */
}


.filter-item {
    display: none;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.filter-item.show {
    display: block;
}

.filter-item.show.single-center {
    display: flex;
    justify-content: center;
}

/* .works-grid>div {
    padding: 4px;
} */

.works-grid img {
    width: 100%;
    height: auto;
    display: block;
}




.filter-item img {
    width: 100%;
    margin-top: 25px;
    height: auto;
    display: block;
    /* border-radius: 10px; */
    object-fit: cover;
    /* margin-bottom: 50px; */
}

/* ✅ MEDIA QUERIES */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }

    .hamburger {
        display: block !important;
    }

    .mobile-nav {
        display: none;
    }

    .mobile-nav.active {
        display: flex !important;
    }

    /* .filter-item.all.show {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 5px;
    } */
}

@media (max-width: 480px) {
    .filter-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

.py-5 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.lozad {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.lozad.loaded {
  opacity: 1;
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.25rem;
    }
}

body {
    overflow-x: hidden;
}

/* .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
} */

.container,
.container-fluid {
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-right: 0;
    margin-left: 0;
}

.row {
    margin-right: 0;
    margin-left: 0;
}

@media (max-width: 600px) {
    .filter-menu {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 0;
        /* still no gap between list items */
        padding-left: 0;
        margin: 0;
        scrollbar-width: none;
    }

    .filter-menu::-webkit-scrollbar {
        display: none;
    }

    .filter-menu li {
        flex: 0 0 25%;
        /* Exactly 4 items per row */
        padding: 0.4rem 0.2rem;
        /* ✅ slightly reduced padding */
        font-size: 0.9rem;
        /* ✅ slightly smaller text */
        text-align: center;
        white-space: nowrap;
        box-sizing: border-box;
        word-spacing: 2px;
        /* ✅ tighter spacing between words */
    }

    .filter-menu li:first-child {
        margin-left: 0;
    }
}


@media (max-width: 768px) {
  .filter-menu {
    overflow-x: scroll !important;
    white-space: nowrap;
    display: block;
    scrollbar-width: thin; /* For Firefox */
  }

  .filter-menu::-webkit-scrollbar {
    display: block; /* Show scrollbar for WebKit browsers */
    height: 6px;
  }

  .filter-menu::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
  }

  .filter-menu::-webkit-scrollbar-track {
    background-color: #f0f0f0;
  }

  .filter-menu li {
    display: inline-block;
  }
}




