html, body {
  overflow-x: hidden;
}

/* Skip link — first tab stop for keyboard users; jumps to #main-content */
.skip-link {
  position: fixed;
  top: -120px;
  left: 1rem;
  z-index: 2000;
  padding: 0.65rem 1.1rem;
  background: #111827;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: top 0.15s ease-out;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #F6E05E;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

/**
 * 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: misc links only (exclude nav columns, legal strip, and CTA buttons) */
footer a:not(.nav-link):not(.footer-legal-link):not(.btn) {
  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;
}

/* Footer bottom bar: Privacy (left) + copyright (right), balanced on large screens */
.footer-bottom-bar {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 1rem;
  margin-top: 1.75rem;
}

.footer-copy {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.45);
  line-height: 1.4;
}

.footer-legal-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.45);
  text-decoration: none;
  transition: color 0.15s ease;
  line-height: 1.4;
}

.footer-legal-link:hover,
.footer-legal-link:focus {
  color: rgba(0, 0, 0, 0.72);
  text-decoration: underline;
}

/* Portfolio page: keep muted legal/copyright despite #footer link overrides */
footer#footer.bg-light a.footer-legal-link {
  color: rgba(0, 0, 0, 0.45);
}

footer#footer.bg-light a.footer-legal-link:hover,
footer#footer.bg-light a.footer-legal-link:focus {
  color: rgba(0, 0, 0, 0.72);
}

footer#footer.bg-light .footer-copy {
  color: rgba(0, 0, 0, 0.45);
}

/* Footer column titles: consistent weight and spacing */
footer#footer > .container > .row:first-of-type .text-uppercase.fw-bold {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 0.85rem !important;
}

/* Main footer grid: align column tops */
footer#footer > .container > .row:first-of-type,
footer#footer > .container > .row.sb-footer-main {
  align-items: flex-start;
}

/* Social icons row: tidy alignment with brand block */
footer#footer .social-nav .nav {
  margin-left: -0.35rem;
}

/* —— Organized site navigation (dropdowns) —— */
.sb-navbar .dropdown-menu {
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.12);
  border-radius: 12px;
  padding: 0.45rem 0;
  min-width: 11.5rem;
  margin-top: 0.35rem;
}

.sb-navbar .dropdown-item {
  font-weight: 700;
  padding: 0.45rem 1.15rem;
  font-size: 0.92rem;
  color: #1f2937;
}

.sb-navbar .dropdown-item:hover,
.sb-navbar .dropdown-item:focus {
  background: rgba(246, 224, 94, 0.22);
  color: #111827;
}

.sb-navbar .dropdown-item.active,
.sb-navbar .dropdown-item:active {
  background: rgba(246, 224, 94, 0.38);
  color: #111827;
}

.sb-navbar .nav-link.dropdown-toggle {
  font-weight: 700;
}

.sb-navbar .nav-link.dropdown-toggle.active {
  color: rgba(0, 0, 0, 0.55) !important;
}

.sb-navbar .nav-link.dropdown-toggle::after {
  margin-left: 0.35em;
  vertical-align: 0.11em;
}

.sb-nav-cta {
  white-space: nowrap;
}

@media (min-width: 992px) {
  .sb-navbar .navbar-collapse {
    flex-grow: 0;
    align-items: center;
  }
}

@media (max-width: 991.98px) {
  .sb-navbar .dropdown-menu {
    border: 0;
    box-shadow: none;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0.35rem;
    margin-left: 0.5rem;
  }
}

/* —— Footer: Site + use cases + contact —— */
.sb-footer-main {
  align-items: flex-start;
}

.sb-footer-heading {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.48);
  margin-bottom: 0.85rem;
}

.sb-footer-subheading {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
  margin-bottom: 0.5rem;
}

.sb-footer-links .nav-link {
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.28rem 0;
  color: rgba(0, 0, 0, 0.65) !important;
}

.sb-footer-links .nav-link:hover,
.sb-footer-links .nav-link:focus {
  color: rgba(0, 0, 0, 0.92) !important;
  text-decoration: underline;
}

.sb-footer-links .nav-link.active {
  color: rgba(0, 0, 0, 0.92) !important;
  font-weight: 800;
  text-decoration: none;
}
