html, body {
  overflow-x: hidden;
}

/**
 * Enable smooth scrolling on the whole document
 */
html {
  scroll-behavior: smooth;
}

/**
 * Disable smooth scrolling when users have prefers-reduced-motion enabled
 */
@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/**
 * Add .section to every anchored element for scroll margin
 */
.section {
  scroll-margin-top: 2rem;
}

/* Header */
.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 3rem;
  text-decoration: none;
}

@media (min-width: 48em) {
  .site-title {
    float: left;
  }
}

.nav-link {
  font-weight: 700;
  color: rgba(0, 0, 0, 0.8) !important;
}

.social-nav .nav-link {
  padding: 0 0.5rem;
  font-size: 1.1rem;
  line-height: 2.5rem;
}

.nav-link:hover,
.nav-link:focus,
.active .nav-link {
  color: rgba(0, 0, 0, 0.6) !important;
}

/* Hero (intro) section */
.intro-title {
  font-weight: 800;
}

@-webkit-keyframes animateWave {
  0% {
    transform: scale(1, 0);
  }
  100% {
    transform: scale(1, 1);
  }
}

@keyframes animateWave {
  0% {
    transform: scale(1, 0);
  }
  100% {
    transform: scale(1, 1);
  }
}

.wave-bg {
  display: block;
  height: 220px;
  width: 100%;
  min-width: 600px;
  transform-origin: top;
  -webkit-animation: animateWave 2000ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
          animation: animateWave 2000ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
  background-image: url("../images/wave-bg.svg");
  background-position: center;
  background-repeat: no-repeat;
}

img.avatar {
  border-radius: 30px;
}

/* Masonary grid for portfolio */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* Grid Item */
.grid-sizer,
.grid-item {
  width: 100%;
}

.grid-item {
  padding-bottom: 12px;
}

@media (min-width: 48em) {
  .grid-sizer,
  .grid-item {
    width: 25%;
  }
  .grid-item {
    float: left;
    padding: 6px;
  }
}

.grid-item img {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Portfolio */
.portolio-section .container {
  padding: 0;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin: 0;
}

.portfolio-item figcaption {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.75);
  transition: transform 0.35s;
  transform: translate3d(0, 100%, 0);
}

.portfolio-item figcaption h4 {
  color: #222;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 3px;
}

.portfolio-item figcaption p {
  color: #444;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0;
}

.portfolio-item:hover figcaption {
  transform: translate3d(0, 0, 0);
}

/* Portolio Caption */
#bp_container .bp-xc {
  background: #F6E05E !important;
}

#bp_caption a {
  text-decoration: none;
}

/* Footer section */
footer a:not(.nav-link) {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

/* Scroll Top */
#scrolltop {
  display: block;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.5s ease-in;
  position: fixed;
  bottom: 20px;
  right: 20px;
}

#scrolltop .btn {
  padding: 3px 11px;
  border-radius: 50%;
}

/* Additional utility styles */
.container-narrow {
  max-width: 1024px;
  margin: 0 auto;
}

.text-small {
  font-size: 0.875rem;
}

.text-uppercase {
  letter-spacing: 0.05em;
}

.hover-effect {
  transition: transform .18s ease-in-out;
}

.hover-effect:hover {
  transform: translateY(-2px);
}

.marker {
  position: relative;
  display: inline;
  width: auto;
}

.marker-center {
  padding-right: 0;
}

.marker:after {
  content: "";
  width: 125px;
  height: 30px;
  position: absolute;
  bottom: -25px;
  right: -30px;
  background-image: url("../images/marker.svg");
  background-repeat: no-repeat;
}

.marker-center:after {
  bottom: -30px;
  left: 50%;
  margin-left: -60px;
}

@media (max-width: 575.98px) {
  .marker {
    padding-right: 0;
  }
  .marker:after {
    bottom: -30px;
    left: 50%;
    margin-left: -60px;
  }
}

.entry-title a {
  text-decoration: none;
}

.logo-overlay {
  position: fixed;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 880px;
  height: auto;
  opacity: 0.08;
  z-index: 10;
  pointer-events: none; /* 🔥 THIS FIXES CLICK ISSUE */
}

@media (max-width: 768px) {
  .logo-overlay {
    width: 600px !important;
  }
}

/* Logo styling inside navbar */
.brand-logo {
  width: 100px;          /* Adjust logo size */
  height: 100px;         /* Keep proportions */
  margin-right: 2px;    /* Space between logo and text */
  vertical-align: middle; /* Align with text */
}

/* Slider wrapper */
#clients .mx-auto {
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Slider container */
.logo-slider {
  overflow: hidden;
  position: relative;
}

/* Logo row (moves as a whole) */
.logo-row {
  display: flex;
  width: max-content;
  animation: scroll-left 80s linear infinite;
}

/* Individual logos */
.logo-row img {
  width: 180px;
  height: auto;
  object-fit: contain;
  margin: 0 20px;
  flex-shrink: 0;
}

/* Smooth continuous scroll */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Keyframes for sliding */
@keyframes slide {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.bg-light {
  background-color: #e1ba6f !important; /* gold */
}
/* ===============================
   SERVICE CARD
================================= */

.service-card {
  padding: 40px 30px 25px;
  border-radius: 12px;
  min-height: 220px;
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* ===============================
   ICON STYLE
================================= */

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto -35px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}

/* ===============================
   READ MORE (SIMPLE TEXT)
================================= */

.read-more-btn {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #0d6efd;
  text-decoration: none;
  cursor: pointer;
}

.read-more-btn:hover {
  text-decoration: underline;
}

/* ===============================
   POPUP OVERLAY
================================= */

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ===============================
   SPEECH BUBBLE POPUP
================================= */

.popup-content {
  position: relative;
  background: #fff;
  padding: 35px 30px;
  width: 90%;
  max-width: 500px;

  /* Rounded bubble look */
  border-radius: 50px;

  /* Optional border like your image */
  border: 4px solid #000;

  text-align: left;
  animation: popupFade 0.3s ease;
}

/* Speech tail */
.popup-content::after {
  content: "";
  position: absolute;
  bottom: -25px;
  left: 80px;

  width: 0;
  height: 0;

  border-left: 25px solid transparent;
  border-right: 10px solid transparent;
  border-top: 30px solid #fff;

  transform: rotate(10deg);
}

/* ===============================
   CLOSE BUTTON
================================= */

.close-btn {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 22px;
  cursor: pointer;
}

/* ===============================
   TEXT STYLE
================================= */

#popup-text {
  font-size: 15px;
  line-height: 1.6;
}

/* ===============================
   ANIMATION
================================= */

@keyframes popupFade {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* Make cards equal height without breaking alignment */
.service-card {
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 30px 25px;
  border-radius: 12px;
  transition: 0.3s;
}

/* Fix icon alignment */
.service-icon {
  text-align: center;
  margin-bottom: 10px;
}

/* Keep text balanced */
.service-card .text-small {
  flex-grow: 1;
}


